procmail
[Top] [All Lists]

Re: Sorting an already existing mbox file, is it possible?

2005-10-08 02:02:32
Tom:
Ruud:

  $ formail -s procmail -m test84.rc < mbox094elv

That should show a line with several PIDs, one PID per message
in the mbox.

[...] I got only one PID using only
  procmail -m recipe1.rc < bellsouth1

Yes, that is normal, procmail doesn't (s)plit up an mbox-file into
(s)eparate message(s).
formail -s does that.


5,$g/^From /s/^From /\nFrom /

and suddenly I had an mbox file, however there was no date on the
"From "

See `man formail`, specifically the options -e and -f.
Without -f, formail creates From_ lines if necessary.
With -e, formail tries to understand mboxes with missing empty lines
between the messages.


  formail -s procmail -m recipe1.rc < mbox094elvd

sorted the messages properly

Then you're OK.


I don't know whether to call this behavior a bug in procmail,
or was it designed that way?

procmail is for single messages.

-- 
Grtz, Ruud


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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