On 12-Sep-2000 Muhamad A. Martoprawiro wrote:
>
> My question is:
> All emails come to X.org ([EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
> [EMAIL PROTECTED], etc.) are forwarded to me (say, [EMAIL PROTECTED]).
> I use qmail at chem.itb.ac.id. What's the simplest way to reforward
> those emails to the right person or to the right place?
> Or, do I have to write a perl script to process those emails?
> (Unfortunately, I currently cannot write any single line of
> perl script .. :-))
> 
> For your info, in the header of those emails, the "To:" field
> still contains the original recipient ([EMAIL PROTECTED]),
> and the "From:" field contains the original sender.

If they're in Maildir format, just do:

for i in * ; do qmail-inject < $i ; done

You may want to add arguments to qmail-inject to control
delivery in the case of forwarded email; see the manpage
for qmail-inject for more info.

If the mail is in a file (mbox format), split it into
Maildir format with convert-and-create (http://www.qmail.org/convert-and-create).

-- 
Rick Lyons
WebCentral

Reply via email to