Hi,

I found another strange case which has at least some similarity to this 
thread.

Am Mittwoch, 28. Oktober 2020, 21:12:55 CET schrieb Rainer Dorsch via Exim-
users:
> 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_fil
> ter_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.
> 

I am wondering why

elif "$original_local_part" is "web.de-forward" then save Maildir/.AA-
bokomoko.web-de/

does not match this mail:

Return-Path: 
Envelope-to: [email protected]
Delivery-date: Wed, 04 Nov 2020 17:08:00 +0100
Received: from mout-xforward.web.de ([82.165.159.3]) by contabo.bokomoko.de 
with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) id 
1kaLKG-0001s8-SD for [email protected]; Wed, 04 Nov 2020 17:08:00 
+0100
Received: from [212.227.15.17] ([212.227.15.17]) by mx-ha.web.de (mxweb010 
[212.227.15.17]) with ESMTP (Nemesis) id 1N3JY6-1k9DyA0SYs-010PP3 for <web.de-
[email protected]>; Wed, 04 Nov 2020 17:07:56 +0100
Received: from lstlambert-657-1-125-211.w92-154.abo.wanadoo.fr 
([45.152.40.248]) by mx-ha.web.de (mxweb010 [212.227.15.17]) with ESMTP 
(Nemesis) id 1M9Gvj-1kfYWC44bn-006K9Y for <[email protected]>; Wed, 04 Nov 2020 
17:07:55 +0100
Delivered-To: [email protected]
Received: by 2002:a17:90a:9b14:0:0:0:0 with SMTP id f20csp2313146pjp; Sat, 29 
Aug 2020 04:54:10 -0700 (PDT)
X-Received: by 2002:a5d:8612:: with SMTP id f18mr2362773iol.135.1598702050577; 
Sat, 29 Aug 2020 04:54:10 -0700 (PDT)

Do I need special treatment for the minus sign in the local part?

Thanks
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