[Users] [Bug 4679] New: [PATCH] The correct date header is interpreted incorrectly to display strange date.

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Sat Jun 3 13:33:34 UTC 2023


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4679

            Bug ID: 4679
           Summary: [PATCH] The correct date header is interpreted
                    incorrectly to display strange date.
           Product: Claws Mail
           Version: 4.1.1
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: UI/Message List
          Assignee: users at lists.claws-mail.org
          Reporter: tj5jj7xye at mozmail.com

Created attachment 2329
  -->
https://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=2329&action=edit
Parse date header without comment patch.

Hello.

I use claws-mail ver 4.1.1 on Gentoo GNU/Linux.

I received a mail that showed a strange date on claws-mail. So I parsed source
and wrote a patch.

This mail date header is
"Date: 07 May 2023 20:56:01 +0900 (JST)".
This date header has a timezone comment at the end. It does not violate
RFC5322, but claws-mail misinterprets it. Year "2023" is set to the day
variable and timezone "0900" is set to the year variable.

Comments in Date header do not affect the timestamp. So I wrote a function that
removes all comment before it was interpreted. By removing comment, the correct
date for this mail was displayed on the list.
I think some of the old RFC822 format mail will also get the date display
correctly. RFC822's Date header allows can insert comment to most location of
blank space.

--
slope Takayuki Sakaguchi

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Users mailing list