Am Mittwoch, 28. Oktober 2020, 13:19:41 CET schrieb Jeremy Harris via Exim-
users:
> On 28/10/2020 07:22, Rainer Dorsch via Exim-users wrote:
> > elif "$original_local_part:" is "web" or "$original_local_part:" is
> > "impressum" then save Maildir/.AA-bokomoko.public/
> 
> You have an extraneous ":" there.

Hmm....I have that always and everywhere in my .forward file:

e.g.

[...]
elif $h_to: contains "[email protected]" then save 
Maildir/.Listen.Newsletter.shopping.sports.bike.Canyon/
elif $h_to: contains "[email protected]" then save 
Maildir/.Listen.Newsletter.shopping.sports.bike.fahrrad-de/
elif "$original_local_part:" matches "fahrradxxl" then save 
Maildir/.Listen.Newsletter.shopping.sports.bike.fahrradXXL/
[...]

But rereading the documentation (Section 5)

https://www.exim.org/exim-html-current/doc/html/spec_html/filter_ch-exim_filter_files.html

I understand that colon is only meant for header variables.

What is super weird is that it also works:

2020-10-28 19:05:27 1kXpp2-0004H5-Mp <= [email protected] 
H=uspmta120019.emarsys.net [185.4.120.19] P=esmtps 
X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=no S=87155 DKIM=emarsys.net 
[email protected]
2020-10-28 19:05:27 1kXpp2-0004H5-Mp => /home/rd/
Maildir/.Listen.Newsletter.shopping.sports.bike.fahrradXXL/ ([email protected]) 
<[email protected]> R=userforward T=address_directory
2020-10-28 19:05:27 1kXpp2-0004H5-Mp Completed

Looking closer, the difference is then made by "is" and "matches".

Many thanks for you taking the time to look at my issue and the excellent 
response, that solved (at least in a test mail) my problem.

Rainer

-- 
Rainer Dorsch
http://bokomoko.de/



-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to