Emanuela Giannetta <egiannetta(_at_)tim(_dot_)it> writes:
I woul'd like processing incoming messages so a text message originated
as "forward" (i.e. <Content-Type: multipart/mixed; boundary.... > in
the Header and <Content-Type: text/plain> in the Body) is masquerading
as simple text message (i.e. <Content-Type: multipart/mixed;
boundary.... > eliminated in the Header)
I tried to use different combination of procmail/formail without any
success:
1) $HOME/.procmailrc like
:0 B
* ^Content-Type: text/plain
|/usr/bin/procmail -m /testrc
That should be:
|/usr/bin/procmail -m $HOME/testrc
However that doesn't explain why the others things you've tried (elided
from this reply) didn't work.
...
2) $HOME/.procmailrc like
:0 B
* ^Content-Type: text/plain
{
:0 fwh
* ^Content-Type: multipart/mixed; boundary
| /usr/bin/formail -I "Content-Type:"
}
Result: no messages in the mailbox.
This should work. Have you defined a LOGFILE, turned VERBOSE on and
tried it? If not, add
LOGFILE = $HOME/procmail.log
VERBOSE = on
To the top of your .procmailrc and send a test message, then examine
procmail.log.
Philip Guenther