]> granicus.if.org Git - neomutt/log
neomutt
6 years agoadd log messages page
Richard Russon [Fri, 16 Feb 2018 12:42:07 +0000 (12:42 +0000)]
add log messages page

The new command `<show-messages>` will show a backlog of 100 messages
from:
- mutt_message()
- mutt_error()
- mutt_perror()
- mutt_debug() if enabled

6 years agoupdate messages (remove newline)
Richard Russon [Tue, 20 Feb 2018 20:31:29 +0000 (20:31 +0000)]
update messages (remove newline)

Many of the startup messages have been migrated from printf() to
mutt_error().  They no longer need a '\n'.

6 years agoredirect all messages through a log dispatcher
Richard Russon [Tue, 30 Jan 2018 00:41:41 +0000 (00:41 +0000)]
redirect all messages through a log dispatcher

6 years agouse dedicated set_default() and reset_value()
Richard Russon [Tue, 13 Mar 2018 20:24:21 +0000 (20:24 +0000)]
use dedicated set_default() and reset_value()

6 years agorefactor exits in mutt_randbuf()
Richard Russon [Tue, 13 Mar 2018 19:43:02 +0000 (19:43 +0000)]
refactor exits in mutt_randbuf()

Move the exit()s so we can call it during startup.

6 years agoreorganise startup to return through main()
Richard Russon [Tue, 20 Feb 2018 02:54:23 +0000 (02:54 +0000)]
reorganise startup to return through main()

The single exit from main() makes it easier to clean up curses and
logging.

6 years agosleep after every error message
Richard Russon [Tue, 13 Feb 2018 02:42:14 +0000 (02:42 +0000)]
sleep after every error message

Mark the time of an error message.
Do not allow an error to be cleared or overwritten by a normal message
within one second.

6 years agoendwin: separate curses from the message
Richard Russon [Mon, 12 Feb 2018 15:17:41 +0000 (15:17 +0000)]
endwin: separate curses from the message

6 years agorefactor cli handling of cc/bcc
Richard Russon [Mon, 12 Mar 2018 22:56:41 +0000 (22:56 +0000)]
refactor cli handling of cc/bcc

6 years agoExpose EXTRA_CFLAGS_FOR_BUILD and EXTRA_LDFLAGS_FOR_BUIlD (#1098)
Pietro Cerutti [Thu, 15 Mar 2018 14:48:09 +0000 (14:48 +0000)]
Expose EXTRA_CFLAGS_FOR_BUILD and EXTRA_LDFLAGS_FOR_BUIlD (#1098)

This allows distros to set flags that must be used both for building target and host executables.

Issue #980

6 years agolua: fix crash when setting a string
Richard Russon [Tue, 13 Mar 2018 12:19:20 +0000 (12:19 +0000)]
lua: fix crash when setting a string

Generally, for strings `Option.var` is a `char **` (a pointer to a
string pointer).  The Lua setting code uses it differently.  There, it's
just a `char *`.

Fixes #1096

6 years agoMake sure paths created by header/body/news cache are POSIX-compliant (#1080)
Pietro Cerutti [Wed, 14 Mar 2018 11:27:30 +0000 (11:27 +0000)]
Make sure paths created by header/body/news cache are POSIX-compliant (#1080)

* Make sure paths created by header/body cache are POSIX-compliant

Issue #1073

* Make sure single-file header cache is sanitized

Issue #1073

* Avoid double path normalization

Issue #1073

* Make sure bcache_path works for a NULL mailbox (see POP)

Issue #1073

* Encode news cache dir path

Issue #1073

6 years agomerge: trivial improvements
Richard Russon [Tue, 13 Mar 2018 17:18:06 +0000 (17:18 +0000)]
merge: trivial improvements

 * contrib: drop obsolete files
 * sort main switch options
 * doxygen: drop tables
 * fix odd case of Charset_is_utf8
 * docs: tidy homepage url
 * docs: light tidying
 * minor code tidy

6 years agominor code tidy
Richard Russon [Sat, 24 Feb 2018 15:28:27 +0000 (15:28 +0000)]
minor code tidy

6 years agodocs: light tidying
Richard Russon [Sat, 24 Feb 2018 14:32:03 +0000 (14:32 +0000)]
docs: light tidying

- substitute mutt with neomutt
- fix openSUSE capitalisation

6 years agodocs: tidy homepage url
Richard Russon [Sat, 24 Feb 2018 14:19:05 +0000 (14:19 +0000)]
docs: tidy homepage url

6 years agofix odd case of Charset_is_utf8
Richard Russon [Tue, 6 Mar 2018 16:49:30 +0000 (16:49 +0000)]
fix odd case of Charset_is_utf8

6 years agodoxygen: drop tables
Richard Russon [Mon, 5 Mar 2018 18:28:06 +0000 (18:28 +0000)]
doxygen: drop tables

These are now auto-generated from the function comments.

6 years agosort main switch options
Richard Russon [Mon, 12 Mar 2018 16:16:53 +0000 (16:16 +0000)]
sort main switch options

6 years agocontrib: drop obsolete files
Richard Russon [Sat, 24 Feb 2018 14:30:57 +0000 (14:30 +0000)]
contrib: drop obsolete files

6 years agoMake sure git_ver.h doesn't eat random 'g's out of tag names
Pietro Cerutti [Fri, 9 Mar 2018 09:21:59 +0000 (09:21 +0000)]
Make sure git_ver.h doesn't eat random 'g's out of tag names

6 years agoAdd subjectrx section to the muttrc man page.
Kevin McCarthy [Wed, 28 Feb 2018 23:20:59 +0000 (15:20 -0800)]
Add subjectrx section to the muttrc man page.

6 years agoFix subjectrx example in the manual.
Kevin McCarthy [Wed, 28 Feb 2018 23:20:19 +0000 (15:20 -0800)]
Fix subjectrx example in the manual.

6 years agoImprove index color cache flushing behavior
Kevin McCarthy [Wed, 21 Feb 2018 03:09:16 +0000 (19:09 -0800)]
Improve index color cache flushing behavior

Flush when redefining the colors for an existing color line, in
addition to when defining a new color line.

Flush only when uncoloring the index.

6 years agoAdd support for alert (blink) colors.
parazyd [Sun, 4 Mar 2018 09:30:17 +0000 (10:30 +0100)]
Add support for alert (blink) colors.

This allows us to use alert$colorname as a neomutt color.

Example usage:

color header alertred default "^(x-mailer): .*apple|.*iphone"

6 years agomerge: refactoring to simplify functions
Richard Russon [Thu, 8 Mar 2018 03:19:17 +0000 (03:19 +0000)]
merge: refactoring to simplify functions

 * Refactor msg_search
 * Refactor maildir_open_mailbox_append and mh_open_mailbox_append
 * Refactor mutt_file_unlink
 * Improve const-correctness

6 years agoImprove const-correctness
Federico Kircheis [Wed, 7 Mar 2018 17:24:42 +0000 (18:24 +0100)]
Improve const-correctness

6 years agoRefactor mutt_file_unlink
Federico Kircheis [Tue, 6 Mar 2018 19:19:06 +0000 (20:19 +0100)]
Refactor mutt_file_unlink

6 years agoRefactor maildir_open_mailbox_append and mh_open_mailbox_append
Federico Kircheis [Tue, 6 Mar 2018 19:17:46 +0000 (20:17 +0100)]
Refactor maildir_open_mailbox_append and mh_open_mailbox_append

6 years agoRefactor msg_search
Federico Kircheis [Tue, 6 Mar 2018 18:24:31 +0000 (19:24 +0100)]
Refactor msg_search

6 years agomerge: refactor to reduce variable scope
Richard Russon [Thu, 8 Mar 2018 02:40:41 +0000 (02:40 +0000)]
merge: refactor to reduce variable scope

These changes should not affect the behaviour of the code.

 * browser.c
 * buffy.c
 * mh.c
 * mutt/rfc2047.c
 * ncrypt/crypt_gpgme.c
 * newsrc.c
 * nntp.c
 * pager.c
 * parse.c
 * pattern.c
 * pgppubring.c
 * pop.c
 * pop_lib.c
 * postpone.c
 * query.c
 * recvattach.c
 * recvcmd.c
 * remailer.c
 * rfc1524.c
 * rfc2231.c
 * rfc3676.c
 * safe_asprintf.c
 * send.c
 * sendlib.c
 * sidebar.c
 * smtp.c
 * url.c
 * version.c

6 years agoReduce variable scope - version.c
Federico Kircheis [Wed, 7 Mar 2018 17:38:15 +0000 (18:38 +0100)]
Reduce variable scope - version.c

6 years agoReduce variable scope - url.c
Federico Kircheis [Wed, 7 Mar 2018 17:37:59 +0000 (18:37 +0100)]
Reduce variable scope - url.c

6 years agoReduce variable scope - smtp.c
Federico Kircheis [Wed, 7 Mar 2018 17:31:03 +0000 (18:31 +0100)]
Reduce variable scope - smtp.c

6 years agoReduce variable scope - sidebar.c
Federico Kircheis [Wed, 7 Mar 2018 17:24:25 +0000 (18:24 +0100)]
Reduce variable scope - sidebar.c

6 years agoReduce variable scope - sendlib.c
Federico Kircheis [Wed, 7 Mar 2018 17:19:17 +0000 (18:19 +0100)]
Reduce variable scope - sendlib.c

6 years agoReduce variable scope - send.c
Federico Kircheis [Wed, 7 Mar 2018 16:46:23 +0000 (17:46 +0100)]
Reduce variable scope - send.c

6 years agoReduce variable scope - safe_asprintf.c
Federico Kircheis [Tue, 6 Mar 2018 20:06:08 +0000 (21:06 +0100)]
Reduce variable scope - safe_asprintf.c

6 years agoReduce variable scope - rfc3676.c
Federico Kircheis [Tue, 6 Mar 2018 20:10:30 +0000 (21:10 +0100)]
Reduce variable scope - rfc3676.c

6 years agoReduce variable scope - rfc2231.c
Federico Kircheis [Tue, 6 Mar 2018 20:04:49 +0000 (21:04 +0100)]
Reduce variable scope - rfc2231.c

6 years agoReduce variable scope - rfc1524.c
Federico Kircheis [Tue, 6 Mar 2018 19:51:00 +0000 (20:51 +0100)]
Reduce variable scope - rfc1524.c

6 years agoReduce variable scope - remailer.c
Federico Kircheis [Tue, 6 Mar 2018 19:44:36 +0000 (20:44 +0100)]
Reduce variable scope - remailer.c

6 years agoReduce variable scope - recvcmd.c
Federico Kircheis [Tue, 6 Mar 2018 19:38:55 +0000 (20:38 +0100)]
Reduce variable scope - recvcmd.c

6 years agoReduce variable scope - recvattach.c
Federico Kircheis [Tue, 6 Mar 2018 19:36:51 +0000 (20:36 +0100)]
Reduce variable scope - recvattach.c

6 years agoReduce variable scope - query.c
Federico Kircheis [Tue, 6 Mar 2018 19:22:44 +0000 (20:22 +0100)]
Reduce variable scope - query.c

6 years agoReduce variable scope - postpone.c
Federico Kircheis [Tue, 6 Mar 2018 19:09:51 +0000 (20:09 +0100)]
Reduce variable scope - postpone.c

6 years agoReduce variable scope - pop_lib.c
Federico Kircheis [Tue, 6 Mar 2018 19:07:22 +0000 (20:07 +0100)]
Reduce variable scope - pop_lib.c

6 years agoReduce variable scope - pop.c
Federico Kircheis [Tue, 6 Mar 2018 18:36:34 +0000 (19:36 +0100)]
Reduce variable scope - pop.c

6 years agoReduce variable scope - pgppubring.c
Federico Kircheis [Tue, 6 Mar 2018 18:51:03 +0000 (19:51 +0100)]
Reduce variable scope - pgppubring.c

6 years agoReduce variable scope - pattern.c
Federico Kircheis [Tue, 6 Mar 2018 17:53:13 +0000 (18:53 +0100)]
Reduce variable scope - pattern.c

6 years agoReduce variable scope - parse.c
Federico Kircheis [Tue, 6 Mar 2018 17:43:26 +0000 (18:43 +0100)]
Reduce variable scope - parse.c

6 years agoReduce variable scope - pager.c
Federico Kircheis [Tue, 6 Mar 2018 17:37:18 +0000 (18:37 +0100)]
Reduce variable scope - pager.c

6 years agoReduce variable scope - nntp.c
Federico Kircheis [Tue, 6 Mar 2018 17:23:22 +0000 (18:23 +0100)]
Reduce variable scope - nntp.c

6 years agoReduce variable scope - newsrc.c
Federico Kircheis [Tue, 6 Mar 2018 17:12:58 +0000 (18:12 +0100)]
Reduce variable scope - newsrc.c

6 years agoReduce variable scope - ncrypt/crypt_gpgme.c
Federico Kircheis [Wed, 7 Mar 2018 19:41:26 +0000 (20:41 +0100)]
Reduce variable scope - ncrypt/crypt_gpgme.c

6 years agoReduce variable scope - mutt/rfc2047.c
Federico Kircheis [Wed, 7 Mar 2018 19:40:23 +0000 (20:40 +0100)]
Reduce variable scope - mutt/rfc2047.c

6 years agoReduce variable scope - mh.c
Federico Kircheis [Tue, 6 Mar 2018 17:09:16 +0000 (18:09 +0100)]
Reduce variable scope - mh.c

6 years agoReduce variable scope - buffy.c
Federico Kircheis [Tue, 6 Mar 2018 19:33:41 +0000 (20:33 +0100)]
Reduce variable scope - buffy.c

6 years agoReduce variable scope - browser.c
Federico Kircheis [Tue, 6 Mar 2018 19:33:21 +0000 (20:33 +0100)]
Reduce variable scope - browser.c

6 years agomerge: refactoring to simplify functions
Richard Russon [Tue, 6 Mar 2018 13:27:52 +0000 (13:27 +0000)]
merge: refactoring to simplify functions

 * Avoid unnecessary reassignment
 * Restore old behaviour
 * Reduce variable scope and avoid conversion
 * Refactor decode_xbit
 * Refactor encode_block
 * Remove unused variable

6 years agomerge: refactor to reduce variable scope
Richard Russon [Tue, 6 Mar 2018 13:13:59 +0000 (13:13 +0000)]
merge: refactor to reduce variable scope

These changes should not affect the behaviour of the code.

 * init.c
 * main.c
 * mbox.c
 * menu.c
 * mh.c
 * mutt/base64.c
 * mutt/charset.c
 * mutt/file.c
 * mutt/hash.c
 * mutt/rfc2047.c
 * mutt_notmuch.c
 * muttlib.c
 * mx.c
 * ncrypt/crypt.c
 * ncrypt/crypt_gpgme.c
 * ncrypt/pgp.c
 * ncrypt/smime.c

6 years agoReduce variable scope - ncrypt/smime.c
Federico Kircheis [Mon, 5 Mar 2018 18:20:19 +0000 (19:20 +0100)]
Reduce variable scope - ncrypt/smime.c

6 years agoReduce variable scope - ncrypt/pgp.c
Federico Kircheis [Mon, 5 Mar 2018 18:13:26 +0000 (19:13 +0100)]
Reduce variable scope - ncrypt/pgp.c

6 years agoReduce variable scope - ncrypt/crypt_gpgme.c
Federico Kircheis [Mon, 5 Mar 2018 18:11:48 +0000 (19:11 +0100)]
Reduce variable scope - ncrypt/crypt_gpgme.c

6 years agoReduce variable scope - ncrypt/crypt.c
Federico Kircheis [Mon, 5 Mar 2018 18:03:41 +0000 (19:03 +0100)]
Reduce variable scope - ncrypt/crypt.c

6 years agoReduce variable scope - mx.c
Federico Kircheis [Mon, 5 Mar 2018 17:58:53 +0000 (18:58 +0100)]
Reduce variable scope - mx.c

6 years agoReduce variable scope - muttlib.c
Federico Kircheis [Mon, 5 Mar 2018 17:56:03 +0000 (18:56 +0100)]
Reduce variable scope - muttlib.c

6 years agoReduce variable scope - mutt_notmuch.c
Federico Kircheis [Mon, 5 Mar 2018 17:55:45 +0000 (18:55 +0100)]
Reduce variable scope - mutt_notmuch.c

6 years agoReduce variable scope - mutt/rfc2047.c
Federico Kircheis [Mon, 5 Mar 2018 17:48:59 +0000 (18:48 +0100)]
Reduce variable scope - mutt/rfc2047.c

6 years agoReduce variable scope - mutt/hash.c
Federico Kircheis [Mon, 5 Mar 2018 17:39:47 +0000 (18:39 +0100)]
Reduce variable scope - mutt/hash.c

6 years agoReduce variable scope - mutt/file.c
Federico Kircheis [Mon, 5 Mar 2018 17:37:13 +0000 (18:37 +0100)]
Reduce variable scope - mutt/file.c

6 years agoReduce variable scope - mutt/charset.c
Federico Kircheis [Mon, 5 Mar 2018 17:34:58 +0000 (18:34 +0100)]
Reduce variable scope - mutt/charset.c

6 years agoReduce variable scope - mutt/base64.c
Federico Kircheis [Mon, 5 Mar 2018 17:34:51 +0000 (18:34 +0100)]
Reduce variable scope - mutt/base64.c

6 years agoReduce variable scope - mh.c
Federico Kircheis [Mon, 5 Mar 2018 17:17:44 +0000 (18:17 +0100)]
Reduce variable scope - mh.c

6 years agoReduce variable scope - menu.c
Federico Kircheis [Mon, 5 Mar 2018 17:16:14 +0000 (18:16 +0100)]
Reduce variable scope - menu.c

6 years agoReduce variable scope - mbox.c
Federico Kircheis [Mon, 5 Mar 2018 17:10:53 +0000 (18:10 +0100)]
Reduce variable scope - mbox.c

6 years agoReduce variable scope - main.c
Federico Kircheis [Mon, 5 Mar 2018 17:10:43 +0000 (18:10 +0100)]
Reduce variable scope - main.c

6 years agoReduce variable scope - init.c
Federico Kircheis [Mon, 5 Mar 2018 17:10:31 +0000 (18:10 +0100)]
Reduce variable scope - init.c

6 years agoRemove unused variable
Federico Kircheis [Mon, 5 Mar 2018 18:19:05 +0000 (19:19 +0100)]
Remove unused variable

6 years agoRefactor encode_block
Federico Kircheis [Mon, 5 Mar 2018 17:50:56 +0000 (18:50 +0100)]
Refactor encode_block

6 years agoFallback to C.UTF-8 if en_US.UTF-8 cannot be set
Pietro Cerutti [Mon, 5 Mar 2018 12:47:48 +0000 (12:47 +0000)]
Fallback to C.UTF-8 if en_US.UTF-8 cannot be set

* Fallback to C.UTF-8 if en_US.UTF-8 cannot be set

Issue #1088

6 years agonotmuch_database_open_verbose is in API 4.2.0 + refactor conditional
Pietro Cerutti [Mon, 5 Mar 2018 12:14:11 +0000 (12:14 +0000)]
notmuch_database_open_verbose is in API 4.2.0 + refactor conditional

Issue #1076

6 years agonotmuch: stop if db open fails
Richard Russon [Tue, 27 Feb 2018 13:29:44 +0000 (13:29 +0000)]
notmuch: stop if db open fails

* If the database open fails, stop
* Use the verbose version of open so we can catch the error message

issue #1076

6 years agomerge: refactor to reduce variable scope
Richard Russon [Sat, 3 Mar 2018 13:42:42 +0000 (13:42 +0000)]
merge: refactor to reduce variable scope

These changes should not affect the behaviour of the code.

 * alias.c
 * attach.c
 * browser.c
 * buffy.c
 * color.c
 * commands.c
 * compose.c
 * conn/getdomain.c
 * conn/socket.c
 * conn/ssl.c
 * conn/ssl_gnutls.c
 * conn/tunnel.c
 * copy.c
 * curs_lib.c
 * curs_main.c
 * doc/makedoc.c
 * filter.c
 * from.c
 * handler.c
 * hdrline.c
 * header.c
 * help.c
 * hook.c
 * imap/auth_cram.c
 * imap/command.c
 * imap/imap.c
 * imap/util.c
 * init.c
 * keymap.c

6 years agoReduce variable scope - keymap.c
Federico Kircheis [Sat, 3 Mar 2018 08:38:37 +0000 (09:38 +0100)]
Reduce variable scope - keymap.c

6 years agoReduce variable scope - init.c
Federico Kircheis [Sat, 3 Mar 2018 08:44:21 +0000 (09:44 +0100)]
Reduce variable scope - init.c

6 years agoReduce variable scope - imap/util.c
Federico Kircheis [Sat, 3 Mar 2018 08:35:42 +0000 (09:35 +0100)]
Reduce variable scope - imap/util.c

6 years agoReduce variable scope - imap/imap.c
Federico Kircheis [Sat, 3 Mar 2018 08:35:37 +0000 (09:35 +0100)]
Reduce variable scope - imap/imap.c

6 years agoReduce variable scope - imap/command.c
Federico Kircheis [Sat, 3 Mar 2018 08:35:31 +0000 (09:35 +0100)]
Reduce variable scope - imap/command.c

6 years agoReduce variable scope - imap/auth_cram.c
Federico Kircheis [Sat, 3 Mar 2018 08:35:26 +0000 (09:35 +0100)]
Reduce variable scope - imap/auth_cram.c

6 years agoReduce variable scope - hook.c
Federico Kircheis [Sat, 3 Mar 2018 08:29:06 +0000 (09:29 +0100)]
Reduce variable scope - hook.c

6 years agoReduce variable scope - help.c
Federico Kircheis [Sat, 3 Mar 2018 08:24:36 +0000 (09:24 +0100)]
Reduce variable scope - help.c

6 years agoReduce variable scope - header.c
Federico Kircheis [Sat, 3 Mar 2018 08:15:56 +0000 (09:15 +0100)]
Reduce variable scope - header.c

6 years agoReduce variable scope - hdrline.c
Federico Kircheis [Fri, 2 Mar 2018 18:54:47 +0000 (19:54 +0100)]
Reduce variable scope - hdrline.c

6 years agoReduce variable scope - handler.c
Federico Kircheis [Fri, 2 Mar 2018 18:48:26 +0000 (19:48 +0100)]
Reduce variable scope - handler.c

6 years agoReduce variable scope - from.c
Federico Kircheis [Fri, 2 Mar 2018 18:20:45 +0000 (19:20 +0100)]
Reduce variable scope - from.c

6 years agoReduce variable scope - filter.c
Federico Kircheis [Fri, 2 Mar 2018 18:19:33 +0000 (19:19 +0100)]
Reduce variable scope - filter.c

6 years agoReduce variable scope - doc/makedoc.c
Federico Kircheis [Fri, 2 Mar 2018 18:19:07 +0000 (19:19 +0100)]
Reduce variable scope - doc/makedoc.c

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

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