On Sat, Jan 22, 2005 at 05:43:40PM -0500, Glenn Sieb wrote:
In testing this recipe (at the end of the email) by sending email to
root(_at_)wingfoot(_dot_)org, I see in my logs that it *does* seem to match
^TO_root(_at_)wingfoot(_dot_)org, which I would expect... :) But it doesn't
match
after that..??
(Root mail--Wing)
procmail: Skipped ".Root/"
procmail: Skipped ".DataBasement.Root/"
"Skipped" in the log means a syntax problem. Usually an action
line that has become separated from any valid recipe.
Here is my recipe...
# Root Emails...
:0
* ^TO_root@
{
:0
* ^TO_root(_at_)wingfoot(_dot_)org
{
LOG="(Root mail--Wing)$NL"
.Root/
And there it is.
Leaving aside for the moment the awkwardly labarynthine construction
you have devised where the outside recipe with its lone condition tests
for ^TO_root@, leading to a nested recipe with its lone condition
testing for ^TO_root(_at_)wingfoot{an_unquoted_dot_isany_one_char}org;
we in any case now have an assignment (LOG=) -- which is not a
recipe, per se, but stands on its own; followed by the line ".Root/".
You think that's a delivery destination via a recipe action line.
But it's not: where's the recipe? A recipe consists of an initiation
line starting with (a) a colon -- usually, modernly,
:0
followed by optional flags, an optional lockfile colon, and an
optional lockfile name and lockextension name; (b) an optional
condition or conditions; and (c) an action line. You don't
have that here, and procmail doesn't know what you are trying to
do. Hence, "Skipped."
}
:0
* ^TO_root(_at_)databasement(_dot_)org
{
LOG="(DataBasement Root Mail)$NL"
.DataBasement.Root/
}
}
Same thing is happening here.
But now let's revisit the logic of the presentation. The first, outside
recipe is completely superfluous. Let's analogize: you go into a
restaurant and see a woman who reminds you of your first girlfriend,
from fifteen years ago. You're not sure, though, so you ask her:
"Mary?" But before she can react at all, you say, "Mary Smith?"
Well. Since you didn't wait for a reaction to "Mary?" its utterance
did you no good at all. You might as well have just asked "Mary Smith?"
to start with. :-) (Then she still didn't react, and you suddenly
remembered that your first girlfriend's last name was Jones, not Smith.
So you now ask, "Mary Jones?") :-)
I'm just kidding around, as you I hope can tell. It's late, and I
could use a little levity. But anyway: drop the outside recipe, and
fix the inside ones.
Dallman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail