On 16:59 25 Sep 2003, christopher j bottaro <[EMAIL PROTECTED]> wrote: | well i guess i simply have to run procmail manually everytime i wanna check my email. i figured i just run it like this: | procmail < mailbox | assuming my mail spool is $HOME/mailbox. well that doesn't work, and furthermore, after i did that, and checked my mail via mutt, half my emails were duplicated. | | all i want to be able to do is be able to run procmail manually on my | mail spool ($HOME/mailbox), move mail that has "test" in the subject | to $HOME/Mail/testbox, and leave everything else in $HOME/mailbox. | why am i have having such a hard time? =( | | [EMAIL PROTECTED] cjb]$ cat .procmailrc | DEFAULT=$HOME/mailbox | PMDIR=$HOME/.procmail | MAILDIR=$HOME/Mail | LOGFILE=$PMDIR/log | INCLUDERC=$PMDIR/rc.testing | LOG=" | " | VERBOSE=yes | | [EMAIL PROTECTED] cjb]$ cat .procmail/rc.testing | :0: | * ^Subject:.*test | testbox
Well your problem is essentially that procmail is a filter and not an editor, and further that it expected exactly one mail item as its input. Firstly, a workaround: fire up mutt, go Ttest to tag all messages with "test" in them, then: ;s+testbox to save all tagged messages in testbox. This will mark them as deleted in your main mailbox as a side-effect. This is a lot faster for ad hoc filing. Back to procmail. Procmail will not edit your mailbox. Procmail does delivery. Generally what you do is have your mail system deliver via procmail in the first place. If you want to do post delivery filtering you're back to: - select the items to filter (maybe all of them) - feed each to procmail - remove them from your mailbox (because procmail has effectively made new copies in the filing locations) Again, mutt may be your friend here: - "T." select all items - ";|procmail -f $HOME/.procmail/rc.testing" feed every tagged item to procmail for filtering (check that mutt has pipe_split set to true first) - ";d" deleted every tagged item Avoid that last step until you're sure the others are good. Cheers, -- Cameron Simpson <[EMAIL PROTECTED]> DoD#743 http://www.cskk.ezoshosting.com/cs/ So this judge in Virginia rules that a lesbian wasn't fit to raise her own daughter because she might grow up to be a lesbian, and gives custody to the lesbian's mother. And I'm thinking, "She's already raised one lesbian." - Chris Cannon -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list