summaryrefslogtreecommitdiffstats
path: root/imap/browse.c
AgeCommit message (Collapse)Author
2016-05-09Change M_* symbols to MUTT_*Derek Martin
Changeset 23334e967dd7 created a workaround for a namespace conflict with Solaris and derivatives. After some discussion, the team decided it would be best to move away from using the "M_" prefix for macros. This patch was automatically generated by running: perl -wpi -e 's/\bM_(\w+)\b/MUTT_$1/g' `find . -name '*.[ch]' -print` with the exception that sys_socket.h was exempted. (That file will be backed out subsequent to this commit.) Thanks to Andras Salamon for supplying the perl script used to make this change.
2016-04-10Add error message string for imap_mailbox_rename() on root folder.Kevin McCarthy
This was fixed just before 1.6.0, but due to the string freeze, could not add an error message.
2016-03-23Prevent renaming root folder in imap.Kevin McCarthy
The root folder results in mx.mbox being NULL, which causes a segfault. This can be triggered by entering a subfolder and trying to rename the ".." entry. Due to the translation string freeze, no visible error message is displayed. Add a TODO note about this for post-1.6 release.
2016-03-23Fix uninitialized prompt buffer in imap_mailbox_rename(). (closes #3819)Kevin McCarthy
This is a patch from OpenBSD to initialize the newname buffer in imap_mailbox_rename(). Previously it would generate random garbage in the prompt. This version of the patch initializes the prompt to the old mailbox name. Thanks to TAKAHASHI Tamotsu for finding this patch.
2016-01-01Convert copyright years to all use 4 digit years.Kevin McCarthy
Vincent Lefèvre pointed out the common shortcut, e.g 1996-9, is actually not allowed for copyright years. Convert all the copyright years (for mutt files) to use 4 digits.
2015-11-21Remove redundant mbox delimiter check in imap_browse(). (closes #3646)Kevin McCarthy
imap_fix_path() removes duplicate and trailing delimiters, so the check below it was redundant. This also made it appear list.delim could be used uninitialized. Remove the check, but add a check to make sure the "fixed" path has len>0, to prevent oob accesses of mbox[n-1] below. Lastly, remove a redundant n=strlen(mbox) inside the initial LIST processing loop. The mbox isn't changed from above, so there is no need to rerun strlen.
2015-09-06Fix double-decode during IMAP browse.Kevin McCarthy
cmd_parse_list() already calls imap_unmunge_mbox_name() on the mailbox names returned from the server. However, browse_add_list_result() was taking those mailbox names and passing them to imap_add_folder(), which was calling imap_unmunge_mbox_name() yet again. The reason is that imap_browse() was directly calling imap_add_folder() too, passing in a previously encoded "mbox" name. After looking carefully at the code, I could find no reason that mbox needed to be encoded outside of the LIST commands.. Therefore I changed imap_browse() to call imap_munge_mbox_name() on mbox for the two LIST commands generated from it instead, and removed the imap_unmunge_mbox_name() call inside imap_add_folder().
2014-07-17Add support for utf-8 mailboxes in imap.Kevin McCarthy
This adds support for RFC6855 to imap/*.c. Thanks to Arnt Gulbrandsen for the original patch.
2009-01-14Use imap_utf7_encode instead of imap_munge_mbox_name+imap_unquote_string.Emanuele Giaquinta
2009-01-04IMAP copyright header updatesBrendan Cully
2008-10-20Fix memory leak in imap_mailbox_stateBrendan Cully
2008-10-19Fix up destination path when renaming mailbox. Closes #2090.TAKAHASHI Tamotsu
2008-05-21Guard idata->mailbox read in imap_mailbox_state. Closes #3057.Rocco Rutte
2008-05-17Use context to get IMAP new message count in mailbox browser if possible.Brendan Cully
2007-04-05Remove broken namespace supportBrendan Cully
2007-04-02Add hook for proper IMAP unseen count in mailbox browserBrendan Cully
2007-03-23Reset list.name before each list response in folder browserBrendan Cully
2006-08-10Add type field for IMAP command data structure, check it before use.Brendan Cully
2006-06-19Fix browse_get_namespace() which could overflow ns[LONG_STRING].TAKAHASHI Tamotsu
(Possible remote vulnerability)
2006-01-15A conservative update of copyright years. Some other files may need updatingBrendan Cully
too.
2006-01-10Sanity-check folder inferiors response. Brian Weaver reports that it fixesBrendan Cully
the extra delimiters bug triggered by dbmail's incorrect LIST response.
2006-01-04Zero out IMAP_LIST before each imap_cmd_step in browser to avoid bogusBrendan Cully
matches when the untagged response isn't a LIST response. Phil Pennock diagnosed and proposed a patch for this bug.
2005-12-19Real support for the Old flag on IMAP.Brendan Cully
2005-12-19Replace imap_parse_list_response with a proper untagged response handler.Brendan Cully
2005-12-10Set up a command pipeline. Currently everything still runs a single command fromBrendan Cully
start to finish before moving on, but this creates the infrastructure to pipeline mailbox polling calls. Bitter experience at the end of a flaky wireless link teaches me that this can be useful.
2005-12-10Move IMAP response buffer out of command into IMAP_DATA. Ironically this is ↵Brendan Cully
to prepare for pipelined commands.
2005-09-17Gah, forgot the zip code when updating the FSF address...Brendan Cully
2005-09-17Update FSF address (via sed, I hope nothing got mangled). Closes: #2071.Brendan Cully
2005-08-07New option: $imap_check_subscribed. If set, mutt will fetch the set ofBrendan Cully
subscribed mailboxes from the server and add them to the buffy list.
2005-08-06Kill a warning.Brendan Cully
2005-02-17New function: rename-mailbox (bound to 'r' by default).Brendan Cully
The lack of a rename-mailbox command for IMAP finally got too annoying. It's a bit of a cut-and-paste job, but I've put my dreams of cleaning up the IMAP codebase on hold. Gotta grow up some time.
2005-02-03Add config.h to the top of every C file that could possibly want it.Brendan Cully
Remove it from mutt.h
2005-02-01Pull config.h out of protos.h, add to top of every IMAP C file. This shouldBrendan Cully
probably be done to every C file, but the results need testing in case some files depend on the current (broken) includes.
2003-09-19As the ones of you who compile with new gcc's probably have noticed,Mads Martin Joergensen
there's a lot of type-punning in Mutt. With help from Philipp Thomas, I've fixed all I could find in CVS (please double-check, one might have slipped through the cracks), I can make one for 1.4 CVS branch as well if wanted.
2002-02-26Brendan Cully sent a patch.Thomas Roessler
2002-02-05Fix another IMAP browsing bug.Thomas Roessler
2002-01-13Parse IMAP responses locale- and case- insensitive. From BrendanThomas Roessler
Cully.
2001-11-05Missing gettext calls, noted by Byrial Jensen.Thomas Roessler
2001-10-28Fix 839Thomas Roessler
2001-08-02Namespace fix. From Pawel Slawek (or Peter Bloomfield?); forwardedThomas Roessler
by Brendan Cully.
2001-05-23patch-bac.createnull-20010522.1Thomas Roessler
2001-05-15patch-bac.notes-20010515.1Thomas Roessler
2001-05-10A slightly extended version of Dave Ewart's sleeptime patch.Thomas Roessler
2001-04-26Add ascii_strcasecmp() and ascii_strncasecmp() functions which doThomas Roessler
locale-independent and case-insensitive string comparisons. Needed for mutt to work in iso-8859-9 environments, where tolower('I') != 'i'.
2001-02-15Brendan Cully's latest STARTTLS patch.Thomas Roessler
2001-02-12Brendan Cully's SASL patch.Thomas Roessler
2000-09-04patch-bac.imapurl-4Thomas Roessler
2000-08-21patch-bac.parsepath-2Thomas Roessler
2000-08-21patch-bac.createplus-1Thomas Roessler
2000-08-21patch-bac.command-2Thomas Roessler