Richard Russon [Thu, 6 Jul 2017 14:15:31 +0000 (15:15 +0100)]
merge: upstream fixes (mutt/default)
* Add more description for the %S and %Z $index_format characters.
* Add L10N comments to the GNUTLS certificate prompt.
* Add ~<() and ~>() immediate parent/children patterns. (closes #3144)
Stefan Bühler [Tue, 4 Jul 2017 09:57:24 +0000 (11:57 +0200)]
fix gpgme S/MIME non-detached signature handling
- gpgsm ends the session after the decrypt error, so restart gpgsm when
retrying with "maybe_signed".
- evolution sends encrypted + signed S/MIME mails with non-detached
signatures
Fabrice Bellet [Wed, 10 May 2017 16:05:17 +0000 (18:05 +0200)]
menu: fix the thread tree color
The background tree color is really meaningless as it mixes with the
background color of indexes subject in unpleasant ways. We prefer to
create a new color based on the tree foreground color only.
Richard Russon [Sun, 2 Jul 2017 20:44:55 +0000 (21:44 +0100)]
merge: build fixes for Solaris
* Handle native Solaris GSSAPI.
* Fix compilation error on Solaris.
* Include term.h for tigetstr except for slang build.
* Look for wide curses in libcurses itself.
* Remove unneeded forward declarations.
Thomas Klausner [Sat, 1 Jul 2017 09:39:14 +0000 (11:39 +0200)]
Fix compilation error on Solaris.
resize.c: In function 'mutt_resize_screen':
resize.c:38:18: error: storage size of 'w' isn't known
struct winsize w;
^
resize.c:47:19: error: 'TIOCGWINSZ' undeclared (first use in this function)
if (ioctl(fd, TIOCGWINSZ, &w) != -1)
^
If `mark_old` is false, unread mails will not be marked old after
they've been viewed. But they will be marked old if found in the `/cur`
subdirectory of the Maildir. This is inconsistent behaviour, since a
user with disabled `mark_old` will expect no old flags at all.
Pietro Cerutti [Fri, 9 Jun 2017 12:53:24 +0000 (12:53 +0000)]
More sophisticated check for BDB version + support for DB6 (non default)
This commit enhances configure.ac to actually parse (as in CPP) and
extract the values of DB_VERSION_MAJOR and DB_VERSION_MINOR from the
Berkeley DB include files. The previous approach to just use grep failed
on some system where the includes are just wrappers around the real bdb
headers.
Also, add support for the current db6 version (6.2), although db5 is
still the first one looked for.
Antonio Radici [Sun, 25 Jun 2017 22:47:11 +0000 (23:47 +0100)]
revert part of 40f81d1 Add debug_level/debug_file options
This patch moves the set_default/restore_default couple after the defaults have
been set by the init function; this was correctly placed in 1.7.2 and somehow it
got moved to the wrong place, which means that tmpdir (and many other variable)
are not correctly set with their new default value determined from environment
variables (or other logic), so when they get resetted with a 'reset all' call in
.muttrc, they will never have the correct default to fall back to and they will
use the wrong one in init.h
This patch fixes:
- http://bugs.debian.org/865822
- http://bugs.debian.org/865842
Richard Russon [Sat, 24 Jun 2017 16:44:15 +0000 (17:44 +0100)]
merge: upstream fixes (mutt/default)
* Change the compose menu fields to be dynamically padded.
* Rename 'sign as' to 'Sign as'; makes compose menu more consistent.
* Make GPGME key selection behavior the same as classic-PGP. (see #3950)
* Force hard redraw after $sendmail instead of calling mutt_endwin. (closes #3952) (see #3948)
* Enable all header fields in the compose menu to be translated.
* Auto-pad translation for the GPGME key selection "verify key" headers.
* Improve the L10N comment about Sign as.
Kevin McCarthy [Wed, 14 Jun 2017 22:12:45 +0000 (15:12 -0700)]
Enable all header fields in the compose menu to be translated.
While it is suggested they need not be, for some locales it might be
preferable to be able to localize the fields.
For instance, fr_FR may want to change the punctuation to have a space
in front of the colon. ja_JP may be more comfortable with a native
character set description of the field when using it every day.
Kevin McCarthy [Tue, 13 Jun 2017 01:29:48 +0000 (18:29 -0700)]
Force hard redraw after $sendmail instead of calling mutt_endwin. (closes #3952) (see #3948)
Adding a mutt_endwin() seemed like a clean solution to allowing
ncurses pinentry for $sendmail, but it leaves other users watching a
blank screen. This change is extremely likely to generate a large
number of complaints and bug reports. So instead, force a hard
refresh afterwards.
If the message is no longer in the current query after modifying
the label it will be hidden as before, but if it is in the current
query (again), it will be unhidden.
Decode CRLF line endings to LF when copying headers
This fixes display issues with files that consist of CRLF
line endings rather than just LF line endings, for example,
emails exported directly from the gmail API.
This only kicks in when CH_DECODE is set which might be a bit
strange, because that does RFC2047 header decoding, but it seems
a safe place to place this line end decoding without potentially
affecting anything else.
Richard Russon [Tue, 20 Jun 2017 09:55:11 +0000 (10:55 +0100)]
split mutt_parse_mailboxes into mutt_parse_unmailboxes
Split mutt_parse_mailboxes into two functions: one to add, one to remove.
There's not much overlap in the two functions and separating them
simplifies the logic.
Where unmailboxes used to use two loops, there's now only one.
Richard Russon [Thu, 8 Jun 2017 14:43:16 +0000 (15:43 +0100)]
reduce scope of for loop variables
Each change is limited to a single function:
attach_forward_bodies
attach_forward_msgs
attach_reply_envelope_defaults
check_all_msg
find_parent
mutt_attach_bounce
mutt_attach_reply
mutt_attach_resend
mutt_builtin_editor
mutt_gen_attach_list