]>
granicus.if.org Git - neomutt/log
Kevin McCarthy [Mon, 11 Mar 2019 09:38:58 +0000 (17:38 +0800)]
Add mutt_getcwd()
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Mon, 11 Mar 2019 09:38:18 +0000 (17:38 +0800)]
Add mutt_buffer_strcpy_n()
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Mon, 11 Mar 2019 09:04:28 +0000 (17:04 +0800)]
Fixes to mutt_buffer_expand_path()
Create _mutt_buffer_expand_path() with the rx argument.
Use mutt_b2s() instead of derefencing buffer->data in
mutt_buffer_expand_path(). The p->data uses were safe, but the
src->data was potentially not.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sun, 10 Mar 2019 05:27:11 +0000 (13:27 +0800)]
Add mutt_buffer_expand_path()
TODO: '@' expansion using mutt_default_save() is still using a fixed size
string parameter.
Convert imap_expand_path() and mutt_rx_sanitize_string() to use
BUFFERS instead.
Add url_ciss_tobuffer().
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sun, 10 Mar 2019 12:05:12 +0000 (20:05 +0800)]
Fix imap_pretty_mailbox() call to url_ciss_tostring()
Pass the correct buffer size through, so the strfcpy added in the next
commit doesn't write past the end of the buffer.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sun, 10 Mar 2019 02:03:52 +0000 (10:03 +0800)]
Improve imap uid seqset hcache buffer usage
mutt_buffer_increase_size() terminates the buffer, so there is no need
to explicitly check for an empty buffer after the
imap_msn_index_to_uid_seqset() call.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sun, 10 Mar 2019 01:58:07 +0000 (09:58 +0800)]
Minor buffer handling code cleanup
Use mutt_buffer_len() and mutt_buffer_clear() to make the code a bit
clearer. There are still places in the code that manipulate the
buffers directly (pattern.c, for example), but that doesn't mean we
shouldn't abstract the buffer where we can.
Add comments in a couple places where unusual buffer manipulation is
occurring.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sat, 9 Mar 2019 11:12:19 +0000 (19:12 +0800)]
Add "Message Composition Flow" section to manual
This provides a brief overview of the steps during message
composition, and shows when the various hooks are executed.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sat, 9 Mar 2019 07:03:00 +0000 (15:03 +0800)]
Expand a couple of the comments about charset
Make it clearer what BODY->charset is used for, and why we are
checking for !noconv during mailcap charset parameter expansion.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Fri, 8 Mar 2019 11:48:41 +0000 (19:48 +0800)]
Check noconv for mailcap %{charset} send mode expansion
Improve the previous commit by checking to make sure a->noconv also
isn't set. If noconv is set, we ignore any value a->charset might
have picked up during previous encoding checks.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Fri, 8 Mar 2019 10:06:52 +0000 (18:06 +0800)]
Fix mailcap %{charset} expansion in send mode
Use the current charset of the file for the parameter, since the file
hasn't been converted yet.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Mon, 4 Mar 2019 07:05:50 +0000 (15:05 +0800)]
Use gpgme recipient strings for encryption when available
For gpgme >= 1.11.0, use gpgme_op_encrypt_ext() and
gpgme_op_encrypt_sign_ext() to specify recipients as a string.
This allows '!' to specify forcing a subkey, as is the case in classic
gpg and from the command line.
Remove the '!' "force valid" usage for the newer version.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Fri, 22 Feb 2019 21:50:52 +0000 (13:50 -0800)]
Add $include_encrypted config to prevent reply-decryption attack
@jensvoid, in cooperation with Ruhr-Uni Bochum and FH Münster,
Germany, reported a possible "Oracle decryption" attack on various
mail clients. An attacker could include previously encrypted contents
they obtained access to, and include it in a message. Replying
without trimming would include the decrypted contents.
This attack relies on several "ifs", and is more dangerous for clients
that compose HTML mail. However, it is still an issue that an
unwary/busy Mutt user could fall for.
Add a new config $include_encrytped, defaulting off, to reduce the
possibility of the user being unaware of previously encrypted parts in
the reply. Only the main initial encrypted part will be included in
the reply.
Co-authored-by: Richard Russon <rich@flatcap.org>
Andrey Skvortsov [Thu, 21 Feb 2019 13:37:05 +0000 (16:37 +0300)]
Fix truncation of long filenames in attachments
Currently mutt truncates long filenames in attachments and doesn't
take into account UTF-8 character size. If filename is truncated in
the middle of multi-byte UTF-8 character (last character is bad),
then some mail clients assume whole attachment name bad and don't
display its name (use 'Noname' instead).
Filenames can be up to 255 *characters* long depending on used
filesystem. ReiserFS, NFTS, FAT, APFS and some other supports up to
255 characters.
In the worst case 255 characters in UTF-8 will take 255*4 = 1020
bytes. Every non-ascii byte in the filename will be encoded using 3
bytes (for example, %8D).
So 'Content-Disposition' will take in the worst case up to: 1020*3 =
3060 bytes. Therefore even LONG_STRING (1024) isn't enough.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Mon, 21 Jan 2019 23:19:08 +0000 (15:19 -0800)]
Fix raw socket read/write to follow expected behavior
The mutt_sasl.c code expects conn_write() to write the entire buffer.
This is inconsistent with mutt_socket.c, but since other conn_write()
implementations guarantee this, change raw_socket_write() to do so too
for now.
Also, update reading and writing to loop on EINTR, as gnutls does.
They won't return EAGAIN or EWOULDBLOCK because we don't mark sockets
as non-blocking.
Co-authored-by: Richard Russon <rich@flatcap.org>
Richard Russon [Tue, 9 Apr 2019 11:51:23 +0000 (12:51 +0100)]
merge: Tidy a lot of messages/translations
* add missing constants
* quote 'nametemplate'
* add space after question prompt
* remove []s from a question
* remove colons from questions
* use a question mark in the crypto questions
* use a question mark in the bounce question
* merge similar translation strings 1
* merge similar translation strings 2
* merge similar translation strings 2
* quote Content-Language
* quote alternatives
* quote multilingual
* quote multipart/alternative
* quote multipart/multilingual
* quote Content-Language
* reword relative path error message
* replace cannot with can't
* ensure (o)ptions' style
* mutt_debug
* sync translations
Richard Russon [Tue, 9 Apr 2019 11:51:06 +0000 (12:51 +0100)]
sync translations
Richard Russon [Fri, 5 Apr 2019 21:56:48 +0000 (22:56 +0100)]
mutt_debug
Tidy lots of debugging messages
Richard Russon [Fri, 5 Apr 2019 19:16:16 +0000 (20:16 +0100)]
ensure (o)ptions' style
Make sure all multi-choice options have their letters parenthesised.
Richard Russon [Fri, 5 Apr 2019 16:17:27 +0000 (17:17 +0100)]
replace cannot with can't
"can't" is used more often than "cannot", so use it everywhere.
Richard Russon [Fri, 5 Apr 2019 16:09:43 +0000 (17:09 +0100)]
reword relative path error message
Richard Russon [Fri, 5 Apr 2019 16:05:17 +0000 (17:05 +0100)]
quote Content-Language
'Content-Language' is a reserved keyword -- not to be translated
Richard Russon [Fri, 5 Apr 2019 16:03:06 +0000 (17:03 +0100)]
quote multipart/multilingual
'multipart/multilingual' is a reserved keyword -- not to be translated
Richard Russon [Fri, 5 Apr 2019 16:01:50 +0000 (17:01 +0100)]
quote multipart/alternative
'multipart/alternative' is a reserved keyword -- not to be translated
Richard Russon [Fri, 5 Apr 2019 15:59:26 +0000 (16:59 +0100)]
quote multilingual
'multilingual' is a reserved keyword -- not to be translated
Richard Russon [Fri, 5 Apr 2019 15:57:21 +0000 (16:57 +0100)]
quote alternatives
'alternatives' is a reserved keyword -- not to be translated
Richard Russon [Fri, 5 Apr 2019 15:54:25 +0000 (16:54 +0100)]
quote Content-Language
'Content-Language' is a reserved keyword -- not to be translated
Richard Russon [Fri, 5 Apr 2019 15:47:04 +0000 (16:47 +0100)]
merge similar translation strings 2
- brackets
- parentheses
Richard Russon [Fri, 5 Apr 2019 15:38:58 +0000 (16:38 +0100)]
merge similar translation strings 2
- Compressing %s...
- Compressing %s
Richard Russon [Fri, 5 Apr 2019 15:35:03 +0000 (16:35 +0100)]
merge similar translation strings 1
- Can't create %s %s
- Can't create %s: %s
Richard Russon [Fri, 5 Apr 2019 15:21:31 +0000 (16:21 +0100)]
use a question mark in the bounce question
Richard Russon [Fri, 5 Apr 2019 15:03:39 +0000 (16:03 +0100)]
use a question mark in the crypto questions
Richard Russon [Fri, 5 Apr 2019 15:00:12 +0000 (16:00 +0100)]
remove colons from questions
Remove the :'s to align the style with other questions.
Richard Russon [Fri, 5 Apr 2019 14:59:22 +0000 (15:59 +0100)]
remove []s from a question
Remove the []s to align the style with other questions.
Richard Russon [Fri, 5 Apr 2019 14:38:51 +0000 (15:38 +0100)]
add space after question prompt
Change the code to print a space after a question.
This simplifies the translation strings.
Richard Russon [Fri, 5 Apr 2019 14:40:41 +0000 (15:40 +0100)]
quote 'nametemplate'
'nametemplate' is a reserved keyword -- not to be translated
Richard Russon [Fri, 5 Apr 2019 14:38:28 +0000 (15:38 +0100)]
add missing constants
- mutt_debug()
- mutt_yesorno()
Pietro Cerutti [Thu, 4 Apr 2019 11:50:25 +0000 (11:50 +0000)]
Get rid of one-shot macro
Pietro Cerutti [Thu, 4 Apr 2019 07:28:03 +0000 (07:28 +0000)]
Disable mailbox notify on close
This fixes a crash when two mailboxes have been opened within a session,
and an 'unmailboxes *' command is issued. In this case, both the current
mailbox and the previously opened mailbox have a non-NULL `notify`
member. The notify method assumes the mailbox is currently active within
the context. The context gets thus doubly freed.
Richard Russon [Thu, 4 Apr 2019 10:38:23 +0000 (11:38 +0100)]
merge: trivial fixes
* clang-format
* add parentheses around logic-with-spaces
* boolify: mutt_simple_format()
* rename locals to avoid clash
* add: enum FormatJustify
* doxy: tidying
Richard Russon [Wed, 3 Apr 2019 13:32:15 +0000 (14:32 +0100)]
doxy: tidying
Richard Russon [Mon, 1 Apr 2019 17:36:51 +0000 (18:36 +0100)]
add: enum FormatJustify
Richard Russon [Mon, 1 Apr 2019 17:09:57 +0000 (18:09 +0100)]
rename locals to avoid clash
We're using the `C_` prefix for config variables.
Richard Russon [Mon, 1 Apr 2019 17:08:16 +0000 (18:08 +0100)]
boolify: mutt_simple_format()
Richard Russon [Mon, 1 Apr 2019 16:50:25 +0000 (17:50 +0100)]
add parentheses around logic-with-spaces
Richard Russon [Mon, 1 Apr 2019 16:47:53 +0000 (17:47 +0100)]
clang-format
Richard Russon [Mon, 1 Apr 2019 17:16:12 +0000 (17:16 +0000)]
unify variable naming
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