Jon,

Yes, you should probably at least 'man qmail-inject' before you do it,
but essentially, if you have a Maildir with messages you wish to move
to another recipient, you can 

# cd ~user/Maildir/
# for i in *; do qmail-inject -a [EMAIL PROTECTED] < $i; done

This leaves all of the messages in the Maildir and injects copies
(obviously) into the queue....

It's a good quick and dirty thing to have stuffed in the back of your
head.  Can get you out of a jam....

[ By the way, it makes quite a mess, if you haven't checkd to be sure
that mail to [EMAIL PROTECTED] can actually deliver....because
the MTA on foobar.tld's MX host will bounce the messages to the original
sender, so use the above 'quick and dirty' with caution. ]

-Martin

On  2 Dec, Jon Rust wrote:
  : I know this came up recently, but I can't seem to find it in the 
  : archives. I've got a customer for who I just set up his own qmail 
  : server. There's mail left in his old mailboxes on my server though. I 
  : remember someone posting a quick and dirty script that would reinject 
  : the messages in a Maildir. Is it really just as simple as feeding 
  : each message into qmail-inject?
  : 
  : Thanks,
  : jon

-- 
Martin A. Brown --- SecurePipe Communications --- [EMAIL PROTECTED]

Reply via email to