pulb / mailnag

An extensible mail notification daemon
GNU General Public License v2.0
255 stars 32 forks source link

Mailnag 2.2.0 truncates subject lines #252

Open JanBluePix opened 2 weeks ago

JanBluePix commented 2 weeks ago

The original coded subject line (kleinanzeigen.de) is: Subject: Neue Treffer zu deiner Suche =?UTF-8?B?4oCeRm90bw==?= - asahi in Ganz =?UTF-8?B?RGV1dHNjaGxhbmTigJw=?=

The uncoded subject line should therefore look like this: Subject: Neue Treffer zu deiner Suche „Foto - asahi in Ganz Deutschland“

But Mailnag makes this: Subject: Neue Treffer zu deiner Suche

The subject line is generated correctly by Mailnag. However, in file mails.py at line 175,176 the array is overwritten and the last part is missing in the subject line.

Commenting out line 175,176 solves the problem. But maybe just only for me...

tikank commented 1 week ago

I didn't find reason for the check in those lines. I tried to test the function and it seems to work well without those lines.