]> granicus.if.org Git - neomutt/log
neomutt
6 years agoReduce variable scope - browser.c
Federico Kircheis [Thu, 1 Mar 2018 17:13:17 +0000 (18:13 +0100)]
Reduce variable scope - browser.c

6 years agoReduce variable scope - attach.c
Federico Kircheis [Thu, 1 Mar 2018 17:03:51 +0000 (18:03 +0100)]
Reduce variable scope - attach.c

6 years agoReduce variable scope - alias.c
Federico Kircheis [Wed, 28 Feb 2018 19:10:46 +0000 (20:10 +0100)]
Reduce variable scope - alias.c

6 years agoFix usage of mutt_progress_init after b310689
Pietro Cerutti [Wed, 28 Feb 2018 12:07:16 +0000 (12:07 +0000)]
Fix usage of mutt_progress_init after b310689

6 years agodocs: Clarify precedence of settings in config files
rawtaz [Wed, 28 Feb 2018 15:21:20 +0000 (16:21 +0100)]
docs: Clarify precedence of settings in config files

6 years agoMove address to libmutt and merge it with mutt_address
Pietro Cerutti [Mon, 26 Feb 2018 12:14:10 +0000 (12:14 +0000)]
Move address to libmutt and merge it with mutt_address

6 years agoUpdate to latest autosetup
Pietro Cerutti [Tue, 27 Feb 2018 11:23:47 +0000 (11:23 +0000)]
Update to latest autosetup

Issue #1071

6 years agofix: add missing library externs
Richard Russon [Sun, 25 Feb 2018 12:28:23 +0000 (12:28 +0000)]
fix: add missing library externs

6 years agoNeoMutt 2018-02-23 neomutt-20180223
Richard Russon [Fri, 23 Feb 2018 03:03:54 +0000 (03:03 +0000)]
NeoMutt 2018-02-23

6 years agoupdate translations
Richard Russon [Thu, 22 Feb 2018 15:11:21 +0000 (15:11 +0000)]
update translations

6 years agoclang-format
Richard Russon [Thu, 22 Feb 2018 15:02:25 +0000 (15:02 +0000)]
clang-format

6 years agonew contributors
Richard Russon [Wed, 21 Feb 2018 14:22:53 +0000 (14:22 +0000)]
new contributors

6 years agochangelog
Richard Russon [Thu, 22 Feb 2018 14:49:38 +0000 (14:49 +0000)]
changelog

6 years agoversion 2018-02-23
Richard Russon [Thu, 22 Feb 2018 14:45:52 +0000 (14:45 +0000)]
version 2018-02-23

6 years agofix: missing ! when checking regex pointer
Theo [Thu, 22 Feb 2018 06:51:09 +0000 (07:51 +0100)]
fix: missing ! when checking regex pointer

6 years agomerge: trivial improvements
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

6 years agofix redundant code
Richard Russon [Wed, 21 Feb 2018 01:22:21 +0000 (01:22 +0000)]
fix redundant code

6 years agounused variables
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

6 years agodisable the folder-hook for $record
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`

6 years agoconstants
Richard Russon [Sat, 17 Feb 2018 14:30:07 +0000 (14:30 +0000)]
constants

6 years agouse exit
Richard Russon [Sat, 17 Feb 2018 14:18:24 +0000 (14:18 +0000)]
use exit

6 years agodoxygen fix comments
Richard Russon [Mon, 5 Feb 2018 15:46:54 +0000 (15:46 +0000)]
doxygen fix comments

6 years agomerge: upstream fixes
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

6 years agoupdate translations
Richard Russon [Sun, 21 Jan 2018 02:10:45 +0000 (02:10 +0000)]
update translations

6 years agoUpdated French translation.
Vincent Lefevre [Sun, 4 Feb 2018 17:29:52 +0000 (18:29 +0100)]
Updated French translation.

6 years agoAvoid a potential integer overflow if a Content-Length value is huge.
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.

6 years agoAdd history-search function, bound to ctrl-r.
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.

6 years agoRemove useless assignments in add_to_list functions.
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.

6 years agoAllow choosing a particular version of BerkeleyDB via --with-bdb-version (#1064)
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

6 years agofix regexes using '\!' (not) (#1062)
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.

6 years agoFix decoding of parameter in RFC2231 format (#1061)
Pietro Cerutti [Thu, 15 Feb 2018 12:10:11 +0000 (12:10 +0000)]
Fix decoding of parameter in RFC2231 format (#1061)

Issue #1060

6 years agoNcurses always has resizeterm, remove unnecessary ifdefs
Pietro Cerutti [Tue, 13 Feb 2018 13:57:34 +0000 (13:57 +0000)]
Ncurses always has resizeterm, remove unnecessary ifdefs

Issue #1057

6 years agoSplit HAVE_RESIZE out of HAVE_RESIZETERM
Pietro Cerutti [Tue, 13 Feb 2018 12:57:14 +0000 (12:57 +0000)]
Split HAVE_RESIZE out of HAVE_RESIZETERM

6 years agoUpdate autosetup, use negated and nested conditionals in @if substitutions
Pietro Cerutti [Tue, 13 Feb 2018 11:00:45 +0000 (11:00 +0000)]
Update autosetup, use negated and nested conditionals in @if substitutions

6 years agofix crash when decoding parameters (#1056)
Richard Russon [Mon, 12 Feb 2018 12:31:48 +0000 (12:31 +0000)]
fix crash when decoding parameters (#1056)

6 years agoFix out-of-bounds read in mutt_str_lws_len
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

6 years agoAlternative way to check for DocBook DTD
Pietro Cerutti [Thu, 8 Feb 2018 12:04:20 +0000 (12:04 +0000)]
Alternative way to check for DocBook DTD

6 years agomerge: regex fixes
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

6 years agoFix free_opt for regex 1052/head
Pietro Cerutti [Fri, 9 Feb 2018 09:03:12 +0000 (09:03 +0000)]
Fix free_opt for regex

6 years agocarefully check all regex pointers
Richard Russon [Fri, 9 Feb 2018 03:41:26 +0000 (03:41 +0000)]
carefully check all regex pointers

6 years agofix partial initialisation of Regex config
Richard Russon [Fri, 9 Feb 2018 03:28:45 +0000 (03:28 +0000)]
fix partial initialisation of Regex config

6 years agoconfigure: Check for Docbook DTDs
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>
6 years agoTidy parameter API, switch to TAILQ
Pietro Cerutti [Fri, 2 Feb 2018 15:46:42 +0000 (15:46 +0000)]
Tidy parameter API, switch to TAILQ

6 years agoMove parameter.[ch] to mutt/
Pietro Cerutti [Thu, 1 Feb 2018 16:07:14 +0000 (16:07 +0000)]
Move parameter.[ch] to mutt/

6 years agotrim some hcache descriptions
Richard Russon [Thu, 1 Feb 2018 17:23:29 +0000 (17:23 +0000)]
trim some hcache descriptions

6 years agoboolify some variables
Richard Russon [Mon, 29 Jan 2018 03:27:19 +0000 (03:27 +0000)]
boolify some variables

6 years agofix docs for mutt_md5_toascii
Richard Russon [Fri, 26 Jan 2018 02:13:12 +0000 (02:13 +0000)]
fix docs for mutt_md5_toascii

6 years agofix regex completion
Richard Russon [Fri, 26 Jan 2018 00:59:02 +0000 (00:59 +0000)]
fix regex completion

6 years agoreply_regexp -> reply_regex
Richard Russon [Wed, 24 Jan 2018 15:58:02 +0000 (15:58 +0000)]
reply_regexp -> reply_regex

6 years agoquote_regexp -> quote_regex
Richard Russon [Wed, 24 Jan 2018 15:53:41 +0000 (15:53 +0000)]
quote_regexp -> quote_regex

6 years agobrowser: <change-dir> mutt_realpath() <goto-parent> 1037/head
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).

6 years agoFix off-by-1 bug in strnfcpy, add test cases 1041/head
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>
6 years agofix rfc2047 field decoding
Richard Russon [Tue, 30 Jan 2018 22:34:03 +0000 (22:34 +0000)]
fix rfc2047 field decoding

6 years agofix parsing of urls containing '?'
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

6 years agoLet mutt_str_strnfcpy return the string length
Pietro Cerutti [Fri, 26 Jan 2018 13:39:05 +0000 (13:39 +0000)]
Let mutt_str_strnfcpy return the string length

6 years agoLet mutt_str_strfcpy return the string length, add tests
Pietro Cerutti [Fri, 26 Jan 2018 11:05:18 +0000 (11:05 +0000)]
Let mutt_str_strfcpy return the string length, add tests

6 years agomerge: history refactoring
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

6 years agodoxygen: add comments
Richard Russon [Wed, 24 Jan 2018 13:08:27 +0000 (13:08 +0000)]
doxygen: add comments

6 years agocode tidying
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

6 years agorename functions
Richard Russon [Wed, 24 Jan 2018 13:26:33 +0000 (13:26 +0000)]
rename functions

6 years agoreduce scope of variables
Richard Russon [Tue, 23 Jan 2018 17:57:31 +0000 (17:57 +0000)]
reduce scope of variables

6 years agomerge: trivial improvements
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.

6 years agoAdd 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.

6 years agodoxygen tidying
Richard Russon [Fri, 19 Jan 2018 01:12:34 +0000 (01:12 +0000)]
doxygen tidying

6 years agoFix spelling
Richard Russon [Wed, 24 Jan 2018 13:24:58 +0000 (13:24 +0000)]
Fix spelling

6 years agoname unicode chars
Richard Russon [Sat, 20 Jan 2018 02:48:41 +0000 (02:48 +0000)]
name unicode chars

6 years agocoverity
Richard Russon [Fri, 19 Jan 2018 02:44:31 +0000 (02:44 +0000)]
coverity

6 years agomerge: md5 improvements
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

6 years agoMD5 - Rename test cases to better reflect what they're doing 1034/head
Pietro Cerutti [Wed, 24 Jan 2018 13:31:26 +0000 (13:31 +0000)]
MD5 - Rename test cases to better reflect what they're doing

6 years agoMD5 - More API polishing
Pietro Cerutti [Wed, 24 Jan 2018 13:27:31 +0000 (13:27 +0000)]
MD5 - More API polishing

6 years agoMD5 - Add and use an API to process a NULL-terminated string
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

6 years agoMD5 - Use mutt_md5_toascii some more
Pietro Cerutti [Tue, 23 Jan 2018 15:36:09 +0000 (15:36 +0000)]
MD5 - Use mutt_md5_toascii some more

6 years agoMD5 - Initial tests
Pietro Cerutti [Tue, 23 Jan 2018 13:45:39 +0000 (13:45 +0000)]
MD5 - Initial tests

6 years agoMD5 - Implement and use mutt_md5_toascii
Pietro Cerutti [Tue, 23 Jan 2018 13:44:55 +0000 (13:44 +0000)]
MD5 - Implement and use mutt_md5_toascii

6 years agoMD5 - Remove unused functions, unexpose implementation functions
Pietro Cerutti [Tue, 23 Jan 2018 13:23:59 +0000 (13:23 +0000)]
MD5 - Remove unused functions, unexpose implementation functions

6 years agoKill some magic numbers, use mutt_array_size
Pietro Cerutti [Tue, 23 Jan 2018 11:42:42 +0000 (11:42 +0000)]
Kill some magic numbers, use mutt_array_size

6 years agoMake Weekdays, Months, and TimeZones statics, expose mutt_date_make_tls
Pietro Cerutti [Tue, 23 Jan 2018 10:49:16 +0000 (10:49 +0000)]
Make Weekdays, Months, and TimeZones statics, expose mutt_date_make_tls

6 years agoKill mutt_rfc2047_encode_32 macro
Pietro Cerutti [Mon, 22 Jan 2018 17:14:49 +0000 (17:14 +0000)]
Kill mutt_rfc2047_encode_32 macro

6 years agoFix reply_regexp which wasn't formatted correctly.
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.

6 years agoUnit test framework (#1031)
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

6 years agomerge: RFC2047 improvements
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

6 years agolight tidy 1024/head
Richard Russon [Thu, 18 Jan 2018 23:10:35 +0000 (23:10 +0000)]
light tidy

* fix typos
* rename parameters
* add ()s to logic

6 years agoMove mutt_rfc2047_choose_charset to mutt_ch_choose
Pietro Cerutti [Fri, 19 Jan 2018 15:34:03 +0000 (15:34 +0000)]
Move mutt_rfc2047_choose_charset to mutt_ch_choose

Issue #1015

6 years agoUse our base64 API instead of duplicating the decoding algorithm
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

6 years agomove rfc2047 functions to library
Pietro Cerutti [Fri, 12 Jan 2018 16:10:37 +0000 (16:10 +0000)]
move rfc2047 functions to library

6 years agoHandle RFC2047 words split in the middle of a multibyte character
Pietro Cerutti [Fri, 12 Jan 2018 16:10:37 +0000 (16:10 +0000)]
Handle RFC2047 words split in the middle of a multibyte character

6 years agofix for pgpewrap in default gpg.rc (#1023)
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.

6 years agomerge: light refactoring
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

6 years agomove functions to library
Richard Russon [Thu, 18 Jan 2018 11:13:04 +0000 (11:13 +0000)]
move functions to library

6 years agobraces
Richard Russon [Wed, 17 Jan 2018 23:22:39 +0000 (23:22 +0000)]
braces

6 years agocomparison ordering
Richard Russon [Wed, 17 Jan 2018 18:41:30 +0000 (18:41 +0000)]
comparison ordering

6 years agomove unsigned atoi functions
Richard Russon [Wed, 17 Jan 2018 18:21:22 +0000 (18:21 +0000)]
move unsigned atoi functions

6 years agoFix a couple memory leaks in pattern.c
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.

6 years agomerge: fix coverity defects
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

6 years agoforward null checks
Richard Russon [Wed, 17 Jan 2018 16:06:07 +0000 (16:06 +0000)]
forward null checks

6 years agounchecked returns
Richard Russon [Wed, 17 Jan 2018 15:47:32 +0000 (15:47 +0000)]
unchecked returns

6 years agofix logic
Richard Russon [Wed, 17 Jan 2018 15:23:07 +0000 (15:23 +0000)]
fix logic

6 years agotidy logic
Richard Russon [Wed, 17 Jan 2018 15:13:25 +0000 (15:13 +0000)]
tidy logic

6 years agonegative index
Richard Russon [Wed, 17 Jan 2018 15:06:21 +0000 (15:06 +0000)]
negative index

6 years agoptr checks
Richard Russon [Wed, 17 Jan 2018 15:04:17 +0000 (15:04 +0000)]
ptr checks