[Users] RSSyl mistakes items for fresh with non-ASCII authors
Ivan Krylov
ikrylov at disroot.org
Sun Mar 23 16:46:44 UTC 2025
On Sun, 16 Mar 2025 12:36:48 +0100
wwp <wwp at claws-mail.org> wrote:
> Right, making use of the encoding func for comparison purposes makes
> sure we're comparing what can be compared, otherwise comparing is just
> useless (and a bug).
Thank you for the prompt reply! Upon further investigation, it seems
that the fix can be very small.
The new feed item is loaded fresh from the Web, and its author field
thus may contain non-ASCII characters and other things not expected in
a From header. The old feed item is loaded from the file and, for
better or worse, contains the RFC2047 representation of the author
field (with multiple lines concatenated if it exceeds the line length
limit). Instead of "unmime"-decoding both author fields, it turned out
to be sufficient to only decode the author of the old item with
'addr_field' set to FALSE to avoid the quotes being inserted.
This prevents the mismatch in the R Journal feed and doesn't introduce
any new ones with the feeds I'm subscribed to. Direct use of
conv_encode_header_full() would have instead introduced mismatches
where the MIME-encoded author field spans multiple lines.
--
Best regards,
Ivan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rss-aut.diff
Type: text/x-patch
Size: 1038 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20250323/f63be666/attachment.bin>
More information about the Users
mailing list