]>
granicus.if.org Git - neomutt/log
Pietro Cerutti [Tue, 2 Apr 2019 10:47:28 +0000 (10:47 +0000)]
Make sure email size is consistently computed in status bar and index
Pietro Cerutti [Mon, 1 Apr 2019 15:47:55 +0000 (15:47 +0000)]
Display B for bytes when pretty-printing a size
Pietro Cerutti [Mon, 1 Apr 2019 12:38:17 +0000 (13:38 +0100)]
Fix dependencies of libemail
Fixes #1618
Pietro Cerutti [Fri, 29 Mar 2019 10:52:36 +0000 (10:52 +0000)]
Fix bogus mailbox size accounting
Mehdi Abaakouk [Mon, 14 Jan 2019 20:16:02 +0000 (21:16 +0100)]
tags: Use STAILQ instead of strsep
This change introduces a new string function mutt_str_split(src, sep) to
return a STAILQ of the split string.
This new funtion is used first in tags code.
Christian Storm [Fri, 29 Mar 2019 11:54:05 +0000 (12:54 +0100)]
fix further crash in ci_send_message()
Signed-off-by: Christian Storm <storm@mailbox.org>
Richard Russon [Fri, 29 Mar 2019 11:46:36 +0000 (11:46 +0000)]
merge: update translations
* Update Spanish translation
* po/zh_CN: complete translation
* swedish: fix option typo
* Update Finnish translation
* spanish: pgp-menu multioptions fixed
* update German translation
* trans: fix smime questions
* sync translations
Richard Russon [Fri, 29 Mar 2019 11:44:24 +0000 (11:44 +0000)]
sync translations
ryt [Fri, 29 Mar 2019 11:04:06 +0000 (11:04 +0000)]
trans: fix smime questions
ryt [Fri, 29 Mar 2019 11:03:25 +0000 (11:03 +0000)]
update German translation
Victor Fernandes [Mon, 25 Mar 2019 17:07:46 +0000 (18:07 +0100)]
spanish: pgp-menu multioptions fixed
Perry Thompson [Mon, 25 Mar 2019 16:50:15 +0000 (11:50 -0500)]
Update Finnish translation
Richard Russon [Sun, 24 Mar 2019 14:24:18 +0000 (14:24 +0000)]
swedish: fix option typo
Mingcong Bai [Sat, 16 Mar 2019 17:54:39 +0000 (12:54 -0500)]
po/zh_CN: complete translation
Nagefire [Tue, 12 Mar 2019 14:53:48 +0000 (08:53 -0600)]
Update Spanish translation
Richard Russon [Wed, 27 Mar 2019 23:55:16 +0000 (23:55 +0000)]
tidy maildir_move_to_mailbox
Richard Russon [Fri, 29 Mar 2019 00:15:26 +0000 (00:15 +0000)]
tidy memory functions
- reduce scope of variables
- test scalars against 0
Austin Ray [Fri, 29 Mar 2019 00:09:37 +0000 (20:09 -0400)]
memory: return NULL, not 0
mutt_mem_free() should return NULL, instead of 0, to match code style[0]
[0] https://neomutt.org/dev/coding-style#distinguish-between-0-and-null
Richard Russon [Fri, 29 Mar 2019 11:25:25 +0000 (11:25 +0000)]
merge: Style Menu Options
* add mutt_window_mvaddnstr()
* Style Menu Options
* smime: unify multi-option questions
ryt [Fri, 29 Mar 2019 10:55:21 +0000 (10:55 +0000)]
smime: unify multi-option questions
Change the questions to match the rest of NeoMutt.
From:
"1: apple, 2: banana"
to
"(1) apple, (2) banana"
ryt [Fri, 22 Mar 2019 15:11:40 +0000 (15:11 +0000)]
Style Menu Options
Closes: #1181
Co-authored-by: Mehdi Abaakouk <sileht@sileht.net>
Co-authored-by: Pietro Cerutti <gahr@gahr.ch>
ryt [Fri, 22 Mar 2019 14:51:24 +0000 (14:51 +0000)]
add mutt_window_mvaddnstr()
Richard Russon [Wed, 27 Mar 2019 18:22:15 +0000 (18:22 +0000)]
clang-format
Darshit Shah [Tue, 26 Mar 2019 10:06:54 +0000 (11:06 +0100)]
sidebar(update_entries_visibility): Use bool instead of short for booleans
Darshit Shah [Tue, 26 Mar 2019 07:40:11 +0000 (08:40 +0100)]
sidebar: New option to display only non-empty mailboxes
Adds a new option $sidebar_only_non_empty_mailboxes which forces neomutt
to display only the mailboxes that have atleast one mail in them. This
option will also work in tandem with the existing $side_new_mail_only
Darshit Shah [Tue, 26 Mar 2019 07:08:07 +0000 (08:08 +0100)]
sidebar: Refactor visibility detection
Darshit Shah [Tue, 26 Mar 2019 06:56:29 +0000 (07:56 +0100)]
sidebar: Use an explicit fast path for checking visibility
Richard Russon [Wed, 27 Mar 2019 16:46:15 +0000 (16:46 +0000)]
increase space for key name
We need enough space for '<backspace>'.
Jakub Jindra [Thu, 7 Mar 2019 17:31:51 +0000 (18:31 +0100)]
implement unbind and unmacro commands
Richard Russon [Tue, 26 Mar 2019 12:07:11 +0000 (12:07 +0000)]
lua: fix command-line processing
The 'lua' command uses the entire line of text.
Clear the Buffer so that NeoMutt doesn't try to interpret it.
Fixes #1610
Richard Russon [Mon, 25 Mar 2019 16:05:18 +0000 (16:05 +0000)]
doxy: fix function comments
Richard Russon [Sat, 23 Mar 2019 22:36:43 +0000 (22:36 +0000)]
doxy: css fixes
Richard Russon [Mon, 25 Mar 2019 15:42:58 +0000 (15:42 +0000)]
fix out-of-tree test/pattern build
Naveen Nathan [Sun, 6 Jan 2019 01:55:25 +0000 (12:55 +1100)]
test: add pattern compilation tests
Closes #1522
Naveen Nathan [Mon, 7 Jan 2019 17:07:30 +0000 (04:07 +1100)]
pattern: change Pattern to use SLIST_* macros
Resolves #1224
Roger Pau Monne [Sun, 18 Mar 2018 16:00:08 +0000 (16:00 +0000)]
slang/color: parse direct-color values in 24bit hex format
And render them using SLtt_set_color.
The way to use direct-color values in the config file is:
color status "#ff0000" "#630000"
Note that the '#' needs to be quoted in order to avoid discarding it
as a comment.
At the moment there's no way to use direct color values with ncurses,
so this feature is only supported when using slang.
Tested on iTerm 3.1.5 with s-lang 2.3.1a.
Roger Pau Monne [Sun, 18 Mar 2018 16:00:08 +0000 (16:00 +0000)]
color: switch color types to uint32_t
So they can be used to store truecolor values which are 24bits.
Austin Ray [Fri, 22 Mar 2019 12:27:08 +0000 (08:27 -0400)]
notmuch: close thread queries' hcache on SigInt (#1606)
Ensure read_threads_query() behaves the same as read_mesgs_query() when
receiving SigInt.
Richard Russon [Fri, 22 Mar 2019 00:08:02 +0000 (00:08 +0000)]
docs: update credits
Richard Russon [Thu, 21 Mar 2019 15:47:08 +0000 (15:47 +0000)]
maildir: remove unnecessary function
Richard Russon [Wed, 20 Mar 2019 00:30:53 +0000 (00:30 +0000)]
()s on ternary
Richard Russon [Tue, 19 Mar 2019 19:36:43 +0000 (19:36 +0000)]
comment summary bindings
Richard Russon [Tue, 19 Mar 2019 19:25:58 +0000 (19:25 +0000)]
compress: rename command strings
Distinguish them from other structs' members.
Richard Russon [Mon, 18 Mar 2019 22:46:59 +0000 (22:46 +0000)]
logging: improve range logic
Pietro Cerutti [Thu, 21 Mar 2019 12:30:36 +0000 (12:30 +0000)]
Make NotMuch hcache-aware
Closes: #1600
Alyssa Ross [Thu, 21 Mar 2019 10:44:48 +0000 (10:44 +0000)]
Fix table in man page
Previously:
/usr/bin/tbl:<standard input>:824: unrecognised format `\'
/usr/bin/tbl:<standard input>:824: giving up on this table
It seems the period after table headers must be on its own line.
Richard Russon [Mon, 18 Mar 2019 22:14:12 +0000 (22:14 +0000)]
merge: trivial fixes
* trivial ()s and NUL
* pop: add typedef for pop_fetch_data()
* doxy: add links
* more NULs
* fix typos
* add checks to imap_account_match()
* add check to imap_adata_find()
* maildir: rename context functions
* add flags to maildir_mbox_check()
Richard Russon [Sun, 17 Mar 2019 22:00:31 +0000 (22:00 +0000)]
add flags to maildir_mbox_check()
Richard Russon [Sun, 17 Mar 2019 21:35:11 +0000 (21:35 +0000)]
maildir: rename context functions
These functions now work with Mailboxes:
- maildir_add_to_context()
- maildir_move_to_context()
Richard Russon [Sat, 16 Mar 2019 13:02:52 +0000 (13:02 +0000)]
add check to imap_adata_find()
Richard Russon [Sat, 16 Mar 2019 12:42:57 +0000 (12:42 +0000)]
add checks to imap_account_match()
Richard Russon [Fri, 15 Mar 2019 16:32:15 +0000 (16:32 +0000)]
fix typos
Richard Russon [Thu, 14 Mar 2019 00:17:41 +0000 (00:17 +0000)]
more NULs
Richard Russon [Tue, 12 Mar 2019 15:27:46 +0000 (15:27 +0000)]
doxy: add links
Richard Russon [Mon, 11 Mar 2019 23:18:18 +0000 (23:18 +0000)]
pop: add typedef for pop_fetch_data()
Richard Russon [Mon, 11 Mar 2019 19:54:10 +0000 (19:54 +0000)]
trivial ()s and NUL
Pietro Cerutti [Fri, 15 Mar 2019 12:27:16 +0000 (12:27 +0000)]
Do not prepend "attach_save_dir" to an absolute path
This happens when saving multiple attachment. Assume `attach_save_dir = ./`.
When saving multiple attachments to `/tmp/att`, the proposed path
becomes `.//tmp/att`.
Pietro Cerutti [Thu, 14 Mar 2019 11:04:44 +0000 (11:04 +0000)]
hcache: fix hash generator
`struct Header` was renamed to `struct Email`
Fixes: #1595
Victor Fernandes [Thu, 28 Feb 2019 18:28:14 +0000 (19:28 +0100)]
added: localtime_r/gmtime_r wrappers
Fixes: #1571
Kevin McCarthy [Wed, 13 Mar 2019 04:06:11 +0000 (12:06 +0800)]
Fix incorrect IMAP message purging bug.
Thanks to Ivan Middleton @imiddle for the awesome bug report and
suggested fix.
The bug is most easily generated using Gmail with the $trash variable
set.
Deleted messages are first copied to the $trash folder. If this is
set to "[Gmail]/Trash", then Gmail inteprets the copy as a "delete"
and sends EXPUNGE messages back for the messages.
cmd_parse_expunge() and cmd_parse_vanished() set the hdr->index to
INT_MAX, which subsequently an imap_expunge_mailbox() will use to
remove the messages from the local mailbox.
If we close the mailbox instead of sync it, Mutt will end up executing
the 'Deleted' flag setting before processing the expunge (because
"imap_check_mailbox() -> imap_cmd_finish()' doesn't set check_status
when we are closing). The expunged messages will then be included in
the set of 'Deleted' flags.
Unfortunately, because the messages are sorted by *index* before
msgset generation, an incorrect range of UIDs will be sent, which
could easily include messages that should not be deleted.
This fix is a minimal fix for a stable bug fix excluding
messages with the index set to INT_MAX from all msg sets. Other
things that should be investigated in master are:
- sorting by UID instead of index before msgset generation
- unsetting the 'active' flag in cmd_parse_expunge() and
cmd_parse_vanished() instead of waiting until imap_expunge_mailbox()
to do so.
Co-authored-by: Richard Russon <rich@flatcap.org>
Pietro Cerutti [Mon, 11 Mar 2019 17:18:02 +0000 (17:18 +0000)]
Fix opening IMAP messages when the body cache is disabled
Fixes #1574
Richard Russon [Mon, 11 Mar 2019 13:53:01 +0000 (13:53 +0000)]
mx: fix mbox double free
Fixes: #1597
Pietro Cerutti [Mon, 11 Mar 2019 08:32:46 +0000 (08:32 +0000)]
Fix pointer assignment to '\0' introduced in 495153
Richard Russon [Sat, 9 Mar 2019 23:44:11 +0000 (23:44 +0000)]
merge: merge translations
* Corrected several minor errors in the spanish translation
* Update Czech translation
* More miscellaneous improvements to spanish localization
* Added a few miscellaneous translations
* Update lt_LT translation
* Polish translation update
* update po files list
* sync translations
Richard Russon [Sat, 9 Mar 2019 23:37:47 +0000 (23:37 +0000)]
sync translations
Richard Russon [Sat, 9 Mar 2019 23:29:26 +0000 (23:29 +0000)]
update po files list
Marcin Rajner [Fri, 25 Jan 2019 16:48:14 +0000 (17:48 +0100)]
Polish translation update
Marius Gedminas [Thu, 24 Jan 2019 12:52:58 +0000 (14:52 +0200)]
Update lt_LT translation
Fixed three new fuzzy entries and a lot of typos in old translations
because I decided to do a spell check on a whim.
Nagefire [Sun, 3 Feb 2019 17:06:48 +0000 (10:06 -0700)]
Added a few miscellaneous translations
Nagefire [Tue, 15 Jan 2019 04:06:51 +0000 (21:06 -0700)]
More miscellaneous improvements to spanish localization
David Sterba [Fri, 11 Jan 2019 16:52:52 +0000 (17:52 +0100)]
Update Czech translation
Nagefire [Mon, 14 Jan 2019 17:44:07 +0000 (10:44 -0700)]
Corrected several minor errors in the spanish translation
Richard Russon [Sun, 3 Mar 2019 17:06:48 +0000 (17:06 +0000)]
iwyu: optimise #includes
Richard Russon [Fri, 8 Mar 2019 23:18:20 +0000 (23:18 +0000)]
use SecurityFlags more
Some functions missed out on the earlier upgrade.
Richard Russon [Sat, 9 Mar 2019 14:44:05 +0000 (14:44 +0000)]
merge: Use NUL or NULL rather than 0
* Use NUL or NULL rather than 0 when setting
* Test string contents against NUL (==)
* Test string contents against NUL (!=)
Richard Russon [Sat, 9 Mar 2019 14:09:18 +0000 (14:09 +0000)]
Test string contents against NUL (!=)
```diff
- while (*buf)
+ while (*buf != '\0')
```
```diff
- if (bestname[0] != 0)
+ if (bestname[0] != '\0')
```
Richard Russon [Sat, 9 Mar 2019 14:08:09 +0000 (14:08 +0000)]
Test string contents against NUL (==)
```diff
- if (!bestname[0])
+ if (bestname[0] == '\0')
```
```diff
- if (dest[0] == 0)
+ if (dest[0] == '\0')
```
Richard Russon [Sat, 9 Mar 2019 13:39:18 +0000 (13:39 +0000)]
Use NUL or NULL rather than 0 when setting
This helps to reinforce the variables' types when reading the code.
```diff
char buf[10];
-buf[0] = 0;
+buf[0] = '\0';
```
```diff
void *ptr;
-ptr = 0;
+ptr = NULL;
```
Richard Russon [Sat, 9 Mar 2019 14:43:15 +0000 (14:43 +0000)]
merge: trivial tidying
* Rename variables: string -> str
* docs: fix typos
* fix comments
* tidy L10N comments
* fix block comments
* fold comments
Richard Russon [Fri, 8 Mar 2019 17:36:37 +0000 (17:36 +0000)]
fold comments
Richard Russon [Fri, 8 Mar 2019 17:05:57 +0000 (17:05 +0000)]
fix block comments
Richard Russon [Thu, 7 Mar 2019 00:36:25 +0000 (00:36 +0000)]
tidy L10N comments
Richard Russon [Thu, 7 Mar 2019 00:16:09 +0000 (00:16 +0000)]
fix comments
Richard Russon [Wed, 6 Mar 2019 16:34:30 +0000 (16:34 +0000)]
docs: fix typos
Richard Russon [Thu, 7 Mar 2019 00:41:28 +0000 (00:41 +0000)]
Rename variables: string -> str
Consistent variable naming makes the code easier to read.
Richard Russon [Thu, 7 Mar 2019 03:28:31 +0000 (03:28 +0000)]
fix pre-increment in for loops
In for loops, there's no difference in behaviour between:
`for (int i = 0; i < 10; ++i)`
`for (int i = 0; i < 10; i++)`
Use the C form, `i++`, for consistency.
Richard Russon [Thu, 7 Mar 2019 00:20:01 +0000 (00:20 +0000)]
move switch/case break
Move the `break` inside the {}s of a case statement (for consistency).
Richard Russon [Fri, 8 Mar 2019 21:45:13 +0000 (21:45 +0000)]
move group to email
group.[ch] have dependencies on Address, so they should live in libemail.
Pietro Cerutti [Thu, 7 Mar 2019 12:42:10 +0000 (12:42 +0000)]
Disable all history operations if history is not enabled
Fixes #1592
Pietro Cerutti [Thu, 7 Mar 2019 08:49:50 +0000 (08:49 +0000)]
Fix composing a new message (again)
The old code had crept in again in 028c34.
Richard Russon [Wed, 6 Mar 2019 23:10:14 +0000 (23:10 +0000)]
add parentheses to conditionals
(flatcap discovers uncrustify)
Jakub Jindra [Mon, 4 Mar 2019 12:38:51 +0000 (13:38 +0100)]
ifdef: add support for environment variables
This allows the user to make config decisions based on the existence of
environment variables. e.g.
ifdef PS1 source interactive.rc
Richard Russon [Tue, 5 Mar 2019 12:08:19 +0000 (12:08 +0000)]
drop devel script
Committed by accident
[ci skip]
Richard Russon [Tue, 5 Mar 2019 01:36:41 +0000 (01:36 +0000)]
merge: lots of tidying
* fp prefix
* return r
* return ret
* return result
* rename SHA1 contexts
* rename MD5 contexts
* create enum SortType
* add typedef for PatternFlags
* use enum QuadOption for query_quadoption(), mutt_yesorno()
* separate enum for mutt_view_attachment()
* separate enum for mailcap lookups
* separate enum for mutt_save_attachment()
* separate enums for pattern types
* create TreeChar enum for tree characters
Richard Russon [Mon, 4 Mar 2019 16:10:19 +0000 (16:10 +0000)]
create TreeChar enum for tree characters
Richard Russon [Mon, 4 Mar 2019 17:19:25 +0000 (17:19 +0000)]
separate enums for pattern types
Richard Russon [Mon, 4 Mar 2019 15:37:24 +0000 (15:37 +0000)]
separate enum for mutt_save_attachment()
Richard Russon [Mon, 4 Mar 2019 15:08:50 +0000 (15:08 +0000)]
separate enum for mailcap lookups
Richard Russon [Mon, 4 Mar 2019 14:38:07 +0000 (14:38 +0000)]
separate enum for mutt_view_attachment()
Richard Russon [Mon, 4 Mar 2019 14:19:06 +0000 (14:19 +0000)]
use enum QuadOption for query_quadoption(), mutt_yesorno()