Re: [exim] system filter

Top Page
Delete this message
Reply to this message
Author: Lena
Date:  
To: exim-users
Subject: Re: [exim] system filter
> From: Brent Clark

> I seem to be having a problem with ${lc:$local_part}
>
> The following is in my access log.
> /usr/local/backups/mail/2010-04-14//incoming/1O21SI-0007EO-QK <system-filter>


Because $local_part is local part of recipient address.
Local part of sender address is in $sender_address_local_part .
Description of the $local_part variable explains:

| $local_part is set during user filtering, but not during system filtering,
| because a message may have many recipients and the system filter is called
| just once.


> Horrible hack, but I find this works.
>
>      if $sender_address matches "([a-z0-9-]+)@" then
>          noerror unseen save 
> /usr/local/backups/mail/${substr_0_10:$tod_log}/${lc:$1}/outgoing/$message_exim_id


So, you wanted local part of sender address.