]>
granicus.if.org Git - neomutt/log
Richard Russon [Fri, 6 Jul 2018 09:33:25 +0000 (10:33 +0100)]
Fix imap auth plain
Send the password and `\r\n` as one message.
Fixes #1286
Richard Russon [Thu, 5 Jul 2018 23:52:41 +0000 (00:52 +0100)]
quote imap strings more carefully
Co-authored-by: JerikoOne <jeriko.one@gmx.us>
Richard Russon [Thu, 5 Jul 2018 12:32:17 +0000 (13:32 +0100)]
sanitise cache paths
Co-authored-by: JerikoOne <jeriko.one@gmx.us>
Austin Ray [Thu, 5 Jul 2018 03:32:23 +0000 (23:32 -0400)]
Do not interrupt switch fallthrough
Commit
e85c735 introduced the `<check-stats>` function, designated by
`OP_CHECK_STATS`.
This had been inserted below `OP_MAIN_CHANGE_VFOLDER`, which is
`change-vfolder`'s designation; however, `OP_MAIN_CHANGE_VFOLDER` relies
on C's switch fallthrough logic to execute. As a result,
`change-vfolder` executed `check-stats`'s logic instead of the correct
logic.
This commit moves `OP_CHECK_STATS` to above the #ifdef that
`OP_MAIN_CHANGE_VFOLDER` is defined in.
JerikoOne [Tue, 3 Jul 2018 22:22:12 +0000 (17:22 -0500)]
Add alloc fail check in nntp_fetch_headers
JerikoOne [Tue, 3 Jul 2018 22:08:41 +0000 (17:08 -0500)]
Set length modifiers for group and desc
nntp_add_group parses a line controlled by the connected nntp server.
Restrict the maximum lengths read into the stack buffers group, and
desc.
Richard Russon [Tue, 3 Jul 2018 09:34:07 +0000 (10:34 +0100)]
prevent buffer underrun
Thanks @l2dy
Richard Russon [Tue, 26 Jun 2018 20:42:25 +0000 (21:42 +0100)]
reduce config variable setting
Reduce the number of places where the config variables are set.
This will reduce the complexity when setting becomes a function call.
Floyd Anderson [Sun, 27 May 2018 22:34:20 +0000 (00:34 +0200)]
Correct a comment typo
Richard Russon [Fri, 29 Jun 2018 11:54:49 +0000 (12:54 +0100)]
protect some paths from relativity
Some path config variables represent folders which may be non-local.
e.g. `set folder = 'imap://...'
They shouldn't be treated as relative file paths.
Anton Lindqvist [Fri, 29 Jun 2018 03:17:23 +0000 (20:17 -0700)]
Add check-stats function to calculate mailbox statistics.
This allows the statistics to be updated without setting
$mail_check_stats or before $mail_check_stats_interval has passed.
Kevin McCarthy [Wed, 27 Jun 2018 16:45:10 +0000 (09:45 -0700)]
Add a reference to $copy in the $record documentation.
Marco Sirabella [Sun, 24 Jun 2018 21:45:39 +0000 (17:45 -0400)]
Make path config variables relative
Marco Sirabella [Mon, 25 Jun 2018 19:10:23 +0000 (15:10 -0400)]
Distinguish between strings, paths and commands
Richard Russon [Thu, 28 Jun 2018 14:01:16 +0000 (15:01 +0100)]
merge: small refactoring
* Simplify the logic in mutt_addr_write_single()
* Remove duplicate function prototype
* Only calculate mutt_fqdn when needed
* Fix memory leak when creating alias
Bertram Scharpf [Sat, 23 Jun 2018 17:25:33 +0000 (19:25 +0200)]
Fix memory leak when creating alias
Bertram Scharpf [Wed, 27 Jun 2018 09:32:50 +0000 (11:32 +0200)]
Only calculate mutt_fqdn when needed
Bertram Scharpf [Wed, 27 Jun 2018 00:09:44 +0000 (02:09 +0200)]
Remove duplicate function prototype
Bertram Scharpf [Sat, 23 Jun 2018 16:08:08 +0000 (18:08 +0200)]
Simplify the logic in mutt_addr_write_single()
Remove doubled function call in nested if statement
Stefan Assmann [Wed, 27 Jun 2018 08:15:05 +0000 (10:15 +0200)]
fix mutt_buffy_notify() to properly update BuffyNotify
In commit
184244053 doxy: document buffy.c
the check for whether to call mutt_buffy_list() was changed from
if (mutt_buffy_check(false) && BuffyNotify)
to
if (BuffyNotify && (mutt_buffy_check(false) != 0))
By reversing the check mutt_buffy_check() never executes when
BuffyNotify is zero. However, it is essential to run mutt_buffy_check()
before checking BuffyNotify, as mutt_buffy_check() updates BuffyNotify.
Therefore return the check to its inital form
Fixes #1279
Richard Russon [Sat, 23 Jun 2018 15:42:48 +0000 (16:42 +0100)]
merge: minor improvements
- Boolify some parameters
- Rename some buffers for consistency
Richard Russon [Sat, 23 Jun 2018 00:57:03 +0000 (01:57 +0100)]
mutt_update_recvattach_menu
Richard Russon [Sat, 23 Jun 2018 00:56:07 +0000 (01:56 +0100)]
parse_date_range
Richard Russon [Sat, 23 Jun 2018 00:54:45 +0000 (01:54 +0100)]
match_addrlist
Richard Russon [Sat, 23 Jun 2018 00:52:55 +0000 (01:52 +0100)]
encode_quoted
Richard Russon [Sat, 23 Jun 2018 00:51:58 +0000 (01:51 +0100)]
mutt_prepare_envelope
Richard Russon [Sat, 23 Jun 2018 00:49:18 +0000 (01:49 +0100)]
mutt_is_list_recipient
Richard Russon [Sat, 23 Jun 2018 00:43:55 +0000 (01:43 +0100)]
mutt_fqdn
Richard Russon [Sat, 23 Jun 2018 00:40:09 +0000 (01:40 +0100)]
mutt_rfc822_write_header
Richard Russon [Sat, 23 Jun 2018 00:37:36 +0000 (01:37 +0100)]
mutt_make_message_attach
Richard Russon [Sat, 23 Jun 2018 00:34:17 +0000 (01:34 +0100)]
prepend_curdir
Richard Russon [Sat, 23 Jun 2018 00:32:25 +0000 (01:32 +0100)]
update_content_info
Richard Russon [Sat, 23 Jun 2018 00:31:21 +0000 (01:31 +0100)]
make_from_addr
Richard Russon [Sat, 23 Jun 2018 00:29:33 +0000 (01:29 +0100)]
make_from
Richard Russon [Sat, 23 Jun 2018 00:26:38 +0000 (01:26 +0100)]
quote_simple
Richard Russon [Sat, 23 Jun 2018 00:23:52 +0000 (01:23 +0100)]
mutt_get_body_charset
Richard Russon [Sat, 23 Jun 2018 15:17:58 +0000 (16:17 +0100)]
merge: replace mutt_mktemp() with mutt_file_mkstemp()
* pgp_class_application_handler()
* pgp_class_decrypt_mime()
* pgp_class_encrypted_handler()
* pgp_class_encrypt_message()
* pgp_class_traditional_encryptsign()
* pgp_class_verify_one()
* pgp_decrypt_part()
* pgp_find_hash()
* pgp_gpgme_decrypt_mime()
* pgp_gpgme_encrypted_handler()
* pgp_gpgme_extract_keys()
* smime_class_build_smime_entity()
* smime_class_decrypt_mime()
* smime_class_invoke_import()
* smime_class_verify_one()
* smime_extract_certificate()
* smime_extract_signer_certificate()
* smime_gpgme_application_handler()
* smime_gpgme_decrypt_mime()
* smime_handle_cert_email()
* smime_handle_entity()
Marco Sirabella [Fri, 22 Jun 2018 18:37:30 +0000 (14:37 -0400)]
Remove errfile from smime_handle_entity
Marco Sirabella [Fri, 22 Jun 2018 18:34:57 +0000 (14:34 -0400)]
Remove outfile from smime_handle_entity
Marco Sirabella [Fri, 22 Jun 2018 18:21:17 +0000 (14:21 -0400)]
Remove tmptmpfname from smime_handle_entity
Marco Sirabella [Fri, 22 Jun 2018 18:10:36 +0000 (14:10 -0400)]
Remove ftmpname from smime_handle_cert_email
Marco Sirabella [Fri, 22 Jun 2018 18:49:12 +0000 (14:49 -0400)]
Remove tempfile from smime_gpgme_decrypt_mime
Marco Sirabella [Fri, 22 Jun 2018 18:56:51 +0000 (14:56 -0400)]
Remove tempfile from smime_gpgme_application_handler
Marco Sirabella [Fri, 22 Jun 2018 18:18:35 +0000 (14:18 -0400)]
Remove tmpfname from smime_extract_signer_certificate
Marco Sirabella [Fri, 22 Jun 2018 18:14:07 +0000 (14:14 -0400)]
Remove tmpfname from smime_extract_certificate
Marco Sirabella [Fri, 22 Jun 2018 18:30:55 +0000 (14:30 -0400)]
Remove smimeerrfile from smime_class_verify_one
Marco Sirabella [Fri, 22 Jun 2018 18:18:48 +0000 (14:18 -0400)]
Remove tmpfname from smime_class_invoke_import
Marco Sirabella [Fri, 22 Jun 2018 18:39:10 +0000 (14:39 -0400)]
Remove tempfile from smime_class_decrypt_mime
Marco Sirabella [Fri, 22 Jun 2018 18:27:50 +0000 (14:27 -0400)]
Remove smimeerrfile from smime_class_build_smime_entity
Marco Sirabella [Fri, 22 Jun 2018 18:58:34 +0000 (14:58 -0400)]
Remove tmpfile from pgp_gpgme_extract_keys
Marco Sirabella [Fri, 22 Jun 2018 18:53:44 +0000 (14:53 -0400)]
Remove tempfile from pgp_gpgme_encrypted_handler
Marco Sirabella [Fri, 22 Jun 2018 18:48:38 +0000 (14:48 -0400)]
Remove tempfile from pgp_gpgme_decrypt_mime
Marco Sirabella [Fri, 22 Jun 2018 18:44:40 +0000 (14:44 -0400)]
Remove tempfile from pgp_find_hash
Marco Sirabella [Fri, 22 Jun 2018 16:12:31 +0000 (12:12 -0400)]
Remove pgperrfile from pgp_decrypt_part
Marco Sirabella [Fri, 22 Jun 2018 16:51:30 +0000 (12:51 -0400)]
Remove pgperrfile from pgp_class_verify_one
Marco Sirabella [Fri, 22 Jun 2018 17:00:35 +0000 (13:00 -0400)]
Remove pgperrfile from pgp_class_traditional_encryptsign
Marco Sirabella [Fri, 22 Jun 2018 16:55:33 +0000 (12:55 -0400)]
Remove pgperrfile from pgp_class_encrypt_message
Marco Sirabella [Fri, 22 Jun 2018 16:52:06 +0000 (12:52 -0400)]
Remove tempfile from pgp_class_encrypted_handler
Marco Sirabella [Fri, 22 Jun 2018 16:36:02 +0000 (12:36 -0400)]
Remove tempfile from pgp_class_decrypt_mime
Marco Sirabella [Fri, 22 Jun 2018 16:08:55 +0000 (12:08 -0400)]
Remove pgperrfile from pgp_class_application_handler
Marco Sirabella [Fri, 22 Jun 2018 16:01:13 +0000 (12:01 -0400)]
Remove pgpoutfile from pgp_class_application_handler
Bertram Scharpf [Wed, 20 Jun 2018 21:13:41 +0000 (23:13 +0200)]
Put bit fields together
Bertram Scharpf [Mon, 18 Jun 2018 07:33:19 +0000 (09:33 +0200)]
Use the enum constant to initialise
Richard Russon [Fri, 22 Jun 2018 15:28:11 +0000 (16:28 +0100)]
teach docs about true and false
Richard Russon [Fri, 22 Jun 2018 13:11:34 +0000 (14:11 +0100)]
merge: NeoMutt 2018-06-22
Richard Russon [Fri, 22 Jun 2018 13:08:10 +0000 (14:08 +0100)]
sync translations
Richard Russon [Fri, 22 Jun 2018 12:54:04 +0000 (13:54 +0100)]
clang-format
Richard Russon [Fri, 22 Jun 2018 12:49:38 +0000 (13:49 +0100)]
update contributors
Richard Russon [Fri, 22 Jun 2018 12:41:38 +0000 (13:41 +0100)]
changelog
Richard Russon [Fri, 22 Jun 2018 11:52:44 +0000 (12:52 +0100)]
version 2018-06-22
Richard Russon [Fri, 22 Jun 2018 11:46:10 +0000 (12:46 +0100)]
merge: add doxygen docs
* document pattern functions
* document sendlib functions
* document send functions
* document recvattach functions
Richard Russon [Thu, 21 Jun 2018 13:13:45 +0000 (14:13 +0100)]
document recvattach functions
Richard Russon [Fri, 15 Jun 2018 12:08:52 +0000 (13:08 +0100)]
document send functions
Richard Russon [Thu, 14 Jun 2018 21:15:10 +0000 (22:15 +0100)]
document sendlib functions
Richard Russon [Fri, 15 Jun 2018 11:57:29 +0000 (12:57 +0100)]
document pattern functions
Richard Russon [Fri, 22 Jun 2018 11:27:25 +0000 (12:27 +0100)]
merge: update translations
* Update German translation
* Update ja translation
* Update zh_CN translation
Thomas Schneider [Wed, 20 Jun 2018 22:06:38 +0000 (00:06 +0200)]
Update German translation
Richard Russon [Wed, 20 Jun 2018 14:24:19 +0000 (15:24 +0100)]
update German translation
Zero King [Wed, 13 Jun 2018 10:32:08 +0000 (10:32 +0000)]
Update zh_CN translation
Zero King [Mon, 11 Jun 2018 16:36:42 +0000 (16:36 +0000)]
Update zh_CN translation
Zero King [Mon, 11 Jun 2018 15:35:35 +0000 (15:35 +0000)]
Update zh_CN translation
Zero King [Sun, 10 Jun 2018 14:23:31 +0000 (14:23 +0000)]
Update zh_CN translation
Zero King [Sat, 9 Jun 2018 02:31:05 +0000 (02:31 +0000)]
Update zh_CN translation
Zero King [Fri, 8 Jun 2018 17:28:14 +0000 (17:28 +0000)]
Update ja translation
Zero King [Fri, 8 Jun 2018 17:05:18 +0000 (17:05 +0000)]
Update zh_CN translation
Richard Russon [Mon, 18 Jun 2018 13:13:44 +0000 (14:13 +0100)]
Fix env var quoting in backticks
Issue #1262
Richard Russon [Fri, 22 Jun 2018 11:00:49 +0000 (12:00 +0100)]
ensure Buffers are initialised
Richard Russon [Wed, 20 Jun 2018 15:29:38 +0000 (16:29 +0100)]
merge: upstream fixes
* Add $pgp_check_gpg_decrypt_status_fd.
* Add GnuPG status fd checks for inline pgp.
* Allow larger passphrase timeout values
* mutt_str_atol: better error handling
Vincent Lefevre [Tue, 19 Jun 2018 07:37:56 +0000 (09:37 +0200)]
mutt_str_atol: better error handling
Reset errno to 0 before calling strtol and testing it in mutt_atol.
Otherwise providing LONG_MAX+1 then LONG_MAX gave an error for LONG_MAX too.
* Detect overflow on negative numbers too (< LONG_MIN).
* Distinguish between format error and number overflow as already
expected (e.g. for pgp_timeout and smime_timeout).
Eike Rathke [Mon, 18 Jun 2018 20:04:47 +0000 (22:04 +0200)]
Allow larger passphrase timeout values
This came up in the comp.mail.mutt newsgroup where a user wasn't
satisfied with the SHORT_MAX seconds ~9 hours limit on passphrase
timeouts.
For the first time made it necessary for the options parser to be
able to parse numbers as long values. Also, introduced
mutt_add_timeout() to detect possible overflow before adding a
timeout to a time_t value and truncate to TIME_T_MAX instead.
Kevin McCarthy [Tue, 5 Jun 2018 04:31:33 +0000 (21:31 -0700)]
Add GnuPG status fd checks for inline pgp.
The difficulty is that "BEGIN PGP MESSAGE" could be a signed and
armored part, so we can't fail hard if it isn't encrypted.
Change pgp_check_decryption_okay() to return more status codes, with
>=0 indicating an actual decryption; -2 and -1 indicating plaintext
found; and -3 indicating an actual DECRYPTION_FAILED status code seen.
Fail hard on -3, but change the message for -2 and -1 to indicate the
message was not encrypted.
Kevin McCarthy [Mon, 4 Jun 2018 22:40:57 +0000 (15:40 -0700)]
Add $pgp_check_gpg_decrypt_status_fd.
If set (the default) mutt performs more thorough checking of the
$pgp_decrypt_command status output for GnuPG result codes.
Ticket #39 revealed that GnuPG (currently) does not protect against
messages that have been manipulated to contain an empty encryption
packet followed by a plaintext packet.
A huge thanks to Marcus Brinkmann for researching this issue, taking
the time to report it to us (and the GnuPG team), and taking even more
time to clarify exactly what needed to be checked for.
Richard Russon [Wed, 20 Jun 2018 12:29:20 +0000 (13:29 +0100)]
tidy init.h values
Richard Russon [Wed, 20 Jun 2018 11:51:55 +0000 (12:51 +0100)]
strip down .gitignore
Get rid of all the things we don't see any more, like autoconf.
Ivan J [Tue, 19 Jun 2018 14:15:13 +0000 (16:15 +0200)]
Refactor resize.c into separate functions
Splits up mutt_resize_screen() into its separate function to improve readability.
Closes #1149
Richard Russon [Tue, 19 Jun 2018 00:00:51 +0000 (01:00 +0100)]
merge: minor improvements
* light tidy
* coverity: fix defects
* Put variable declaration inside case-break into braces.
* Trailing spaces
* Insert extern
* One definition is enough
* External linkage was not intended
* Remove doubled #include
* Redundant if clause
Bertram Scharpf [Mon, 18 Jun 2018 14:41:34 +0000 (16:41 +0200)]
Redundant if clause
Bertram Scharpf [Mon, 18 Jun 2018 06:56:24 +0000 (08:56 +0200)]
Remove doubled #include
Bertram Scharpf [Sun, 17 Jun 2018 14:13:04 +0000 (16:13 +0200)]
External linkage was not intended
Bertram Scharpf [Sun, 17 Jun 2018 14:11:20 +0000 (16:11 +0200)]
One definition is enough