When I tried doing a "mail" on the account, it threw a fault on exit
and dumped the file.
I can read the dump file with a "mail -f" so it appears intact.
I want to "integrate" that file with the new mail file.
The reason is that I have a web service that reads the email using
qpopper.
Alternatively, is there a way of setting up the dumped file so it can
be retrieved via qpopper?
Try this (no warranty):
formail -s sendmail us...@addre.ss < dumpfile
Formail will split the dumpfile into individual messages and feed
each one to a "sendmail us...@addre.ss" command for redelivery.
HTH
T.
--
Please excuse my bad English/German/French/Greek/Cantonese/Klingon/...
Thank you! Clever solution...
One more thought -- does "mail" have an import function?
As in, from my existing (live) mailbox, can I import an external file
worth of messages?
Well, formail is a great tool -- I can export parts of my maibox to
smaller files.
I solved my original problem -- it turns out my application server was
choking on a particular email which was the first email in the file
that got saved off.
So switched off sendmail, emptied the current mailfile, then copied
the dumped mail file back to /var/mail and it was able to be read!