]>
granicus.if.org Git - neomutt/log
Richard Russon [Wed, 12 Apr 2017 20:39:09 +0000 (21:39 +0100)]
convert .ja translation to utf-8
Richard Russon [Wed, 12 Apr 2017 15:30:27 +0000 (16:30 +0100)]
build: rename files hyphen to underscore
Richard Russon [Thu, 13 Apr 2017 13:34:08 +0000 (14:34 +0100)]
revert broken fix
gpgme returns 0 on EOF which we shouldn't pass to fwrite().
Richard Russon [Thu, 13 Apr 2017 11:24:05 +0000 (12:24 +0100)]
revert broken fix
This IS the site of a possible bug, but this isn't the way to fix it.
Some paths through parse_set() will lead to (idx == -1) which will cause a
buffer underrun when used as an index to MuttVars.
closes #520
Richard Russon [Wed, 12 Apr 2017 01:23:44 +0000 (02:23 +0100)]
merge: boolify functions
These functions returned -1 on failure but are essentially boolean.
Convert them to use false/true.
* check_all_msg()
* check_msg()
* compare_certificates()
* compare_stat()
* crypt_key_is_valid()
* is_bound()
* line_compare()
* mutt_check_charset()
* rfc822_valid_msgid()
* smtp_code()
* url_parse_query()
* user_in_addr()
Richard Russon [Mon, 10 Apr 2017 18:06:54 +0000 (19:06 +0100)]
user_in_addr
Richard Russon [Tue, 11 Apr 2017 14:18:06 +0000 (15:18 +0100)]
url_parse_query
Richard Russon [Mon, 10 Apr 2017 20:19:58 +0000 (21:19 +0100)]
smtp_code
Richard Russon [Tue, 11 Apr 2017 18:25:03 +0000 (19:25 +0100)]
rfc822_valid_msgid
Richard Russon [Tue, 11 Apr 2017 13:22:11 +0000 (14:22 +0100)]
mutt_check_charset
Richard Russon [Tue, 11 Apr 2017 18:08:39 +0000 (19:08 +0100)]
line_compare
Richard Russon [Tue, 11 Apr 2017 12:01:16 +0000 (13:01 +0100)]
is_bound
Richard Russon [Tue, 11 Apr 2017 11:58:12 +0000 (12:58 +0100)]
crypt_key_is_valid
Richard Russon [Tue, 11 Apr 2017 17:12:23 +0000 (18:12 +0100)]
compare_stat
Richard Russon [Tue, 11 Apr 2017 11:56:32 +0000 (12:56 +0100)]
compare_certificates
Richard Russon [Mon, 10 Apr 2017 23:32:39 +0000 (00:32 +0100)]
check_msg
Richard Russon [Mon, 10 Apr 2017 23:34:33 +0000 (00:34 +0100)]
check_all_msg
Richard Russon [Tue, 11 Apr 2017 23:31:33 +0000 (00:31 +0100)]
merge: boolify functions
These functions all returned 0/1 on failure/success.
Convert them to use false/true.
* add_quote_suffix()
* addrcmp()
* addresses_use_unicode()
* address_uses_unicode()
* check_boundary()
* check_certificate_cache()
* check_certificate_expiration()
* check_for_mailing_list()
* check_idn()
* cmd_queue_full()
* compare_flags()
* count_body_parts_check()
* create_hcache_dir()
* crypt_is_numerical_keyid()
* feature_enabled()
* get_initials()
* hostname_match()
* imap_has_flag()
* is_context_available()
* is_day_name()
* is_display_corrupting_utf8()
* link_threads()
* maildir_add_to_context()
* match_reference()
* mbox_has_new()
* mh_valid_message()
* mutt_addr_is_user()
* mutt_comp_can_append()
* mutt_comp_can_read()
* mutt_group_match()
* mutt_limit_current_thread()
* mutt_matches_list()
* mutt_match_spam_list()
* mutt_needs_mailcap()
* mutt_pop_list()
* mutt_ts_capability()
* perform_and()
* perform_or()
* pgpring_string_matches_hint()
* pgp_use_gpg_agent()
* prepare_sidebar()
* select_next()
* select_next_new()
* select_prev()
* select_prev_new()
* string_is_address()
Richard Russon [Tue, 11 Apr 2017 12:16:56 +0000 (13:16 +0100)]
string_is_address
Richard Russon [Tue, 11 Apr 2017 18:26:53 +0000 (19:26 +0100)]
select_prev_new
Richard Russon [Mon, 10 Apr 2017 18:03:11 +0000 (19:03 +0100)]
select_prev
Richard Russon [Tue, 11 Apr 2017 12:16:26 +0000 (13:16 +0100)]
select_next_new
Richard Russon [Mon, 10 Apr 2017 18:04:42 +0000 (19:04 +0100)]
select_next
Richard Russon [Tue, 11 Apr 2017 12:14:53 +0000 (13:14 +0100)]
prepare_sidebar
Richard Russon [Mon, 10 Apr 2017 21:18:59 +0000 (22:18 +0100)]
pgp_use_gpg_agent
Richard Russon [Tue, 11 Apr 2017 12:12:14 +0000 (13:12 +0100)]
pgpring_string_matches_hint
Richard Russon [Tue, 11 Apr 2017 12:10:47 +0000 (13:10 +0100)]
perform_or
Richard Russon [Tue, 11 Apr 2017 12:09:58 +0000 (13:09 +0100)]
perform_and
Richard Russon [Tue, 11 Apr 2017 18:19:37 +0000 (19:19 +0100)]
mutt_ts_capability
Richard Russon [Tue, 11 Apr 2017 12:09:30 +0000 (13:09 +0100)]
mutt_pop_list
Richard Russon [Mon, 10 Apr 2017 17:44:56 +0000 (18:44 +0100)]
mutt_needs_mailcap
Richard Russon [Tue, 11 Apr 2017 14:33:28 +0000 (15:33 +0100)]
mutt_match_spam_list
Richard Russon [Tue, 11 Apr 2017 18:18:11 +0000 (19:18 +0100)]
mutt_matches_list
Richard Russon [Tue, 11 Apr 2017 18:41:22 +0000 (19:41 +0100)]
mutt_limit_current_thread
Richard Russon [Tue, 11 Apr 2017 18:15:13 +0000 (19:15 +0100)]
mutt_group_match
Richard Russon [Tue, 11 Apr 2017 14:33:09 +0000 (15:33 +0100)]
mutt_comp_can_read
Richard Russon [Tue, 11 Apr 2017 18:13:27 +0000 (19:13 +0100)]
mutt_comp_can_append
Richard Russon [Mon, 10 Apr 2017 17:42:33 +0000 (18:42 +0100)]
mutt_addr_is_user
Richard Russon [Mon, 10 Apr 2017 20:38:47 +0000 (21:38 +0100)]
mh_valid_message
Richard Russon [Tue, 11 Apr 2017 12:06:25 +0000 (13:06 +0100)]
mbox_has_new
Richard Russon [Tue, 11 Apr 2017 12:05:46 +0000 (13:05 +0100)]
match_reference
Richard Russon [Tue, 11 Apr 2017 13:14:55 +0000 (14:14 +0100)]
maildir_add_to_context
Richard Russon [Tue, 11 Apr 2017 12:01:52 +0000 (13:01 +0100)]
link_threads
Richard Russon [Tue, 11 Apr 2017 17:56:32 +0000 (18:56 +0100)]
is_display_corrupting_utf8
Richard Russon [Mon, 10 Apr 2017 20:39:26 +0000 (21:39 +0100)]
is_day_name
Richard Russon [Tue, 11 Apr 2017 12:01:32 +0000 (13:01 +0100)]
is_context_available
Richard Russon [Mon, 10 Apr 2017 21:18:44 +0000 (22:18 +0100)]
imap_has_flag
Richard Russon [Mon, 10 Apr 2017 16:41:09 +0000 (17:41 +0100)]
hostname_match
Richard Russon [Tue, 11 Apr 2017 11:59:04 +0000 (12:59 +0100)]
get_initials
Richard Russon [Tue, 11 Apr 2017 17:24:50 +0000 (18:24 +0100)]
feature_enabled
Richard Russon [Tue, 11 Apr 2017 11:57:58 +0000 (12:57 +0100)]
crypt_is_numerical_keyid
Richard Russon [Tue, 11 Apr 2017 17:16:14 +0000 (18:16 +0100)]
create_hcache_dir
Richard Russon [Mon, 10 Apr 2017 19:52:17 +0000 (20:52 +0100)]
count_body_parts_check
Richard Russon [Tue, 11 Apr 2017 11:57:28 +0000 (12:57 +0100)]
compare_flags
Richard Russon [Mon, 10 Apr 2017 22:19:21 +0000 (23:19 +0100)]
cmd_queue_full
Richard Russon [Tue, 11 Apr 2017 17:08:55 +0000 (18:08 +0100)]
check_idn
Richard Russon [Tue, 11 Apr 2017 11:55:55 +0000 (12:55 +0100)]
check_for_mailing_list
Richard Russon [Mon, 10 Apr 2017 23:30:00 +0000 (00:30 +0100)]
check_certificate_expiration
Richard Russon [Tue, 11 Apr 2017 11:55:32 +0000 (12:55 +0100)]
check_certificate_cache
Richard Russon [Tue, 11 Apr 2017 17:06:54 +0000 (18:06 +0100)]
check_boundary
Richard Russon [Tue, 11 Apr 2017 11:55:06 +0000 (12:55 +0100)]
address_uses_unicode
Richard Russon [Mon, 10 Apr 2017 20:41:26 +0000 (21:41 +0100)]
addresses_use_unicode
Richard Russon [Tue, 11 Apr 2017 11:54:42 +0000 (12:54 +0100)]
addrcmp
Richard Russon [Mon, 10 Apr 2017 16:13:03 +0000 (17:13 +0100)]
add_quote_suffix
Kevin McCarthy [Tue, 11 Apr 2017 19:14:47 +0000 (12:14 -0700)]
Fix memleak when attaching files.
Richard Russon [Tue, 11 Apr 2017 23:26:14 +0000 (00:26 +0100)]
merge: fix coverity defects
* coverity: strfcpy
* coverity: add variable - function arg could be NULL/invalid
* coverity: add variable - failed function leads to invalid variable
* coverity: add variable - Context could become NULL
* coverity: add variable - alloc/strdup could return NULL
* coverity: add variable - route through code leads to invalid variable
* coverity: remove variable test
* coverity: test functions
* coverity: tidy switches
* coverity: unused variables
* coverity: refactor only
* coverity: check for buffer underruns
* coverity: fix leaks
* coverity: minor fixes
Richard Russon [Wed, 5 Apr 2017 14:59:15 +0000 (15:59 +0100)]
coverity: minor fixes
Fix a few minor bugs.
Richard Russon [Wed, 5 Apr 2017 14:51:30 +0000 (15:51 +0100)]
coverity: fix leaks
Fix resource leaks.
Richard Russon [Wed, 5 Apr 2017 14:34:28 +0000 (15:34 +0100)]
coverity: check for buffer underruns
Prevent buffer underruns caused by functions that can return -1.
Richard Russon [Wed, 5 Apr 2017 14:29:36 +0000 (15:29 +0100)]
coverity: refactor only
Refactor code for clarity.
Richard Russon [Wed, 5 Apr 2017 14:28:38 +0000 (15:28 +0100)]
coverity: unused variables
Remove unused variables.
Richard Russon [Wed, 5 Apr 2017 14:26:22 +0000 (15:26 +0100)]
coverity: tidy switches
Simplify a few switch cases:
- Factor out trivial fall throughs
- Document any other fall throughs
Richard Russon [Wed, 5 Apr 2017 14:20:47 +0000 (15:20 +0100)]
coverity: test functions
Test the return value of some functions that could fail.
Richard Russon [Wed, 5 Apr 2017 14:15:29 +0000 (15:15 +0100)]
coverity: remove variable test
Remove a few simple tests where the condition is guaranteed to be true.
Richard Russon [Mon, 10 Apr 2017 13:07:03 +0000 (14:07 +0100)]
coverity: add variable - route through code leads to invalid variable
Richard Russon [Mon, 10 Apr 2017 13:01:22 +0000 (14:01 +0100)]
coverity: add variable - alloc/strdup could return NULL
Richard Russon [Mon, 10 Apr 2017 12:51:55 +0000 (13:51 +0100)]
coverity: add variable - Context could become NULL
Richard Russon [Mon, 10 Apr 2017 12:49:32 +0000 (13:49 +0100)]
coverity: add variable - failed function leads to invalid variable
Richard Russon [Mon, 10 Apr 2017 12:44:39 +0000 (13:44 +0100)]
coverity: add variable - function arg could be NULL/invalid
Richard Russon [Wed, 5 Apr 2017 13:42:50 +0000 (14:42 +0100)]
coverity: strfcpy
Replace strncpy with strfcpy to avoid unterminated strings.
Richard Russon [Sun, 9 Apr 2017 19:43:22 +0000 (20:43 +0100)]
merge: upstream fixes (mutt/default)
* Remove redraw flag setting after mutt_endwin().
* Change km_dokey() to pass SigWinch on for the MENU_EDITOR. (see #3877)
* Separate out the compose menu redrawing. (see #3877)
* Separate out the index menu redrawing. (see #3877)
* Prepare for pager redraw separation. (see #3877)
* Separate out the pager menu redrawing. (see #3877)
* Don't create query menu until after initial prompt. (see #3877)
* Silence imap progress messages for pipe-message. (see #3929)
* Ensure mutt stays in endwin during calls to pipe_msg() (closes #3929)
Kevin McCarthy [Sat, 8 Apr 2017 21:21:15 +0000 (14:21 -0700)]
Ensure mutt stays in endwin during calls to pipe_msg() (closes #3929)
The previous commit solved the problem reported in #3929: progressbar
output while downloading a message via IMAP was refreshing the mutt
ncurses session after launching the pipe program.
To ensure another place in the code doesn't inadvertantly generate
output, wrap OPTKEEPQUIET around the calls to
pipe_msg()/mutt_wait_filter() too.
Kevin McCarthy [Sat, 8 Apr 2017 21:18:26 +0000 (14:18 -0700)]
Silence imap progress messages for pipe-message. (see #3929)
_mutt_pipe_message() calls endwin(), and then calls pipe_msg(). If an
imap message body hasn't already been downloaded, this can end up
calling imap_fetch_message().
The progress messages in imap_fetch_message() were restoring curses,
just after extract_url was running. This was leading to a condition
where mutt curses didn't think the screen had changed after
extract_url exited.
There was already a check for isendwin() inside imap_fetch_message(),
but it wasn't wrapped around the progressbar creation/usage. Add a
check for those places too.
Kevin McCarthy [Wed, 5 Apr 2017 23:09:39 +0000 (16:09 -0700)]
Don't create query menu until after initial prompt. (see #3877)
A resize in the prompt will trigger a redraw, but the data won't be
loaded yet, displaying a blank screen instead of the previous menu.
Once the query is done, the data is loaded, but the menu->redraw state
has been changed by the resize.
We could manually flag a redraw, but it makes more sense visually
logically to just create the menu after the query and results are
loaded.
Kevin McCarthy [Wed, 5 Apr 2017 23:09:37 +0000 (16:09 -0700)]
Separate out the pager menu redrawing. (see #3877)
The pager relies on REDRAW_SIGWINCH, so add that to _mutt_get_field().
Kevin McCarthy [Wed, 5 Apr 2017 23:09:36 +0000 (16:09 -0700)]
Prepare for pager redraw separation. (see #3877)
Move some of the code inside SigWinch handling into the REDRAW part of
the code.
SigInt is handled by mutt_getch(), so remove the redundant code from
inside the pager.
Kevin McCarthy [Wed, 5 Apr 2017 23:09:35 +0000 (16:09 -0700)]
Separate out the index menu redrawing. (see #3877)
Kevin McCarthy [Wed, 5 Apr 2017 23:09:34 +0000 (16:09 -0700)]
Separate out the compose menu redrawing. (see #3877)
Add a custom_menu_redraw to the menu and change menu_redraw() to call
that instead if set.
Kevin McCarthy [Wed, 5 Apr 2017 23:09:33 +0000 (16:09 -0700)]
Change km_dokey() to pass SigWinch on for the MENU_EDITOR. (see #3877)
Change _mutt_enter_string() to pass the SigWinch through for
_mutt_get_field() or mutt_enter_string() to handle.
Add a call to mutt_current_menu() in _mutt_get_field() to properly
redisplay the screen in that case.
Kevin McCarthy [Wed, 5 Apr 2017 23:09:31 +0000 (16:09 -0700)]
Remove redraw flag setting after mutt_endwin().
There is no need to set a redraw flag in this case. The screen will
automatically be properly redrawn on the next refresh().
Remove, lest it get propagated.
Richard Russon [Sat, 8 Apr 2017 21:50:54 +0000 (22:50 +0100)]
fix make dist distcheck
Richard Russon [Sat, 1 Apr 2017 01:38:23 +0000 (02:38 +0100)]
bool-ify structs
Convert all struct members that are used as booleans, to "bool".
Richard Russon [Thu, 6 Apr 2017 05:07:27 +0000 (06:07 +0100)]
fix slang bools
slang defines its own bool types which interfere with <stdbool.h>
So, undefine theirs and redefine ours.
Richard Russon [Sat, 8 Apr 2017 21:27:16 +0000 (22:27 +0100)]
merge: bool-ify functions
* Convert two function to return bool
* More boolification
* Boolify is_parent
* Boolify eat_* functions
* Boolify is_ascii
* Boolify pgp_cansign and pgp_canencrypt
* Boolify mx_is_mh and mx_is_maildir
* Boolify remaining mx_is_* functions
* More boolification
* Boolify mutt_nm_tag_complete and mutt_nm_query_complete
Pietro Cerutti [Tue, 4 Apr 2017 11:32:39 +0000 (11:32 +0000)]
Boolify mutt_nm_tag_complete and mutt_nm_query_complete
Issue: #492
Pietro Cerutti [Tue, 4 Apr 2017 11:28:21 +0000 (11:28 +0000)]
More boolification
Issue: #492
Pietro Cerutti [Mon, 3 Apr 2017 12:26:36 +0000 (12:26 +0000)]
Boolify remaining mx_is_* functions
Issue: #492
Pietro Cerutti [Mon, 3 Apr 2017 12:19:43 +0000 (12:19 +0000)]
Boolify mx_is_mh and mx_is_maildir
Issue: #492
Pietro Cerutti [Mon, 3 Apr 2017 12:15:27 +0000 (12:15 +0000)]
Boolify pgp_cansign and pgp_canencrypt
Issue: #492
Pietro Cerutti [Mon, 3 Apr 2017 12:05:42 +0000 (12:05 +0000)]
Boolify is_ascii
Issue: #492