David Champion [Tue, 30 Aug 2016 23:11:45 +0000 (16:11 -0700)]
Update a confusing and obsolete comment.
This 2004 comment in sort.h predicted what has recently come to pass, so
I'm reframing it just to document for future devs what's going on with
this oddball flag.
Kevin McCarthy [Tue, 23 Aug 2016 03:04:52 +0000 (20:04 -0700)]
Remove the $locale configuration variable.
$locale was only used to set the LC_TIME locale. Unfortunately, Mutt
previously defaulted to using "C". This overrode the user's locale
setting and forced them to re-specify their locale inside their
.muttrc.
Remove $locale and instead use the locale specified by the
environment. Mutt still allows "C locale" dates by using a leading
"!" in $date_format, ${}, etc.
Another use of $locale was to customize attribution dates using hooks.
The next commit will introduce $attribution_locale, which can be used
for this instead.
Richard Russon [Mon, 12 Sep 2016 10:25:08 +0000 (11:25 +0100)]
docs: mass tidy up
- tidy muttrc.*
- tidy vimrc.*
- sync muttrc to main manual
- add better xml escaping
- fix whitespace in muttrc/vimrc/manual
- refer to features rather than patches
- fix lots of spelling mistakes
- sort manual sections
- add README.notmuch to dist
- drop unnecessary sample.colors.attach_headers
- install sample muttrc files
- add mutt-1.7.0-syntax.vim from vim repo
- generate neomutt-syntax.vim from features' vimrc files
- install neomutt-syntax.vim
John Swinbank [Sun, 11 Sep 2016 00:15:42 +0000 (20:15 -0400)]
Avoid segfault when listing mailboxes on startup.
When mutt is started with the -y flag, _mutt_select_file() is called while
CurrentFolder is a null pointer. If that's the case, we shouldn't try to use
it.
Richard Russon [Fri, 2 Sep 2016 13:33:01 +0000 (14:33 +0100)]
proposed fix for clearing labels
Debian bug #832971 -- The use claimed he couldn't reset labels.
I couldn't repeat the problem using his config. He offered a patch that
he claimed fixed his problem. Only one part of the patch actually did
anything (and only in a section of code dealing with SETTING labels).
Richard Russon [Wed, 7 Sep 2016 15:21:08 +0000 (16:21 +0100)]
notmuch: sync vfolder_format to folder_format
The expandos used by NotMuch's vfolder_format didn't match those of
Mutt's folder_format. This caused confusion.
vfolder_format expandos:
%C current file number
%f folder name (description)
%m number of messages in the mailbox *
%n number of unread messages in the mailbox *
%N N if mailbox has new mail, blank otherwise
Default setting:
set vfolder_format = "%2C %N %?n?%4n/& ?%4m %f"
Guillaume Brogi [Sat, 20 Aug 2016 13:51:50 +0000 (15:51 +0200)]
Add support for colouring attachments with regexp
Attachments can now be coloured in the same way as the body using
`attach_regexp`. The `attachment` colour can still be defined and is
used when no regexp match.
Richard Russon [Wed, 7 Sep 2016 11:45:05 +0000 (12:45 +0100)]
merge: sensible-browser
* sensible browser patch
* Whatever the sort method, .. is always on the top
* Reset menu->current when one re-sort the browser
* Folder tracking enabled only with SORT_(SUBJECT|DESC)
* Some documentation on sensible-browser patches
* tweak the behaviour of the sensible-browser code
* sort mailboxes, with incomplete info, last
* docs: try to explain the behaviour of sensible-browser
Kevin McCarthy [Mon, 5 Sep 2016 19:35:19 +0000 (12:35 -0700)]
Stub out getdnsdomainname() unless HAVE_GETADDRINFO.
It seems unlikely there are systems without it (given that this
mistake has been in since 1.6.0), but for correctness we should stub
out the function for those without it.
Stefan Assmann [Mon, 8 Aug 2016 12:41:44 +0000 (14:41 +0200)]
check for new mail while in pager when idle
Currently, when the pager is open and mutt is idle the mailboxes aren't
checked for new mails. Change the behaviour to get notified of newly
arrived mail.
Closes #19 - new-mail doesn't fire if pager open
Closes #100 - check for new mail while in pager when idle
Kevin McCarthy [Sat, 3 Sep 2016 02:32:39 +0000 (19:32 -0700)]
Disable ~X when message scoring. (closes #3861)
mutt_score_message() purposely passes a NULL context to
mutt_pattern_exec(). The idea was to block slow patterns, and the
scoring documentation notes this by saying:
"For efficiency reasons, patterns which scan information not
available in the index, such as ~b, ~B or ~h, may not be used"
~X needs the context to parse the messages (during message scoring at
least), and thus isn't suitable for message scoring either.
Block ~X from being used when the context is NULL. Add ~X to the list
of patterns noted as unusable in the message scoring documentation.
Adds a reply_with_xorig boolean parameter. When set, it allows to
reply to emails using X-Original-To: header email address. This will
work provided reverse_realname is not active or failed to find an
appropriate From: to provide. The option, if fast_reply is disabled,
also provides a From: prompt when hitting reply. By default it'll be
filled with the extracted address.
Darshit Shah [Wed, 24 Aug 2016 13:34:05 +0000 (15:34 +0200)]
Fix the NeoMutt version string
The original Mutt version string came with only a version number.
However, in NeoMutt, the versioning is done solely on the release date.
Hence, change how the version string is printed to reflect this change.
As part of the version string, print the base version of Mutt being used
as well