15 Mar
2005
15 Mar
'05
12:21 a.m.
On 14.3.2005, at 22:16, Remy Zandwijk wrote:
Mar 14 16:33:28 tbox dovecot: [ID 107833 local1.error] IMAP(tstud1): utime(/var/tmp/var_mailstore/ t/tstud1/.Drafts/tmp/1110814408.P2681Q0M979308.tbox) failed: Value too large for defined data type
Compiling Dovecot in 32-bit, saving mail within Pine is doing just fine.
I guess this is caused by maildir-save.c, line 219. Is this a bug in Solaris or Dovecot?
Looks like it's a bug in utc_mktime() function which is based on code from Cyrus.. And looks like they've since figured out a way to fix it:
/* Some gmtime() implementations are broken and will return
* NULL for time_ts larger than 40 bits even on 64-bit platforms
* so we'll just cap it at 40 bits */
if(bits > 40) bits = 40;
I'll implement a similar fix. If you change TIME_T_MAX_BITS in config.h to 40 it should work?