Saved mail file; want to reinsert messages

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?
Bownembc2.Kent [ Do, 23 August 2007 20:16 ] [ ID #1803641 ]

Re: Saved mail file; want to reinsert messages

Bownembc2.Kent [at] 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 user [at] addre.ss < dumpfile

Formail will split the dumpfile into individual messages and feed
each one to a "sendmail user [at] addre.ss" command for redelivery.

HTH
T.

--
Please excuse my bad English/German/French/Greek/Cantonese/Klingon/...
Tilman Schmidt [ Fr, 24 August 2007 14:01 ] [ ID #1804728 ]

Re: Saved mail file; want to reinsert messages

On Aug 24, 5:01 am, Tilman Schmidt <ts-usenet0... [at] pxnet.com> wrote:
> Bownembc2.K... [at] gmail.com schrieb:
> Try this (no warranty):
>
> formail -s sendmail u... [at] addre.ss < dumpfile
>
> Formail will split the dumpfile into individual messages and feed
> each one to a "sendmail u... [at] 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?
jabailo [ Fr, 24 August 2007 22:28 ] [ ID #1804731 ]

Re: Saved mail file; want to reinsert messages

On Aug 24, 1:28 pm, "John A. Bailo" <jaba... [at] texeme.com> wrote:
> On Aug 24, 5:01 am, Tilman Schmidt <ts-usenet0... [at] pxnet.com> wrote:
>
> > Bownembc2.K... [at] gmail.com schrieb:
> > Try this (no warranty):
>
> > formail -s sendmail u... [at] addre.ss < dumpfile
>
> > Formail will split the dumpfile into individual messages and feed
> > each one to a "sendmail u... [at] 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?

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!
jabailo [ Fr, 24 August 2007 23:54 ] [ ID #1804733 ]
Miscellaneous » comp.mail.sendmail » Saved mail file; want to reinsert messages

Vorheriges Thema: sendmail FAQ
Nächstes Thema: Converting sendmail logs to SQL