(auto magically) Deleting old Spam emails

If you followed My Qmail installation guide, or are using some kind of webmail or IMAP client that puts “SPAM” marked emails in some special folder, you can provide auto delete of old spam emails.

The popular Roundcube webmail has the movespam plugin (actually it’s broken, but is an easy fix) that moves spam to …/user/Maildir/.Junk folder. And this makes very easy to have a cron invoked script that deletes old spam emails.

So (in PHP), and with a threshold of 30 days (older are deleted):

$threshold = time() - (60*60*24*30); // 30 days

$junk_folders = shell_exec('find /home/vpopmail/domains/ -name .Junk -type d');
$junk_folders = explode("\n", $junk_folders);
$junk_folders = array_filter($junk_folders);

foreach ($junk_folders as $junk_folder) {
  foreach (array('new','cur') as $subfolder) {
    $d = dir($junk_folder.'/'.$subfolder);
    while (false !== ($entry = $d->read())) {
      if ($entry != '.' && $entry != '..' && is_file($d->path.'/'.$entry)) {
        if (filemtime($d->path.'/'.$entry) < $threshold)
          unlink($d->path.'/'.$entry);
      }
    }
  }
}

When we are deleting emails directly like this, you are screwing the user quota so probably it’s not a bad idea to rebuild quotas after running the old spam delete script.

Oil change

My car odometer logs 260k kilometers plus some nickels and dimes, time was due to yet another oil change. This is the most simple maintenance operation you can do to your car, but is very common to be overlooked or overdone by car owners. It should be done according to your vehicle manual intervals and with the right oil specification and quantity. Its advisable to always change your oil filter with the oil, something that i don’t comply myself, because since the ECU reprogramming i shortened the oil change intervals (from 15k to 10k), and if the new oil is the same brand/viscosity of the old i keep the same filter between two oil changes (for 20k).

This is normally a cheap work to do at the shop, but i rather do this myself, because of several reasons:

  • This work is normally done by the workshop less qualified person
  • Sometimes they add too little or too much oil
  • Most places do this by suction through the oil level stick, so some impurities just remain at the carter
  • If done the correct way, through the carter, they have a tendency to over tight the drain screw (into the aluminum carter…)
  • I know for sure the stuff i am pouring in, witch is adequate (has the correct certification) for the engine, also i try to stick to the same brand and viscosity
  • Normally i take around 1h, witch is less than you usually wait at shop looking to some grease monkeys working at slow motion.
  • The economical savings (even if really not that much, they do add up with time)

So, first thing prior to get started, is to join everything you will need together:

  • Jack stands (well within your vehicle weight)
  • A jack
  • A red newspaper (ex: Expresso economy section)
  • Oil according to engine, for me its 4.2L of VW505.00 specs, normally BP 5000 (it depends on the promotional prices).
  • An oil catching pan
  • A rag (ex: old Lisbon Half Marathon t-shirt)
  • A wrench that works good on the drain screw (normally hex or monkey-wrench)
  • Some screwdrivers, Phillips, Torx, Flat, etc to remove the lower engine cover
  • Eye protection goggles
  • Funnel
  • Silicone joint tube (optional)
  • All purpose rubber compatible lubricant (optional)
  • Oil filter (not in pics cause i didn’t swapped it)
  • Oil filter wrench (not in pics cause i didn’t swapped the oil filter)

Lets put those hands to business, first and most important, park and break the car in a flat area (can be outside) and lift the front of your car and place it SECURELY on the jack stands. Do not improvise or try to be inventive in any way in this point, later if this goes bad and you happen to be under the car…. also don’t forget to put the eye protection goggles when working under the car, remember safety first.

Start to take the lower engine cover out with the appropriate screwdrivers . Afterward, locate the drain plug and cover the ground with the newspaper and place the oil catching pan, now remove the drain plug, and be careful so the the drain plug don’t fall to the pan…. let the old oil flush out, with the engine a bit warm the oil will flow much faster, so normally i do this half an hour after a drive.

While the oil is flushing you can get swap the oil filter, in the VW Golf is a cartridge that you can access from the top, with the filter wrench, there are some o-rings that you should also replace in the filter assembly when putting the new filter on.

Now, you should put the drain plug on again, many people always replace with a fresh one, but i only do this if it is getting old or threaded, if not i simply clean it of old sludge (with the rag) and put a tiny bit of silicone oil joint at the end, so it will seal nice and easy. Put it on, but DO NOT over tight, specially with an aluminium carter, it should be snug, just don’t over do it.

Now, its time to refill your engine with the new oil, use the correct quantity or put in small portions and check the oil level stick. About the oil, check the manual and make sure it has the needed specification for your engine and climate. The oil level should be between the max and min marker, not more nor less.

About the brand, there are tons and tons of information floating around, and everybody seems to have their own opinion or sympathy. My 2 cents, again don’t over do it,  use the manual specified oil of a major brand, and choose by some rational criteria, like price or by tech sheets (not just because someone told somebody that eared a person talking about a 1 zillion kilometers car that run only with oil xyz). If you want to upgrade the engine specified oil, fine, but i see so many folks pouring money in ultra high tech oils into some engines that would live happily with a 10W40…

At this point, usually i take advantage as the car is already in jack stands to lubricate the car silent blocks and rubber joints with an all purpose rubber compatible lubricant. Don’t forget to put the engine cover back in place and to clean everything, and to pack up your tools. Also put the old oil in the new oil container (now empty), and please do deliver it to recycling in a workshop (normally the same place where you bought the new oil).

Put the car back on the ground, get a cold beer and enjoy the next thousands kilometers.