]> granicus.if.org Git - neomutt/log
neomutt
7 years agoreplace 'ACCOUNT' with 'struct Account'
Richard Russon [Mon, 15 May 2017 13:25:32 +0000 (14:25 +0100)]
replace 'ACCOUNT' with 'struct Account'

7 years agoFix missing NONULL for mutt.set() in Lua (#578)
guyzmo [Sat, 13 May 2017 12:50:25 +0000 (14:50 +0200)]
Fix missing NONULL for mutt.set() in Lua (#578)

fixes #567

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
7 years agobuild: fix the git_ver.h dependencies
Richard Russon [Fri, 12 May 2017 15:13:42 +0000 (16:13 +0100)]
build: fix the git_ver.h dependencies

Before, 'git_ver.h' was always considered out-of-date.
That meant that main.c kept being recompiled.

Now, the state of git is checked, but if nothing has changed, nothing
will be rebuilt.

7 years agobuild: only compile hcache on request
Richard Russon [Fri, 12 May 2017 15:13:37 +0000 (16:13 +0100)]
build: only compile hcache on request

If none of the header cache backends are requested, don't go into the
hcache dir.

7 years agocoverity: fix defects
Richard Russon [Thu, 11 May 2017 14:28:34 +0000 (15:28 +0100)]
coverity: fix defects

Most of these trivial problems were discovered when NNTP got enabled in
the default build.

- dereference after null check
- resource leak
- uninit pointer
- uninit var
- unused value

7 years agomerge: upstream fixes (mutt/default)
Richard Russon [Fri, 12 May 2017 13:09:29 +0000 (14:09 +0100)]
merge: upstream fixes (mutt/default)

 * Convert all exec calls to use mutt_envlist(), remove setenv function.
 * Note that mbox-hooks are dependent on $move.
 * Refresh header color when updating label. (closes #3935)
 * Remove glibc-specific execvpe() call in sendlib.c. (see #3937)
 * Add color commands for the compose menu headers and security status. (closes #3915).
 * Fix sidebar count updates when closing mailbox. (closes #3938)
 * Don't modify LastFolder/CurrentFolder upon aborting a change folder operation.
 * Change message modifying operations to additively set redraw flags.
 * Improve maildir and mh to report flag changes in mx_check_mailbox() (closes #3865)
 * Add $header_color_partial to allow partial coloring of headers.
 * Rename REDRAW_SIGWINCH to REDRAW_FLOW.
 * Create R_PAGER_FLOW config variable flag.

7 years agoCreate R_PAGER_FLOW config variable flag.
Kevin McCarthy [Tue, 9 May 2017 23:07:46 +0000 (16:07 -0700)]
Create R_PAGER_FLOW config variable flag.

Use this for $header_color_partial, $markers, and $smart_wrap.  When
these options are changed in the pager, this flag will force a
recalculation of lineInfo.

Remove the manual checks in OP_ENTER_COMMAND for $markers and
$smart_wrap, and instead use the same REDRAW_FLOW processing used for
a SigWinch.

7 years agoRename REDRAW_SIGWINCH to REDRAW_FLOW.
Kevin McCarthy [Tue, 9 May 2017 23:07:42 +0000 (16:07 -0700)]
Rename REDRAW_SIGWINCH to REDRAW_FLOW.

The next patch will attach this redraw flag to pager settings.  The
former name becomes somewhat confusing with the expanded usage, so
rename it to something more relevant to what is being redrawn.

7 years agoAdd $header_color_partial to allow partial coloring of headers.
Kevin McCarthy [Tue, 9 May 2017 01:48:25 +0000 (18:48 -0700)]
Add $header_color_partial to allow partial coloring of headers.

When set, a regexp match will color only the matched text in the
header.  When unset (the default), the entire header will have color
applied.

With appropriate regexps, this allows coloring of just the header
field name.  Of course, it can also be used to highlight arbitrary
phrases in the headers too.

7 years agoImprove maildir and mh to report flag changes in mx_check_mailbox() (closes #3865)
Kevin McCarthy [Sun, 7 May 2017 22:11:43 +0000 (15:11 -0700)]
Improve maildir and mh to report flag changes in mx_check_mailbox() (closes #3865)

mx_check_mailbox() would update the header flags, but was not
returning MUTT_FLAGS back to the index loop.  That meant a screen
redraw was needed to be notified of externally modified flags.

Change maildir_update_flags() to return 1 if the flags were actually
changed.  Change maildir_check_mailbox() and mh_check_mailbox() to
return MUTT_FLAGS when that happens.

Thanks to jcdenton and mike-burns for the original patch.

7 years agoChange message modifying operations to additively set redraw flags.
Kevin McCarthy [Fri, 5 May 2017 19:46:36 +0000 (12:46 -0700)]
Change message modifying operations to additively set redraw flags.

With the ability to set redraw flags with the menu stack operations,
some operations internally modify the current menu redraw flag.
For instance, _mutt_set_flag() can now set REDRAW_SIDEBAR.

Change the ops that modify messages to use 'redraw |= REDRAW_X'
instead of overwriting the flag value.

7 years agoDon't modify LastFolder/CurrentFolder upon aborting a change folder operation.
Kevin McCarthy [Fri, 5 May 2017 20:55:31 +0000 (13:55 -0700)]
Don't modify LastFolder/CurrentFolder upon aborting a change folder operation.

Set LastFolder and CurrentFolder after mx_close_mailbox() has
successfully completed.  Otherwise, if the close is aborted, they will
have incorrect values.

7 years agoFix sidebar count updates when closing mailbox. (closes #3938)
Kevin McCarthy [Fri, 5 May 2017 01:05:06 +0000 (18:05 -0700)]
Fix sidebar count updates when closing mailbox. (closes #3938)

The context unread and flagged counts were being updated too early in
mx_close_mailbox().  Cancelling at any of the following prompts would
leave them in an incorrect state.  Additionally, $move could increase
the delete count (for flagged messages), and $delete, if answered no,
could turn off message deletion.

Move all the sidebar buffy stat updating to the bottom of the
function, after all the prompts and processing.

7 years agoAdd color commands for the compose menu headers and security status. (closes #3915).
Kevin McCarthy [Thu, 4 May 2017 01:52:54 +0000 (18:52 -0700)]
Add color commands for the compose menu headers and security status. (closes #3915).

Add "color compose header" to color the From/To/Subject/etc fields in
the compose menu.

Add "color compose security_encrypt/sign/both/none" to color the
security status of the message.

7 years agoRemove glibc-specific execvpe() call in sendlib.c. (see #3937)
Kevin McCarthy [Sun, 30 Apr 2017 22:56:15 +0000 (15:56 -0700)]
Remove glibc-specific execvpe() call in sendlib.c. (see #3937)

Changeset fa1192803257 converted all exec calls to use mutt_envlist().
Unfortunately, the call in sendlib.c, execvpe(), is a glibc extension.

Convert back to execvp() for now, to fix the build on MacOS.

7 years agoRefresh header color when updating label. (closes #3935)
Kevin McCarthy [Sun, 30 Apr 2017 22:20:56 +0000 (15:20 -0700)]
Refresh header color when updating label. (closes #3935)

color index with a '~y' pattern were not being updated after
adding/removing labels.

7 years agoNote that mbox-hooks are dependent on $move.
Kevin McCarthy [Sun, 30 Apr 2017 20:32:14 +0000 (13:32 -0700)]
Note that mbox-hooks are dependent on $move.

Add a note to the "Using Multiple Spool Mailboxes" section.

7 years agoConvert all exec calls to use mutt_envlist(), remove setenv function.
Vincent Lefevre [Sun, 30 Apr 2017 19:25:08 +0000 (12:25 -0700)]
Convert all exec calls to use mutt_envlist(), remove setenv function.

The documentation implies that all children processes will be affected
by the setenv command, so convert all the exec calls to use
mutt_envlist().

The setenv("GPG_TTY") call is no longer needed so remove it.

With that removed, there are no other setenv calls in mutt, so remove
the autoconf check and replacement function.

7 years agofactor out debug code
Richard Russon [Thu, 27 Apr 2017 11:00:12 +0000 (12:00 +0100)]
factor out debug code

7 years agodocs: remove some upstream references
Richard Russon [Tue, 2 May 2017 23:48:33 +0000 (00:48 +0100)]
docs: remove some upstream references

7 years agoMinor code tidying
Richard Russon [Mon, 1 May 2017 14:08:01 +0000 (15:08 +0100)]
Minor code tidying

- remove unnecessary comments
- add missing copyright email
- notmuch: remove orphan function name
- remove unused AM_CONDITIONAL
- drop unnecessary bool definition
- fix F_SENSITIVE constant

7 years agomerge: drop PATCHES, tidy 'mutt -v' output
Richard Russon [Fri, 12 May 2017 13:08:21 +0000 (14:08 +0100)]
merge: drop PATCHES, tidy 'mutt -v' output

 * drop PATCHES
 * version: lowercase, tidy
 * docs: drop refs to patches
 * highlight changes

7 years agohighlight changes 570/head
Richard Russon [Tue, 2 May 2017 22:46:47 +0000 (23:46 +0100)]
highlight changes

7 years agodocs: drop refs to patches
Richard Russon [Tue, 2 May 2017 23:31:15 +0000 (00:31 +0100)]
docs: drop refs to patches

7 years agoversion: lowercase, tidy
Richard Russon [Wed, 3 May 2017 00:33:34 +0000 (01:33 +0100)]
version: lowercase, tidy

7 years agodrop PATCHES
Richard Russon [Tue, 2 May 2017 22:46:40 +0000 (23:46 +0100)]
drop PATCHES

7 years agomerge: always build features which have no build deps
Richard Russon [Fri, 12 May 2017 13:07:11 +0000 (14:07 +0100)]
merge: always build features which have no build deps

 * configure: drop --enable-compressed
 * configure: drop --enable-imap
 * configure: need_md5 is now always built-in
 * configure: drop need_imap
 * configure: drop need_socket
 * configure: drop --enable-pop
 * configure: drop --enable-nntp
 * drop: --enable-smtp
 * Makefile.am: reflow lists of files
 * remove preprocessor else clauses

7 years agoremove preprocessor else clauses 565/head
Richard Russon [Tue, 2 May 2017 13:15:53 +0000 (14:15 +0100)]
remove preprocessor else clauses

Remove the #else clauses from the preprocessor now that these symbols
are always defined:
    USE_COMPRESSED
    USE_IMAP
    USE_NNTP
    USE_POP
    USE_SIDEBAR
    USE_SMTP
    USE_SOCKET

7 years agoMakefile.am: reflow lists of files
Damien Riegel [Tue, 2 May 2017 03:03:01 +0000 (23:03 -0400)]
Makefile.am: reflow lists of files

These lists were edited but not reflowed to keep the commit diff as
small as possible and readable.

7 years agodrop: --enable-smtp
Damien Riegel [Tue, 2 May 2017 01:27:18 +0000 (21:27 -0400)]
drop: --enable-smtp

Make SMTP feature built-in.

7 years agoconfigure: drop --enable-nntp
Damien Riegel [Tue, 2 May 2017 01:25:54 +0000 (21:25 -0400)]
configure: drop --enable-nntp

Make NNTP feature built-in.

7 years agoconfigure: drop --enable-pop
Damien Riegel [Tue, 2 May 2017 01:23:00 +0000 (21:23 -0400)]
configure: drop --enable-pop

Make pop feature built-in.

7 years agoconfigure: drop need_socket
Damien Riegel [Tue, 2 May 2017 01:59:13 +0000 (21:59 -0400)]
configure: drop need_socket

Socket files are now always integrated in the build.

7 years agoconfigure: drop need_imap
Damien Riegel [Tue, 2 May 2017 01:56:21 +0000 (21:56 -0400)]
configure: drop need_imap

Imap being built-in, body cache is too.

7 years agoconfigure: need_md5 is now always built-in
Damien Riegel [Tue, 2 May 2017 01:48:26 +0000 (21:48 -0400)]
configure: need_md5 is now always built-in

md5 was dependent on other features to be built or not. Now that imap is
built-in, we will always need md5 as built-in as well.

7 years agoconfigure: drop --enable-imap
Damien Riegel [Tue, 2 May 2017 01:20:29 +0000 (21:20 -0400)]
configure: drop --enable-imap

Make imap feature built-in.

7 years agoconfigure: drop --enable-compressed
Damien Riegel [Tue, 2 May 2017 01:17:51 +0000 (21:17 -0400)]
configure: drop --enable-compressed

Make compression feature built-in.

7 years agobuild: default to silent make rules
Richard Russon [Mon, 1 May 2017 15:08:09 +0000 (16:08 +0100)]
build: default to silent make rules

7 years agobuild: add separate hcache dir 574/head
Richard Russon [Fri, 5 May 2017 00:12:45 +0000 (01:12 +0100)]
build: add separate hcache dir

7 years agobuild: make dotlock optional
Richard Russon [Wed, 3 May 2017 13:38:10 +0000 (14:38 +0100)]
build: make dotlock optional

7 years agoadd %z format strings to index_format
Stefan Assmann [Fri, 24 Mar 2017 07:48:27 +0000 (08:48 +0100)]
add %z format strings to index_format

The %Z format string consists of three columns.
Split those up into individual columns to allow more fine grained
control over which flags should be displayed.
%zs message status flags
%zc message crypto flags
%zt message tag flags

There's a small difference compared to %Z which is that the delete flags
have been moved from the crypto column to the status column. %Z will not
be removed for backwards compatibility reasons.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
7 years agoAdd debug_level/debug_file options 448/head
Mehdi Abaakouk [Wed, 1 Mar 2017 22:02:10 +0000 (23:02 +0100)]
Add debug_level/debug_file options

This change allows to change debug_level and debug_file on the fly.

It adds the -l mutt arguments to pass the logging file on startup.

debug options passed as mutt arguments always override the configuration
file.

Closes #445

7 years agomerge: Warn on bindkey aliasing
Richard Russon [Fri, 12 May 2017 13:04:49 +0000 (14:04 +0100)]
merge: Warn on bindkey aliasing

 * Warn on bindkey aliasing
 * Create source warnings for binding aliases
 * Detect missing function mapping
 * fix bind error messages

7 years agofix bind error messages 470/head
Richard Russon [Fri, 12 May 2017 13:01:34 +0000 (14:01 +0100)]
fix bind error messages

Some messages were displayed that shouldn't have been (when bind
succeeded).  Some errors weren't getting reported (they were overwritten
by other messages).

7 years agoDetect missing function mapping
somini [Mon, 24 Apr 2017 12:50:48 +0000 (13:50 +0100)]
Detect missing function mapping

Move the missing function detection code into the `try_bind` function.
Improve the error message to include the menu name.

7 years agoCreate source warnings for binding aliases
somini [Sat, 18 Mar 2017 22:39:27 +0000 (22:39 +0000)]
Create source warnings for binding aliases

This is somewhat hack-y, but it makes it possible to have the binding
alias trigger source warnings with file name and location.

7 years agoWarn on bindkey aliasing
somini [Wed, 15 Mar 2017 14:17:47 +0000 (14:17 +0000)]
Warn on bindkey aliasing

On binding a key sequence that alias an existing mapping, warn the user.

7 years agomerge: configure.ac improvements
Richard Russon [Wed, 3 May 2017 12:39:34 +0000 (13:39 +0100)]
merge: configure.ac improvements

 * remove check on unix.h
 * remove check on stdarg.h
 * remove check on inline and const
 * remove check on wide chars
 * remove check on fgetpos
 * remove check on memmove
 * remove check on strerror
 * remove check on srand48
 * remove check on long long int
 * signal: remove test on SYS_SIGLIST_DECLARED
 * simplify sig_atomic_t check
 * remove check for <dirent.h> d_ino
 * drop LANGINFO checks
 * remove stuff defined in POSIX:2001
 * use basic getopt from unistd.h
 * drop HAVE_UNISTD_H
 * unused prototypes - unsupported systems
 * sys/types.h
 * sys/select.h
 * inttypes.h includes stdint.h
 * Drop obsolete iconv check
 * Drop another obsolete iconv check
 * tidy md5

7 years agotidy md5 564/head
Richard Russon [Sat, 29 Apr 2017 16:00:00 +0000 (17:00 +0100)]
tidy md5

No code changes.

This code is imported from the GNU Library.
It contained a lot of definitions and compatability code that we don't
need.  Also, tidy some comment blocks.

@gahr
Leverage on AC_C_BIGENDIAN instead of glibc's endian.h

7 years agoDrop another obsolete iconv check
Richard Russon [Mon, 1 May 2017 03:37:18 +0000 (04:37 +0100)]
Drop another obsolete iconv check

Don't check for a bug in 18 year-old packages

7 years agoDrop obsolete iconv check
Richard Russon [Mon, 1 May 2017 03:29:47 +0000 (04:29 +0100)]
Drop obsolete iconv check

Don't check for a bug in 18 year-old packages

7 years agointtypes.h includes stdint.h
Richard Russon [Mon, 1 May 2017 02:29:35 +0000 (03:29 +0100)]
inttypes.h includes stdint.h

<inttypes.h> is part of posix:2001
It includes <stdint.h>

7 years agosys/select.h
Richard Russon [Mon, 1 May 2017 02:26:21 +0000 (03:26 +0100)]
sys/select.h

<sys/select.h> is part of posix:2001

7 years agosys/types.h
Richard Russon [Mon, 1 May 2017 02:26:02 +0000 (03:26 +0100)]
sys/types.h

<sys/types.h> is part of posix:2001

7 years agounused prototypes - unsupported systems
Richard Russon [Mon, 1 May 2017 02:19:17 +0000 (03:19 +0100)]
unused prototypes - unsupported systems

Drop compatibility for unsupported platforms

7 years agodrop HAVE_UNISTD_H
Richard Russon [Mon, 1 May 2017 02:00:57 +0000 (03:00 +0100)]
drop HAVE_UNISTD_H

<unistd.h> is part of posix:2001

7 years agouse basic getopt from unistd.h
Richard Russon [Mon, 1 May 2017 01:47:23 +0000 (02:47 +0100)]
use basic getopt from unistd.h

getopt() is defined in <unistd.h>
<getopt.h> would only be needed if we used getopt_long()

7 years agoremove stuff defined in POSIX:2001
Damien Riegel [Wed, 19 Apr 2017 17:31:59 +0000 (13:31 -0400)]
remove stuff defined in POSIX:2001

Headers:
    locale.h
    sys/time.h
    sys/resource.h
    sys/select.h

Header checks:
    HAVE_FTRUNCATE
    HAVE_INTTYPES_H
    HAVE_ISWBLANK
    HAVE_LOCALE_H
    HAVE_SETRLIMIT
    HAVE_SYS_RESOURCE_H
    HAVE_SYS_SELECT_H
    HAVE_SYS_TIME_H

Functions:
    getopt
    getsid
    setegid
    setenv
    setrlimit
    strcasecmp
    strdup
    strftime
    strncasecmp
    strtok_r
    fseeko

Types:
    pid_t
    ssize_t
    socklen_t

7 years agodrop LANGINFO checks
Richard Russon [Sat, 29 Apr 2017 15:44:26 +0000 (16:44 +0100)]
drop LANGINFO checks

posix:2001 defines nl_langinfo in <langinfo.h>

All the constants we use are also part of posix:2001
CODESET, D_T_FMT, YESEXPR, NOEXPR

7 years agoremove check for <dirent.h> d_ino
Richard Russon [Mon, 1 May 2017 04:38:15 +0000 (05:38 +0100)]
remove check for <dirent.h> d_ino

posix:2001 declares 'd_ino' in <dirent.h>

7 years agosimplify sig_atomic_t check
Richard Russon [Mon, 1 May 2017 03:13:06 +0000 (04:13 +0100)]
simplify sig_atomic_t check

posix:2001 declares 'sig_atomic_t' in signal.h
We only need to check if it's declared with the 'volatile' symbol.
Streamline the autoconf checking.

7 years agosignal: remove test on SYS_SIGLIST_DECLARED
Damien Riegel [Wed, 19 Apr 2017 17:14:09 +0000 (13:14 -0400)]
signal: remove test on SYS_SIGLIST_DECLARED

AC_DECL_SYS_SIGLIST check was removed in:

  7ce41d94e: update configure.ac with autoupdate

So testing SYS_SIGLIST_DECLARED doesn't make sense any more, it has been
replaced by HAVE_DECL_SYS_SIGLIST.

7 years agoremove check on long long int
Damien Riegel [Wed, 19 Apr 2017 16:53:08 +0000 (12:53 -0400)]
remove check on long long int

This is C99 standard, and nobody relies on the LONGLONG symbol anyway

7 years agoremove check on srand48
Damien Riegel [Wed, 19 Apr 2017 16:46:51 +0000 (12:46 -0400)]
remove check on srand48

Code doesn't refer to srand48

7 years agoremove check on strerror
Damien Riegel [Wed, 19 Apr 2017 16:43:03 +0000 (12:43 -0400)]
remove check on strerror

Part of C99

7 years agoremove check on memmove
Damien Riegel [Wed, 19 Apr 2017 16:35:59 +0000 (12:35 -0400)]
remove check on memmove

Part of C99

7 years agoremove check on fgetpos
Damien Riegel [Wed, 19 Apr 2017 16:34:31 +0000 (12:34 -0400)]
remove check on fgetpos

Part of C99

7 years agoremove check on wide chars
Damien Riegel [Wed, 19 Apr 2017 16:06:19 +0000 (12:06 -0400)]
remove check on wide chars

These types (wchar_t, wint_t, mbstate_t) and functions (isw* and tow*)
are part of C99 standard.

7 years agoremove check on inline and const
Damien Riegel [Wed, 19 Apr 2017 15:54:11 +0000 (11:54 -0400)]
remove check on inline and const

AC_C_CONST is marked obsolescent and inline is already checked by
AC_PROG_CC_C99, so it's redundant.

7 years agoremove check on stdarg.h
Damien Riegel [Wed, 19 Apr 2017 15:43:30 +0000 (11:43 -0400)]
remove check on stdarg.h

As stated in Autotools Manual, AC_HEADER_STDC already checks for
stdarg.h presence, so double checking is useless.

7 years agoremove check on unix.h
Damien Riegel [Wed, 19 Apr 2017 15:41:39 +0000 (11:41 -0400)]
remove check on unix.h

This header is not used anymore, this check can be dropped.

7 years agobuild: fix dist, distclean targets
Richard Russon [Tue, 2 May 2017 14:08:55 +0000 (15:08 +0100)]
build: fix dist, distclean targets

'make dist' didn't install the 'lua' and 'hcache-bench' dirs.
'make distclean' deleted 'po/mutt.pot' and 'doc/neomutt-syntax.vim'

Fixes #566

7 years agobuild: change gpgme requirement back to 1.1.0 560/head
Richard Russon [Fri, 28 Apr 2017 23:44:14 +0000 (00:44 +0100)]
build: change gpgme requirement back to 1.1.0

RHEL6 is still using GPGME 1.1.8, which doesn't have the function
`gpgme_op_export_keys`.  Revert the GPGME requirement to 1.1.0 and put
back the #ifdef's around the missing function.

7 years agobuild: remove check_sec.sh 559/head
Richard Russon [Sat, 29 Apr 2017 11:23:10 +0000 (12:23 +0100)]
build: remove check_sec.sh

This script looked for mistakes when using mutt functions such as
safe_free().  It was crude.  Coverity can do a better job without us
having to litter the code with /* __FREE_CHECKED__ */ comments.

7 years agoconfigure: make it more consistent 549/head
Damien Riegel [Mon, 24 Apr 2017 21:24:52 +0000 (17:24 -0400)]
configure: make it more consistent

Most of the diff is reworking how notmuch is built. It used an extra
AM_CONDITIONAL but was the only component to do so, so change that to
make it consistent with the rest of the configure.

Lua picked the same thing but BUILD_LUA is actually never used, so it
could be dropped too.

Rest of the commit cleans up some pollution between MUTTLIBS and LIBS.

7 years agoremove some obsolete HAVE_ tests
Damien Riegel [Mon, 24 Apr 2017 21:16:59 +0000 (17:16 -0400)]
remove some obsolete HAVE_ tests

Delete tests against some defines because there is nothing in configure
to generate those defines:

     HAVE_ALLOCA_H
     HAVE_GNUTLS_OPENSSL_H
     HAVE_PGP
     HAVE_REGCOMP
     HAVE_SMIME

They are like `#if 0`, only harder to spot!

7 years agoclang-format: Insert spaces inside braces
Richard Russon [Sun, 23 Apr 2017 00:41:03 +0000 (01:41 +0100)]
clang-format: Insert spaces inside braces

Adding the option 'Cpp11BracedListStyle: false' means that struct data
in braces has some whitespace padding.

const char *missing[3] = {"brown", "lightgray", "default"};

const char *missing[3] = { "brown", "lightgray", "default" };

7 years agoclang-format: adjust layout of structs
Richard Russon [Sat, 22 Apr 2017 16:34:56 +0000 (17:34 +0100)]
clang-format: adjust layout of structs

Some structs are packed by clang-format, leaving the closing brace
n the same line as the data:

char *known[] = {"color-xterm", "cygwin", "eterm",  "kterm", "nxterm",
                 "putty",       "rxvt",   "screen", "xterm", NULL};

By inserting a comma after the last data item (allowed by C99),
clang-format produces a more pleasant-looking layout:

char *known[] = {
    "color-xterm", "cygwin", "eterm",  "kterm", "nxterm",
    "putty",       "rxvt",   "screen", "xterm", NULL,
};

7 years agotranslations: remove unused (f)orget option
Richard Russon [Sun, 27 Nov 2016 14:41:30 +0000 (14:41 +0000)]
translations: remove unused (f)orget option

This undocumented option interfered with the order of the translations.

7 years agomerge: cleanup of lots of docs
Richard Russon [Sat, 29 Apr 2017 12:50:30 +0000 (13:50 +0100)]
merge: cleanup of lots of docs

7 years agodoc: remove feature muttrc files 497/head
Tobias Angele [Mon, 17 Apr 2017 14:23:14 +0000 (16:23 +0200)]
doc: remove feature muttrc files

are duplicates of manual muttrc sections

7 years agomerge README.notmuch into manual
Tobias Angele [Mon, 17 Apr 2017 13:09:44 +0000 (15:09 +0200)]
merge README.notmuch into manual

7 years agoremove unneded scripts
Tobias Angele [Mon, 17 Apr 2017 11:12:18 +0000 (13:12 +0200)]
remove unneded scripts

* the functionality of the mutt_xtitle script already covered by
  https://www.neomutt.org/guide/reference#ts-status-format (according to
  @flatcap)

[ci skip]

7 years agoremove README.SECURITY
Tobias Angele [Mon, 17 Apr 2017 10:31:37 +0000 (12:31 +0200)]
remove README.SECURITY

content is already covered inside
https://www.neomutt.org/guide/mimesupport.html#secure-mailcap

[ci skip]

7 years agoremove BEWARE and devel-notes.txt
Tobias Angele [Mon, 17 Apr 2017 11:14:56 +0000 (13:14 +0200)]
remove BEWARE and devel-notes.txt

* For the inclusion of the BEWARE/devel-notes.txt file on the website,
  please see: neomutt/neomutt.github.io#33/

[ci skip]

7 years agoupdate Makefiles
Tobias Angele [Sun, 9 Apr 2017 15:24:33 +0000 (17:24 +0200)]
update Makefiles

7 years agodelete TODO files
Tobias Angele [Sun, 9 Apr 2017 14:39:15 +0000 (16:39 +0200)]
delete TODO files

see https://github.com/neomutt/neomutt/milestone/9

7 years agoremove legacy files
Tobias Angele [Mon, 17 Apr 2017 12:00:43 +0000 (14:00 +0200)]
remove legacy files

* README (infos for mutt 1.5) doesn't contain useful infos
* NEWS (infos about mutt 1.2) is too legacy, neomutt started with mutt 1.5

7 years agodon't generate vim-neomutt syntax file
Tobias Angele [Sun, 9 Apr 2017 08:54:31 +0000 (10:54 +0200)]
don't generate vim-neomutt syntax file

7 years agodoc: remove LaTeX/pdf manual generation
Tobias Angele [Sun, 9 Apr 2017 08:49:46 +0000 (10:49 +0200)]
doc: remove LaTeX/pdf manual generation

7 years agoremove --enable-sidebar and make it persistent 528/head
toogley [Tue, 18 Apr 2017 13:22:35 +0000 (15:22 +0200)]
remove --enable-sidebar and make it persistent

It was decided to keep the USE_SIDEBAR tests in the codebase to make it
easier to find code related to that feature, but that requires
USE_SIDEBAR to be defined, or it breaks compilation because some symbol
definitions depend on that config option.

7 years agogithub: improve PR template and CONTRIBUTING.md 540/head
toogley [Thu, 20 Apr 2017 08:03:25 +0000 (10:03 +0200)]
github: improve PR template and CONTRIBUTING.md

PR template:

* made structural questions bold to contrast it from the actual
  PR description.

* add note that acceptance criteria can be removed when the PR is
  submitted. Its only meant as a reminder.

* fixed manual link.

CONTRIBUTING.md:

* wrap text at 80 characters.

* add note to mention specific methods or files if the commit only
  changes things there.

[ci skip]

7 years agoNeoMutt Release 2017-04-28 neomutt-20170428
Richard Russon [Fri, 28 Apr 2017 11:34:41 +0000 (12:34 +0100)]
NeoMutt Release 2017-04-28

7 years agoFix km_error_key() infinite loop and unget buffer pollution.
Kevin McCarthy [Fri, 28 Apr 2017 04:22:08 +0000 (21:22 -0700)]
Fix km_error_key() infinite loop and unget buffer pollution.

'bind pager \Ch help' produces an infinite loop when an unbound key is
pressed in the pager.  The reason is because km_error_key() tries to
verify that the key sequence is really bound to the OP_HELP operation.
It does this by using km_expand_key(), tokenize_unget_string() on the
resulting buffer, then checking if the next km_dokey() returns OP_HELP.

The problem is that km_expand_key() does not always produce a string
that is properly reparsed by tokenize_unget_string().  Control-h
sequences are expanded to ^H.  tokenize_unget_string() recognizes this
as two characters '^' and 'H'.  km_error_key() checks the OP returned,
which is OP_PAGER_TOP for the '^'.  This is not OP_HELP, so it prints
a generic error and returns.  This leaves the 'H' in the input buffer!
Since 'H' (by default) is unbound in the pager, it retriggers
km_error_key(), resulting in an infinite loop.

The same issues can occur without control sequences:
  bind generic ? noop
  bind generic dq help
In the index, hitting an unbound key will end up leaving 'q' in the unget
buffer, because 'd' is bound in the index menu and will be read by km_dokey().

A simple approach to fix this would be to just use the same code as in
mutt_make_help(), which has no double-check.  This would be no worse
than the help menu, but can generate an inaccurate error message (e.g
if '?' were bound to noop)

This patch instead uses OP_END_COND as a barrier in the unget buffer.
It directly inserts the keys in the OP_HELP keymap, instead of using
km_expand_key() + tokenize_unget_string().  After calling km_dokey()
it flushes the unget buffer to the OP_END_COND barrier.

Thanks to Walter Alejandro Iglesias for reporting the bug.

7 years agoFix error message when opening a mailbox with no read permission. (closes #3934)
Roger Cornelius [Wed, 26 Apr 2017 22:40:34 +0000 (15:40 -0700)]
Fix error message when opening a mailbox with no read permission. (closes #3934)

ctx->mx_ops ends up being NULL for both the case that ctx->magic is 0
and -1.  This meant the mutt_perror() error message was never being
printed, because the check for ctx->mx_ops == NULL was taking place
first.

Move the "ctx->magic == -1" check first, so mutt will print out an
appropriate perror message in that case.

7 years agodocs: fix remaining TLS typos
Richard Russon [Tue, 25 Apr 2017 09:22:07 +0000 (10:22 +0100)]
docs: fix remaining TLS typos

7 years agoFix typo in README.neomutt (#548)
Zero King [Tue, 25 Apr 2017 06:23:20 +0000 (06:23 +0000)]
Fix typo in README.neomutt (#548)

7 years agoFix and simplify handling of GPGME in configure.ac (#545)
Pietro Cerutti [Mon, 24 Apr 2017 15:57:15 +0000 (16:57 +0100)]
Fix and simplify handling of GPGME in configure.ac (#545)

* Fix
When GPGME is not installed, the m4 macro AM_PATH_GPGME is not defined,
which causes autoconf to fail. The fix adds an `ifdef` around the block
to skip expanding the macro, if it's not defined.

* Enhancement
The enhancement is to assume that we have at leat GPGME 1.2.0 (released
in 2009). This allows us to simplify the configure.ac code block by
avoiding checks for functionalities we know to be there.

Fixes #542

7 years agoNeoMutt Release 2017-04-21 neomutt-20170421
Richard Russon [Fri, 21 Apr 2017 12:01:26 +0000 (13:01 +0100)]
NeoMutt Release 2017-04-21

7 years agosync translation to upstream changes
Richard Russon [Fri, 21 Apr 2017 00:34:18 +0000 (01:34 +0100)]
sync translation to upstream changes