procmail
[Top] [All Lists]

Re: Newbie From Question (Regex)

2003-02-28 13:09:24

Thomas Beer said:
On Fri, Feb 28, 2003 at 08:11:46AM -0600, David W. Tamkin wrote:

Thanks for all your replies.
In fact, procmail simply doesn't ignore the recipe.
The leading dot is for a Maildir delivery with courier-imap,
and the words network control are separated. so what I want is
a recipe that puts all mail from daemon(_at_)system to the imap directory
network control and subdirectory daemon.

Should I place the dot inside the quotation marks or outside? The
regex \s should be the place holder for the whitespace. Doesn't
procmail use regular expressions?

Thanks in advance Tom


Make life easy on yourself -- rename and folders with whitespace. You will
find more than one instance where it becomes a pain. I have folders named
".0-inbox2" etc. Rename the one you are working with to
".network-control/daemon". If you CANNOT rename it because it already has
several subfolders and other programs that are writing to it then you will
need to quote it in .procmailrc.
:0
* ^From(_dot_)*daemon(_at_)system
'.network control/daemon/'

OR -- use procmail style escaping -- the character you are escaping
follows the "\" directly -- no special characters to indicate that it is a
whitespace, just the whitespace itself.
:0
* ^From(_dot_)*daemon(_at_)system
.network\ control/daemon/

Gerald

-- 
'74 Passenger Bus (to be renamed -- 'LifeSaver' doesn't feel right)
'69 Bug -- AirBall the Rolling Basket Case
http://www.phorce1.com
http://www.buskatiers.org



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail