procmail
[Top] [All Lists]

Re: no "Lines" in mbox

2002-05-06 03:07:41
In message 
<200205060936(_dot_)LAA22537(_at_)axpmgr(_dot_)physik(_dot_)rwth-aachen(_dot_)de>,
 Axel Heinrici 
writes:
I tried to configure procmail to work together with kmail an mutt. 
But both progs tell me that the mboxes are corrupted. To me the 
problem seems to be the missing of the lines containig "Lines: xxx" 
in each mail section (not very familiar with mbox standard).

If your mailclients demand a Lines header, you got two options: Add
one, or reconfigure (or even recompile) your mailclients. I'll address
the first one, since that one is easily done in procmail.

Simply add this in your .procmailrc (above any delivering recipes):
-----8<-----
#
# Generate Lines: header
#
:0 b
LINES=| wc -l | tr -d " "

:0 fhw
| formail -I "Lines: $LINES"
-----8<-----

//Christer

-- 
| Sys admin @ ED                 WWW: http://www.etek.chalmers.se/            |
| Email: mort(_at_)etek(_dot_)chalmers(_dot_)se  Phone: (0)31 772 5431, (0)707 
53 57 57       |
"I fought the loa and the loa won, I fought the loa and the loa won..."
        -- Dave Aronsson, a.s.r.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>