#3984: Very large IMAP folders result in "could not copy message"
--------------------+----------------------
Reporter: darac | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: IMAP | Version:
Keywords: patch |
--------------------+----------------------
Dear Maintainer,
For some reason, one of the mailboxes on my dovecot server has very large
UIDs (> 2!**31). Trying to open messages with these very large UIDs
results in mutt complaining "Could not copy message" and failing to open
the message.
Upon investigation, I found that this is because mutt occasionally treats
UIDs as signed integers (the RFC states that they are, in fact, unsigned
ints). In the attached patch, I have tried to track down as many instances
of UIDs being treated as ints as I can (changing declarations, replacing
the use of atoi() with strtoul(), printing with '%u' instead of '%d' and
so on). This now means I can open messages in the affected mailbox.
[This bug is a clone of Debian Bug https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=861235]
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3984>
Mutt <http://www.mutt.org/>
The Mutt mail user agent