]>
granicus.if.org Git - neomutt/log
Daniel Kahn Gillmor [Sun, 14 Jul 2019 01:49:05 +0000 (21:49 -0400)]
Omit User-Agent: header by default
The User-Agent: header can be fun and interesting and useful for
debugging, but it also leaks quite a bit of information about the user
and their software stack.
This represents a potential security risk (attackers can target the
particular stack) and also an anonymity risk (a user trying to
preserve their anonymity by sending mail from a non-associated account
might reveal quite a lot of information if their choice of mail user
agent is exposed).
Users who want to configure `user_agent` to `yes` can still do so, but
it makes sense to have safer defaults.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Fri, 28 Jun 2019 19:57:24 +0000 (12:57 -0700)]
Don't read or save history if $history_file isn't set
Co-authored-by: Richard Russon <rich@flatcap.org>
Richard Russon [Mon, 15 Jul 2019 19:36:40 +0000 (20:36 +0100)]
change Command to use intptr_t
Richard Russon [Mon, 15 Jul 2019 16:24:40 +0000 (17:24 +0100)]
fix browser attach
Richard Russon [Mon, 15 Jul 2019 15:32:04 +0000 (16:32 +0100)]
sync translations
Richard Russon [Sun, 23 Jun 2019 12:24:40 +0000 (13:24 +0100)]
fix re-opening attachments
When opening an attachment with a two part suffix, e.g. `.tar.gz`
NeoMutt created a temporary file with just `.gz`.
Hack the splitting logic to give a useful suffix
Fixes: #1699
Federico Kircheis [Sun, 14 Jul 2019 07:24:09 +0000 (09:24 +0200)]
Avoid implicit conversion between bool and quadopt
Make the conversion between `bool and `QuadOption` explicit, and avoid
depending on the underlying `enum` value.
Also state that `mutt_yesorno` works correctly for `MUTT_YES` and `MUTT_NO`
Federico Kircheis [Wed, 10 Jul 2019 07:20:42 +0000 (09:20 +0200)]
Make callback take const param
Otherwise a realloc is potentnially unsafe
Federico Kircheis [Sun, 14 Jul 2019 07:13:53 +0000 (09:13 +0200)]
Initialize the variable `index_hint`
Prior to this commit, `index_hint` is initialized if `Context && !attach_msg`.
If `query_quadoption(C_Quit, _("Quit NeoMutt?")) == MUTT_YES`,
`!Context || ((check = mx_mbox_close(&Context)) == 0)` is `false` and
`(check == MUTT_NEW_MAIL) || (check == MUTT_REOPENED)` the function `update_index`
is called with parameter `index_hint`.
As one of the condition is `query_quadoption(C_Quit, _("Quit NeoMutt?")) == MUTT_YES`,
the real current position is probably not so important.
Richard Russon [Sat, 13 Jul 2019 23:39:22 +0000 (00:39 +0100)]
merge: account preparations
* split up mailbox.c
* notify: add global notifications
* neomutt: move AllAccounts
* notify: add Account Events
* refactor users of AllMailboxes
* drop AllMailboxes
* account: add mailbox_add()
* notify: add Mailbox Events
* notify: drop old Context notifications
* config: add config subsets
* config: convert to subset
* mailbox: rename desc to name
* create libcore
Richard Russon [Fri, 28 Jun 2019 12:19:34 +0000 (13:19 +0100)]
version: add colour for devel features
Richard Russon [Fri, 12 Jul 2019 15:16:39 +0000 (16:16 +0100)]
create libcore
Richard Russon [Sat, 13 Jul 2019 22:03:49 +0000 (23:03 +0100)]
doxygen: Address struct members
Richard Russon [Fri, 12 Jul 2019 13:17:06 +0000 (14:17 +0100)]
mailbox: rename desc to name
Richard Russon [Sat, 13 Jul 2019 18:36:14 +0000 (19:36 +0100)]
doxygen: Email struct members
Richard Russon [Thu, 11 Jul 2019 11:12:27 +0000 (12:12 +0100)]
config: convert to subset
Richard Russon [Sat, 13 Jul 2019 18:29:50 +0000 (19:29 +0100)]
gitignore: drop old test binaries
Richard Russon [Wed, 10 Jul 2019 16:37:29 +0000 (17:37 +0100)]
config: add config subsets
Richard Russon [Wed, 10 Jul 2019 16:09:21 +0000 (17:09 +0100)]
notify: drop old Context notifications
Richard Russon [Tue, 9 Jul 2019 14:23:50 +0000 (15:23 +0100)]
notify: add Mailbox Events
Richard Russon [Tue, 9 Jul 2019 14:12:55 +0000 (15:12 +0100)]
account: add mailbox_add()
Richard Russon [Thu, 4 Jul 2019 15:01:02 +0000 (16:01 +0100)]
drop AllMailboxes
Richard Russon [Wed, 3 Jul 2019 21:37:52 +0000 (22:37 +0100)]
refactor users of AllMailboxes
Richard Russon [Wed, 3 Jul 2019 10:01:13 +0000 (11:01 +0100)]
notify: add Account Events
Richard Russon [Mon, 1 Jul 2019 16:28:40 +0000 (17:28 +0100)]
neomutt: move AllAccounts
Richard Russon [Wed, 3 Jul 2019 10:20:15 +0000 (11:20 +0100)]
notify: add global notifications
Richard Russon [Thu, 11 Jul 2019 12:26:54 +0000 (13:26 +0100)]
split up mailbox.c
Richard Russon [Sat, 13 Jul 2019 23:13:34 +0000 (00:13 +0100)]
merge: Improve const-correctness
* Improve const-correctness
* Do not cast const qualifier from sort callbacks
* Make const discards more explicit
* Remove useless cast
Federico Kircheis [Wed, 10 Jul 2019 18:30:30 +0000 (20:30 +0200)]
Remove useless cast
Federico Kircheis [Wed, 10 Jul 2019 18:30:30 +0000 (20:30 +0200)]
Make const discards more explicit
Federico Kircheis [Wed, 10 Jul 2019 18:30:30 +0000 (20:30 +0200)]
Do not cast const qualifier from sort callbacks
If `const void*` points to an instance of type `T`, then it should be
casted to a `const T*` instance.
If `const void*` is a pointer to an instance of type `T`, then the pointer
is `const T*`.
The instance could be `const`, or could be not, but to be on the safe
side, it's casted to `T const *const *`.
In the case of pointer-to-pointer, `const` is on the right to ease
readability; from right to leaft it reads:
A pointer to a const pointer to a const T.
Federico Kircheis [Wed, 10 Jul 2019 18:30:30 +0000 (20:30 +0200)]
Improve const-correctness
of
* convert_file_to
* get_quote_level
* mutt_write_one_header
* classify_quote
* gen_string_hash
* gen_case_string_hash
* mutt_buffer_enter_fname_full
* parse_references
Federico Kircheis [Sun, 7 Jul 2019 11:04:51 +0000 (13:04 +0200)]
Avoid using reserved identifiers
Found with `clang -Wreserved-id-macro`
Richard Russon [Sat, 6 Jul 2019 11:46:20 +0000 (12:46 +0100)]
merge: trivial fixes
* rename templates
* drop old refs to struct Header
* unify naming of Email vars/params
* unify naming of Mailbox vars/params
* doxy: unify MXAPI comments
* notmuch: fix prototypes
Richard Russon [Sat, 6 Jul 2019 11:10:47 +0000 (12:10 +0100)]
notmuch: fix prototypes
Richard Russon [Fri, 5 Jul 2019 15:46:26 +0000 (16:46 +0100)]
doxy: unify MXAPI comments
Richard Russon [Fri, 5 Jul 2019 14:33:05 +0000 (15:33 +0100)]
unify naming of Mailbox vars/params
Richard Russon [Fri, 5 Jul 2019 14:04:53 +0000 (15:04 +0100)]
unify naming of Email vars/params
Richard Russon [Fri, 5 Jul 2019 13:08:07 +0000 (14:08 +0100)]
drop old refs to struct Header
Richard Russon [Fri, 5 Jul 2019 14:27:35 +0000 (15:27 +0100)]
rename templates
Federico Kircheis [Sat, 6 Jul 2019 05:23:54 +0000 (07:23 +0200)]
Rename typedef to ParseDateRangeFlags
As there is another definition of PatternFlags
Richard Russon [Fri, 5 Jul 2019 11:19:00 +0000 (12:19 +0100)]
merge: trivial fixes
* fix whitespace
* add missing flag
* fix compress local init
* sidebar: pass in Mailbox
* debug: fix levels and messages
* tags: fix leak
* notify: fix observer retval
* drop nm_description_to_path() - unused
* rename locals for consistency
* rename account_remove_mailbox()
* monitor #define -> enum
Richard Russon [Fri, 5 Jul 2019 09:49:55 +0000 (10:49 +0100)]
monitor #define -> enum
Richard Russon [Wed, 3 Jul 2019 12:58:35 +0000 (13:58 +0100)]
rename account_remove_mailbox()
Richard Russon [Thu, 4 Jul 2019 18:41:57 +0000 (19:41 +0100)]
rename locals for consistency
Richard Russon [Wed, 3 Jul 2019 12:51:27 +0000 (13:51 +0100)]
drop nm_description_to_path() - unused
Richard Russon [Tue, 2 Jul 2019 14:27:28 +0000 (15:27 +0100)]
notify: fix observer retval
Richard Russon [Tue, 2 Jul 2019 13:54:39 +0000 (14:54 +0100)]
tags: fix leak
Richard Russon [Thu, 4 Jul 2019 17:20:49 +0000 (18:20 +0100)]
debug: fix levels and messages
Richard Russon [Thu, 4 Jul 2019 16:14:06 +0000 (17:14 +0100)]
sidebar: pass in Mailbox
Richard Russon [Mon, 1 Jul 2019 13:05:41 +0000 (14:05 +0100)]
fix compress local init
Richard Russon [Mon, 1 Jul 2019 11:01:13 +0000 (12:01 +0100)]
add missing flag
Richard Russon [Mon, 17 Jun 2019 16:30:42 +0000 (17:30 +0100)]
fix whitespace
Richard Russon [Fri, 5 Jul 2019 10:06:39 +0000 (11:06 +0100)]
merge: Avoid using c++ reserved identifiers
* Replace `try` variable with `user`
* Replace `virtual` variable with `vnum`
* Replace `template` variable with `tmpl`
* Replace `catch` variable with `restore`
* Replace `new` variable with `has_new_mail`
* Replace `new` variable with`new_file`
* Replace `public` variable with `only_public_key`
* Replace `delete` variable with `delete_original`
* Replace `new` variable with `mark_new`
* Replace `new` variable with `al_new`
* Replace `new` variable with `alias`
* Replace `new` variable with `ap`
* Replace `new` with `pnew`
* Unify `body_new` name instances
* Replace `new` variable with `add`
* Replace `new` variable with `new_mail`
* Replace `new` variable with `new_tag`
* Replace `new` variable with `new_label`
* Replace `new` variable with `tnew`
* Replace `new` variable with `new_mail`
* Replace `delete` variable with `delete_header`
* Replace `this` variable with `ctx_cur`
* Replace `this` variable with `key`
* Replace `class` variable with `qc`
* Replace `new` variable with `new_param`
* Replace `new` variable with `new_label`
* Replace `class` member with `flags`
* Replace `not` member with `pat_not`
* Replace `or` member with `pat_or`
* Fix functions declarations/definitions
Federico Kircheis [Thu, 4 Jul 2019 15:39:19 +0000 (17:39 +0200)]
Fix functions declarations/definitions
As the function declaration and definition did not match up
Federico Kircheis [Sat, 29 Jun 2019 19:27:34 +0000 (21:27 +0200)]
Replace `or` member with `pat_or`
It clashes with the alternate operators
Federico Kircheis [Sat, 29 Jun 2019 12:56:18 +0000 (14:56 +0200)]
Replace `not` member with `pat_not`
It clashes with the alternate operators
Federico Kircheis [Sun, 30 Jun 2019 03:30:19 +0000 (05:30 +0200)]
Replace `class` member with `flags`
As it's reserved in C++
Federico Kircheis [Thu, 4 Jul 2019 18:18:15 +0000 (20:18 +0200)]
Replace `new` variable with `new_label`
`new` is a reserved keyword in c++
Federico Kircheis [Sat, 29 Jun 2019 18:52:32 +0000 (20:52 +0200)]
Replace `new` variable with `new_param`
`new` is a reserved keyword in c++
Federico Kircheis [Thu, 4 Jul 2019 15:14:19 +0000 (17:14 +0200)]
Replace `class` variable with `qc`
`class` is a reserved keyword in c++
Federico Kircheis [Sat, 29 Jun 2019 19:32:57 +0000 (21:32 +0200)]
Replace `this` variable with `key`
`this` is a reserved keyword in c++
Federico Kircheis [Thu, 4 Jul 2019 04:14:09 +0000 (06:14 +0200)]
Replace `this` variable with `ctx_cur`
`this` is a reserved keyword in c++
Federico Kircheis [Sat, 29 Jun 2019 19:22:06 +0000 (21:22 +0200)]
Replace `delete` variable with `delete_header`
`delete` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 19:35:03 +0000 (21:35 +0200)]
Replace `new` variable with `new_mail`
`new` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 19:29:39 +0000 (21:29 +0200)]
Replace `new` variable with `tnew`
`new` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 19:26:16 +0000 (21:26 +0200)]
Replace `new` variable with `new_label`
`new` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 19:22:45 +0000 (21:22 +0200)]
Replace `new` variable with `new_tag`
`new` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 19:18:00 +0000 (21:18 +0200)]
Replace `new` variable with `new_mail`
`new` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 19:12:26 +0000 (21:12 +0200)]
Replace `new` variable with `add`
`new` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 19:04:19 +0000 (21:04 +0200)]
Unify `body_new` name instances
`new` is a reserved keyword in c++
Most instances are named this way
Federico Kircheis [Wed, 3 Jul 2019 18:54:30 +0000 (20:54 +0200)]
Replace `new` with `pnew`
`new` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 18:46:17 +0000 (20:46 +0200)]
Replace `new` variable with `ap`
`new` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 18:27:35 +0000 (20:27 +0200)]
Replace `new` variable with `alias`
`new` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 18:21:23 +0000 (20:21 +0200)]
Replace `new` variable with `al_new`
`new` is a reserved keyword in c++
Federico Kircheis [Wed, 3 Jul 2019 18:13:28 +0000 (20:13 +0200)]
Replace `new` variable with `mark_new`
`new` is a reserved keyword in c++
Federico Kircheis [Sat, 29 Jun 2019 19:14:11 +0000 (21:14 +0200)]
Replace `delete` variable with `delete_original`
`delete` is a reserved keyword in c++
Federico Kircheis [Sun, 30 Jun 2019 03:23:18 +0000 (05:23 +0200)]
Replace `public` variable with `only_public_key`
`public` is a reserved keyword in c++
Federico Kircheis [Sat, 29 Jun 2019 18:52:50 +0000 (20:52 +0200)]
Replace `new` variable with`new_file`
`new` is a reserved keyword in c++
Rename both `new` and `old` to `new_file` and `old_file` for consistency
Federico Kircheis [Sat, 29 Jun 2019 13:06:28 +0000 (15:06 +0200)]
Replace `new` variable with `has_new_mail`
`new` is a reserved keyword in c++
Federico Kircheis [Sat, 29 Jun 2019 13:09:54 +0000 (15:09 +0200)]
Replace `catch` variable with `restore`
`catch` is a reserved keyword in c++
Federico Kircheis [Sat, 29 Jun 2019 13:00:17 +0000 (15:00 +0200)]
Replace `template` variable with `tmpl`
`virtual` is a reserved keyword in c++
Federico Kircheis [Sat, 29 Jun 2019 18:57:10 +0000 (20:57 +0200)]
Replace `virtual` variable with `vnum`
`virtual` is a reserved keyword in c++
Federico Kircheis [Sat, 29 Jun 2019 12:11:54 +0000 (14:11 +0200)]
Replace `try` variable with `user`
`try` is a keyword in c++
While this should not affect C code, it affects unfortunately the
tooling.
This specific instance triggers a "syntax error" in Cppcheck, so it
could hide other problems.
(Cppcheck version 1.86, code parsed with `--language=c --std=c99`)
Of course it is a bug in Cppcheck, but renaming the variable is the most
pragmatic approach, as the bug in Cppcheck does not manifest itself in
a simple program.
Richard Russon [Tue, 2 Jul 2019 12:43:02 +0000 (13:43 +0100)]
notify: fix leak on exit
Pietro Cerutti [Mon, 1 Jul 2019 09:01:50 +0000 (09:01 +0000)]
Fix saving a msg to a non-existent mailbox
Fixes #1762
Federico Kircheis [Tue, 1 May 2018 14:55:20 +0000 (16:55 +0200)]
Avoid UB when clearing stdin
Flushing `stdin` is undefined behaviour.
References
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf, chapter 7.21.5.2 (The fflush function)
http://en.cppreference.com/w/c/io/fflush
Pietro Cerutti [Fri, 28 Jun 2019 11:41:05 +0000 (11:41 +0000)]
Sync autosetup required version with what we ship
Pietro Cerutti [Fri, 28 Jun 2019 07:08:25 +0000 (07:08 +0000)]
build: refactor idn headers check
Richard Russon [Thu, 27 Jun 2019 16:21:24 +0000 (17:21 +0100)]
build: check which idn2 headers to include
Richard Russon [Wed, 26 Jun 2019 22:17:39 +0000 (23:17 +0100)]
merge: update translations
* Various chages to spanish localization
* Update lt_LT translations
* modified some Japanese translations
* sync translations
Richard Russon [Wed, 26 Jun 2019 22:16:59 +0000 (23:16 +0100)]
sync translations
mochidai [Wed, 26 Jun 2019 19:15:25 +0000 (15:15 -0400)]
modified some Japanese translations
Marius Gedminas [Sun, 23 Jun 2019 11:44:46 +0000 (14:44 +0300)]
Update lt_LT translations
One fuzzy down.
Nagefire [Wed, 12 Jun 2019 22:12:45 +0000 (16:12 -0600)]
Various chages to spanish localization
Pietro Cerutti [Thu, 6 Jun 2019 13:51:36 +0000 (13:51 +0000)]
Optionally use pkg-config for 3rd party dependencies
Add a new --pkgconf switch to configure.
When specified, the compiler and linker flags for most 3rd party dependencies
will be figured out using pkg-config.
Pietro Cerutti [Mon, 24 Jun 2019 12:50:46 +0000 (12:50 +0000)]
Clarify header_cache behaviour on missing paths
Fixes #1752
Richard Russon [Mon, 24 Jun 2019 15:39:55 +0000 (16:39 +0100)]
merge: upstream fixes
* Convert last rfc1524_expand_command caller to use a Buffer
* Convert rfc1524_expand_command() implementation to use struct Buffer
* Rename mutt_buffer_rfc1524_expand_command()
* Fix send-mode printing when expand_filename() returns 1
* Fix compose and edit attachment symlink failure code
* Remove unnecessary strcmp for mutt_view_attachment()
* Remove mutt_rfc1524_expand_filename() return value and checks
* Make sure mailcap test %s is sanitized
* Clean up mutt_print_attachment() cleanup
* Add NULL checks to rfc1524_free_entry()
* Detail the documentation of %l for index_format
Vincent Lefevre [Sun, 23 Jun 2019 00:05:43 +0000 (02:05 +0200)]
Detail the documentation of %l for index_format
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sat, 22 Jun 2019 23:13:46 +0000 (16:13 -0700)]
Add NULL checks to rfc1524_free_entry()
The existing code was fine, but make it robust like other free
functions in mutt, so the behavior isn't surprising.
Co-authored-by: Richard Russon <rich@flatcap.org>