rulururu

post Manually Deliver Email to Maildir

March 14th, 2008

Filed under: Linux, Operating Systems — Brenton Alker @ 11:12

I have, on occasion, had need to manually drop an email into a users inbox. For example, when an over-zealous virus scanner dumps mail into "quarantine".

After confirming that the email are, in fact, virus free, the emails are able to be injected into the users maildir with the help of safecat, which guarantees atomic copying (even from a slow standard input stream) and unique file naming.

The basic format of the command is:

safecat  .Maildir/new/ < msg.eml


with the only restriction being that tmp_dir must be on the same file system, as the algorithm uses hard links to guarantee instant availability of the complete file.

1 Comment »

  1. i am only using free virus scanners like avast and avira but they seem to be great tools though.*’

    Comment by Mariah Barnes — 2010-08-22 @ 03:30

RSS feed for comments on this post. TrackBack URI

Leave a comment

ruldrurd
Powered by WordPress, Web Design by Laurentiu Piron Monitored by SiteUpTime
Entries (RSS) and Comments (RSS)