Timur wrote,
Ok, I have this, but it doesn't seem to work. The message just
disappears - it doesn't appear in my inbox or any folder.
:0
* ^TO_ \/(_dot_)*(_at_)subdomain\(_dot_)domain\(_dot_)com
* MATCH ?? ()\/[^(_at_)]+
.`echo "$MATCH" | tr . :`/
:0E
.$MATCH/
Well, I screwed up the second part: if `E' is in effect, that means that
MATCH wasn't assigned, or it has a leftover value from earlier in the
rcfile.
So for starters, let's do this (and I don't like hardcoding that space,
either):
:0
* ^TO_\/(_dot_)+(_at_)subdomain\(_dot_)domain\(_dot_)com
* MATCH ?? ^^\/[^ @]+
{ FOLDERNAME = $MATCH }
:0
* FOLDERNAME ?? ()\.
.`echo "$FOLDERNAME" | tr . :`/
:0E
.$FOLDERNAME/
But that's not enough to solve the problem:
procmail: Executing "echo "$MATCH" | tr . :"
procmail: Assigning "LASTFOLDER=./msg.WzZ1"
procmail: Opening "./msg.WzZ1"
> [5-minute delay here]
> procmail: [26055] Fri Apr 9 08:42:41 2004
> procmail: Kernel-lock failed
> procmail: Linking to "This/msg.WzZ1"
> procmail: Linking to "is/msg.WzZ1"
> procmail: Linking to "only/msg.WzZ1"
> procmail: Linking to "a/msg.WzZ1"
> procmail: Linking to "pop/msg.WzZ1"
> procmail: Linking to "e-mail/msg.WzZ1"
> procmail: Linking to "account./new/1081525046.26055_1.gollum"
Oy. Apparently the pipe into tr is returning "<space>This is only a pop
e-mail account<untranslated period>," so the action line is coming out
. This is only a pop e-mail account./
And . of course is a directory, so procmail is hard-linking the message
into ., This, is, only, a, pop, and e-mail as classic procmail
directories and into account./ as a maildir.
So something is amiss with your setting for SHELL or with finding tr in
$PATH.
My guess: you're using a shell that runs an init file, and that's the
output of the init file. Try a simple
SHELL=/bin/sh
near or at the top of your .procmailrc.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail