toogley [Sat, 2 Dec 2017 19:51:50 +0000 (20:51 +0100)]
github: make removal of irrelevant sections easier
When users remove the irrelevant things for their issue, they often
leave the indentation of the nested list. That causes github to render
those lines as code instead of markdown list items.
Richard Russon [Mon, 27 Nov 2017 00:09:26 +0000 (00:09 +0000)]
merge: more additions to libmutt
* move signal functions to libmutt
* standardise the naming of the signal functions
* move exit syslist to libmutt
* factor out ICONV_CONST from headers
Richard Russon [Sun, 26 Nov 2017 22:48:58 +0000 (22:48 +0000)]
merge: standardise the string formatting functions
There are lots of callback functions used by `mutt_expando_format()`.
These commits make sure they all have similar names and have similarly
named parameters and variables.
* rename formatting functions
* rename format parameters/variables
* update format function comments
* rearrange switch statements in format functions
* light tidy of format functions
The *_stat functions accept an additional optional stat structure
parameter, which must point to the stat structure of the file.
Using the *_stat functions can save a call to stat() as the stat
structure does not need to be queried by the mutt_file_chmod_* function.
Richard Russon [Wed, 15 Nov 2017 23:57:37 +0000 (23:57 +0000)]
merge: upstream fixes (mutt/default)
* Note which ssl config vars are GnuTLS or OpenSSL only
* Add message count to $move quadoption prompt
* Add %R (number of read messages) for $status_format
* Updated French translation
* Add $change_folder_next option to control mailbox suggestion order
* Fix $smart_wrap to not be disabled by whitespace-prefixed lines
* Remove useless else branch in the $smart_wrap code
Kevin McCarthy [Wed, 15 Nov 2017 22:53:19 +0000 (14:53 -0800)]
Fix $smart_wrap to not be disabled by whitespace-prefixed lines. (closes #3857)
changeset:737102af74eb fixed a folded header display issue with $smart_wrap
by disabling $smart_wrap for lines beginning with whitespace.
Unfortunately, this turns off smart wrapping in the body of an email
too, even when the line has other whitespace breaks in it.
An earlier commit, changeset:125076e0fdfa added an infinite loop fix
when MUTT_PAGER_NSKIP is set, by disabling the smart_wrap if the space
backtracking went to the beginning of the line. That is, a line
beginning with 1+ whitespace followed by a single long word.
Extend this second commit by always disabling the smart_wrap in that
case, not just when MUTT_PAGER_NSKIP is set. This also solves the
folded header issue without other side effects.
Kevin McCarthy [Sat, 11 Nov 2017 23:49:15 +0000 (15:49 -0800)]
Add $change_folder_next option to control mailbox suggestion order.
This patch is out of the Gentoo package maintained by Fabian Groffen.
From the link below, it appears the original author was Simon Burge.
I made some minor changes to get it to apply correctly, and cleaned up
the documentation a bit.
Original patch description:
This patch brings back the original behaviour of change-folder, which
some people find more useful. It suggests the next folder in your
mailboxes list that has new mail measured from the current folder,
instead of the first folder from your mailboxes list in any case. This
prevents starvation of folders defined at the back of your list ;)
See discussion: http://thread.gmane.org/gmane.mail.mutt.devel/12457
Richard Russon [Wed, 15 Nov 2017 21:36:54 +0000 (21:36 +0000)]
merge: add <edit-or-view-raw-message>
* Rename OP_EDIT_MESSAGE to OP_EDIT_RAW_MESSAGE
* neomutt-syntax.vim: Add highlight rules for new functions
* doc: Document new mutt functions in manual
* editmsg.c: Implement mutt_view_message() function
* Add `<{edit,edit-or-view,view}-raw-message>` functions
Add mutt-functions `<edit-raw-message>`, `<edit-or-view-raw-message>`
and `<view-raw-message>`.
`<view-raw-message>` is a binding for the C-function
`mutt_view_message()`, which opens the raw message as a read-only file
in an external editor.
`<edit-or-view-raw-message>` is a dispatcher function: If the mailbox
is writable then this is the same as `<edit-raw-message>`, otherwise it
is the same as `<view-raw-message>`.
`<edit-raw-message>` is a synonym for `<edit>` whose name coherent with
the naming scheme of the other two functions introduced.
Change default key binding of `e` from `edit` to
`edit-or-view-raw-message`. This allows viewing the raw message in an
external editor also in read-only mailboxes.
Reis Radomil [Wed, 15 Nov 2017 20:53:03 +0000 (21:53 +0100)]
editmsg.c: Implement mutt_view_message() function
Add mutt_view_message() function, which opens the selected message or
the tagged messages as a read-only file in an external editor. This
function is similar to mutt_edit_message() but does not allow modifying
the message.
A usage scenario might be to view the message source code in an editor.
Note: This patch only adds C functions. It does not add any mutt-functions.
Reis Radomil [Wed, 15 Nov 2017 20:52:14 +0000 (21:52 +0100)]
Rename OP_EDIT_MESSAGE to OP_EDIT_RAW_MESSAGE
This brings the constant name in line with the description of its
corresponding mutt-function and paves the way for a coherent name scheme
in the upcoming 'edit-raw-message' family of mutt-functions.