Chris Hanlon <chanlon(_at_)amavi(_dot_)com> writes:
This is a multi-part message in MIME format.
Can you please tell your mail client to only send plain text when you
send message to the procmail mailing list? It just makes it more
annoying to respond to your messages.
Is there a way to make procmail write files (that fit a certain rules)
as world readable? The following is a copy of my .procmailrc
/*Begin*/
SHELL=/bin/sh
PATH=/bin:/usr/bin:/usr/sbin:/var/qmail/bin:/sbin
If you just want to add /var/qmail/bin to your path, use the original
value in the assignment:
PATH = $PATH:/var/qmail/bin
DEFAULT=$HOME/Maildir/
#LOGFILE=$HOME/.procmail-logfile
:0
* ^(To|CC|BCC)(_dot_)*qmail(_at_)list(_dot_)cr(_dot_)yp(_dot_)to
$HOME/public_html/qmail/
:0
* ^(To|CC|BCC)(_dot_)*bugtraq(_at_)securityfocus(_dot_)com
$HOME/Maildir/bugtraq/
:0
* ^.*
$DEFAULT
A recipe can have zero conditions, in which case it always 'matches', so
you don't need that condition on the last recipe there. Furthermore,
procmail will by default attempt delivery to $DEFAULT if it has not
processed a delivering recipe by the time it runs out of rcfile. All
official version of procmail that support maildir mailboxes will
suppress the locallockfile if $DEFAULT specifies a maildir style
mailbox.
In other words, you should at least remove the condition on that last
recipe, and removing it entirely would not be a bad idea.
I would like the output of *
^(To|CC|BCC)(_dot_)*qmail(_at_)list(_dot_)cr(_dot_)yp(_dot_)to to be
world readable.
The mode of new files written by procmail is, like most UNIX programs,
controlled by the umask then in effect. To change procmail's umask,
assign the new desired value, expressed in octal, to the UMASK
variable. In your case you want to change the umask from the default of
077 to 022.
# Set the umask to make new files world readable (but not writable)
UMASK = 022
:0
* ^(To|Cc|Bcc):(_dot_)*qmail(_at_)list\(_dot_)cr\(_dot_)yp\(_dot_)to
$HOME/public_html/qmail/
# Reset the umask for the remaining deliveries
UMASK = 077
:0
...etc
Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail