summaryrefslogtreecommitdiffstats
path: root/flags.c
AgeCommit message (Collapse)Author
2021-08-14Lazily update header colors after a thread-flag update.Kevin McCarthy
Although there are other issues with threads and ~() color patterns, this helps with collapsed thread coloring. The thread-flag update can change the matching pattern, but that should be determined after all the thread messages are changed. For example, a collapsed thread with deleted messages and a color pattern '~v ~(~D)' should display differently after <undelete-thread>. Changing it to update colors lazily allows correct coloring (for that case).
2018-12-31Remove trailing whitespace.Kevin McCarthy
The result of find . -name "*.[ch]" -exec emacs -batch {} \ --eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
2018-06-03Change direct mutt_getch() callers to handle new mail event.Kevin McCarthy
The inotify handler now returns -2 (timeout) on a new mail event. Change the direct callers to ignore, so prompts aren't strangely aborted. Also, fix mutt_change_flag() to call mutt_refresh() before the prompt. Apparently ncurses getch() was doing this for us, but now that we are polling STDIN instead, the prompt wasn't displaying.
2017-03-31Remove SidebarNeedsRedraw.Kevin McCarthy
The menu stack can be used to flag a redraw of the sidebar window.
2016-11-16When $flag_safe is set, flagged messages cannot be deleted.David Champion
This saves them from bulk operations on threads and tagged messages. To remove a flagged message, first unflag it.
2016-07-17Add the trash folder patch.Kevin McCarthy
This is based on the trash folder patch by Cedric Duval. Modifications to the original patch are: * Use a flag called M_PURGE instead of M_APPENDED. The same flag is then used in the following "purge" patch instead of adding a different flag. * Removed the counter in context. The existing context->deleted is all that's needed. * Removed the "auto unset M_PURGE" when M_DELETED is unset inside _mutt_set_flag(), although this is convenient, it easily leads to header->purge not being reset in a few situations. * Reset purge flag along with the deleted flag if $delete is answered no. * Set M_PURGE on an edited message. (edit_one_message()) * Preserve purge flag in mutt_reopen_mailbox() * Turn off OPTCONFIRMAPPEND when saving to the trash, rather than hardcoding it off in mutt_save_confirm(). That way, normal save to the folder will respect the option.
2016-06-04Sidebar clean up: building and drawing logic.Kevin McCarthy
Fix the autoconf/makefile.am changes to be consistent. Create a global SidebarNeedsRedraw to indicate a redraw is needed, instead of putting sb_draw() everywhere in the code. Create a menu_redraw_sidebar() function and use the REDRAW_SIDEBAR flag instead of piggy-backing it inside the index loop. Fix curs_main.c and pager.c to be a bit cleaner by using the global and REDRAW_SIDEBAR. Start to clean up some of the buffy code, but this needs to refactored and fixed.
2016-06-04Add neomutt version of sidebar patch. (closes #3829)Richard Russon
This is the patch from neomutt; branch 'devel/win-sidebar'; commit c796fa85f9cacefb69b8f7d8545fc9ba71674180 with the following changes: - move the sample muttrc and vimrc to contrib. - remove the README.sidebar. - empty out the PATCHES file.
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-27Fix remaining direct usages of COLS/LINES to use mutt window functions.Kevin McCarthy
Most of these were just message update/clearing.
2008-12-16Remove unused #include directivesErik Hovland
2008-08-30Rework timeout handling to support keepalive in the line editor.Brendan Cully
Also allow keepalives of less than $timeout without returning before $timeout, so people who don't want to be notified of new mail don't have to be.
2007-04-12Only update header color in mutt_set_flag if flag has changed (see #1216, #1931)Brendan Cully
2006-08-15Generic ACL support.Rocco Rutte
2005-10-31Fix #2123.Thomas Roessler
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-02-03Add config.h to the top of every C file that could possibly want it.Brendan Cully
Remove it from mutt.h
2003-01-30The IMAP ACL patch broke things.Thomas Roessler
2003-01-23The attached patch provides improved support for IMAP ACLs (onNathan Dushman
servers that support them). This means that mutt will now write the Seen flag in mailboxes that allow it, even if the mailbox doesn't allow other changes.
2002-12-11Fix Mike's and my e-mail addresses in copyright lines.Thomas Roessler
2002-01-15patch-1.3.25.tlr.maildir_trash.1Thomas Roessler
2001-10-31Advanced threading, v 5.1. From Daniel EisenbudThomas Roessler
<eisenbud@cs.swarthmore.edu>.
2000-12-21patch.me.maildir_trash.1Thomas Roessler
2000-03-03The FSF apparently has moved.Thomas Roessler
2000-01-06Update copyright notices for unstable.Thomas Roessler
1999-09-07* redoes the folder update optimisation I did yesterday. It's somewhatThomas Roessler
cleaner and less invasive, and I'm not so worried about memory leaks now. * Fixes the bug where mutt would append a '/' to $folder even if it was only {mailhost}, causing mutt to browse the root directory instead of the home directory. * includes a first stab at preserving the D flag on the IMAP server. Now if you answer no to 'Purge deleted', the server still stores the messages as deleted, but doesn't expunge them on exit. NOTE: this is a first attempt. Play around, but don't mark things as deleted that you'd be sorry to see disappear. (From: Brendan Cully <brendan@kublai.com>)
1999-07-26When replying to a message/rfc822 attachment, the Context statisticsThomas Roessler
would get out of order. Problem noted by Johan van Selst <johans@stack.nl>.
1999-05-06Fixing more maildir cursor problems.Thomas Roessler
1999-01-07Get rid of RCS ids in source files. They are getting in our wayThomas Roessler
when merging changes.
1998-10-22Make _all_ IMAP-related code conditionally defined. From ByrialThomas Roessler
Jensen.
1998-10-15Change "static char rcsid[]" to "static const char rcsid[]" to makemutt-0-94-13-relThomas Roessler
gcc shut up about this.
1998-10-13Add RCS $Id$ strings to (hopefully) all source files.Thomas Roessler
1998-10-05Some fixes to the macro-function patch.Thomas Roessler
1998-10-05Vikas' macro_function patch.Thomas Roessler
1998-10-01Adding gettext support, based on the patch by Marco d'Itri.Thomas Roessler
1998-06-08Mutt 0.92.9i.mutt-0-92-9iThomas Roessler
1998-06-08Initial revisionThomas Roessler