procmail
[Top] [All Lists]

Filtering already existing mbox

1998-05-17 16:02:57


I'm really really surprised I haven't found this question ANYWHERE in the
faq files or man pages or what.  I would think this question would be #1
in the FAQ file.  Makes me think I was a total moron and overlooked this
question somehow.  Whatever the case, if its in the man page or FAQ files
or whatever..  feel free to slap me in the face with the URL or whatever.


Anyway, my question is that I have a 14meg mailbox which is a mess.  All
my personal, spam and mailing list messages are all mixed together.  I
could just get cheap and download it all into Eudora and let it filter
everything but I'm very anal about my mail.  I'd like to use IMAP and have
my mail filtered by procmail.  Making the filter files are no problem
(Although I do have some questions about the filters)..  but I haven't
seen anything on telling procmail to process the mail I already have.  I'm
going to hit myself if its as simple as "cat mbox | procmail"..  But
whatever the "offical" procedure is is what I'd like to do.

Also as far as the filter files go..  I've seen some very conflicting
info.  The general filter FAQ for procmail/mailagent site has a way to
test procmail.  They say make a rc file with the following:

:0:
* ^Subject:.*test
IN.testing

Then later I read that the field label must be in ALL CAPS (ie "TO" 
instead of "To" or "to").  Yet "Subject" is exactly what they say to put
in and that is not all caps.  It also says you need the field label and
the text for matching written next to each other "TOlink" yet there's a
":" between subject and .*test.  I'm guessing thats for the lockfile.  Why
the heck decide to do a lockfile right in the middle of defining the
actual filter??  And I have no clue what ":0:" is.  Does that
number change if you decide to make more then one filter in a rc
file?  Anyway.. its just enough to make me iffy about the filters.  I'd
hate to watch my 14meg mailfile get chewed to death because I forgot to
put a semicolon at the end of a line or something.  :)

Anyone who can help I would defintely appericate it.  Thanks,

-Matt Cortes
link(_at_)pulsar(_dot_)net
Owner/President
Pulsar Communications
http://www.pulsar.net/


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