
On 2023-02-09 17:32, penguinfriend wrote:
On 2023-02-09 15:47, Ruud H.G. van Tol wrote:
On 2023-02-09 15:17, penguinfriend wrote:
Received a mail with the following in the header
Subject: =?utf8?B?RGl0dCDDpHJlbmRlIGbDtnLCoFNha25hZGUgcG/DpG5nIHDDpSBYdHJhIHZh?=
=?utf8?B?cm9y4oCJw6RyIGzDtnN0IENBUy03MTk2NjI2LVo5QjRYNCBDT09QOjAwMjMw?=
=?utf-8?Q?02413858?=
In the procmail log will it say
From MarknadKundkontakt@coop.se Thu Feb 09 13:33:12 2023 Subject: Folder: /home/lesve/Maildir/.commercial.coop/new/1675945992.11257
So my question. Have I found a bug or do I have some configuration wrong?
The "=?utf8?B?R..?=" part should not get decoded, as it doesn't have 'utf-8' but 'utf8'.
But if that doesn't worry you:
$ perl -Mstrict -MEncode -C -wE' my $text= "=?utf8?B?RGl0dCDDpHJlbmRlIGbDtnLCoFNha25hZGUgcG/DpG5nIHDDpSBYdHJhIHZh?= =?utf8?B?cm9y4oCJw6RyIGzDtnN0IENBUy03MTk2NjI2LVo5QjRYNCBDT09QOjAwMjMw?= =?utf-8?Q?02413858?="; say Encode::decode("MIME-Header", $text); ' Ditt ärende för Saknade poäng på Xtra varor är löst CAS-7196626-Z9B4X4 COOP:0023002413858
If you replace the space at the '= =' locations by a newline, or by a newline and a space, you'll get different results.
hi Ruud
Thanks but you did not answer my question. _Have I found a bug or do I have some configuration wrong_? So why is the Subject: line empty i procmail log? The configuration I ask about is Procmail configuation but you answer me how the Mailer should be changed. this is not my business.
AFAICS, you didn't disclose any code/recipe, so it can be caused by many things. The one I mentioned is just one of them. Do you involve formail in any way? If not, then try. Header fields are OK to use multiple lines. The continuation lines start with at least one whitespace. If procmail by itself only logs the first line, as mentioned, then you know why. -- Ruud