On 2002-03-07 at 13:45 +0200, Ryan Tracey wrote:
> I did something like this:
>
> save /var/log/exim/spam/${local_part:${extract{1}{,}{$recipients}}} 0644
>
> Seems to be working okay.
Sure that you want to advertise that you do this?
Both '.' and '/' are perfectly valid for the LHS of an email address.
An address such as <../../../../../../../etc/passwd@???> should
be passed on by any mail-system as syntactically correct.
Perhaps ${tr{${local_part:${extract{1}{,}{$recipients}}}}{/.}{_,} would
help; but then "first.last" becomes "first,last". I'm not sure I want
to know what happens when you do a "save /path/.." though. :^)
--
This has been done elegantly by Minkowski; but chalk is cheaper than grey
matter, and we will do it as it comes. -- Einstein