fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]Where's my From line gone?

2004-04-27 07:46:10
Michael Abbott wrote:
A little while ago, due to a nasty impedance mis-match between sendmail
and my ISP's POP server, I tried forwarding mail directly to procmail
using the line
      mda /usr/local/bin/procmail
but found that mail seemed to get corrupted somehow (I didn't look
terribly closely at the time, having exceeded my patience with fetchmail
at that point).

More recently, I've tried simply concatenating my mail to a file, and
it's clear what's missing: there are no 'From ' lines on any of the
messages!

Eh?  Where'd the 'From ' lines go?  Is there a cryptic option to put
them back again?

The "From " line is added by the mda when writing to an mbox-format 
mailbox.  So when you bypass the mda and concatenate directly to the 
mailbox, there's nothing that creates a "From " line.

The option to put it back is to go back to using procmail or some other 
real mda.

and here is catto

#! /bin/sh
cat >>$1

If you insist on using an mda script that does no locking at all, rather 
than a real mda, try this instead:

#!/bin/sh
formail >> $1

-- 
==============================| "A slice of life isn't the whole cake
 Rob Funk <rfunk(_at_)funknet(_dot_)net> | One tooth will never make a full 
grin"
 http://www.funknet.net/rfunk |    -- Chris Mars, "Stuck in Rewind"