[Dovecot] 0.99.10.1 released

Mark E. Mallett mem at mv.mv.com
Wed Nov 12 00:47:28 EET 2003


Oh, and thanks much for the support for recognizing timezones
on the "From " line in mboxes.  (mbox_from_parse_date).  However,
it looks like a minor tweak is needed.  After you recognize the
year, I think you need to skip over the following space in order
to recognize the timezone offset.  i.e., where there is:

        /* year */
        if (!i_isdigit(msg[0]) || !i_isdigit(msg[1]) ||
            !i_isdigit(msg[2]) || !i_isdigit(msg[3]))
                return (time_t)-1;

        tm.tm_year = (msg[0]-'0') * 1000 + (msg[1]-'0') * 100 +
                (msg[2]-'0') * 10 + (msg[3]-'0') - 1900;
        msg += 4;

Perhaps add:

        if ( msg[0] == ' ' )
            ++msg;

(Sorry that's not a patch, I had added a few other lines would skew it
anyway.)

mm


More information about the dovecot mailing list