Re: [exim] From header with encoding not parsed?

2023-04-13 Thread Jeremy Harris via Exim-users
On 13/04/2023 23:24, Martin D Kealey via Exim-users wrote: On Thu, 13 Apr 2023 at 19:36, Slavko wrote in exim-users@exim.org: Dňa 12. apríla 2023 16:50:29 UTC používateľ MRob via Exim-users < exim-users@exim.org> napísal: Hi, I have a variable to extract the email address in from header set

Re: [exim] From header with encoding not parsed?

2023-04-13 Thread Martin D Kealey via Exim-users
On Thu, 13 Apr 2023 at 19:36, Slavko wrote in exim-users@exim.org: > Dňa 12. apríla 2023 16:50:29 UTC používateľ MRob via Exim-users < > exim-users@exim.org> napísal: > > Hi, I have a variable to extract the email address in from header set > like this: > > > > ${lc:${address:$h_From:}} > >

Re: [exim] From header with encoding not parsed?

2023-04-13 Thread Jeremy Harris via Exim-users
On 13/04/2023 09:54, Victor Ustugov via Exim-users wrote: I'm not talking about what should be encoded, but about what can be received in a real email from a spammer, some kind of script or something like that. A mail sender could send you *anything*. -- Cheers, Jeremy -- ## List details

Re: [exim] From header with encoding not parsed?

2023-04-13 Thread Victor Ustugov via Exim-users
Slavko via Exim-users wrote on 12.04.2023 22:38: Hi, I have a variable to extract the email address in from header set like this: ${lc:${address:$h_From:}} >>> >>> Header is valid, but after decoding it contains comma without >>> qoutes, the comma is address separator and

Re: [exim] From header with encoding not parsed?

2023-04-13 Thread Victor Ustugov via Exim-users
Jasen Betts via Exim-users wrote on 13.04.2023 10:07: > On 2023-04-12, Victor Ustugov via Exim-users wrote: >> Slavko via Exim-users wrote on 12.04.2023 20:42: >>> Dňa 12. apríla 2023 16:50:29 UTC používateľ MRob via Exim-users >>> napísal: Hi, I have a variable to extract the email

Re: [exim] From header with encoding not parsed?

2023-04-13 Thread Jasen Betts via Exim-users
On 2023-04-12, Victor Ustugov via Exim-users wrote: > Slavko via Exim-users wrote on 12.04.2023 20:42: >> Dňa 12. apríla 2023 16:50:29 UTC používateľ MRob via Exim-users >> napísal: >>> Hi, I have a variable to extract the email address in from header set like >>> this: >>> >>>

Re: [exim] From header with encoding not parsed?

2023-04-12 Thread MRob via Exim-users
@Jeremy I think location is no problem since the address is successfully extracted in most cases. Only this one problem, because the encoded comma Simple put that line in some file and try itself by -bem, eg: Thank you Slavko so i will not bother list with that kind of question!

Re: [exim] From header with encoding not parsed?

2023-04-12 Thread Slavko via Exim-users
Dňa 12. apríla 2023 19:15:19 UTC používateľ MRob via Exim-users napísal: >On 2023-04-12 17:42, Slavko via Exim-users wrote: >> Use raw header for address extracting -- $rh_From: that works >> for both, quoted and encoded content... > >If using rh_From: is there risk to get tricked with header

Re: [exim] From header with encoding not parsed?

2023-04-12 Thread Jeremy Harris via Exim-users
On 12/04/2023 17:50, MRob via Exim-users wrote: Hi, I have a variable to extract the email address in from header set like this: ${lc:${address:$h_From:}} But it comes out blank(empty) given a "from" header like this one: From: =?utf-8?Q?My=20Bizness=2C=20Inc.?= I think thats a valid

Re: [exim] From header with encoding not parsed?

2023-04-12 Thread Slavko via Exim-users
Dňa 12. apríla 2023 18:43:09 UTC používateľ Victor Ustugov via Exim-users napísal: >Slavko via Exim-users wrote on 12.04.2023 20:42: >> Dňa 12. apríla 2023 16:50:29 UTC používateľ MRob via Exim-users >> napísal: >>> Hi, I have a variable to extract the email address in from header set like

Re: [exim] From header with encoding not parsed?

2023-04-12 Thread MRob via Exim-users
On 2023-04-12 17:42, Slavko via Exim-users wrote: Dňa 12. apríla 2023 16:50:29 UTC používateľ MRob via Exim-users napísal: Hi, I have a variable to extract the email address in from header set like this: ${lc:${address:$h_From:}} Header is valid, but after decoding it contains comma

Re: [exim] From header with encoding not parsed?

2023-04-12 Thread Victor Ustugov via Exim-users
Slavko via Exim-users wrote on 12.04.2023 20:42: > Dňa 12. apríla 2023 16:50:29 UTC používateľ MRob via Exim-users > napísal: >> Hi, I have a variable to extract the email address in from header set like >> this: >> >> ${lc:${address:$h_From:}} > > Header is valid, but after decoding it

Re: [exim] From header with encoding not parsed?

2023-04-12 Thread Slavko via Exim-users
Dňa 12. apríla 2023 16:50:29 UTC používateľ MRob via Exim-users napísal: >Hi, I have a variable to extract the email address in from header set like >this: > >${lc:${address:$h_From:}} Header is valid, but after decoding it contains comma without qoutes, the comma is address separator and thus

[exim] From header with encoding not parsed?

2023-04-12 Thread MRob via Exim-users
Hi, I have a variable to extract the email address in from header set like this: ${lc:${address:$h_From:}} But it comes out blank(empty) given a "from" header like this one: From: =?utf-8?Q?My=20Bizness=2C=20Inc.?= I think thats a valid header? Did i do somethings wrong please? Thanks! --