Jade's weblog Archive

Resending emails from a maildir

A user on one of my linux boxes had accumulated a bunch of email in a maildir, and wanted them forwarded to a new email address.

I wrote a script that did this:

#!/bin/bash

echo

for file in *.org

do
/usr/sbin/sendmail hisemail@safe4all.org hisemail@safe4all.org < "$file"
echo "$file name";
done
exit 0


Our domain name ends in .org, so that would change if you were at a .com or otherwise.

08:25 PM, 18 Oct 2005 by Jade Rubick Permalink | Comments (0)

XML

Notifications

You may request notification for Jade's weblog.

Syndication Feed

XML

Recent Comments

  1. Jade Rubick: And... yes and no
  2. Jade Rubick: Using hoptoad
  3. Jade Rubick: Much better
  4. Bodo Tasche: Link changed :)
  5. Bodo Tasche: Better commt emails. Now with color :)
  6. Jade Rubick: Filed a ticket
  7. Vinod Kurup: Wow
  8. Jade Rubick: Then what
  9. Paul Post: Percentages
  10. Paul Post: I might be an ENFJ?