]> granicus.if.org Git - neomutt/log
neomutt
7 years agodelete trailing whitespace
Richard Russon [Sun, 12 Mar 2017 02:09:10 +0000 (02:09 +0000)]
delete trailing whitespace

7 years agodrop vim modelines
Richard Russon [Sun, 12 Mar 2017 01:27:21 +0000 (01:27 +0000)]
drop vim modelines

We now favour .editorconfig which is controlled at the project level.

7 years agodrop control characters from the source
Richard Russon [Sun, 12 Mar 2017 01:15:02 +0000 (01:15 +0000)]
drop control characters from the source

Specifically, drop ^L (form feed)

7 years agobuild: drop #pragma include guard
Richard Russon [Mon, 13 Mar 2017 09:31:20 +0000 (09:31 +0000)]
build: drop #pragma include guard

7 years agodocs: fix validation for lua
Richard Russon [Sun, 12 Mar 2017 14:01:38 +0000 (14:01 +0000)]
docs: fix validation for lua

7 years agobuild: reorder use of OPS
Richard Russon [Thu, 9 Mar 2017 14:55:16 +0000 (14:55 +0000)]
build: reorder use of OPS

"keymap_defs.h" is generated from the OPS files that are included in the
build.

"keymap_alldefs.h" is generated from ALL the OPS files.
(it's used by "make -C po update-po")

Change the build to ensure they include the OPS files in the same order.

7 years agofix: build warning
Richard Russon [Thu, 9 Mar 2017 14:54:34 +0000 (14:54 +0000)]
fix: build warning

This was introduced by the buffer.c refactor.

7 years agofix typos and grammar in the comments
Richard Russon [Wed, 8 Mar 2017 02:06:11 +0000 (02:06 +0000)]
fix typos and grammar in the comments

7 years agomerge: upstream fixes (mutt/default)
Richard Russon [Sat, 11 Mar 2017 23:38:00 +0000 (23:38 +0000)]
merge: upstream fixes (mutt/default)

 * Add $ssl_verify_partial_chains option for OpenSSL.  (closes #3916)
 * Move the OpenSSL partial chain support check inside configure.ac. (see #3916)
 * Don't allow storing duplicate certs for OpenSSL interactive prompt. (closes #3914)
 * Prevent skipped certs from showing a second time. (see #3916)
 * OpenSSL: Don't offer (a)ccept always choice for hostname mismatches. (closes #3914)

closes #429
closes #459

7 years agoOpenSSL: Don't offer (a)ccept always choice for hostname mismatches. (closes #3914) 459/head
Kevin McCarthy [Thu, 9 Mar 2017 19:59:31 +0000 (11:59 -0800)]
OpenSSL: Don't offer (a)ccept always choice for hostname mismatches. (closes #3914)

On a hostname mismatch, saving the certificate is pointless because
mutt will ask the user no matter if the certificate is saved or not.

The only invocation allowing "accept always" is guarded by a call to
check_certificate_digest(), which means the check_certificate_file()
check is redundant.  Therefore remove that check and add a comment
noting why.

Thanks to Matthias Andree for the original version of this patch.

7 years agoPrevent skipped certs from showing a second time. (see #3916)
Kevin McCarthy [Thu, 9 Mar 2017 18:56:21 +0000 (10:56 -0800)]
Prevent skipped certs from showing a second time. (see #3916)

OpenSSL sometimes passes a skipped certificate to
ssl_verify_callback() a second time, with preverify_ok=1.  From
OpenSSL's viewpoint there is nothing wrong with this, but mutt will
end up showing the certificate in the interactive prompt again.

Cache the last cert and position, and compare with the latest when
skip_mode and preverify_ok are both set.

7 years agoDon't allow storing duplicate certs for OpenSSL interactive prompt. (closes #3914)
Kevin McCarthy [Wed, 8 Mar 2017 02:26:07 +0000 (18:26 -0800)]
Don't allow storing duplicate certs for OpenSSL interactive prompt. (closes #3914)

Check to make sure the certificate is not already in the
$certificate_file before offering the (a)ccept always option.

To allow a cert with a new validity timespan to be added to the file,
check the expiration dates when comparing certificates in the
certficate file.

7 years agoMove the OpenSSL partial chain support check inside configure.ac. (see #3916)
Kevin McCarthy [Wed, 8 Mar 2017 02:26:06 +0000 (18:26 -0800)]
Move the OpenSSL partial chain support check inside configure.ac. (see #3916)

Instead of directly checking whether X509_V_FLAG_PARTIAL_CHAIN is
defined everywhere, do it once inside configure.  This will allow
better support in the future if the test needs to change.

7 years agoAdd $ssl_verify_partial_chains option for OpenSSL. (closes #3916)
Matthias Andree [Wed, 8 Mar 2017 02:26:04 +0000 (18:26 -0800)]
Add $ssl_verify_partial_chains option for OpenSSL.  (closes #3916)

The reworked OpenSSL certificate validation took away a "feature" of
the previous implementation: the ability to reject a node in the chain
and yet continue to the next node.

If this new option is set to 'yes', enables OpenSSL's
X509_V_FLAG_PARTIAL_CHAIN flag to reinstate the functionality and permit
to use a non-root certificate as the trust anchor.

This option is only available if OpenSSL offers the
X509_V_FLAG_PARTIAL_CHAIN macro, which should be the case as of 1.0.2b
or later.

Code written by Kevin McCarthy and Matthias Andree.

7 years agomerge: add lua scripting 298/head
Richard Russon [Sat, 11 Mar 2017 19:11:12 +0000 (19:11 +0000)]
merge: add lua scripting

 * lua: add basic working example
 * Adding basic Lua scripting basics to mutt
 * Refactor of the regex parsing code into its own function
 * Added new headers mutt_commands.h and mutt_options.h
 * Added -B option for batch mode. exiting before any mail sending feature
 * Lua API for Mutt's config and commandline

7 years agoLua API for Mutt's config and commandline
Guyzmo [Sun, 15 Jan 2017 02:29:23 +0000 (03:29 +0100)]
Lua API for Mutt's config and commandline

* adds the following to Mutt's API:
 * `:lua` to execute a line of Lua
 * `:lua-source` to load and run a Lua source file
* exposes the following Mutt API in Lua:
 * `mutt.message()` To write a message on Mutt's command line
 * `mutt.error()` To write an error message on Mutt's command line
 * `mutt.enter()` run an arbitrary Mutt command, like with `:enter-command`
 * `mutt.get()` get a variable from Mutt
 * `mutt.set()` sets a variable from Mutt (with type enforcement)
 * `mutt.call()` calls a command available in mutt, with arguments
 * `mutt.command.*` exposes all the commands from within Mutt
* For some technical details:
 * proper error handling of the Lua interpreter
 * exposed mutt_option_set and mutt_option_get from init

fixes: #153

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
7 years agoAdded -B option for batch mode. exiting before any mail sending feature
Guyzmo [Mon, 16 Jan 2017 21:29:34 +0000 (22:29 +0100)]
Added -B option for batch mode. exiting before any mail sending feature

7 years agoAdded new headers mutt_commands.h and mutt_options.h
Guyzmo [Mon, 16 Jan 2017 13:27:31 +0000 (14:27 +0100)]
Added new headers mutt_commands.h and mutt_options.h

they export data types originally in init.h

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
7 years agoRefactor of the regex parsing code into its own function
Guyzmo [Mon, 16 Jan 2017 12:53:52 +0000 (13:53 +0100)]
Refactor of the regex parsing code into its own function

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
7 years agoAdding basic Lua scripting basics to mutt
Guyzmo [Sat, 14 Jan 2017 12:31:58 +0000 (13:31 +0100)]
Adding basic Lua scripting basics to mutt

* adding two commands:
 - lua: to parse a line of lua code
 - lua-source: to load and parse a lua file
* binding two mutt functions in lua:
 - mutt_message and
 - mutt_error

cf #153

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
7 years agolua: add basic working example
Richard Russon [Tue, 30 Aug 2016 15:00:51 +0000 (16:00 +0100)]
lua: add basic working example

- add lua code template
- add mutt variable
- add mutt function
- set/get lua variables
- call c function from lua
- add lua build deps

7 years agofix: Garbage in chdir prompt due to unescaped string
Richard Russon [Sat, 11 Mar 2017 18:46:00 +0000 (18:46 +0000)]
fix: Garbage in chdir prompt due to unescaped string

I upgraded one of my stable systems to stretch and noticed that when
changing the directory with 'c', there was some garbage at the end of
the string in the prompt. I've not noticed that before on my main
amd64 system, but this stable system is i386, so different alignment
and word size that can affect this kind of thing.

I tracked it down to an unescaped string handling.

Debian BTS#857433

7 years agorefactor: Split out BUFFER-handling functions (#443)
Ian Zimmerman [Tue, 7 Mar 2017 12:19:12 +0000 (04:19 -0800)]
refactor: Split out BUFFER-handling functions (#443)

7 years agomerge: mx cleanups
Richard Russon [Tue, 7 Mar 2017 12:09:48 +0000 (12:09 +0000)]
merge: mx cleanups

 * mx: remove `#ifdef USE_COMPRESSED` in mx_fastclose_mailbox
 * mx: don't make MUTT_NNTP and MUTT_COMPRESSED conditional
 * mx: remove an `#ifdef USE_NNTP` block

Closes #426

7 years agomx: remove an `#ifdef USE_NNTP` block
Damien Riegel [Wed, 22 Feb 2017 23:44:12 +0000 (18:44 -0500)]
mx: remove an `#ifdef USE_NNTP` block

The `MUTT_NNTP` symbol now exists unconditionally, the corresponding
ifdef block is not necessary anymore.

7 years agomx: don't make MUTT_NNTP and MUTT_COMPRESSED conditional
Damien Riegel [Sat, 18 Feb 2017 19:19:58 +0000 (14:19 -0500)]
mx: don't make MUTT_NNTP and MUTT_COMPRESSED conditional

Other symbols like MUTT_IMAP and MUTT_POP don't depend on their
respective configuration flags to be defined, keep the same logic for
MUTT_NNTP and MUTT_COMPRESSED. That makes it easier to remove some
ifdef.

7 years agomx: remove `#ifdef USE_COMPRESSED` in mx_fastclose_mailbox
Damien Riegel [Sat, 18 Feb 2017 18:41:19 +0000 (13:41 -0500)]
mx: remove `#ifdef USE_COMPRESSED` in mx_fastclose_mailbox

Some code to cleanup compressed mailbox on close depends on an #ifdef
block in mx_fastclose_mailbox, but this mailbox specific code should be
implemented in the mx_ops' close function.

This commit moves the call to `mutt_free_compress_info` in the mailbox
close function, allowing us to mark it static and to remove the ifdef.

7 years agoFix uncollapse_new in pager (#447)
Mehdi ABAAKOUK [Tue, 7 Mar 2017 12:05:15 +0000 (13:05 +0100)]
Fix uncollapse_new in pager (#447)

In pager, the index refresher uses the current count as oldcount.

This change fixes that.

Closes #305

7 years agoattachment/pager: Use mailcap for test/* except plain (#449)
Mehdi ABAAKOUK [Tue, 7 Mar 2017 12:02:43 +0000 (13:02 +0100)]
attachment/pager: Use mailcap for test/* except plain (#449)

* attachment: Use mailcap for test/* except plain

This change makes attachment view using mailcap for everything
not text/plain.

* pager: Don't assume all text/* are plaintext

This change removes the assumption that all text/* are humain readable
plaintext.

Closes #430

7 years agodocs: updates for 1.8.0
Richard Russon [Mon, 6 Mar 2017 20:53:09 +0000 (20:53 +0000)]
docs: updates for 1.8.0

7 years agoNeoMutt 2017-03-06 (1.8.0) neomutt-20170306
Richard Russon [Mon, 6 Mar 2017 15:06:13 +0000 (15:06 +0000)]
NeoMutt 2017-03-06 (1.8.0)

7 years agoGet the correct buffer size under fmemopen/torify (#441)
Pietro Cerutti [Mon, 6 Mar 2017 14:16:04 +0000 (14:16 +0000)]
Get the correct buffer size under fmemopen/torify (#441)

* Get the correct buffer size under fmemopen/torify
* Flush only if needed, avoid memory leak
* Initialize variables for eye sanity

7 years agomerge: sync to mutt/default
Richard Russon [Mon, 6 Mar 2017 13:51:27 +0000 (13:51 +0000)]
merge: sync to mutt/default

7 years agoUse static inlines to make gcc 4.2.1 happy 456/head
Pietro Cerutti [Mon, 6 Mar 2017 11:07:06 +0000 (11:07 +0000)]
Use static inlines to make gcc 4.2.1 happy

Closes: #432
7 years agogetdnsdomainname: cancel getaddrinfo_a if needed
Mehdi Abaakouk [Sun, 5 Mar 2017 20:01:48 +0000 (21:01 +0100)]
getdnsdomainname: cancel getaddrinfo_a if needed

if getaddrinfo_a() is not finish on time we must call
gai_cancel() and wait getaddrinfo_a() to finish.

Closes #453

7 years agomerge: upstream fixes (mutt/default)
Richard Russon [Mon, 6 Mar 2017 12:45:01 +0000 (12:45 +0000)]
merge: upstream fixes (mutt/default)

 * Clear out extraneous errors before SSL_connect() (see #3916)
 * SSL: Fix memory leak in subject alternative name code. (closes #3920)
 * Increase ACCOUNT.pass field size. (closes #3921)

7 years agoIncrease ACCOUNT.pass field size. (closes #3921)
Kevin McCarthy [Sun, 5 Mar 2017 23:24:45 +0000 (15:24 -0800)]
Increase ACCOUNT.pass field size. (closes #3921)

#3921 reported his password token used for Google XOAUTH2 is size 129.
The ACCOUNT structure currently uses a size 128 buffer.  Who knew a
password field would ever be bigger than that?

Since the ACCOUNT structure has no allocation/dellocation routines,
the easiest fix is to increase the size.  Bump the size up to 256.

7 years agomerge stable
Kevin McCarthy [Sun, 5 Mar 2017 23:26:03 +0000 (15:26 -0800)]
merge stable

7 years agoIncrease ACCOUNT.pass field size. (closes #3921)
Kevin McCarthy [Sun, 5 Mar 2017 23:24:45 +0000 (15:24 -0800)]
Increase ACCOUNT.pass field size. (closes #3921)

#3921 reported his password token used for Google XOAUTH2 is size 129.
The ACCOUNT structure currently uses a size 128 buffer.  Who knew a
password field would ever be bigger than that?

Since the ACCOUNT structure has no allocation/dellocation routines,
the easiest fix is to increase the size.  Bump the size up to 256.

7 years agoSSL: Fix memory leak in subject alternative name code. (closes #3920)
Matthias Andree [Thu, 2 Mar 2017 23:53:27 +0000 (15:53 -0800)]
SSL: Fix memory leak in subject alternative name code. (closes #3920)

7 years agoClear out extraneous errors before SSL_connect() (see #3916)
Kevin McCarthy [Thu, 2 Mar 2017 21:11:52 +0000 (13:11 -0800)]
Clear out extraneous errors before SSL_connect() (see #3916)

Call ERR_clear_error() just before the call to SSL_connect() to make
sure the error queue doesn't have any old errors in it.

PEM_read_X509() sets an error PEM_R_NO_START_LINE on end-of-file.
Clear that out so it doesn't show up as the SSL_connect() error
message.

7 years agomerge stable
Kevin McCarthy [Thu, 2 Mar 2017 23:54:19 +0000 (15:54 -0800)]
merge stable

7 years agoSSL: Fix memory leak in subject alternative name code. (closes #3920)
Matthias Andree [Thu, 2 Mar 2017 23:53:27 +0000 (15:53 -0800)]
SSL: Fix memory leak in subject alternative name code. (closes #3920)

7 years agomerge stable
Kevin McCarthy [Thu, 2 Mar 2017 22:58:27 +0000 (14:58 -0800)]
merge stable

7 years agoPrevent segv if open-appending to an mbox fails. (closes #3918)
Kevin McCarthy [Thu, 2 Mar 2017 22:53:20 +0000 (14:53 -0800)]
Prevent segv if open-appending to an mbox fails. (closes #3918)

If mbox_open_mailbox_append() fails, ctx->fp will be null.  Add a
check in mbox_close_mailbox(), to prevent a segv from passing null to
fileno().

7 years agomerge stable
Kevin McCarthy [Thu, 2 Mar 2017 21:17:50 +0000 (13:17 -0800)]
merge stable

7 years agoClear out extraneous errors before SSL_connect() (see #3916)
Kevin McCarthy [Thu, 2 Mar 2017 21:11:52 +0000 (13:11 -0800)]
Clear out extraneous errors before SSL_connect() (see #3916)

Call ERR_clear_error() just before the call to SSL_connect() to make
sure the error queue doesn't have any old errors in it.

PEM_read_X509() sets an error PEM_R_NO_START_LINE on end-of-file.
Clear that out so it doesn't show up as the SSL_connect() error
message.

7 years agofix github templates (#444)
Tobias Angele [Tue, 28 Feb 2017 12:30:36 +0000 (13:30 +0100)]
fix github templates (#444)

See: https://github.com/neomutt/neomutt/commit/8824bf52030edc60871ca8a91e47d228b159cf67#commitcomment-21082952

7 years agogithub: added template for Pull Requests, issues and a CONTRIBUTION.md (#339)
Tobias Angele [Tue, 28 Feb 2017 01:47:24 +0000 (02:47 +0100)]
github: added template for Pull Requests, issues and a CONTRIBUTION.md (#339)

* PR template is based on https://gitlab.com/snippets/35985 (thanks @guyzmo)
* tips for good commit messages are based on tpope's guide:
http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html

7 years agoeditorconfig: support for new files, fix whitespace (#439)
Tobias Angele [Tue, 28 Feb 2017 00:52:01 +0000 (01:52 +0100)]
editorconfig: support for new files, fix whitespace (#439)

* Our code contains a lot of whitespace issues, so every commit is
  polluted by whitespace changes with the current editorconfig

* Add support for makefiles, xml, vim and yml files, etc. pp.

7 years agoadd blocking fmemopen bug on debian to manual (#422)
Tobias Angele [Mon, 27 Feb 2017 12:58:20 +0000 (13:58 +0100)]
add blocking fmemopen bug on debian to manual (#422)

See: https://github.com/neomutt/neomutt/issues/361

7 years agoimap: remove useless code (#434)
Tobias Angele [Sat, 25 Feb 2017 16:15:23 +0000 (17:15 +0100)]
imap: remove useless code (#434)

7 years agoFixes missing semi-colon compilation issue (#433)
guyzmo [Sat, 25 Feb 2017 11:47:14 +0000 (12:47 +0100)]
Fixes missing semi-colon compilation issue (#433)

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
7 years agoNeoMutt 2017-02-25 (1.8.0) neomutt-20170225
Richard Russon [Sat, 25 Feb 2017 01:22:29 +0000 (01:22 +0000)]
NeoMutt 2017-02-25 (1.8.0)

7 years agoupdate translation files
Richard Russon [Sat, 25 Feb 2017 01:23:39 +0000 (01:23 +0000)]
update translation files

7 years agomerge: sync to mutt/default
Richard Russon [Sat, 25 Feb 2017 00:46:24 +0000 (00:46 +0000)]
merge: sync to mutt/default

7 years agomerge: upstream fixes (mutt/default)
Richard Russon [Sat, 25 Feb 2017 00:43:07 +0000 (00:43 +0000)]
merge: upstream fixes (mutt/default)

 * Add 1.8.0 entries to the UPDATING file.
 * Reword some of the UPDATING entries.
 * Minor touchups to documentation and UPDATING file.
 * Updated Esperanto translation.
 * Updated Dutch translation.
 * Updated Japanese translation.
 * automatic post-release commit for mutt-1.8.0

7 years agoautomatic post-release commit for mutt-1.8.0
Kevin McCarthy [Fri, 24 Feb 2017 18:50:02 +0000 (10:50 -0800)]
automatic post-release commit for mutt-1.8.0

7 years agoUpdated Japanese translation.
TAKAHASHI Tamotsu [Thu, 23 Feb 2017 16:56:27 +0000 (08:56 -0800)]
Updated Japanese translation.

7 years agoUpdated Dutch translation.
Benno Schulenberg [Wed, 22 Feb 2017 23:58:15 +0000 (15:58 -0800)]
Updated Dutch translation.

7 years agoUpdated Esperanto translation.
Benno Schulenberg [Wed, 22 Feb 2017 20:58:24 +0000 (12:58 -0800)]
Updated Esperanto translation.

7 years agoMinor touchups to documentation and UPDATING file.
Kevin McCarthy [Wed, 22 Feb 2017 20:50:02 +0000 (12:50 -0800)]
Minor touchups to documentation and UPDATING file.

7 years agoReword some of the UPDATING entries.
Kevin McCarthy [Mon, 20 Feb 2017 02:30:51 +0000 (18:30 -0800)]
Reword some of the UPDATING entries.

Thanks to Matthias Andree for his feedback and suggestions!

7 years agoAdd 1.8.0 entries to the UPDATING file.
Kevin McCarthy [Sat, 18 Feb 2017 23:15:01 +0000 (15:15 -0800)]
Add 1.8.0 entries to the UPDATING file.

7 years agomerge default into stable
Kevin McCarthy [Fri, 24 Feb 2017 19:00:38 +0000 (11:00 -0800)]
merge default into stable

7 years agomutt-1.8.0 signed
Kevin McCarthy [Fri, 24 Feb 2017 18:55:23 +0000 (10:55 -0800)]
mutt-1.8.0 signed

7 years agoAdded tag mutt-1-8-rel for changeset d897983752f9
Kevin McCarthy [Fri, 24 Feb 2017 18:50:19 +0000 (10:50 -0800)]
Added tag mutt-1-8-rel for changeset d897983752f9

7 years agoautomatic post-release commit for mutt-1.8.0
Kevin McCarthy [Fri, 24 Feb 2017 18:50:02 +0000 (10:50 -0800)]
automatic post-release commit for mutt-1.8.0

7 years agodocs: fix typo in notmuch example
Richard Russon [Mon, 20 Feb 2017 18:35:38 +0000 (18:35 +0000)]
docs: fix typo in notmuch example

7 years agostyle: don't align assignments -- too often ugly
Richard Russon [Mon, 20 Feb 2017 22:00:04 +0000 (22:00 +0000)]
style: don't align assignments -- too often ugly

7 years agohandle sigint within socket operations (#411)
Edward Betts [Fri, 24 Feb 2017 16:37:16 +0000 (16:37 +0000)]
handle sigint within socket operations (#411)

When trying to use mutt with non-SSL IMAP it intermittently throws
'Error talking to localhost (Interrupted system call)' and closes
the mailbox.

Closes #407
Closes #408
Closes #411

7 years agoUse getaddrinfo_a if possible (#420)
Mehdi ABAAKOUK [Fri, 24 Feb 2017 14:43:36 +0000 (15:43 +0100)]
Use getaddrinfo_a if possible (#420)

When getaddrinfo_a is avialable we can use it to set a timeout for the
dns resolution. This avoid to have mutt that freeze on startup when the
network connection isn't working and the hosts/hostname misconfigured on
the system.

Closes #176
Closes #420

7 years agoUpdated Japanese translation.
TAKAHASHI Tamotsu [Thu, 23 Feb 2017 16:56:27 +0000 (08:56 -0800)]
Updated Japanese translation.

7 years agoRemove ugly macros and casts from crypt-gpgme.c 419/head
Pietro Cerutti [Tue, 21 Feb 2017 14:47:32 +0000 (14:47 +0000)]
Remove ugly macros and casts from crypt-gpgme.c

7 years agofix minor reflow issues in some comments 418/head
toogley [Tue, 21 Feb 2017 20:00:57 +0000 (21:00 +0100)]
fix minor reflow issues in some comments

See: https://github.com/neomutt/neomutt/pull/392#discussion_r102072729
for the discussion.

7 years agoUpdated Dutch translation.
Benno Schulenberg [Wed, 22 Feb 2017 23:58:15 +0000 (15:58 -0800)]
Updated Dutch translation.

7 years agoMerge branch 'translate', updates from upstream
Guillaume Brogi [Wed, 22 Feb 2017 22:47:12 +0000 (23:47 +0100)]
Merge branch 'translate', updates from upstream

Update a bunch of translations from upstream:
    1536c45 Updated Catalan translation.
    ffc0e1f Updated Russian translation.
    55f2b57 Updated Ukrainian translation.
    47341a9 Updated Danish translation.
    b792e8e Updated Czech translation.
    fcf7330 Updated Czech translation.
    975efd6 Updated French translation.

7 years agoUpdated Catalan translation.
Ivan Vilata i Balaguer [Sat, 18 Feb 2017 04:02:46 +0000 (20:02 -0800)]
Updated Catalan translation.

7 years agoUpdated Russian translation.
Vsevolod Volkov [Thu, 16 Feb 2017 20:44:06 +0000 (12:44 -0800)]
Updated Russian translation.

7 years agoUpdated Ukrainian translation.
Vsevolod Volkov [Thu, 16 Feb 2017 20:41:09 +0000 (12:41 -0800)]
Updated Ukrainian translation.

7 years agoUpdated Danish translation.
Morten Bo Johansen [Thu, 16 Feb 2017 19:22:49 +0000 (11:22 -0800)]
Updated Danish translation.

7 years agoUpdated Czech translation.
Petr Pisar [Mon, 13 Feb 2017 20:26:30 +0000 (12:26 -0800)]
Updated Czech translation.

7 years agoUpdated Czech translation.
Petr Pisar [Fri, 10 Feb 2017 20:56:42 +0000 (12:56 -0800)]
Updated Czech translation.

7 years agoUpdated French translation.
Vincent Lefevre [Fri, 10 Feb 2017 11:51:17 +0000 (12:51 +0100)]
Updated French translation.

7 years agoUpdated Esperanto translation.
Benno Schulenberg [Wed, 22 Feb 2017 20:58:24 +0000 (12:58 -0800)]
Updated Esperanto translation.

7 years agoMinor touchups to documentation and UPDATING file.
Kevin McCarthy [Wed, 22 Feb 2017 20:50:02 +0000 (12:50 -0800)]
Minor touchups to documentation and UPDATING file.

7 years agomerge: prepare the source for clang-format
Richard Russon [Mon, 20 Feb 2017 17:19:44 +0000 (17:19 +0000)]
merge: prepare the source for clang-format

 * fix 80 column limit, align statements
 * add clang-format file
 * added comment-blocks for clang-format to ignore
 * editorconfig: use spaces to indent in *.[ch] files

closes #392

7 years agoeditorconfig: use spaces to indent in *.[ch] files 392/head
toogley [Sun, 19 Feb 2017 17:32:19 +0000 (18:32 +0100)]
editorconfig: use spaces to indent in *.[ch] files

7 years agoadded comment-blocks for clang-format to ignore
toogley [Sat, 11 Feb 2017 21:25:20 +0000 (22:25 +0100)]
added comment-blocks for clang-format to ignore

7 years agoadd clang-format file
toogley [Sat, 11 Feb 2017 10:11:33 +0000 (11:11 +0100)]
add clang-format file

7 years agofix 80 column limit, align statements
toogley [Sat, 11 Feb 2017 21:39:47 +0000 (22:39 +0100)]
fix 80 column limit, align statements

7 years agonotmuch: Allow to use untransformed tag for color 417/head
Mehdi Abaakouk [Mon, 20 Feb 2017 09:05:39 +0000 (10:05 +0100)]
notmuch: Allow to use untransformed tag for color

closes #417

7 years agomerge: upstream fixes (mutt/default)
Richard Russon [Mon, 20 Feb 2017 16:52:49 +0000 (16:52 +0000)]
merge: upstream fixes (mutt/default)

 * Change "allow_dups" into a flag at hash creation.
 * Filter expired local certs for OpenSSL verification.
 * Plug memory leak in weed-expired-certs code.
 * Fix potential cert memory leak in check_certificate_by_digest().
 * Show SHA1 fp in interactive cert check menu.
 * Prevent null pointer exception for h->ai_canonname

closes #413

7 years agoPrevent null pointer exception for h->ai_canonname 413/head
Athanasios Douitsis [Sat, 18 Feb 2017 21:30:27 +0000 (21:30 +0000)]
Prevent null pointer exception for h->ai_canonname

The getaddrinfo call in line 54 sets &h to a struct addrinfo. If a
canonical name cannot be found for the node argument of getaddrinfo,
h->ai_canonname is set to NULL. In that case, the strchr call in line
58 can lead to segfault. This behavior was observed on a macos sierra
while the hostname was 192.168.1.3 (unfortunately this happens quite
often in macos).

The fix is simple, just check h->ai_canonname for the NULL value.

7 years agoShow SHA1 fp in interactive cert check menu.
Matthias Andree [Sun, 12 Feb 2017 21:03:03 +0000 (13:03 -0800)]
Show SHA1 fp in interactive cert check menu.

While here, fix a few compiler warnings about sign mismatch in comparison.

7 years agoFix potential cert memory leak in check_certificate_by_digest().
Kevin McCarthy [Sun, 12 Feb 2017 20:24:51 +0000 (12:24 -0800)]
Fix potential cert memory leak in check_certificate_by_digest().

Thanks to Matthias Andree's debugging, it appears the cert is not
freed when PEM_read_X509() encounters EOF.  Change the return value
check to not overwrite cert.  It is already updated via the second
parameter.

7 years agoPlug memory leak in weed-expired-certs code.
Matthias Andree [Sun, 12 Feb 2017 17:59:48 +0000 (09:59 -0800)]
Plug memory leak in weed-expired-certs code.

X509_STORE_add_cert() creates a copy of the certificate we're offering,
so we need to free our copy afterwards.  This isn't documented, but from
observed behaviour in OpenSSL 1.0.2 and its master branch source code.

Change PEM_read_X509() call to reuse cert to avoid free/reallocation
overhead.

7 years agoFilter expired local certs for OpenSSL verification.
Kevin McCarthy [Sun, 12 Feb 2017 17:59:41 +0000 (09:59 -0800)]
Filter expired local certs for OpenSSL verification.

OpenSSL has trouble establishing the chain and verifying when
duplicate expired certs are loaded in from $certificate_file.  A
warning about this is mentioned in
SSL_CTX_load_verify_locations(3SSL).

Filter out expired certs when loading verify certs.  Note that the
full certicates file is still used for verification in
check_certificate_by_digest().

7 years agoChange "allow_dups" into a flag at hash creation.
Kevin McCarthy [Fri, 10 Feb 2017 21:01:21 +0000 (13:01 -0800)]
Change "allow_dups" into a flag at hash creation.

Instead of having an "allow_dups" parameter for hash_insert(), add a
flag, MUTT_HASH_ALLOW_DUPS, to hash_create().

Currently ReverseAlias, subj_hash, and thread_hash allow duplicate
keys.  Change those hashes to pass the flag at creation, and remove
the last parameter from all callers of hash_insert().

7 years agomerge: fix coverity defects
Richard Russon [Mon, 20 Feb 2017 16:46:15 +0000 (16:46 +0000)]
merge: fix coverity defects

 * fix: resource leak - CID 76962
 * fix: resource leak - CID 76963
 * fix: resource leak - CID 76965
 * fix: resource leak - CID 76966
 * fix: resource leak - CID 76967
 * fix: resource leak - CID 76968
 * fix: resource leak - CID 76972
 * fix: resource leak - CID 76975
 * fix: resource leak - CID 76976
 * fix: resource leak - CID 76977
 * fix: resource leak - CID 76978
 * fix: resource leak - CID 76979
 * fix: resource leak - CID 76980
 * fix: resource leak - CID 76982
 * fix: resource leak - CID 76983
 * fix: resource leak - CID 76984
 * fix: resource leak - CID 76985
 * fix: resource leak - CID 76986
 * fix: resource leak - CID 83477
 * fix: resource leak - CID 83478
 * fix: resource leak - CID 150921
 * fix: resource leak - CID 160977

closes: #405