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.

-- Ruud


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.

/Regards