Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Saved mail file; want to reinsert messages

0 views
Skip to first unread message

Bownemb...@gmail.com

unread,
Aug 23, 2007, 2:16:04 PM8/23/07
to

I had a problem with a mailbox filling up and also filling my server
disk.

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?

Tilman Schmidt

unread,
Aug 24, 2007, 8:01:54 AM8/24/07
to
Bownemb...@gmail.com schrieb:

> 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.

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/...

John A. Bailo

unread,
Aug 24, 2007, 4:28:59 PM8/24/07
to
On Aug 24, 5:01 am, Tilman Schmidt <ts-usenet0...@pxnet.com> wrote:
> Bownembc2.K...@gmail.com schrieb:
> Try this (no warranty):
>
> formail -s sendmail u...@addre.ss < dumpfile

>
> Formail will split the dumpfile into individual messages and feed
> each one to a "sendmail u...@addre.ss" command for redelivery.
>

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?


John A. Bailo

unread,
Aug 24, 2007, 5:54:12 PM8/24/07
to

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!


0 new messages