]> granicus.if.org Git - neomutt/log
neomutt
6 years agofree resources
Richard Russon [Sat, 7 Apr 2018 23:00:09 +0000 (00:00 +0100)]
free resources

6 years agohistory: free resources
Richard Russon [Wed, 4 Apr 2018 11:14:56 +0000 (12:14 +0100)]
history: free resources

6 years agohistory: tidy/sync functions
Richard Russon [Wed, 4 Apr 2018 11:14:46 +0000 (12:14 +0100)]
history: tidy/sync functions

- sync format_str and menu_entry functions
- reduce scope of variables
- document functions

6 years agohistory: move static functions first
Richard Russon [Wed, 4 Apr 2018 11:13:26 +0000 (12:13 +0100)]
history: move static functions first

6 years agocomment and reorder params
Richard Russon [Sat, 7 Apr 2018 22:59:34 +0000 (23:59 +0100)]
comment and reorder params

6 years agocomment list functions
Richard Russon [Sat, 7 Apr 2018 22:57:26 +0000 (23:57 +0100)]
comment list functions

6 years agorename OPT_ variables
Richard Russon [Sun, 8 Apr 2018 01:38:57 +0000 (02:38 +0100)]
rename OPT_ variables

6 years agoadd missing extern
Richard Russon [Thu, 5 Apr 2018 00:10:04 +0000 (01:10 +0100)]
add missing extern

6 years agoClarify the relation between NeoMutt and Mutt
rawtaz [Wed, 11 Apr 2018 11:40:43 +0000 (13:40 +0200)]
Clarify the relation between NeoMutt and Mutt

Fixes a discrepancy between the website and this README on the topic of "is it a fork?".

6 years ago Let mutt_ch_choose report conversion failure (#1137)
Pietro Cerutti [Wed, 11 Apr 2018 14:01:57 +0000 (15:01 +0100)]
 Let mutt_ch_choose report conversion failure (#1137)

* Let mutt_ch_choose report conversion failure

Issue #1136

* Let mutt_ch_convert_string return errno if iconv(..) fails

Previously, mutt_ch_convert_string returned error only if any arguments
failed the sanity check or iconv_open() failed.

With this change, an error value is returned even if the iconv()
conversion fails, such as when the input string contains an invalid
character in the source character set (EILSEQ).

I have looked at each caller and it seems to me that this change won't
introduce any misbehaviour, but I'm far from being 100% confident.

Issue #1136

* test int functions against 0

* Better error reporting in mutt_ch_iconv

Issue #1136

6 years agodoc: Describe logging capabilities of NeoMutt
Reis Radomil [Fri, 6 Apr 2018 01:55:51 +0000 (01:55 +0000)]
doc: Describe logging capabilities of NeoMutt

Describe the logging capabilities of NeoMutt in the User Guide. The
section currently covers the different log message types (perror, error,
warning, informational debug), where they are shown and how to enable
debug log messages.

6 years agoRename <show-messages> to <show-log-messages>
Reis Radomil [Sun, 1 Apr 2018 13:31:16 +0000 (13:31 +0000)]
Rename <show-messages> to <show-log-messages>

Rename the function <show-messages> to <show-log-messages> as well as
its symbolic constant OP_SHOW_MESSAGES to OP_SHOW_LOG_MESSAGES.

Background is that 'messages' (in the context of neomutt) refers usually
to emails instead of log messages.

6 years agoDescribe <show-messages> more precisely
Reis Radomil [Sun, 1 Apr 2018 13:31:16 +0000 (13:31 +0000)]
Describe <show-messages> more precisely

The term 'message' is used for log-messages as well as for ordinary
mails. In the help 'message' usually means an email. Adjust the
description of <show-message>/OP_SHOW_MESSAGE to clarify that log and
debug messages are meant.

6 years agoRemove reminiscent of txt2c
Reis Radomil [Sun, 1 Apr 2018 04:23:21 +0000 (04:23 +0000)]
Remove reminiscent of txt2c

txt2c is replaced by a routine in the configure/autosetup script.
Update .gitignore accordingly.

6 years agoGenerate .clang_complete
Pietro Cerutti [Fri, 6 Apr 2018 09:10:46 +0000 (09:10 +0000)]
Generate .clang_complete

For users of https://github.com/Rip-Rip/clang_complete, this allows to
always keep the .clang_complete file in sync with CFLAGS.

6 years agoBuild: restructure ncurses/tinfo checks (#1119)
Pietro Cerutti [Thu, 5 Apr 2018 11:20:31 +0000 (12:20 +0100)]
Build: restructure ncurses/tinfo checks (#1119)

* Build: restructure ncurses/tinfo checks

Issue #1118

* Fallback to ncurses library for tgetent

This fixes the configure phase in NetBSD, which doesn't have a separate
tinfo library in base.

Issue #1118

6 years agomerge: fix cppcheck warnings
Richard Russon [Tue, 3 Apr 2018 16:59:46 +0000 (17:59 +0100)]
merge: fix cppcheck warnings

 * reduce scope of variables
 * printf format
 * make logic clearer
 * misc fixes
 * match prototypes to their functions

6 years agocppcheck: match prototypes to their functions
Richard Russon [Tue, 3 Apr 2018 13:31:51 +0000 (14:31 +0100)]
cppcheck: match prototypes to their functions

6 years agocppcheck: misc
Richard Russon [Tue, 3 Apr 2018 13:00:25 +0000 (14:00 +0100)]
cppcheck: misc

6 years agocppcheck: make logic clearer
Richard Russon [Tue, 3 Apr 2018 12:53:14 +0000 (13:53 +0100)]
cppcheck: make logic clearer

6 years agocppcheck: printf format
Richard Russon [Tue, 3 Apr 2018 12:49:15 +0000 (13:49 +0100)]
cppcheck: printf format

6 years agosplit out progress functions
Richard Russon [Sun, 1 Apr 2018 18:49:52 +0000 (19:49 +0100)]
split out progress functions

6 years agosplit out window functions
Richard Russon [Sun, 1 Apr 2018 04:12:17 +0000 (05:12 +0100)]
split out window functions

6 years agosplit out terminal setting
Richard Russon [Sun, 1 Apr 2018 02:33:43 +0000 (03:33 +0100)]
split out terminal setting

6 years agomerge: rename functions for consistency
Richard Russon [Tue, 3 Apr 2018 16:58:50 +0000 (17:58 +0100)]
merge: rename functions for consistency

 * body functions
 * header functions
 * enter_state functions
 * alias functions
 * menu functions
 * rfc822 functions

6 years agomerge: light tidying
Richard Russon [Tue, 3 Apr 2018 16:58:22 +0000 (17:58 +0100)]
merge: light tidying

 * test ints against 0
 * test int functions against 0
 * tidy comments / docs
 * tidy mutt_str_strdup
 * tidy uses of mutt_str_getenv

6 years agomerge: refactor config parsing on startup
Richard Russon [Tue, 3 Apr 2018 16:48:38 +0000 (17:48 +0100)]
merge: refactor config parsing on startup

 * nntp config
 * mailcap config
 * tmpdir config
 * editor, visual config
 * separate get from set Charset

6 years agorefactor: separate get from set Charset 1120/head
Richard Russon [Sat, 31 Mar 2018 18:07:28 +0000 (19:07 +0100)]
refactor: separate get from set Charset

6 years agorefactor: editor, visual config
Richard Russon [Fri, 30 Mar 2018 15:55:12 +0000 (16:55 +0100)]
refactor: editor, visual config

Precedence: environment, config, code

6 years agorefactor: tmpdir config
Richard Russon [Fri, 30 Mar 2018 14:15:50 +0000 (15:15 +0100)]
refactor: tmpdir config

Precedence: environment, config, code

6 years agorefactor: mailcap config
Richard Russon [Fri, 30 Mar 2018 13:13:39 +0000 (14:13 +0100)]
refactor: mailcap config

Precedence: environment, config file, code

6 years agorefactor: nntp config
Richard Russon [Fri, 30 Mar 2018 12:25:20 +0000 (13:25 +0100)]
refactor: nntp config

Precedence: command line, environment, config file, system file

6 years agorename rfc822 functions
Richard Russon [Sun, 1 Apr 2018 17:48:49 +0000 (18:48 +0100)]
rename rfc822 functions

6 years agorename menu functions
Richard Russon [Sun, 1 Apr 2018 03:30:33 +0000 (04:30 +0100)]
rename menu functions

6 years agorename alias functions
Richard Russon [Sun, 1 Apr 2018 02:48:38 +0000 (03:48 +0100)]
rename alias functions

6 years agorename enter_state functions
Richard Russon [Sun, 1 Apr 2018 02:38:33 +0000 (03:38 +0100)]
rename enter_state functions

6 years agorename header functions
Richard Russon [Sun, 1 Apr 2018 01:36:48 +0000 (02:36 +0100)]
rename header functions

6 years agorename body functions
Richard Russon [Sun, 1 Apr 2018 01:31:40 +0000 (02:31 +0100)]
rename body functions

6 years agoEnhance neomutt -v with NCURSES_VERSION_PATCH
Pietro Cerutti [Fri, 30 Mar 2018 15:11:29 +0000 (15:11 +0000)]
Enhance neomutt -v with NCURSES_VERSION_PATCH

6 years agotidy uses of mutt_str_getenv
Richard Russon [Fri, 30 Mar 2018 12:49:23 +0000 (13:49 +0100)]
tidy uses of mutt_str_getenv

6 years agotidy mutt_str_strdup
Richard Russon [Fri, 30 Mar 2018 12:32:26 +0000 (13:32 +0100)]
tidy mutt_str_strdup

6 years agorefactor: startup hostname
Richard Russon [Thu, 29 Mar 2018 21:50:00 +0000 (22:50 +0100)]
refactor: startup hostname

Delay the code that finds the FQDN until after the config and command
line have been processed.

This means that some users, with mis-configured network lookups, can work
around a long timeout during startup.

6 years agorefactor: move the envlist code to the library
Richard Russon [Thu, 29 Mar 2018 15:40:03 +0000 (16:40 +0100)]
refactor: move the envlist code to the library

The envlist code keeps a private copy of the environment.

6 years agotidy comments / docs
Richard Russon [Wed, 28 Mar 2018 22:21:56 +0000 (23:21 +0100)]
tidy comments / docs

6 years agotest int functions against 0
Richard Russon [Wed, 28 Mar 2018 19:16:13 +0000 (20:16 +0100)]
test int functions against 0

6 years agocppcheck: reduce scope of variables
Richard Russon [Wed, 28 Mar 2018 17:24:23 +0000 (18:24 +0100)]
cppcheck: reduce scope of variables

6 years agotest ints against 0
Richard Russon [Wed, 28 Mar 2018 17:21:30 +0000 (18:21 +0100)]
test ints against 0

6 years agobuild: fix bmake's lack of variable expansion in "include" lines
Pietro Cerutti [Wed, 28 Mar 2018 07:33:15 +0000 (07:33 +0000)]
build: fix bmake's lack of variable expansion in "include" lines

6 years agoslang: don't endwin() if slang wasn't started
Richard Russon [Wed, 28 Mar 2018 03:31:02 +0000 (04:31 +0100)]
slang: don't endwin() if slang wasn't started

6 years agomerge: trivial improvements
Richard Russon [Wed, 28 Mar 2018 02:28:08 +0000 (03:28 +0100)]
merge: trivial improvements

 * docs: update README
 * sort switch cases
 * sort option definitions
 * sort colour fields
 * remove unused variables
 * initialise variables
 * iwyu: fix #include usage
 * docs: add missing comment
 * refactor spanning ifs
 * check for null pointer

6 years agocheck for null pointer
Richard Russon [Wed, 28 Mar 2018 01:36:40 +0000 (02:36 +0100)]
check for null pointer

6 years agorefactor spanning ifs
Richard Russon [Wed, 21 Mar 2018 16:28:39 +0000 (16:28 +0000)]
refactor spanning ifs

Refactor an `if` that spans an entire function, to return early.

6 years agodocs: add missing comment
Richard Russon [Wed, 21 Mar 2018 01:27:04 +0000 (01:27 +0000)]
docs: add missing comment

6 years agoiwyu: fix #include usage
Richard Russon [Wed, 21 Mar 2018 01:25:43 +0000 (01:25 +0000)]
iwyu: fix #include usage

6 years agobuild: fix dependencies for test dir
Richard Russon [Tue, 27 Mar 2018 17:43:01 +0000 (18:43 +0100)]
build: fix dependencies for test dir

6 years agoinitialise variables
Richard Russon [Sun, 25 Mar 2018 02:30:11 +0000 (03:30 +0100)]
initialise variables

scan-build warns that these variables may not get set elsewhere

6 years agoremove unused variables
Richard Russon [Sun, 25 Mar 2018 02:28:49 +0000 (03:28 +0100)]
remove unused variables

Remove variables that are set, but not used again.

6 years agosort colour fields
Richard Russon [Tue, 27 Mar 2018 21:26:47 +0000 (22:26 +0100)]
sort colour fields

6 years agosort option definitions
Richard Russon [Wed, 21 Mar 2018 13:33:43 +0000 (13:33 +0000)]
sort option definitions

6 years agosort switch cases
Richard Russon [Tue, 27 Mar 2018 22:43:52 +0000 (23:43 +0100)]
sort switch cases

There are no code changes here.
The 'case' statements have been sorted where:
- There's a clear order, e.g. alphabetical
- Where they all have break/return statements

6 years agodocs: update README
Richard Russon [Wed, 28 Mar 2018 00:18:44 +0000 (01:18 +0100)]
docs: update README

- links contributors
- add shields

6 years agoconvert init.h
Richard Russon [Tue, 27 Mar 2018 02:40:15 +0000 (03:40 +0100)]
convert init.h

Another (small) step towards the new config system

6 years agolua: fix variable getting/setting
Richard Russon [Tue, 27 Mar 2018 02:40:07 +0000 (03:40 +0100)]
lua: fix variable getting/setting

6 years agoacutest: update with latest upstream (documentation fixes)
Pietro Cerutti [Tue, 27 Mar 2018 16:49:55 +0000 (16:49 +0000)]
acutest: update with latest upstream (documentation fixes)

6 years agofix Notmuch deprecation warning
Richard Russon [Fri, 23 Mar 2018 23:44:43 +0000 (23:44 +0000)]
fix Notmuch deprecation warning

We need to distinguish between two versions of `notmuch.h`.
Both declare that they are v5.0.0.  They are:

- libnotmuch 5.0 (Notmuch 0.25)
  - `notmuch_database_add_message()` is a normal function
  - `notmuch_database_index_file()` doesn't exist

- libnotmuch 5.1 (Notmuch 0.26)
  - `notmuch_database_add_message()` is **deprecated**
  - `notmuch_database_index_file()` exists

To work around this, we check for `notmuch_database_index_file()` specifically.

6 years agofix return code for 'neomutt -Z'
Richard Russon [Sun, 25 Mar 2018 09:50:02 +0000 (10:50 +0100)]
fix return code for 'neomutt -Z'

Fixes #1112

6 years agomerge: upstream fixes
Richard Russon [Sun, 25 Mar 2018 23:05:56 +0000 (00:05 +0100)]
merge: upstream fixes

 * sync to upstream abort_noattach
 * Improve the error message when a signature is missing.
 * Change mutt_error call in mutt_gpgme_set_sender() to dprint.
 * Fix comparison of flags with multiple bits set.
 * Increase account.user/login size to 128.

6 years agoIncrease account.user/login size to 128.
Kevin McCarthy [Sat, 24 Mar 2018 22:10:13 +0000 (15:10 -0700)]
Increase account.user/login size to 128.

Like the pass field in commit 52949004, the existing size was
insufficient for the reporter of issue #18.  For now, just bump up the
size, but I'll move up looking into making these dynamically sized.

6 years agoFix comparison of flags with multiple bits set.
Kevin McCarthy [Fri, 23 Mar 2018 03:04:46 +0000 (20:04 -0700)]
Fix comparison of flags with multiple bits set.

PGPENCRYPT, PGPKEY, SMIMEENCRYPT, and SMIMEOPAQUE are all combination
flags, with multiple bits set.  In a few places these flags were
bitwise-and'ed incorrectly: expecting a non-zero result to indicate
all the bits in the flag were set.  Change those to explicitly compare
the result against the original flag.

6 years agoChange mutt_error call in mutt_gpgme_set_sender() to dprint.
Kevin McCarthy [Thu, 15 Mar 2018 17:24:35 +0000 (10:24 -0700)]
Change mutt_error call in mutt_gpgme_set_sender() to dprint.

The message is not an error message, and flies by so quickly it has
little informative content.  Change it to use dprint instead.

Thanks to Darac Marjal for reporting the issue.

6 years agoImprove the error message when a signature is missing.
Kevin McCarthy [Wed, 14 Mar 2018 02:09:45 +0000 (19:09 -0700)]
Improve the error message when a signature is missing.

Thanks to Vincent Lefèvre for reporting the issue and for the wording
suggestion!

6 years agosync to upstream abort_noattach
Richard Russon [Tue, 20 Mar 2018 23:26:57 +0000 (23:26 +0000)]
sync to upstream abort_noattach

6 years agoNeoMutt 2018-03-23 neomutt-20180323
Richard Russon [Fri, 23 Mar 2018 13:22:28 +0000 (13:22 +0000)]
NeoMutt 2018-03-23

6 years agosync translations
Richard Russon [Fri, 23 Mar 2018 13:18:10 +0000 (13:18 +0000)]
sync translations

6 years agotidy
Richard Russon [Fri, 23 Mar 2018 12:58:38 +0000 (12:58 +0000)]
tidy

- clang-format
- sort makefile lists
- tidy whitespace

6 years agonew contributors
Richard Russon [Fri, 23 Mar 2018 12:57:02 +0000 (12:57 +0000)]
new contributors

6 years agochangelog
Richard Russon [Fri, 23 Mar 2018 12:43:27 +0000 (12:43 +0000)]
changelog

6 years agoversion 2018-03-23
Richard Russon [Fri, 23 Mar 2018 11:27:24 +0000 (11:27 +0000)]
version 2018-03-23

6 years agoUpdate Czech translation
David Sterba [Fri, 9 Mar 2018 10:09:40 +0000 (11:09 +0100)]
Update Czech translation

6 years agoUpdate Czech translation
David Sterba [Fri, 9 Mar 2018 10:09:40 +0000 (11:09 +0100)]
Update Czech translation

6 years agoerror: Don't pause after duplicate messages
Richard Russon [Thu, 22 Mar 2018 15:02:23 +0000 (15:02 +0000)]
error: Don't pause after duplicate messages

Fixes #1100

6 years agoerror: use sleep_time as error wait time
Roger Pau Monne [Wed, 21 Mar 2018 12:29:09 +0000 (12:29 +0000)]
error: use sleep_time as error wait time

Also fix the conversion from us to ns.

6 years agodoxygen: drop/tidy simple comments
Richard Russon [Sat, 17 Mar 2018 01:14:33 +0000 (01:14 +0000)]
doxygen: drop/tidy simple comments

6 years agomerge: update translations
Richard Russon [Tue, 20 Mar 2018 01:56:46 +0000 (01:56 +0000)]
merge: update translations

 * fix file list
 * remove unnec CRs
 * too few
 * too many
 * misc dupe strings
 * tidy grave quotes
 * remove un-discoverable options
 * update-po
 * update German translation
 * update German translation
 * Update Turkish translation
 * update Spanish translation
 * Polish translation update
 * Polish translation update
 * Update Portuguese (BR) translation
 * Update Portuguese (BR) translation
 * Update Portuguese (BR) translation
 * Update Portuguese (BR) translation
 * Update Czech translation
 * Update Czech translation
 * Update Czech translation
 * Update Czech translation
 * Update Czech translation
 * Update Czech translation
 * Update Czech translation
 * Update Czech translation
 * Update Portuguese (BR) translation
 * Update Portuguese (BR) translation
 * Update Portuguese (BR) translation
 * Polish translation update
 * Update Portuguese (BR) translation
 * Update Portuguese (BR) translation
 * Update Czech translation
 * Update Portuguese (BR) translation
 * Update Portuguese (BR) translation
 * update English (British) translation

6 years agomerge: sort code to make docs more legible
Richard Russon [Tue, 20 Mar 2018 01:23:12 +0000 (01:23 +0000)]
merge: sort code to make docs more legible

 * docs: Sort commands
 * init.h: Sort configuration variables
 * opcodes.h: Sort opcodes
 * functions.h: Sort functions by name

6 years agomerge: fix coverity defects
Richard Russon [Tue, 20 Mar 2018 01:12:36 +0000 (01:12 +0000)]
merge: fix coverity defects

 * resource leak - mutt_log_start
 * range check - reset_value
 * range check - set_default_value
 * dead code - do_database_open
 * resource leak - mutt_log_set_file
 * always true - rfc2047_encode
 * null ptr deref - print_attachment_list
 * drop testing code - resolve_types
 * range check - parse_set
 * calloc size - mutt_select_file
 * check WithCrypto against zero

6 years agocheck WithCrypto against zero
Richard Russon [Mon, 19 Mar 2018 16:19:46 +0000 (16:19 +0000)]
check WithCrypto against zero

6 years agocalloc size - mutt_select_file
Richard Russon [Mon, 19 Mar 2018 23:23:51 +0000 (23:23 +0000)]
calloc size - mutt_select_file

6 years agorange check - parse_set
Richard Russon [Mon, 19 Mar 2018 19:30:05 +0000 (19:30 +0000)]
range check - parse_set

6 years agodrop testing code - resolve_types
Richard Russon [Mon, 19 Mar 2018 10:54:05 +0000 (10:54 +0000)]
drop testing code - resolve_types

6 years agonull ptr deref - print_attachment_list
Richard Russon [Mon, 19 Mar 2018 10:46:21 +0000 (10:46 +0000)]
null ptr deref - print_attachment_list

6 years agoalways true - rfc2047_encode
Richard Russon [Mon, 19 Mar 2018 10:25:56 +0000 (10:25 +0000)]
always true - rfc2047_encode

6 years agoresource leak - mutt_log_set_file
Richard Russon [Mon, 19 Mar 2018 10:20:01 +0000 (10:20 +0000)]
resource leak - mutt_log_set_file

6 years agodead code - do_database_open
Richard Russon [Mon, 19 Mar 2018 10:19:11 +0000 (10:19 +0000)]
dead code - do_database_open

6 years agorange check - set_default_value
Richard Russon [Mon, 19 Mar 2018 09:43:14 +0000 (09:43 +0000)]
range check - set_default_value

6 years agorange check - reset_value
Richard Russon [Mon, 19 Mar 2018 09:42:52 +0000 (09:42 +0000)]
range check - reset_value

6 years agoresource leak - mutt_log_start
Richard Russon [Mon, 19 Mar 2018 09:42:14 +0000 (09:42 +0000)]
resource leak - mutt_log_start

6 years agoupdate English (British) translation
Richard Russon [Mon, 19 Mar 2018 22:39:54 +0000 (22:39 +0000)]
update English (British) translation

[ci skip]

6 years agoUpdate Portuguese (BR) translation
Thiago Costa de Paiva [Mon, 19 Mar 2018 19:51:14 +0000 (15:51 -0400)]
Update Portuguese (BR) translation

6 years agoUpdate Portuguese (BR) translation
Thiago Costa de Paiva [Mon, 19 Mar 2018 15:58:41 +0000 (11:58 -0400)]
Update Portuguese (BR) translation