]> granicus.if.org Git - neomutt/log
neomutt
7 years agomove charset functions to libmutt
Richard Russon [Wed, 22 Nov 2017 17:26:52 +0000 (17:26 +0000)]
move charset functions to libmutt

7 years agogithub: make removal of irrelevant sections easier
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.

7 years agoFixup smart modify-labels-then-hide for !tag case (#975)
Julian Andres Klode [Fri, 1 Dec 2017 12:32:38 +0000 (13:32 +0100)]
Fixup smart modify-labels-then-hide for !tag case (#975)

The code used to automatically handle setting the quasi delete
state to whether the message is still visible after performing
the change.

This was broken for the !tag case in

commit 7d151fd0919f6cc7ba9cdc1e7de90697c66dce43
Author: Mehdi Abaakouk <sileht@sileht.net>
Date:   Tue Feb 21 10:50:35 2017 +0100

    Share label editing between imap/notmuch

Which replaced the !still_visible with simply true.

7 years agomodify gpg.rc to accommodate GPG 2.1 changes 949/head
Bletchley Park [Sun, 12 Nov 2017 17:31:57 +0000 (18:31 +0100)]
modify gpg.rc to accommodate GPG 2.1 changes

7 years agoremove debug/logging from makefile/configure 625/head
toogley [Sat, 10 Jun 2017 20:25:35 +0000 (22:25 +0200)]
remove debug/logging from makefile/configure

7 years agodrop #ifdef DEBUG
toogley [Sat, 10 Jun 2017 20:25:35 +0000 (22:25 +0200)]
drop #ifdef DEBUG

7 years agoDon't clear the macro buffer during startup 818/head
Richard Russon [Wed, 4 Oct 2017 01:07:20 +0000 (02:07 +0100)]
Don't clear the macro buffer during startup

* Move the folder hook after the folder has been opened
* Prevent a SIGWINCH during startup from clearing the macro buffer

Fixes #227

7 years agobuild: restore externs 937/head
Richard Russon [Thu, 9 Nov 2017 12:35:02 +0000 (12:35 +0000)]
build: restore externs

The MacOS build failed, with linker errors for libconn's global
variables.

By initialising them, we hope to force the linker to use them.

7 years agoFix reference to neomuttrc
Pietro Cerutti [Wed, 29 Nov 2017 10:55:26 +0000 (10:55 +0000)]
Fix reference to neomuttrc

7 years agomerge: refactor and document email functions
Richard Russon [Wed, 29 Nov 2017 01:13:47 +0000 (01:13 +0000)]
merge: refactor and document email functions

 * move functions to mutt_address.c
 * rename rfc822.c to address.c
 * move rfc822_new_address to address.c
 * standardise the address functions
 * standardise the envelope functions
 * standardise the parameter functions
 * move address functions
 * move envelope function
 * move parameter functions
 * rename mutt_tags to tags
 * add comments
 * rename rfc822 constants
 * minor tidying/boolification
 * move statics first

7 years agomove statics first
Richard Russon [Wed, 29 Nov 2017 01:13:11 +0000 (01:13 +0000)]
move statics first

7 years agominor tidying/boolification
Richard Russon [Wed, 29 Nov 2017 00:13:59 +0000 (00:13 +0000)]
minor tidying/boolification

7 years agorename rfc822 constants
Richard Russon [Tue, 28 Nov 2017 23:25:50 +0000 (23:25 +0000)]
rename rfc822 constants

7 years agoadd comments
Richard Russon [Tue, 28 Nov 2017 22:48:08 +0000 (22:48 +0000)]
add comments

7 years agorename mutt_tags to tags
Richard Russon [Tue, 28 Nov 2017 21:44:33 +0000 (21:44 +0000)]
rename mutt_tags to tags

7 years agomove parameter functions
Richard Russon [Tue, 28 Nov 2017 20:42:22 +0000 (20:42 +0000)]
move parameter functions

7 years agomove envelope function
Richard Russon [Tue, 28 Nov 2017 20:38:45 +0000 (20:38 +0000)]
move envelope function

7 years agomove address functions
Richard Russon [Tue, 28 Nov 2017 20:21:44 +0000 (20:21 +0000)]
move address functions

7 years agostandardise the parameter functions
Richard Russon [Tue, 28 Nov 2017 19:36:31 +0000 (19:36 +0000)]
standardise the parameter functions

7 years agostandardise the envelope functions
Richard Russon [Tue, 28 Nov 2017 19:25:12 +0000 (19:25 +0000)]
standardise the envelope functions

7 years agostandardise the address functions
Richard Russon [Tue, 28 Nov 2017 19:08:21 +0000 (19:08 +0000)]
standardise the address functions

7 years agomove rfc822_new_address to address.c
Richard Russon [Tue, 28 Nov 2017 15:25:35 +0000 (15:25 +0000)]
move rfc822_new_address to address.c

7 years agorename rfc822.c to address.c
Richard Russon [Tue, 28 Nov 2017 15:16:06 +0000 (15:16 +0000)]
rename rfc822.c to address.c

7 years agomove functions to mutt_address.c
Richard Russon [Tue, 28 Nov 2017 15:01:16 +0000 (15:01 +0000)]
move functions to mutt_address.c

7 years agoDon't do I/O in a signal handler
Richard Russon [Tue, 28 Nov 2017 13:13:23 +0000 (13:13 +0000)]
Don't do I/O in a signal handler

7 years agoRemove unused parameters
Richard Russon [Tue, 28 Nov 2017 11:53:18 +0000 (11:53 +0000)]
Remove unused parameters

* curs_main.c main_change_folder(flags)
* imap/imap.c imap_buffy_check(force)
* init.c mutt_nm_tag_complete(pos)
* ncrypt/crypt_gpgme.c verify_sender(protocol)
* recvcmd.c attach_forward_bodies(flags)
* mutt/file.c mutt_file_lock(path)
* mutt/file.c mutt_file_unlock(path)
* recvcmd.c mutt_attach_bounce(hdr)
* recvcmd.c mutt_attach_resend(hdr)
* recvcmd.c attach_forward_msgs(hdr)
* recvcmd.c attach_include_reply(flags)
* send.c mutt_make_misc_reply_headers(hdr,ctx)
* sendlib.c encode_8bit(istext)

7 years agoAdd the missing debug macro
Richard Russon [Mon, 27 Nov 2017 16:23:03 +0000 (16:23 +0000)]
Add the missing debug macro

The vital macro got lost from the earlier commit.

7 years agoFix stdout + stderr redirection in hcachever.sh
Pietro Cerutti [Mon, 27 Nov 2017 16:31:11 +0000 (16:31 +0000)]
Fix stdout + stderr redirection in hcachever.sh

7 years agomerge: more additions to libmutt
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

7 years agofactor out ICONV_CONST from headers
Richard Russon [Wed, 22 Nov 2017 22:45:12 +0000 (22:45 +0000)]
factor out ICONV_CONST from headers

7 years agomove exit syslist to libmutt
Richard Russon [Fri, 24 Nov 2017 01:59:47 +0000 (01:59 +0000)]
move exit syslist to libmutt

7 years agostandardise the naming of the signal functions
Richard Russon [Thu, 23 Nov 2017 16:06:13 +0000 (16:06 +0000)]
standardise the naming of the signal functions

7 years agomove signal functions to libmutt
Richard Russon [Thu, 23 Nov 2017 02:32:06 +0000 (02:32 +0000)]
move signal functions to libmutt

7 years agodebug: Strip function names from debug messages 950/head
Richard Russon [Sun, 12 Nov 2017 20:33:32 +0000 (20:33 +0000)]
debug: Strip function names from debug messages

7 years agodebug: replace mutt_debug with a macro
Richard Russon [Wed, 13 Sep 2017 15:26:41 +0000 (16:26 +0100)]
debug: replace mutt_debug with a macro

The macro passes the file and line number to mutt_debug_real().

7 years agomerge: standardise the string formatting functions
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

7 years agolight tidy of format functions
Richard Russon [Sun, 26 Nov 2017 02:53:14 +0000 (02:53 +0000)]
light tidy of format functions

7 years agorearrange switch statements in format functions
Richard Russon [Sun, 26 Nov 2017 02:44:39 +0000 (02:44 +0000)]
rearrange switch statements in format functions

7 years agoupdate format function comments
Richard Russon [Sun, 26 Nov 2017 02:32:18 +0000 (02:32 +0000)]
update format function comments

7 years agorename format parameters/variables
Richard Russon [Sun, 26 Nov 2017 02:28:55 +0000 (02:28 +0000)]
rename format parameters/variables

7 years agorename formatting functions
Richard Russon [Sun, 26 Nov 2017 01:30:53 +0000 (01:30 +0000)]
rename formatting functions

7 years agomerge: rename some variables
Richard Russon [Sun, 26 Nov 2017 22:46:28 +0000 (22:46 +0000)]
merge: rename some variables

The majority of the code uses the variable name 'buf' for a char buffer.
Most return-code variables are called 'rc'.

This mass rename makes the code more consistent.

 * buff -> buf
 * ret -> rc
 * rv -> rc

7 years agorename variables: rv -> rc
Richard Russon [Fri, 24 Nov 2017 15:45:50 +0000 (15:45 +0000)]
rename variables: rv -> rc

7 years agorename variables: ret -> rc
Richard Russon [Fri, 24 Nov 2017 15:39:49 +0000 (15:39 +0000)]
rename variables: ret -> rc

7 years agorename variables: buff -> buf
Richard Russon [Fri, 24 Nov 2017 15:27:25 +0000 (15:27 +0000)]
rename variables: buff -> buf

7 years agomerge: trivial code improvements
Richard Russon [Sun, 26 Nov 2017 22:45:04 +0000 (22:45 +0000)]
merge: trivial code improvements

 * drop unused code in #if 0
 * doxygen: fix comments
 * fix shadow variable
 * drop duplicate prototype
 * remove unnecessary alloc checks
 * add logging around getaddrinfo()

7 years agoadd logging around getaddrinfo()
Richard Russon [Thu, 23 Nov 2017 20:25:48 +0000 (20:25 +0000)]
add logging around getaddrinfo()

If the user's networking isn't set up correctly, this call can
potentially take several seconds to timeout.

7 years agoremove unnecessary alloc checks
Richard Russon [Tue, 21 Nov 2017 16:59:48 +0000 (16:59 +0000)]
remove unnecessary alloc checks

7 years agodrop duplicate prototype
Richard Russon [Thu, 16 Nov 2017 23:35:50 +0000 (23:35 +0000)]
drop duplicate prototype

7 years agofix shadow variable
Richard Russon [Thu, 16 Nov 2017 03:21:55 +0000 (03:21 +0000)]
fix shadow variable

7 years agodoxygen: fix comments
Richard Russon [Thu, 16 Nov 2017 03:19:44 +0000 (03:19 +0000)]
doxygen: fix comments

7 years agodrop unused code in #if 0
Richard Russon [Fri, 24 Nov 2017 15:07:54 +0000 (15:07 +0000)]
drop unused code in #if 0

7 years agomerge: code style improvements
Richard Russon [Sun, 26 Nov 2017 22:39:41 +0000 (22:39 +0000)]
merge: code style improvements

 * standardise infinite loops
 * fix justify constants
 * insert braces
 * split ifs
 * fallthrough

7 years agoFix ansi escape sequences with both reset and color parameters
Kevin McCarthy [Sun, 19 Nov 2017 03:13:08 +0000 (19:13 -0800)]
Fix ansi escape sequences with both reset and color parameters

The initial 0 "reset/normal" was setting attr = ANSI_OFF, which was
subsequently being or'ed with ANSI_COLOR.

The color resolution was then checking for the ANSI_OFF bit and
turning all coloring off, even though ANSI_COLOR was also set.

Change the color resolution to check for "attr == ANSI_OFF" instead, so
the color isn't reset unless the reset occurs last in the sequence.

(closes #3689)

7 years agofallthrough
Richard Russon [Sat, 25 Nov 2017 00:18:30 +0000 (00:18 +0000)]
fallthrough

7 years agotidy: clang-format
Richard Russon [Thu, 23 Nov 2017 15:48:25 +0000 (15:48 +0000)]
tidy: clang-format

7 years agosplit ifs
Richard Russon [Fri, 24 Nov 2017 16:49:23 +0000 (16:49 +0000)]
split ifs

7 years agoinsert braces
Richard Russon [Fri, 24 Nov 2017 14:46:24 +0000 (14:46 +0000)]
insert braces

7 years agofix justify constants
Richard Russon [Fri, 24 Nov 2017 15:14:33 +0000 (15:14 +0000)]
fix justify constants

7 years agostandardise infinite loops
Richard Russon [Fri, 24 Nov 2017 14:13:02 +0000 (14:13 +0000)]
standardise infinite loops

7 years agofix out-of-tree builds
Richard Russon [Wed, 22 Nov 2017 00:48:48 +0000 (00:48 +0000)]
fix out-of-tree builds

7 years agoRemove vim syntax file from the main repo
Guillaume Brogi [Tue, 21 Nov 2017 10:56:03 +0000 (11:56 +0100)]
Remove vim syntax file from the main repo

The syntax file is now in an extension at https://github.com/neomutt/neomutt.vim

7 years agoMigrate code to use mutt_file_chmod{,_add,_rm} functions
Reis Radomil [Sat, 18 Nov 2017 16:47:32 +0000 (17:47 +0100)]
Migrate code to use mutt_file_chmod{,_add,_rm} functions

Migrate the old code to use the new functions mutt_file_chmod(),
mutt_file_chmod_add(), mutt_file_chmod_rm() instead of plain chmod().

7 years agoAdd chmod() wrappers to library
Reis Radomil [Sat, 18 Nov 2017 08:40:25 +0000 (09:40 +0100)]
Add chmod() wrappers to library

Add functions for changing/adding/removing permissions of files.

mutt_file_chmod          - set permissions
mutt_file_chmod_add      - add permissions
mutt_file_chmod_add_stat - add permissions
mutt_file_chmod_rm       - remove permissions
mutt_file_chmod_rm_stat  - remove permissions

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.

7 years agobuild: fix update-po target
Richard Russon [Thu, 16 Nov 2017 23:31:57 +0000 (23:31 +0000)]
build: fix update-po target

7 years agomerge: Standardise the names of the muttlib functions
Richard Russon [Thu, 16 Nov 2017 17:37:04 +0000 (17:37 +0000)]
merge: Standardise the names of the muttlib functions

 * rename lib to mutt
 * rename base64 functions
 * rename buffer functions
 * rename date functions
 * rename file functions
 * rename hash functions
 * rename list functions
 * rename mapping functions
 * rename mbyte functions
 * rename md5 functions
 * rename memory functions
 * rename sha1 functions
 * rename string functions

7 years agorename string functions 955/head
Richard Russon [Thu, 16 Nov 2017 01:37:37 +0000 (01:37 +0000)]
rename string functions

7 years agorename sha1 functions
Richard Russon [Thu, 16 Nov 2017 01:37:19 +0000 (01:37 +0000)]
rename sha1 functions

7 years agorename memory functions
Richard Russon [Thu, 16 Nov 2017 01:36:55 +0000 (01:36 +0000)]
rename memory functions

7 years agorename md5 functions
Richard Russon [Thu, 16 Nov 2017 01:36:39 +0000 (01:36 +0000)]
rename md5 functions

7 years agorename mbyte functions
Richard Russon [Thu, 16 Nov 2017 02:30:25 +0000 (02:30 +0000)]
rename mbyte functions

7 years agorename mapping functions
Richard Russon [Thu, 16 Nov 2017 01:36:21 +0000 (01:36 +0000)]
rename mapping functions

7 years agorename list functions
Richard Russon [Thu, 16 Nov 2017 02:22:46 +0000 (02:22 +0000)]
rename list functions

7 years agorename hash functions
Richard Russon [Thu, 16 Nov 2017 01:36:11 +0000 (01:36 +0000)]
rename hash functions

7 years agorename file functions
Richard Russon [Thu, 16 Nov 2017 02:07:04 +0000 (02:07 +0000)]
rename file functions

7 years agorename date functions
Richard Russon [Thu, 16 Nov 2017 01:34:42 +0000 (01:34 +0000)]
rename date functions

7 years agorename buffer functions
Richard Russon [Thu, 16 Nov 2017 02:49:14 +0000 (02:49 +0000)]
rename buffer functions

7 years agorename base64 functions
Richard Russon [Thu, 16 Nov 2017 01:34:03 +0000 (01:34 +0000)]
rename base64 functions

7 years agorename lib to mutt
Richard Russon [Thu, 16 Nov 2017 00:54:03 +0000 (00:54 +0000)]
rename lib to mutt

7 years agomerge: upstream fixes (mutt/default)
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

7 years agoRemove useless else branch in the $smart_wrap code. (see #3857)
Kevin McCarthy [Wed, 15 Nov 2017 22:53:24 +0000 (14:53 -0800)]
Remove useless else branch in the $smart_wrap code. (see #3857)

Thanks to Vincent Lefèvre for noticing the nested else was redundant,
since buf_ptr is already set to "buf + cnt" after the format_line()
call.

This allows us to merge the inner and outer if statement, resulting in
simpler code.

7 years agoFix $smart_wrap to not be disabled by whitespace-prefixed lines. (closes #3857)
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.

7 years agoAdd $change_folder_next option to control mailbox suggestion order.
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

7 years agoUpdated French translation.
Vincent Lefevre [Sat, 11 Nov 2017 18:13:40 +0000 (19:13 +0100)]
Updated French translation.

7 years agoAdd %R (number of read messages) for $status_format.
Vincent Lefevre [Sat, 11 Nov 2017 17:59:31 +0000 (18:59 +0100)]
Add %R (number of read messages) for $status_format.

7 years agoAdd message count to $move quadoption prompt.
Kevin McCarthy [Fri, 10 Nov 2017 21:06:43 +0000 (13:06 -0800)]
Add message count to $move quadoption prompt.

Display the number of messages that will be moved in the quadoption
prompt, which might prove helpful for some people.

Thank you to Daan van Rossum for suggesting the improvement.

7 years agoNote which ssl config vars are GnuTLS or OpenSSL only. (closes #3781)
Kevin McCarthy [Wed, 8 Nov 2017 20:57:50 +0000 (12:57 -0800)]
Note which ssl config vars are GnuTLS or OpenSSL only. (closes #3781)

It was not obvious that the ssl_ca_certificates_file was only for
GnuTLS, or that the ssl_usesystemcerts was only for OpenSSL.

7 years agomerge: library moves/improvements
Richard Russon [Wed, 15 Nov 2017 22:37:54 +0000 (22:37 +0000)]
merge: library moves/improvements

 * build: rename headers.c to header.c
 * build: move *_free functions
 * doxygen: add custom layout
 * lib: tidy headers
 * lib: move NLS magic to message.c
 * lib: move function to file.c
 * lib: move functions to string.c
 * lib: move function to list.c
 * lib: move functions to mbyte.c

7 years agomerge: add <edit-or-view-raw-message>
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

7 years agoAdd `<{edit,edit-or-view,view}-raw-message>` functions 948/head
Reis Radomil [Wed, 15 Nov 2017 20:53:03 +0000 (21:53 +0100)]
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.

7 years agoeditmsg.c: Implement mutt_view_message() function
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.

7 years agodoc: Document new mutt functions in manual
Reis Radomil [Wed, 15 Nov 2017 20:53:03 +0000 (21:53 +0100)]
doc: Document new mutt functions in manual

Document the new mutt functions `edit-or-view-raw-message` and
`view-raw-message`.

Amend description of `edit` function to mention the two new functions.

7 years agoneomutt-syntax.vim: Add highlight rules for new functions
Reis Radomil [Wed, 15 Nov 2017 20:53:03 +0000 (21:53 +0100)]
neomutt-syntax.vim: Add highlight rules for new functions

Add syntax rules for the new functions `edit-or-view-raw-message` and
`view-raw-message`.

7 years agoRename OP_EDIT_MESSAGE to OP_EDIT_RAW_MESSAGE
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.

7 years agomerge: small coverity fixes
Richard Russon [Wed, 15 Nov 2017 15:46:30 +0000 (15:46 +0000)]
merge: small coverity fixes

 * fix typos
 * fix leak in mutt_select_file()
 * fix leak in mutt_compose_attachment()
 * highlight preproc-like variable
 * add pointer checks to gpgme
 * check retval of REGCOMP()
 * check retval of strtok()
 * check retval of mutt_save_attachment()
 * check retval of mutt_account_get{user,pass,login}()
 * check retval of mutt_system()

7 years agocheck retval of mutt_system() 953/head
Richard Russon [Mon, 13 Nov 2017 13:16:32 +0000 (13:16 +0000)]
check retval of mutt_system()

`mutt_system()` returns int, so check accordingly.

Also, make sure we log if any calls fail.

7 years agocheck retval of mutt_account_get{user,pass,login}()
Richard Russon [Mon, 13 Nov 2017 12:58:07 +0000 (12:58 +0000)]
check retval of mutt_account_get{user,pass,login}()

Functions `mutt_account_getuser()`, `mutt_account_getpass()` and
`mutt_account_getlogin()` all return int, so check accordingly.

Also, make sure we log if any calls fail.

7 years agocheck retval of mutt_save_attachment()
Richard Russon [Mon, 13 Nov 2017 02:23:25 +0000 (02:23 +0000)]
check retval of mutt_save_attachment()

7 years agocheck retval of strtok()
Richard Russon [Mon, 13 Nov 2017 01:57:37 +0000 (01:57 +0000)]
check retval of strtok()

7 years agocheck retval of REGCOMP()
Richard Russon [Sun, 12 Nov 2017 23:58:17 +0000 (23:58 +0000)]
check retval of REGCOMP()

`REGCOMP()` wraps `regcomp()` which returns int.