mail postprocessing.
hi2all i've got around 300 mails in my mbox , and i want to apply procmail filter on them. Procmail expects individual mails but not an entire mbox. i tried to do something with the formail that comes with procmail, but the entire mbox gets split as the header of the first mail and the rest of the mbox. ( this happens even with -s flag). Is there any mail filter which could do it ? All i want to do is forward every mail i got to a user ( whose .procmailrc wiill take care of the rest ). can i use /bin/mail uninteractively for this ? regards sridhar -- Outside of a dog, a book is man's best friend. Inside of a dog, it is too dark to read.
On Sun, 28 Jan 2001, Sridhar wrote: s> hi2all s> i've got around 300 mails in my mbox , and i want to apply s> procmail filter on them. Procmail expects individual mails but not an s> entire mbox. i tried to do something with the formail that comes with s> procmail, but the entire mbox gets split as the header of the first mail s> and the rest of the mbox. ( this happens even with -s flag). Is there any s> mail filter which could do it ? s> s> All i want to do is forward every mail i got to a user ( whose s> .procmailrc wiill take care of the rest ). can i use /bin/mail s> uninteractively for this ? s> s> procmail alone will only filter a file with a single message in it, for example, your probably doing a variation of the following if I'm right: procmail .procmailrc < mailbox which is doing what your describing above. What your probably looking for is the following: formail -s procmail .procmailrc < mailbox replace 'mailbox' with your mailbox of messages. I use both the above regularly for various testing of my recipies before applying them in my master .procmailrc s> regards s> sridhar s> s> -- S.Toms - tomas@primenet.com - www.primenet.com/~tomas SuSE Linux v7.0+ - Kernel 2.2.18 "We have reason to believe that man first walked upright to free his hands for masturbation." -- Lily Tomlin
Sridhar
hi2all I've got around 300 mails in my mbox , and i want to apply procmail filter on them. Procmail expects individual mails but not an entire mbox. i tried to do something with the formail that comes with procmail, but the entire mbox gets split as the header of the first mail and the rest of the mbox. ( this happens even with -s flag). Is there any mail filter which could do it ?
If you don't get a reply to this you'll find that the procmail list is very good. I used it to get my own mail system working and I'm *really_hopeless* with procmail. Hope that helps ? :) Richard
participants (3)
-
Richard
-
S.Toms
-
Sridhar