On Fri, Jun 07, 2002 at 03:31:39PM +0200, Stefan Friedle wrote:
>    I use fetchmail to fetch mail from my POP account and use procmail to 
> deliver it to my local maildir (~/Maildir/inbox/).  All with cygwin on 
> Windows NT.  In my .fetchmailrc there is a line:
> 
> mda: 'procmail -m D:/home/.procmailrc'

I tried this in my .fetchmailrc (substituting my pathname) but
got a parse error.  After checking the documentation, I tried

mda -m "procmail -d %T -m e:/.procmailrc"

but that failed with a parse error too.

Invoking procmail with a fetchmail command line argument
(--mta 'procmail -m e:/.procmailrc') _did_ work, but it wrote
out an mbox without From-lines.  After further research, I
tentatively concluded that this was a Procmail problem -- that
Procmail perhaps needed to run in "explicit delivery mode".
I discovered that the Unixmail Perl script which hitherto had
functioned (flawlessly) as my MTA was prepending "%" to my
email address in the "From" line and that if I did not add
these by hand, Mutt could not parse the messages that had
been delivered From-less by Procmail.

It would appear that the %T and %F are key to both (the
Perl script takes %%F as an argument to generate "From
[EMAIL PROTECTED]"), but I can only infer what they
mean.  I have searched for documentation of these "escapes"
in several man pages and cached documentation (fgrep '%F')
but have not yet gotten to the bottom of it.

Can anyone point me in the right direction?  Does Mutt need
to have a "%"-escaped username or username@domain, and are
the %T and %F "escapes" a cross-platform (*nix/Win32) way to
get these?

Or am I in the wrong list to pose the question?

Thanks,
Tom

-- 
Dr. Thomas Baker                                [EMAIL PROTECTED]
Institutszentrum Schloss Birlinghoven          mobile +49-171-408-5784
Fraunhofer-Gesellschaft                          work +49-30-8109-9027
53754 Sankt Augustin, Germany                     fax +49-2241-14-2619

Reply via email to