Richard Russon [Fri, 12 May 2017 13:09:29 +0000 (14:09 +0100)]
merge: upstream fixes (mutt/default)
* Convert all exec calls to use mutt_envlist(), remove setenv function.
* Note that mbox-hooks are dependent on $move.
* Refresh header color when updating label. (closes #3935)
* Remove glibc-specific execvpe() call in sendlib.c. (see #3937)
* Add color commands for the compose menu headers and security status. (closes #3915).
* Fix sidebar count updates when closing mailbox. (closes #3938)
* Don't modify LastFolder/CurrentFolder upon aborting a change folder operation.
* Change message modifying operations to additively set redraw flags.
* Improve maildir and mh to report flag changes in mx_check_mailbox() (closes #3865)
* Add $header_color_partial to allow partial coloring of headers.
* Rename REDRAW_SIGWINCH to REDRAW_FLOW.
* Create R_PAGER_FLOW config variable flag.
Kevin McCarthy [Tue, 9 May 2017 23:07:46 +0000 (16:07 -0700)]
Create R_PAGER_FLOW config variable flag.
Use this for $header_color_partial, $markers, and $smart_wrap. When
these options are changed in the pager, this flag will force a
recalculation of lineInfo.
Remove the manual checks in OP_ENTER_COMMAND for $markers and
$smart_wrap, and instead use the same REDRAW_FLOW processing used for
a SigWinch.
Kevin McCarthy [Tue, 9 May 2017 23:07:42 +0000 (16:07 -0700)]
Rename REDRAW_SIGWINCH to REDRAW_FLOW.
The next patch will attach this redraw flag to pager settings. The
former name becomes somewhat confusing with the expanded usage, so
rename it to something more relevant to what is being redrawn.
Kevin McCarthy [Tue, 9 May 2017 01:48:25 +0000 (18:48 -0700)]
Add $header_color_partial to allow partial coloring of headers.
When set, a regexp match will color only the matched text in the
header. When unset (the default), the entire header will have color
applied.
With appropriate regexps, this allows coloring of just the header
field name. Of course, it can also be used to highlight arbitrary
phrases in the headers too.
Kevin McCarthy [Sun, 7 May 2017 22:11:43 +0000 (15:11 -0700)]
Improve maildir and mh to report flag changes in mx_check_mailbox() (closes #3865)
mx_check_mailbox() would update the header flags, but was not
returning MUTT_FLAGS back to the index loop. That meant a screen
redraw was needed to be notified of externally modified flags.
Change maildir_update_flags() to return 1 if the flags were actually
changed. Change maildir_check_mailbox() and mh_check_mailbox() to
return MUTT_FLAGS when that happens.
Thanks to jcdenton and mike-burns for the original patch.
Kevin McCarthy [Fri, 5 May 2017 19:46:36 +0000 (12:46 -0700)]
Change message modifying operations to additively set redraw flags.
With the ability to set redraw flags with the menu stack operations,
some operations internally modify the current menu redraw flag.
For instance, _mutt_set_flag() can now set REDRAW_SIDEBAR.
Change the ops that modify messages to use 'redraw |= REDRAW_X'
instead of overwriting the flag value.
Kevin McCarthy [Fri, 5 May 2017 20:55:31 +0000 (13:55 -0700)]
Don't modify LastFolder/CurrentFolder upon aborting a change folder operation.
Set LastFolder and CurrentFolder after mx_close_mailbox() has
successfully completed. Otherwise, if the close is aborted, they will
have incorrect values.
Kevin McCarthy [Fri, 5 May 2017 01:05:06 +0000 (18:05 -0700)]
Fix sidebar count updates when closing mailbox. (closes #3938)
The context unread and flagged counts were being updated too early in
mx_close_mailbox(). Cancelling at any of the following prompts would
leave them in an incorrect state. Additionally, $move could increase
the delete count (for flagged messages), and $delete, if answered no,
could turn off message deletion.
Move all the sidebar buffy stat updating to the bottom of the
function, after all the prompts and processing.
Richard Russon [Fri, 12 May 2017 13:07:11 +0000 (14:07 +0100)]
merge: always build features which have no build deps
* configure: drop --enable-compressed
* configure: drop --enable-imap
* configure: need_md5 is now always built-in
* configure: drop need_imap
* configure: drop need_socket
* configure: drop --enable-pop
* configure: drop --enable-nntp
* drop: --enable-smtp
* Makefile.am: reflow lists of files
* remove preprocessor else clauses
Richard Russon [Tue, 2 May 2017 13:15:53 +0000 (14:15 +0100)]
remove preprocessor else clauses
Remove the #else clauses from the preprocessor now that these symbols
are always defined:
USE_COMPRESSED
USE_IMAP
USE_NNTP
USE_POP
USE_SIDEBAR
USE_SMTP
USE_SOCKET