]>
granicus.if.org Git - neomutt/log
Richard Russon [Thu, 19 Sep 2019 22:41:12 +0000 (23:41 +0100)]
fix pointer checks in rfc2047_decode()
Richard Russon [Thu, 19 Sep 2019 22:29:12 +0000 (23:29 +0100)]
fix leak in mutt_attach_mail_sender()
Richard Russon [Thu, 19 Sep 2019 22:19:51 +0000 (23:19 +0100)]
fix leak in imap_parse_path()
Richard Russon [Thu, 19 Sep 2019 20:07:23 +0000 (21:07 +0100)]
fix pointer checks in generate_body()
Richard Russon [Thu, 19 Sep 2019 20:01:13 +0000 (21:01 +0100)]
nntp: check pointers
Richard Russon [Thu, 19 Sep 2019 17:35:16 +0000 (18:35 +0100)]
fix Slist usage
Some config variables were missing NULL checks for Slist types.
Richard Russon [Thu, 19 Sep 2019 17:13:53 +0000 (18:13 +0100)]
config: expand flags typedef
The recent addition, CS_DUMP_SHOW_DEPRECATED, didn't fit into the flags'
typedef.
Richard Russon [Sat, 21 Sep 2019 16:55:55 +0000 (17:55 +0100)]
merge: optimise #include usage
* fix cppcheck warnings
* compose: fix minor dependency problem
* build: check for <syscall.h> too
* fix error checking in parse_keymap()
* fix checks in menu_search()
* fix checks in progress_choose_increment()
* fix prototypes in md5.h
* iwyu: optimise #include usage
* iwyu: pragma keep some #includes
* iwyu: pragma exports
Richard Russon [Sat, 21 Sep 2019 16:18:05 +0000 (17:18 +0100)]
iwyu: pragma exports
Define some header files as 'facades' -- wrappers for libraries.
Richard Russon [Sat, 21 Sep 2019 15:26:21 +0000 (16:26 +0100)]
iwyu: pragma keep some #includes
After pre-processing, some macros disappear, which means that iwyu
thinks that some headers aren't needed.
Richard Russon [Sat, 21 Sep 2019 15:25:13 +0000 (16:25 +0100)]
iwyu: optimise #include usage
Richard Russon [Sat, 21 Sep 2019 15:23:40 +0000 (16:23 +0100)]
fix prototypes in md5.h
Richard Russon [Sat, 21 Sep 2019 15:22:34 +0000 (16:22 +0100)]
fix checks in progress_choose_increment()
Richard Russon [Sat, 21 Sep 2019 15:21:35 +0000 (16:21 +0100)]
fix checks in menu_search()
Richard Russon [Sat, 21 Sep 2019 15:21:06 +0000 (16:21 +0100)]
fix error checking in parse_keymap()
Richard Russon [Sat, 21 Sep 2019 15:20:31 +0000 (16:20 +0100)]
build: check for <syscall.h> too
Richard Russon [Sat, 21 Sep 2019 15:09:38 +0000 (16:09 +0100)]
compose: fix minor dependency problem
Define the struct before it's referenced in a macro.
Richard Russon [Sat, 21 Sep 2019 15:49:46 +0000 (16:49 +0100)]
fix cppcheck warnings
Richard Russon [Thu, 19 Sep 2019 15:35:32 +0000 (16:35 +0100)]
merge: fix lgtm warnings
* tidy mutt_draw_tree()
* tidy mutt_yesorno()
* reduce timestamp limits
* rename global Lua
Richard Russon [Thu, 19 Sep 2019 15:08:01 +0000 (16:08 +0100)]
rename global Lua
Globals should have longer names
Richard Russon [Thu, 19 Sep 2019 15:03:35 +0000 (16:03 +0100)]
reduce timestamp limits
The two tests were only applicable on 32-bit architectures.
Richard Russon [Thu, 19 Sep 2019 14:42:48 +0000 (15:42 +0100)]
tidy mutt_yesorno()
Richard Russon [Thu, 19 Sep 2019 14:41:37 +0000 (15:41 +0100)]
tidy mutt_draw_tree()
Richard Russon [Wed, 18 Sep 2019 22:13:16 +0000 (23:13 +0100)]
docs: update credits
Richard Russon [Mon, 16 Sep 2019 19:22:21 +0000 (20:22 +0100)]
build: fix contrib install
Richard Russon [Sat, 14 Sep 2019 15:31:42 +0000 (16:31 +0100)]
config: add missing DT_COMMAND flags
Richard Russon [Sat, 14 Sep 2019 12:18:52 +0000 (13:18 +0100)]
clang-format
Richard Russon [Tue, 17 Sep 2019 10:44:51 +0000 (11:44 +0100)]
fix: crash in index
Before displaying a message, we check that `Context->mailbox` isn't
`NULL`. However, events in `mutt_display_message()` can cause the
`Context` to be closed.
Fixes: #1854
Richard Russon [Mon, 16 Sep 2019 14:23:50 +0000 (15:23 +0100)]
travis: upgrade to Ubuntu 18.04 (Bionic)
Richard Russon [Fri, 13 Sep 2019 23:15:52 +0000 (00:15 +0100)]
fix: mutt_any_key_to_continue()
Originally, this function relied on `fflush(stdin)` to clear the input
buffer, but that isn't portable. This version changes the terminal
settings, temporarily, so that it can read single characters without
blocking, or line-buffering.
Richard Russon [Sun, 15 Sep 2019 15:33:55 +0000 (16:33 +0100)]
merge: upstream buffer refactoring
* Convert mutt_display_message() to buffer pool
* Convert mutt_save_message() to use buffer pool
* Convert recvattach save_attachment functions to use buffer pool
* Convert query_pipe_attachment to use buffer pool
* Convert print_attachment_list to use buffer pool
Kevin McCarthy [Thu, 12 Sep 2019 02:47:13 +0000 (19:47 -0700)]
Convert print_attachment_list to use buffer pool
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Thu, 12 Sep 2019 02:40:48 +0000 (19:40 -0700)]
Convert query_pipe_attachment to use buffer pool
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Thu, 12 Sep 2019 02:10:02 +0000 (19:10 -0700)]
Convert recvattach save_attachment functions to use buffer pool
Convert utility functions prepend_curdir() and mutt_check_overwrite()
to use struct Buffer, as they are only used by those two functions.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Wed, 11 Sep 2019 23:23:46 +0000 (16:23 -0700)]
Convert mutt_save_message() to use buffer pool
Change imap_copy_messages() dest parameter to const char *.
mutt_default_save() will be converted to use a buffer next, removing
the dptr fixups.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Wed, 11 Sep 2019 22:55:01 +0000 (15:55 -0700)]
Convert mutt_display_message() to buffer pool
Remove an unused mime-type string generation at the top of the
function too. The code using the mime type was removed a long time
ago in commit
246198ae .
Co-authored-by: Richard Russon <rich@flatcap.org>
Richard Russon [Wed, 11 Sep 2019 14:41:48 +0000 (15:41 +0100)]
merge: trivial fixes
* rename TunnelSockData fd members
* compose: fix nntp field clearing
* boolify: print_enriched_string()
* boolify: mutt_simple_format()
* menu: use Help and Message windows directly
Richard Russon [Wed, 11 Sep 2019 11:56:12 +0000 (12:56 +0100)]
menu: use Help and Message windows directly
The Help and Message windows are global.
There's no need to keep a private copy of their pointers.
Richard Russon [Wed, 11 Sep 2019 12:16:35 +0000 (13:16 +0100)]
boolify: mutt_simple_format()
Richard Russon [Wed, 11 Sep 2019 12:07:22 +0000 (13:07 +0100)]
boolify: print_enriched_string()
Richard Russon [Wed, 11 Sep 2019 11:55:45 +0000 (12:55 +0100)]
compose: fix nntp field clearing
Using clrtoeol() would overwrite windows to the right.
mutt_window_clrtoeol() is limited to the current window.
Richard Russon [Tue, 10 Sep 2019 14:04:35 +0000 (15:04 +0100)]
rename TunnelSockData fd members
For consistency with other code
Pietro Cerutti [Wed, 11 Sep 2019 14:12:14 +0000 (14:12 +0000)]
Fix 293664 by restoring the rounding on the correct branch
Pietro Cerutti [Mon, 2 Sep 2019 09:44:21 +0000 (09:44 +0000)]
Implement mutt_date_epoch()
Closes: #1824
- Use mutt_date_epoch() instead of time()
- Use mutt_date_epoch_ms in progress
- Undo type conversion, avoid double call to mutt_date_epoch
- Give a magic number a name
Richard Russon [Mon, 9 Sep 2019 10:31:09 +0000 (11:31 +0100)]
config: don't dump deprecated items
Richard Russon [Mon, 9 Sep 2019 10:44:48 +0000 (11:44 +0100)]
trans: remove two auto-generated files
Pietro Cerutti [Mon, 9 Sep 2019 10:38:40 +0000 (10:38 +0000)]
Update autosetup
Marius Gedminas [Mon, 9 Sep 2019 10:23:37 +0000 (13:23 +0300)]
update translations
Marius Gedminas [Mon, 9 Sep 2019 10:23:25 +0000 (13:23 +0300)]
sync translations
Zero King [Sun, 8 Sep 2019 18:38:33 +0000 (18:38 +0000)]
Update zh_CN translation
Zero King [Sun, 8 Sep 2019 18:30:34 +0000 (18:30 +0000)]
Update zh_CN translation
Zero King [Sun, 8 Sep 2019 18:05:24 +0000 (18:05 +0000)]
zh_CN.po: save with Poedit
Olaf Hering [Wed, 28 Aug 2019 20:22:10 +0000 (20:22 +0000)]
de.po: proper translation for term collapse
The intention of the term "collapse" is something like opening and
closing an item. The initial translation which was added two decades
ago means something like "breaks by weakness", which does not fit in
the context of mutt.
Use a term which means literally "opening and closing an item, like a
book".
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Marius Gedminas [Tue, 3 Sep 2019 12:59:49 +0000 (15:59 +0300)]
Update lt_LT translations
Translated the new autocrypt feature that I've never actually seen in
the UI (because I'm running the latest stable neomutt release because
stability is important to me). So I'm sure the translation is excellent
and completely error-free.
Marius Gedminas [Tue, 3 Sep 2019 12:30:56 +0000 (15:30 +0300)]
Update lt_LT translations
Fix a fuzzy one.
There remain many missing and fuzzy translations about what looks to be
a new neomutt feature called 'autocrypt'. I'll get to these later,
hopefully.
Richard Russon [Mon, 9 Sep 2019 09:17:45 +0000 (10:17 +0100)]
docs: fix formatting of example
Richard Russon [Sun, 8 Sep 2019 18:45:03 +0000 (19:45 +0100)]
fix duplicated translation string
Richard Russon [Sat, 7 Sep 2019 23:46:04 +0000 (00:46 +0100)]
merge: Sort Makefile lists
* AUTO.DEF: Alphabetize lists
* CONTRIB: MAKEFILE: Alphabetize lists
* DOC: MAKEFILE: Alphabetize lists
* ROOT: MAKEFILE: Alphabetize lists
* PO: MAKEFILE: Alphabetize lists
* TEST: MAKEFILE: Alphabetize lists
* AUTO.DEF: Alphabetize tcl if list
Closes: #1835
Mark Stenglein [Sat, 7 Sep 2019 22:41:23 +0000 (18:41 -0400)]
AUTO.DEF: Alphabetize tcl if list
This patch alphabetizes and wraps the tcl lists given to if
statements for issue #1835.
Signed-off-by: Mark Stenglein <mark@stengle.in>
Mark Stenglein [Sat, 7 Sep 2019 22:21:29 +0000 (18:21 -0400)]
TEST: MAKEFILE: Alphabetize lists
This patch alphabetizes the lists in test/Makefile.autosetup for
issue #1835
Lists are kept unwrapped for readability.
Signed-off-by: Mark Stenglein <mark@stengle.in>
Mark Stenglein [Sat, 7 Sep 2019 21:26:29 +0000 (17:26 -0400)]
PO: MAKEFILE: Alphabetize lists
This patch alphabetizes and wraps the lists present in
po/makefile.autosetup for issue #1835
Signed-off-by: Mark Stenglein <mark@stengle.in>
Mark Stenglein [Sat, 7 Sep 2019 21:21:25 +0000 (17:21 -0400)]
ROOT: MAKEFILE: Alphabetize lists
This patch alphabetizes and wraps all of the lists in the
root Makefile.autoconfig for issue #1835
Signed-off-by: Mark Stenglein <mark@stengle.in>
Mark Stenglein [Sat, 7 Sep 2019 20:44:35 +0000 (16:44 -0400)]
DOC: MAKEFILE: Alphabetize lists
This patch alphebatizes and wraps the lists present in
doc/makefile.autosetup for issue #1835
Signed-off-by: Mark Stenglein <mark@stengle.in>
Mark Stenglein [Sat, 7 Sep 2019 16:26:03 +0000 (12:26 -0400)]
CONTRIB: MAKEFILE: Alphabetize lists
This patch alphabetizes and wraps the lists in this file for issue #1835
Signed-off-by: Mark Stenglein <mark@stengle.in>
Mark Stenglein [Sat, 7 Sep 2019 16:14:32 +0000 (12:14 -0400)]
AUTO.DEF: Alphabetize lists
This patch alphabetizes the lists present in this file for issue #1835
Signed-off-by: Mark Stenglein <mark@stengle.in>
Richard Russon [Wed, 4 Sep 2019 21:35:14 +0000 (22:35 +0100)]
doxygen: more defines
Richard Russon [Thu, 5 Sep 2019 21:09:45 +0000 (22:09 +0100)]
rename variable alph to hex
For clarity
Richard Russon [Wed, 4 Sep 2019 16:50:30 +0000 (17:50 +0100)]
fix spelling, whitespace
Pietro Cerutti [Thu, 5 Sep 2019 15:35:32 +0000 (16:35 +0100)]
Tidy the progress API (#1822)
* Start tidying the progress API
Issue #1180
* Zero increment is not used
* Reduce buffer size, 24 chars are enough for any size
* Tidy and clarify mutt_progress_init
* Let's keep the original bytes value in pos
* Restore rounding pos to inc
* Add mutt_progress_done, start using it
* Revert "Add mutt_progress_done, start using it"
This reverts commit
92073d9145b33e8ea9d37ecea41a1e6da4cb1058 .
Richard Russon [Thu, 5 Sep 2019 13:09:07 +0000 (14:09 +0100)]
docs: fix man page generation
Several small mistakes were causing the man pages to be generated
incorrectly.
Pietro Cerutti [Mon, 2 Sep 2019 09:41:24 +0000 (09:41 +0000)]
Fix mutt_autocrypthdr_new return type
Richard Russon [Sun, 1 Sep 2019 16:37:44 +0000 (17:37 +0100)]
merge: lots of tidying/renaming
* tidy code
* rename rfc1524.c to mailcap.c
* rename mailcap structs/functions
* unify new/free() functions 1
* unify new/free() functions 2
* unify new/free() functions 3
* myvarlist_free
Richard Russon [Sat, 31 Aug 2019 19:24:48 +0000 (20:24 +0100)]
myvarlist_free
Richard Russon [Sat, 31 Aug 2019 14:19:12 +0000 (15:19 +0100)]
unify new/free() functions 3
'Free' functions:
- Name ends in `_free()`
- Take a `**ptr`
- Creates a native pointer
- Sets pointer to `NULL`
Functions changed:
- compress_info_free()
- crypt_key_free()
- key_free()
- lookup_free()
- maildir_entry_free()
- maildir_free()
- menu_free()
- mhs_sequences_free()
- mix_type2_list_free()
- mutt_actx_entries_free()
- mutt_attachmatch_free()
- mutt_colors_free()
- mutt_color_free()
- mutt_color_list_free()
- mutt_keys_free()
- mutt_opts_free()
- myvar_free()
- parameter_free()
- pgp_key_free()
- pgp_uid_free()
- recipient_set_free()
- smime_key_free()
'New' functions:
- Name ends in `_new()`
- Must be a 'new' function if there's a 'free' function
Functions changed:
- lookup_new()
- maildir_entry_new()
- myvar_new()
Richard Russon [Sat, 31 Aug 2019 13:45:55 +0000 (14:45 +0100)]
unify new/free() functions 2
'Free' functions:
- Name ends in `_free()`
- Take a `**ptr`
- Creates a native pointer
- Sets pointer to `NULL`
Functions changed:
- color_line_free()
- mutt_actx_free()
- mutt_attachmatch_free()
- mutt_autocrypthdr_free()
- mutt_autocrypt_db_account_free()
- mutt_autocrypt_db_gossip_history_free()
- mutt_autocrypt_db_peer_free()
- mutt_autocrypt_db_peer_history_free()
'New' functions:
- Name ends in `_new()`
- Must be a 'new' function if there's a 'free' function
Functions changed:
- class_color_new()
- color_line_new()
- hash_new()
- mutt_actx_new()
- mutt_attachmatch_new()
- mutt_autocrypthdr_new()
- parameter_new()
- pgp_keyinfo_new()
Richard Russon [Sat, 31 Aug 2019 12:22:19 +0000 (13:22 +0100)]
unify new/free() functions 1
- Name ends in `_free()`
- Take a `**ptr`
- Creates a native pointer
- Sets pointer to `NULL`
Functions changed:
- cs_free()
- mailcap_entry_free()
- mutt_addr_free()
- mutt_alias_free()
- mutt_alias_new()
- mutt_body_free()
- mutt_enter_state_free()
- mutt_env_free()
- mutt_seqset_iterator_free()
- nntp_edata_free()
- query_free()
- remailer_free()
- remailer_new()
Richard Russon [Sat, 31 Aug 2019 12:33:50 +0000 (13:33 +0100)]
rename mailcap structs/functions
Richard Russon [Sat, 31 Aug 2019 12:29:20 +0000 (13:29 +0100)]
rename rfc1524.c to mailcap.c
Richard Russon [Sat, 31 Aug 2019 18:21:49 +0000 (19:21 +0100)]
tidy code
- rename variables: b to buf
- fix Buffer check
- remove redundant conditionals
Richard Russon [Sat, 31 Aug 2019 00:58:26 +0000 (01:58 +0100)]
merge: refactor Buffer handling
* Tidy some Buffer API, keep most buffers on the stack
* Keep spam member of struct Envelope by value
* Kill mutt_buffer_from
* Move buffer_new / buffer_free to static functions in pool.c
* Add mutt_buffer_make to create a Buffer on the stack
* Use mutt_buffer_is_empty instead of mutt_buffer_len where it makes sense
Pietro Cerutti [Fri, 30 Aug 2019 12:11:41 +0000 (12:11 +0000)]
Use mutt_buffer_is_empty instead of mutt_buffer_len where it makes sense
Pietro Cerutti [Tue, 27 Aug 2019 12:47:52 +0000 (12:47 +0000)]
Add mutt_buffer_make to create a Buffer on the stack
Pietro Cerutti [Tue, 27 Aug 2019 11:32:30 +0000 (11:32 +0000)]
Move buffer_new / buffer_free to static functions in pool.c
Pietro Cerutti [Tue, 27 Aug 2019 11:12:58 +0000 (11:12 +0000)]
Kill mutt_buffer_from
Pietro Cerutti [Tue, 27 Aug 2019 11:12:48 +0000 (11:12 +0000)]
Keep spam member of struct Envelope by value
Pietro Cerutti [Tue, 27 Aug 2019 08:48:54 +0000 (08:48 +0000)]
Tidy some Buffer API, keep most buffers on the stack
Richard Russon [Fri, 30 Aug 2019 17:29:01 +0000 (18:29 +0100)]
boolify 'optional' variables
Co-authored-by: Pietro Cerutti <gahr@gahr.ch>
Richard Russon [Thu, 29 Aug 2019 16:30:14 +0000 (17:30 +0100)]
rename Pattern members
Richard Russon [Thu, 29 Aug 2019 15:48:46 +0000 (16:48 +0100)]
doxy: tidy list comments
Richard Russon [Thu, 29 Aug 2019 13:12:16 +0000 (14:12 +0100)]
rename lists for consistency
- Move `entries` to end of the struct
- Separate declaration from use
- Rename `ColorLineHead` to `ColorLineList`
- Rename `LogList` to `LogLineList`
- Rename `MyVarHead` to `MyVarList`
- Rename `ObserverHead` to `ObserverList`
- Rename `PatternHead` to `PatternList`
- Rename `RegexListNode` to `RegexNode`
- Rename `ReplaceListNode` to `Replace`
- Rename `TagHead` to `TagList`
- Rename `TagNode` to `Tag`
- Rename `UrlQueryStringHead` to `UrlQueryList`
- Rename `UrlQueryString` to `UrlQuery`
Pietro Cerutti [Fri, 30 Aug 2019 11:43:48 +0000 (11:43 +0000)]
unify time handling
- Add mutt_date_epoch_ms API, convert gettimeofdays to use the new API
- Add mutt_date_sleep_ms as a general sleep API
Pietro Cerutti [Fri, 30 Aug 2019 11:54:18 +0000 (11:54 +0000)]
Remove useless abstraction
Richard Russon [Thu, 29 Aug 2019 14:10:16 +0000 (15:10 +0100)]
merge: light tidying
* clang-format
* pager: rename PagerRedrawData.index to menu
* drop: unused sha1 code
* rename two duplicate `struct Entry`
* rename two duplicate `struct Syntax`
Richard Russon [Thu, 29 Aug 2019 13:30:56 +0000 (14:30 +0100)]
rename two duplicate `struct Syntax`
Richard Russon [Thu, 29 Aug 2019 13:29:59 +0000 (14:29 +0100)]
rename two duplicate `struct Entry`
Richard Russon [Thu, 29 Aug 2019 09:56:13 +0000 (10:56 +0100)]
drop: unused sha1 code
Richard Russon [Wed, 28 Aug 2019 14:04:06 +0000 (15:04 +0100)]
pager: rename PagerRedrawData.index to menu
Richard Russon [Thu, 29 Aug 2019 13:38:57 +0000 (14:38 +0100)]
clang-format
Pietro Cerutti [Thu, 29 Aug 2019 09:46:29 +0000 (09:46 +0000)]
Make sure Progress doesn't reference an out-of-scope buffer
Cleanup mutt_progress_init's callers
Fixes: #1819
Pietro Cerutti [Tue, 27 Aug 2019 08:48:54 +0000 (08:48 +0000)]
Add: mailbox_path() to tidy Mailbox usage