MLUG: Re: [MLUG] procmail processing of existing mbox file?
Re: [MLUG] procmail processing of existing mbox file?
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Thu, 7 Jul 2005, Mark Rages wrote:

On 7/7/05, Mike Miller <EMAIL:PROTECTED> wrote:

I believe that it is possible for procmail to process and sort messages extracted from an existing mbox file. What's the trick to that? Do I have to send the mail to procmail using some program? Or can procmail just read the file? Thanks in advance.

I'm not sure if you have to for procmail, but you can use formail(1) to split up the mbox.


Ah hah!  I think that's what I'm looking for.  From the man page:

     -s   The input will be split up into separate mail messages,
          and  piped  into a program one by one (a new program is
          started for every part).  -s has to be the last  option
          specified,  the first argument following it is expected
          to be the name of a program, any other  arguments  will
          be  passed  along to it.  If you omit the program, then
          formail will simply concatenate the splitted  mails  on
          stdout again.  See FILENO.

Thanks, Mark!!

Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members