Re: [exim] original_local_part sometimes does not match

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Rainer Dorsch
Datum:  
To: exim-users
Betreff: Re: [exim] original_local_part sometimes does not match
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 "canyon@???" then save
> Maildir/.Listen.Newsletter.shopping.sports.bike.Canyon/
> elif $h_to: contains "fahrrad.de@???" 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 <= suite29@???
> 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
> id=0.1.7E.627.1D6AD54E4EB2A62.0@???
> 2020-10-28 19:05:27 1kXpp2-0004H5-Mp => /home/rd/
> Maildir/.Listen.Newsletter.shopping.sports.bike.fahrradXXL/ (rd@???)
> <fahrradxxl@???> 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: web.de-forward@???
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 web.de-forward@???; 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-
forward@???>; 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 <rdorsch@???>; Wed, 04 Nov 2020
17:07:55 +0100
Delivered-To: lora@???
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/