Richard Russon [Thu, 22 Feb 2018 14:45:52 +0000 (14:45 +0000)]
version 2018-02-23
Theo [Thu, 22 Feb 2018 06:51:09 +0000 (07:51 +0100)]
fix: missing ! when checking regex pointer
Richard Russon [Wed, 21 Feb 2018 01:25:22 +0000 (01:25 +0000)]
merge: trivial improvements
* doxygen fix comments
* use exit
* constants
* disable the folder-hook for $record
* unused variables
* fix redundant code
Richard Russon [Wed, 21 Feb 2018 01:22:21 +0000 (01:22 +0000)]
fix redundant code
Richard Russon [Wed, 21 Feb 2018 01:19:34 +0000 (01:19 +0000)]
unused variables
These variables set then either
- overwritten before being used
- not used before going out of scope
Richard Russon [Fri, 16 Feb 2018 14:21:24 +0000 (14:21 +0000)]
disable the folder-hook for $record
It's possible to use $record to save an email to a different account.
The right thing to do is to call the `folder-hook` for the save folder,
save the email, then call the `folder-hook` for the 'current' folder.
Calling the hook this way causes problems for lots of people who have
commands in their hooks that are called when they didn't expect.
The hooks are left in the code wrapped in: `#ifdef RECORD_FOLDER_HOOK`
Richard Russon [Sat, 17 Feb 2018 14:30:07 +0000 (14:30 +0000)]
constants
Richard Russon [Sat, 17 Feb 2018 14:18:24 +0000 (14:18 +0000)]
use exit
Richard Russon [Mon, 5 Feb 2018 15:46:54 +0000 (15:46 +0000)]
doxygen fix comments
Richard Russon [Tue, 20 Feb 2018 22:12:32 +0000 (22:12 +0000)]
merge: upstream fixes
* Remove useless assignments in add_to_list functions.
* Add history-search function, bound to ctrl-r.
* Avoid a potential integer overflow if a Content-Length value is huge.
* Updated French translation.
* update translations
Richard Russon [Sun, 21 Jan 2018 02:10:45 +0000 (02:10 +0000)]
update translations
Vincent Lefevre [Sun, 4 Feb 2018 17:29:52 +0000 (18:29 +0100)]
Updated French translation.
Vincent Lefevre [Wed, 14 Feb 2018 09:33:41 +0000 (10:33 +0100)]
Avoid a potential integer overflow if a Content-Length value is huge.
Kevin McCarthy [Sun, 4 Feb 2018 02:08:28 +0000 (18:08 -0800)]
Add history-search function, bound to ctrl-r.
Create a very basic "search history" functionality in the line editor.
It uses the current input, and searches backward through history. If
there is one match, it immediately uses that otherwise it pops up a
simple menu of matches.
Kevin McCarthy [Mon, 22 Jan 2018 03:41:47 +0000 (19:41 -0800)]
Remove useless assignments in add_to_list functions.
The code was probably pulled from some of the header processing
functions, which were in a loop. In those versions, "last" pointed to
a collection of new entries appended, but in these two functions,
updating last just obfuscates the code.
Pietro Cerutti [Mon, 19 Feb 2018 12:38:23 +0000 (12:38 +0000)]
Allow choosing a particular version of BerkeleyDB via --with-bdb-version (#1064)
Fix #1005
Richard Russon [Thu, 15 Feb 2018 15:44:13 +0000 (15:44 +0000)]
fix regexes using '\!' (not) (#1062)
The flag, in struct Option, allowing a regex to use a '!' (not) is part
of the type, not the flags field.
Pietro Cerutti [Thu, 15 Feb 2018 12:10:11 +0000 (12:10 +0000)]
Fix decoding of parameter in RFC2231 format (#1061)
Issue #1060
Pietro Cerutti [Tue, 13 Feb 2018 13:57:34 +0000 (13:57 +0000)]
Ncurses always has resizeterm, remove unnecessary ifdefs
Issue #1057
Pietro Cerutti [Tue, 13 Feb 2018 12:57:14 +0000 (12:57 +0000)]
Split HAVE_RESIZE out of HAVE_RESIZETERM
Pietro Cerutti [Tue, 13 Feb 2018 11:00:45 +0000 (11:00 +0000)]
Update autosetup, use negated and nested conditionals in @if substitutions
Richard Russon [Mon, 12 Feb 2018 12:31:48 +0000 (12:31 +0000)]
fix crash when decoding parameters (#1056)
Pietro Cerutti [Mon, 12 Feb 2018 08:38:30 +0000 (08:38 +0000)]
Fix out-of-bounds read in mutt_str_lws_len
Issue #1054
Pietro Cerutti [Thu, 8 Feb 2018 12:04:20 +0000 (12:04 +0000)]
Alternative way to check for DocBook DTD
Richard Russon [Sat, 10 Feb 2018 00:14:00 +0000 (00:14 +0000)]
merge: regex fixes
* fix partial initialisation of Regex config
* carefully check all regex pointers
* Fix free_opt for regex
Pietro Cerutti [Fri, 9 Feb 2018 09:03:12 +0000 (09:03 +0000)]
Fix free_opt for regex
Richard Russon [Fri, 9 Feb 2018 03:41:26 +0000 (03:41 +0000)]
carefully check all regex pointers
Richard Russon [Fri, 9 Feb 2018 03:28:45 +0000 (03:28 +0000)]
fix partial initialisation of Regex config
Richard Russon [Thu, 8 Feb 2018 10:54:41 +0000 (10:54 +0000)]
configure: Check for Docbook DTDs
* configure: Check for Docbook DTDs
Run xsltproc with a minimal Docbook file.
If this succeeds, then the docs will probably build correctly.
Co-authored-by: Pietro Cerutti <gahr@gahr.ch>
Pietro Cerutti [Fri, 2 Feb 2018 15:46:42 +0000 (15:46 +0000)]
Tidy parameter API, switch to TAILQ
Pietro Cerutti [Thu, 1 Feb 2018 16:07:14 +0000 (16:07 +0000)]
Move parameter.[ch] to mutt/
Richard Russon [Thu, 1 Feb 2018 17:23:29 +0000 (17:23 +0000)]
trim some hcache descriptions
Richard Russon [Mon, 29 Jan 2018 03:27:19 +0000 (03:27 +0000)]
boolify some variables
Richard Russon [Fri, 26 Jan 2018 02:13:12 +0000 (02:13 +0000)]
fix docs for mutt_md5_toascii
Richard Russon [Fri, 26 Jan 2018 00:59:02 +0000 (00:59 +0000)]
fix regex completion
Richard Russon [Wed, 24 Jan 2018 15:58:02 +0000 (15:58 +0000)]
reply_regexp -> reply_regex
Richard Russon [Wed, 24 Jan 2018 15:53:41 +0000 (15:53 +0000)]
quote_regexp -> quote_regex
Michael J. Bazzinotti [Wed, 31 Jan 2018 17:20:05 +0000 (12:20 -0500)]
browser: <change-dir> mutt_realpath() <goto-parent>
For "regular" filesystems (not IMAP or Notmuch folder hierarchies),
<change-dir> and the browser GUI now resolve paths via a new mutt library
function `mutt_realpath`. This means no more path buildup such as
"a/b/../../c". Additionally, Symlinks are resolved automatically. This is
a circumstance of realpath(). Note that a future PR is planned to add a
non-symlinking option.
The new <goto-parent> function has a default shortcut key of 'p' for parent.
Since this function uses the pre-existing `mutt_get_parent_path()`,
<goto-parent> may also work on IMAP and Notmuch folder hierarchies
(tested and working on IMAP)
Note: The paths passed to `mutt_get_parent_path()` formerly would not
parse correctly a path which included a final trailing slash (eg 'abc/')
So, I added it a check to that function to remove it before hitting
the parser.
Note2: The browser for IMAP was janky before this commit, but the browser
is not the primary mailbox navigation tool, afterall. At least 'p'
<goto-parent> adds to its functionality. I expect a similar evaluation for
Notmuch folder browsing, although I have never used Notmuch. Any
contributions to make a better IMAP/Notmuch folder browsing experience
are welcome. I have reported some of the fallbacks in Github PR #1037
comments (look for IMAP headlines).
Pietro Cerutti [Sun, 28 Jan 2018 11:32:25 +0000 (11:32 +0000)]
Fix off-by-1 bug in strnfcpy, add test cases
Co-authored-by: Michael Bazzinotti <mbazzinotti@gmail.com>
Richard Russon [Tue, 30 Jan 2018 22:34:03 +0000 (22:34 +0000)]
fix rfc2047 field decoding
Richard Russon [Tue, 30 Jan 2018 14:56:46 +0000 (14:56 +0000)]
fix parsing of urls containing '?'
The URL schemes come in two patterns
- smtp://user:pass@host
- notmuch:///path?query
The 'host' types don't take a query string.
'notmuch' and 'mailto' don't use a 'user:pass' string.
This fix will still be confused by a notmuch URL that has a '?' in the
path component, but no query string. (but I don't think the code ever
coped with that). e.g.
- notmuch:///dir?name/
Fixes #1043
Pietro Cerutti [Fri, 26 Jan 2018 13:39:05 +0000 (13:39 +0000)]
Let mutt_str_strnfcpy return the string length
Pietro Cerutti [Fri, 26 Jan 2018 11:05:18 +0000 (11:05 +0000)]
Let mutt_str_strfcpy return the string length, add tests
Richard Russon [Thu, 25 Jan 2018 00:40:47 +0000 (00:40 +0000)]
merge: history refactoring
* reduce scope of variables
* rename functions
* code tidying
* doxygen: add comments
Richard Russon [Wed, 24 Jan 2018 13:08:27 +0000 (13:08 +0000)]
doxygen: add comments
Richard Russon [Wed, 24 Jan 2018 23:08:16 +0000 (23:08 +0000)]
code tidying
- Check ints against 0
- Rename parameters
- Bracket logic
- Reduce scope of variables
Richard Russon [Wed, 24 Jan 2018 13:26:33 +0000 (13:26 +0000)]
rename functions
Richard Russon [Tue, 23 Jan 2018 17:57:31 +0000 (17:57 +0000)]
reduce scope of variables
Richard Russon [Wed, 24 Jan 2018 23:00:02 +0000 (23:00 +0000)]
merge: trivial improvements
* coverity
* name unicode chars
* Fix spelling
* doxygen tidying
* Add a blurb about $new_mail_command in the mailboxes section.
Kevin McCarthy [Mon, 22 Jan 2018 02:56:12 +0000 (18:56 -0800)]
Add a blurb about $new_mail_command in the mailboxes section.
Richard Russon [Fri, 19 Jan 2018 01:12:34 +0000 (01:12 +0000)]
doxygen tidying
Richard Russon [Wed, 24 Jan 2018 13:24:58 +0000 (13:24 +0000)]
Fix spelling
Richard Russon [Sat, 20 Jan 2018 02:48:41 +0000 (02:48 +0000)]
name unicode chars
Richard Russon [Fri, 19 Jan 2018 02:44:31 +0000 (02:44 +0000)]
coverity
Richard Russon [Wed, 24 Jan 2018 20:48:49 +0000 (20:48 +0000)]
merge: md5 improvements
* Remove unused functions, unexpose implementation functions
* Implement and use mutt_md5_toascii
* Initial tests
* Use mutt_md5_toascii some more
* Add and use an API to process a NULL-terminated string
* More API polishing
* Rename test cases to better reflect what they're doing
Pietro Cerutti [Wed, 24 Jan 2018 13:31:26 +0000 (13:31 +0000)]
MD5 - Rename test cases to better reflect what they're doing
Pietro Cerutti [Wed, 24 Jan 2018 13:27:31 +0000 (13:27 +0000)]
MD5 - More API polishing
Pietro Cerutti [Wed, 24 Jan 2018 12:17:35 +0000 (12:17 +0000)]
MD5 - Add and use an API to process a NULL-terminated string
Pietro Cerutti [Tue, 23 Jan 2018 15:36:09 +0000 (15:36 +0000)]
MD5 - Use mutt_md5_toascii some more
Pietro Cerutti [Tue, 23 Jan 2018 13:45:39 +0000 (13:45 +0000)]
MD5 - Initial tests
Pietro Cerutti [Tue, 23 Jan 2018 13:44:55 +0000 (13:44 +0000)]
MD5 - Implement and use mutt_md5_toascii
Pietro Cerutti [Tue, 23 Jan 2018 13:23:59 +0000 (13:23 +0000)]
MD5 - Remove unused functions, unexpose implementation functions
Pietro Cerutti [Tue, 23 Jan 2018 11:42:42 +0000 (11:42 +0000)]
Kill some magic numbers, use mutt_array_size
Pietro Cerutti [Tue, 23 Jan 2018 10:49:16 +0000 (10:49 +0000)]
Make Weekdays, Months, and TimeZones statics, expose mutt_date_make_tls
Pietro Cerutti [Mon, 22 Jan 2018 17:14:49 +0000 (17:14 +0000)]
Kill mutt_rfc2047_encode_32 macro
Leo R. Lundgren [Sun, 21 Jan 2018 14:30:32 +0000 (15:30 +0100)]
Fix reply_regexp which wasn't formatted correctly.
And add Swedish "Sv:" prefix to reply_regexp.
Pietro Cerutti [Mon, 22 Jan 2018 15:26:43 +0000 (15:26 +0000)]
Unit test framework (#1031)
Minimal unit-test framework to test C library APIs
Richard Russon [Sat, 20 Jan 2018 16:52:14 +0000 (16:52 +0000)]
merge: RFC2047 improvements
* Handle RFC2047 words split in the middle of a multibyte character
* move rfc2047 functions to library
* Use our base64 API instead of duplicating the decoding algorithm
* Move mutt_rfc2047_choose_charset to mutt_ch_choose
* light tidy
Richard Russon [Thu, 18 Jan 2018 23:10:35 +0000 (23:10 +0000)]
light tidy
* fix typos
* rename parameters
* add ()s to logic
Pietro Cerutti [Fri, 19 Jan 2018 15:34:03 +0000 (15:34 +0000)]
Move mutt_rfc2047_choose_charset to mutt_ch_choose
Issue #1015
Pietro Cerutti [Fri, 19 Jan 2018 12:24:59 +0000 (12:24 +0000)]
Use our base64 API instead of duplicating the decoding algorithm
Also, fix a memory leak while at it.
Issue #1015
Pietro Cerutti [Fri, 12 Jan 2018 16:10:37 +0000 (16:10 +0000)]
move rfc2047 functions to library
Pietro Cerutti [Fri, 12 Jan 2018 16:10:37 +0000 (16:10 +0000)]
Handle RFC2047 words split in the middle of a multibyte character
Benjamin Mako Hill [Fri, 19 Jan 2018 08:20:54 +0000 (00:20 -0800)]
fix for pgpewrap in default gpg.rc (#1023)
Fixes an bug introduced by changes intorduced in commit
465fad6d21ac3b9d2ae5d12bae7705f5f04323e7 to contrib/gpg.rc that breaks signed
and encrypted mail. The issues is just a typo related to way that pgpewrap
works. This should fix issue #998.
Richard Russon [Thu, 18 Jan 2018 23:32:28 +0000 (23:32 +0000)]
merge: light refactoring
* move unsigned atoi functions
* comparison ordering
* braces
* move functions to library
Richard Russon [Thu, 18 Jan 2018 11:13:04 +0000 (11:13 +0000)]
move functions to library
Richard Russon [Wed, 17 Jan 2018 23:22:39 +0000 (23:22 +0000)]
braces
Richard Russon [Wed, 17 Jan 2018 18:41:30 +0000 (18:41 +0000)]
comparison ordering
Richard Russon [Wed, 17 Jan 2018 18:21:22 +0000 (18:21 +0000)]
move unsigned atoi functions
Kevin McCarthy [Thu, 18 Jan 2018 02:57:49 +0000 (18:57 -0800)]
Fix a couple memory leaks in pattern.c
BUFFER.data was not being freed in a couple cases.
The pattern and simple search were not being freed if imap_search()
failed.
Richard Russon [Thu, 18 Jan 2018 23:29:20 +0000 (23:29 +0000)]
merge: fix coverity defects
* drop unreachable condition
* set new regex
* negative check
* check size_t value
* unused result
* ptr checks
* negative index
* tidy logic
* fix logic
* unchecked returns
* forward null checks
Richard Russon [Wed, 17 Jan 2018 16:06:07 +0000 (16:06 +0000)]
forward null checks
Richard Russon [Wed, 17 Jan 2018 15:47:32 +0000 (15:47 +0000)]
unchecked returns
Richard Russon [Wed, 17 Jan 2018 15:23:07 +0000 (15:23 +0000)]
fix logic
Richard Russon [Wed, 17 Jan 2018 15:13:25 +0000 (15:13 +0000)]
tidy logic
Richard Russon [Wed, 17 Jan 2018 15:06:21 +0000 (15:06 +0000)]
negative index
Richard Russon [Wed, 17 Jan 2018 15:04:17 +0000 (15:04 +0000)]
ptr checks
Richard Russon [Wed, 17 Jan 2018 14:52:17 +0000 (14:52 +0000)]
unused result
add new var for calc
Richard Russon [Wed, 17 Jan 2018 14:33:51 +0000 (14:33 +0000)]
check size_t value
Richard Russon [Wed, 17 Jan 2018 13:46:43 +0000 (13:46 +0000)]
negative check
Richard Russon [Wed, 17 Jan 2018 13:30:47 +0000 (13:30 +0000)]
set new regex
Richard Russon [Wed, 17 Jan 2018 13:12:03 +0000 (13:12 +0000)]
drop unreachable condition
Pietro Cerutti [Thu, 18 Jan 2018 14:52:46 +0000 (14:52 +0000)]
Simplify ALL_FILES definition, make it easier to add/remove files
Richard Russon [Wed, 17 Jan 2018 00:39:40 +0000 (00:39 +0000)]
merge: trivial improvements
* rename parameters bufsz -> buflen
* tidy mapping functions
* move mutt_pretty_size to libmutt
* iwyu: remove unnecessary headers
* rename charset functions
* mutt_str_getenv()
* use mutt_str_getenv()
Richard Russon [Wed, 10 Jan 2018 16:25:31 +0000 (16:25 +0000)]
use mutt_str_getenv()
Richard Russon [Wed, 10 Jan 2018 15:49:44 +0000 (15:49 +0000)]
mutt_str_getenv()
Richard Russon [Wed, 10 Jan 2018 00:53:11 +0000 (00:53 +0000)]
rename charset functions
To avoid a clash with the configset functions to come.
Richard Russon [Tue, 9 Jan 2018 19:44:45 +0000 (19:44 +0000)]
iwyu: remove unnecessary headers
Richard Russon [Thu, 4 Jan 2018 19:13:27 +0000 (19:13 +0000)]
move mutt_pretty_size to libmutt
Richard Russon [Thu, 4 Jan 2018 12:50:28 +0000 (12:50 +0000)]
tidy mapping functions