procmail
[Top] [All Lists]

Re: procmail script?

1997-03-25 02:39:52
On 24 Mar 1997 20:01:24 -0500,
David Fox <fox(_at_)cat(_dot_)nyu(_dot_)edu> posted to procmail:
*selah* <soma(_at_)dorsai(_dot_)org> writes:
In the man page it gave a script which is supposed to run procmail on 
systems that aren't able to use .forward files but there wasn't any 
information on how to configure the script correctly.

The script should run as-is, just copy it to a file, chmod +x, run. 
You might want to make sure "echo $LOGNAME" echos back your real name
and that the mail spool is where the script expects it, i.e.
/usr/spool/mail. Short version: If the file /usr/spool/mail/soma
exists (if soma is your login name), go ahead and try it. 

Anyone know how to do this? Also--how would you run the script?

You might run it every time you log in and it will process any new
mail since last time you logged in. If your Procmail scripts store
stuff in your default mailbox sometimes, then of course you'll never
end up with a completely empty inbox. 

I just joined this list to ask a similar question.  I wanted to use
the script to process old mailboxes.  I changed the value of ORGMAIL
to the name of a copy of the mailbox in question, but once it invoked
"formail -s procmail < .newmail" it just hung.  Any advice would be

Are you sure it "just hung"? If the mailbox is big it +will+ take time
to process. You can try to speed that up by using -ns instead of -s
but of course that will consume more resources while it runs. 

appreciated.  I'd also like to be able to filter a single message.
Sometimes a message I didn't want in my mailbox gets through the
filter anyway, and I have to update .procmailrc to catch it.  When I
used the elm "filter" command I could just say "|filter" in emacs
after the update to send the errant message on its way.

If that worked, have you tried "|procmail"? I'm unsure what you expect
to accomplish by this. (If you keep read messages in the spool, of
course, you might want to reprocess the spool this way? Just save the
above script and run it, from within Emacs if you wish. [If that's GNU
Emacs and you called the script "runproc", that would be Esc ! runproc])

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

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