[exim-dev] [Bug 1561] New: appendfile to maildir does not wo…

Góra strony
Delete this message
Reply to this message
Autor: Alex
Data:  
Dla: exim-dev
Temat: [exim-dev] [Bug 1561] New: appendfile to maildir does not work since time_t is 64bit
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1561
           Summary: appendfile to maildir does not work since time_t is
                    64bit
           Product: Exim
           Version: 4.84
          Platform: All
        OS/Version: OpenBSD
            Status: NEW
          Severity: bug
          Priority: high
         Component: Transports
        AssignedTo: nigel@???
        ReportedBy: alexxisr@???
                CC: exim-dev@???



OpenBSD changed size of time_t to 64 bit in 5.5
so when appenfile format filename for maildir it is overfull and crash.
for me i hacked it by:

$diff -p src/transports/appendfile_old.c src/transports/appendfile.c
2543c2543
<       basename = string_sprintf("%lu.H%luP%lu.%s", msg_tv.tv_sec,
---

>       basename = string_sprintf("%lu.H%luP%lu.%s", (unsigned long)(msg_tv.tv_sec),


but think it is too dirty.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email