summaryrefslogtreecommitdiffstats
path: root/imap/message.c
AgeCommit message (Collapse)Author
2015-01-26Corrected various spelling mistakes (most of them reported by codespell).Vincent Lefevre
2013-10-05Consistently use mutt_buffer_init functionAaron Schrab
Despite the existence of the mutt_buffer_init function, most initializations were instead done with memset. Use the specific function instead to make it easier if later changes are made to how the initialization should be done.
2013-04-11backout c1371176ea45Michael Elkins
2013-04-10fix various compiler warnings; most were due to unchecked return values from ↵Michael Elkins
system calls.
2012-12-30add __FREE_CHECKED__Michael Elkins
2012-12-15make imap_private.h include message.h for IMAP_HEADER_DATA definitionMichael Elkins
cast &ctx->data to IMAP_HEADER_DATA** to fix compiler warning imap_free_header_data should check for *data being NULL, rather than "data"
2012-09-09Make imap_free_header_data type-safeAndrew Gaul
Also push conditional into function for safety and consistency with other free functions.
2011-12-03Declare many structures const (closes #3552)Dan Fandrich
Many structs used in mutt are actually constant but are defined without the 'const' keyword. This can slow initialization (slightly) in some environments due to extra copying and increases the amount of writable RAM required at run-time, which can be significant on non-MMU systems. Using const can also increase the opportunities for compiler optimization. The attached patch marks many such structures as const. On my test x86 build, this reduces the size of .data by over 50%.
2011-06-25Avoid creating sparse ctx array when fetch responses are ignored. Closes #3288.hhorak
2010-08-09rename mutt_sprintf() to safe_asprintf() to match the GNU extension that ↵Michael Elkins
performs a similar task
2010-08-08avoid error when the user has requested many extra headers via IMAPMichael Elkins
closes #3435
2009-06-26Set internaldate of messages appended to IMAP mailboxesBrendan Cully
2009-06-21Pass buffer size to mutt_mktemp()Rocco Rutte
2009-06-07Do not display error message when user declines to create target mailbox.Brendan Cully
2009-06-07Minor cleanup in imap_copy_messages.Brendan Cully
2009-06-06Do not treat already-seen headers as if they are new.Brendan Cully
See #2935.
2009-03-15Use safe_fclose() instead of fclose(), add fclose() to check_sec.shRocco Rutte
2009-01-04Updated copyrightsBrendan Cully
2009-01-03Ignore unexpected FETCH responses during imap_read_headers.Brendan Cully
Thanks to Chris Li for the excellent bug report in #3041. See #2902, #2935, #2985, #3028, #3041, #3143. With luck, this may close them. In truth, imap_read_headers is still a horrible kludge of duct tape and chicken wire.
2008-10-20Hack around INBOX.INBOX breakage from [5d1cc2f0c1c4]Brendan Cully
2008-08-29Use sorted headers in imap_exec_msgset. Fixes [e68f79fef249].Brendan Cully
Closes #3000 again.
2008-08-28The msgset changes seem buggy. Reverting pending further testing.Brendan Cully
2008-08-28Split long IMAP commands for the benefit of lazy servers (closes #3000).Brendan Cully
Also touches lots of old, hairy code. Likely to wake sleeping dogs.
2008-08-25Rework IMAP command queueing to allow pipelining to be disabled.Brendan Cully
IDLE handling has been better abstracted, and there are fewer entry points to the IMAP command issuing machinery. Any commands that are simply queued may be executed whenever the pipeline fills, instead of requiring explicit handling in the caller. Tested on my Cyrus server, but I wouldn't be surprise if this causes new problems.
2007-11-06Add percentages to progress bar optionally supplied by caller.Rocco Rutte
This is necessary to let the mbox driver print useful percentages. If there's no percentage given and we have a size, calculate on it on our own. Closes #2929.
2007-04-12Simplify IMAP message fetch loop slightlyBrendan Cully
2007-04-12Handle a missing or corrupted header cache entry (closes #2676)Brendan Cully
If imap_hcache_get fails, stop parsing the header cache and simply refetch from that point on.
2007-04-10Add $message_cache_clean option to prune message cache on syncBrendan Cully
2007-04-10Make IMAP header cache layout match body cache.Brendan Cully
You can now make them point to the same directory. Each folder will have a folder.hcache file for the header cache.
2007-04-10Do not hold hcache open while mailbox is open - it can lead to lockupsBrendan Cully
2007-04-07Fix compiler aliasing warningsFabian Groffen
2007-04-05Fix logic error introduced in [efbcef81ac49]Brendan Cully
2007-04-05IMAP header cache API improvements.Brendan Cully
2007-04-05Keep hcache pointer in idata, open and close with mailboxBrendan Cully
2007-04-05Small hcache-related memory leaksBrendan Cully
2007-04-03Fix some warnings.Fabian Groffen
2007-04-02Fix a segfault in the new mboxcache hcache lookup.Brendan Cully
idata may not have an associated context, so the cache path must use the account info instead. For harmony with the other hcache callers, make them all canonify the path the same way with imap_hcache_open.
2007-04-02Add create flag to imap_mboxcache_getBrendan Cully
2007-04-01Adjust context->size on IMAP load and expunge (closes #2749)Brendan Cully
2007-03-31Add tmp flag to bcache_put, create bcache_commit.Brendan Cully
2007-03-29Make message cache write to temporary location until file is complete.Brendan Cully
Previously mutt trusted the cache file even when it was incomplete, causing permanently incorrect message display if the fetch was interrupted for some reason.
2007-02-25Update copyrights.Brendan Cully
2007-02-12Do not attempt to free NULL IMAP headers after a partial mailbox load.Brendan Cully
2006-11-28Rename PROG_(SIZE|MSG) to M_PROGRESS_\1.Rocco Rutte
2006-11-15Unify size and count progress display.Rocco Rutte
2006-08-10More out-of-order FETCH fixes. This time I wrote a replay tool actingBrendan Cully
as an IMAP server based on a .muttdebug0 file, and mutt handled the out-of-order responses served by it.
2006-08-10More fixes for out-of-order FETCH responses.Brendan Cully
2006-08-09Untested attempt to handle flag updates during mailbox open.Brendan Cully
2006-08-09Do not allow IMAP mailbox to be reopened while it is being opened.Brendan Cully
2006-07-07Fix a small memory leak in the gap between the last cached header and theRocco Rutte
first uncached. (I've plugged a couple of other leaks that happen under error conditions.)