]> granicus.if.org Git - neomutt/log
neomutt
5 years agotest: add parameter tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add parameter tests for degenerate cases

5 years agotest: templates for parameter functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for parameter functions

5 years agotest: add from tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add from tests for degenerate cases

5 years agotest: templates for from functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for from functions

5 years agotest: add envelope tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add envelope tests for degenerate cases

5 years agotest: templates for envelope functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for envelope functions

5 years agotest: add email tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add email tests for degenerate cases

5 years agotest: templates for email functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for email functions

5 years agotest: add body tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:55 +0000 (14:46 +0100)]
test: add body tests for degenerate cases

5 years agotest: templates for body functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for body functions

5 years agotest: add attach tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:55 +0000 (14:46 +0100)]
test: add attach tests for degenerate cases

5 years agotest: templates for attach functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for attach functions

5 years agotest: add signal tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add signal tests for degenerate cases

5 years agotest: templates for signal functions
Richard Russon [Sun, 28 Apr 2019 11:37:16 +0000 (12:37 +0100)]
test: templates for signal functions

5 years agotest: add sha1 tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add sha1 tests for degenerate cases

5 years agotest: templates for sha1 functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for sha1 functions

5 years agotest: add regex tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add regex tests for degenerate cases

5 years agotest: templates for regex functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for regex functions

5 years agotest: add memory tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add memory tests for degenerate cases

5 years agotest: templates for memory functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for memory functions

5 years agotest: add md5 tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add md5 tests for degenerate cases

5 years agotest: templates for md5 functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for md5 functions

5 years agotest: add mbyte tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add mbyte tests for degenerate cases

5 years agotest: templates for mbyte functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for mbyte functions

5 years agotest: add mapping tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add mapping tests for degenerate cases

5 years agotest: templates for mapping functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for mapping functions

5 years agotest: add logging tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add logging tests for degenerate cases

5 years agotest: templates for logging functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for logging functions

5 years agotest: add list tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add list tests for degenerate cases

5 years agotest: templates for list functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for list functions

5 years agotest: add history tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add history tests for degenerate cases

5 years agotest: templates for history functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for history functions

5 years agotest: add hash tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add hash tests for degenerate cases

5 years agotest: templates for hash functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for hash functions

5 years agotest: add file tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add file tests for degenerate cases

5 years agotest: templates for file functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for file functions

5 years agotest: add envlist tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add envlist tests for degenerate cases

5 years agotest: templates for envlist functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for envlist functions

5 years agotest: add date tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add date tests for degenerate cases

5 years agotest: templates for date functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for date functions

5 years agotest: add charset tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add charset tests for degenerate cases

5 years agotest: templates for charset functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for charset functions

5 years agotest: add buffer tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:55 +0000 (14:46 +0100)]
test: add buffer tests for degenerate cases

5 years agotest: templates for buffer functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for buffer functions

5 years agotest: add base64 tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:55 +0000 (14:46 +0100)]
test: add base64 tests for degenerate cases

5 years agotest: templates for base64 functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for base64 functions

5 years agomerge: trivial tidying
Richard Russon [Tue, 30 Apr 2019 09:47:23 +0000 (10:47 +0100)]
merge: trivial tidying

 * add address/lib.h to .clang-format
 * doxy: tidy/standardise lots of comments
 * docs: tidy guide
 * test scalars against zero
 * boolify variables/parameters
 * rename variables/parameters
 * reduce scope of variables

5 years agoreduce scope of variables 1683/head
Richard Russon [Sat, 27 Apr 2019 01:38:41 +0000 (02:38 +0100)]
reduce scope of variables

- Move variable declarations closer to their first use
- Move parameter checks as early as possible in functions

5 years agorename variables/parameters
Richard Russon [Mon, 29 Apr 2019 22:17:33 +0000 (23:17 +0100)]
rename variables/parameters

Rename variables for consistency or clarity.

5 years agoboolify variables/parameters
Richard Russon [Sat, 27 Apr 2019 01:29:59 +0000 (02:29 +0100)]
boolify variables/parameters

5 years agotest scalars against zero
Richard Russon [Fri, 26 Apr 2019 22:58:21 +0000 (23:58 +0100)]
test scalars against zero

- test int/size_t against `0`
- test char against `'\0'`
- test enum against 'zero' symbol

5 years agodocs: tidy guide
Richard Russon [Fri, 26 Apr 2019 22:42:21 +0000 (23:42 +0100)]
docs: tidy guide

- Add missing whitespace
- Remove unnecessary backslashes

5 years agodoxy: tidy/standardise lots of comments
Richard Russon [Fri, 26 Apr 2019 22:28:37 +0000 (23:28 +0100)]
doxy: tidy/standardise lots of comments

5 years agoadd address/lib.h to .clang-format
Richard Russon [Mon, 29 Apr 2019 22:13:46 +0000 (23:13 +0100)]
add address/lib.h to .clang-format

5 years agoDo not rely on idn2 to provide an idn1 compat layer
Pietro Cerutti [Mon, 29 Apr 2019 11:26:36 +0000 (11:26 +0000)]
Do not rely on idn2 to provide an idn1 compat layer

Do not rely on idn2 to provide a compat layer to idn1, as Ubuntu doesn't
provide it. Instead, really code address/idna.c to use the different
APIs provided by the two versions of libidn. Systems with an old version
of idn2 which does not provide the needed functionality will fail at
configure time now, and users of such systems will see an error message
with instructions how to build with libidn1. While at it, polish a bit
the auto.def sections for idn and idn2.

5 years agoFix getting back to index after saving an edited message
Pietro Cerutti [Wed, 24 Apr 2019 15:00:54 +0000 (15:00 +0000)]
Fix getting back to index after saving an edited message

Fixes #1674

5 years agobuild: fix a bunch of idn2-related problems
Richard Russon [Sat, 23 Mar 2019 01:00:13 +0000 (01:00 +0000)]
build: fix a bunch of idn2-related problems

- hide code if IDN is disabled
- fix build tests
- add travis dependency

5 years agomerge: add basic address tests
Richard Russon [Sat, 27 Apr 2019 21:49:49 +0000 (22:49 +0100)]
merge: add basic address tests

 * test: templates for address functions
 * test: add address tests for degenerate cases
 * libaddress: fix address code for degenerate cases
 * test: templates for group functions
 * test: add group tests for degenerate cases
 * libaddress: fix group code for degenerate cases
 * test: templates for idna functions
 * test: add idna tests for degenerate cases

5 years agotest: add idna tests for degenerate cases
Richard Russon [Sat, 27 Apr 2019 21:26:07 +0000 (22:26 +0100)]
test: add idna tests for degenerate cases

5 years agotest: templates for idna functions
Richard Russon [Sat, 27 Apr 2019 21:08:05 +0000 (22:08 +0100)]
test: templates for idna functions

5 years agolibaddress: fix group code for degenerate cases
Richard Russon [Sat, 27 Apr 2019 20:26:38 +0000 (21:26 +0100)]
libaddress: fix group code for degenerate cases

5 years agotest: add group tests for degenerate cases
Richard Russon [Sat, 27 Apr 2019 20:26:07 +0000 (21:26 +0100)]
test: add group tests for degenerate cases

5 years agotest: templates for group functions
Richard Russon [Sat, 27 Apr 2019 17:36:27 +0000 (18:36 +0100)]
test: templates for group functions

5 years agolibaddress: fix address code for degenerate cases
Richard Russon [Sat, 27 Apr 2019 16:54:12 +0000 (17:54 +0100)]
libaddress: fix address code for degenerate cases

5 years agotest: add address tests for degenerate cases
Richard Russon [Sat, 27 Apr 2019 16:53:29 +0000 (17:53 +0100)]
test: add address tests for degenerate cases

5 years agotest: templates for address functions
Richard Russon [Sat, 27 Apr 2019 15:53:33 +0000 (16:53 +0100)]
test: templates for address functions

5 years agokeybindings: restore nntp change-newsgroup keybindings
Naveen Nathan [Thu, 25 Apr 2019 13:38:25 +0000 (23:38 +1000)]
keybindings: restore nntp change-newsgroup keybindings

This restores a subset of the keybindings found in the original vvv.nntp
patch that don't clash with any of neomutt defaults.

Specifically:
  i to change-newsgroup
  ESC-i to change-newsgroup-readonly

5 years agoAdd RECURSIVEMATCH LIST-EXTENDED selection option to query
Kevin McCarthy [Wed, 24 Apr 2019 02:06:11 +0000 (19:06 -0700)]
Add RECURSIVEMATCH LIST-EXTENDED selection option to query

LSUB is required to include mailboxes with subscribed children, but
the just added "LIST (SUBSCRIBED)" by default does not do that.

To match previous behavior, add RECURSIVEMATCH to make sure the
children are included.  Fix the parser to trim off the CHILDINFO
suffix in the response.

Parse \NonExistent LIST attribute the same as \NoSelect.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoImprove hierarchy information accuracy in IMAP browser
Naveen Nathan [Tue, 23 Apr 2019 17:04:05 +0000 (03:04 +1000)]
Improve hierarchy information accuracy in IMAP browser

Currently the IMAP browser relies on LIST and LSUB (for listing subscribed
folders) which may not provide the required hierarchy information.

RFC3348 section 3 goes as far as stating that a client mustn't rely on LSUB
for hierarchy information.

This patch implements the LIST command extensions specified in RFC5258
requiring that a server must respond with hierarchy information for
listed folders (whether or not filtering on subscribed folders).

5 years agomerge: add string tests
Richard Russon [Thu, 25 Apr 2019 09:40:02 +0000 (10:40 +0100)]
merge: add string tests

 * test,tidy: mutt_str_sysexit()
 * test,tidy: mutt_str_atos()
 * test,tidy: mutt_str_atoi()
 * test,tidy: mutt_str_atol()
 * test,tidy: mutt_str_atoui()
 * test,tidy: mutt_str_atoul()
 * test,tidy: mutt_str_atoull()

5 years agotidy: mutt_str_atoull() 1677/head
Richard Russon [Tue, 23 Apr 2019 00:45:38 +0000 (01:45 +0100)]
tidy: mutt_str_atoull()

5 years agotest: mutt_str_atoull()
Richard Russon [Wed, 24 Apr 2019 19:42:17 +0000 (20:42 +0100)]
test: mutt_str_atoull()

5 years agotidy: mutt_str_atoul()
Richard Russon [Wed, 24 Apr 2019 18:22:01 +0000 (19:22 +0100)]
tidy: mutt_str_atoul()

5 years agotest: mutt_str_atoul()
Richard Russon [Wed, 24 Apr 2019 18:37:23 +0000 (19:37 +0100)]
test: mutt_str_atoul()

5 years agotidy: mutt_str_atoui()
Richard Russon [Wed, 24 Apr 2019 18:20:41 +0000 (19:20 +0100)]
tidy: mutt_str_atoui()

5 years agotest: mutt_str_atoui()
Richard Russon [Wed, 24 Apr 2019 14:56:48 +0000 (15:56 +0100)]
test: mutt_str_atoui()

5 years agotidy: mutt_str_atol()
Richard Russon [Wed, 24 Apr 2019 15:23:34 +0000 (16:23 +0100)]
tidy: mutt_str_atol()

5 years agotest: mutt_str_atol()
Richard Russon [Wed, 24 Apr 2019 14:26:04 +0000 (15:26 +0100)]
test: mutt_str_atol()

5 years agotidy: mutt_str_atoi()
Richard Russon [Mon, 22 Apr 2019 23:55:05 +0000 (00:55 +0100)]
tidy: mutt_str_atoi()

5 years agotest: mutt_str_atoi()
Richard Russon [Tue, 23 Apr 2019 01:26:55 +0000 (02:26 +0100)]
test: mutt_str_atoi()

5 years agotidy: mutt_str_atos()
Richard Russon [Mon, 22 Apr 2019 23:05:49 +0000 (00:05 +0100)]
tidy: mutt_str_atos()

5 years agotest: mutt_str_atos()
Richard Russon [Mon, 22 Apr 2019 23:05:39 +0000 (00:05 +0100)]
test: mutt_str_atos()

5 years agotidy: mutt_str_sysexit()
Richard Russon [Mon, 22 Apr 2019 23:36:58 +0000 (00:36 +0100)]
tidy: mutt_str_sysexit()

5 years agotest: mutt_str_sysexit()
Richard Russon [Mon, 22 Apr 2019 23:32:24 +0000 (00:32 +0100)]
test: mutt_str_sysexit()

5 years agoimap: fixing race when syncing mailbox
Mehdi Abaakouk [Wed, 24 Apr 2019 14:34:35 +0000 (16:34 +0200)]
imap: fixing race when syncing mailbox

imap_check_mailbox return an detailled state not only 0/-1.

imap_sync_mailbox assumes that the function was returning only 0/-1.

This change fixes that.

5 years agobrowser: show "Subscribed" in IMAP browser
Naveen Nathan [Wed, 24 Apr 2019 02:28:44 +0000 (12:28 +1000)]
browser: show "Subscribed" in IMAP browser

5 years agomerge: light tidying
Richard Russon [Wed, 24 Apr 2019 12:14:59 +0000 (13:14 +0100)]
merge: light tidying

 * clang-format
 * refactor mutt_str_append_item()
 * boolify retval of mutt_path_to_absolute()
 * boolify mutt_date_make_time()
 * boolify pattern functions
 * boolify patmatch()
 * flags: clear up HookFlags usage
 * pattern: create typedef for parse functions
 * tidy: add {}s

5 years agotidy: add {}s
Richard Russon [Mon, 22 Apr 2019 17:21:18 +0000 (18:21 +0100)]
tidy: add {}s

5 years agopattern: create typedef for parse functions
Richard Russon [Mon, 22 Apr 2019 00:18:15 +0000 (01:18 +0100)]
pattern: create typedef for parse functions

5 years agoflags: clear up HookFlags usage
Richard Russon [Sun, 21 Apr 2019 23:40:14 +0000 (00:40 +0100)]
flags: clear up HookFlags usage

5 years agoboolify patmatch()
Richard Russon [Sun, 21 Apr 2019 21:08:15 +0000 (22:08 +0100)]
boolify patmatch()

5 years agoboolify pattern functions
Richard Russon [Sun, 21 Apr 2019 21:08:05 +0000 (22:08 +0100)]
boolify pattern functions

5 years agoboolify mutt_date_make_time()
Richard Russon [Sun, 21 Apr 2019 18:15:44 +0000 (19:15 +0100)]
boolify mutt_date_make_time()

5 years agoboolify retval of mutt_path_to_absolute()
Richard Russon [Sat, 20 Apr 2019 01:34:13 +0000 (02:34 +0100)]
boolify retval of mutt_path_to_absolute()

5 years agorefactor mutt_str_append_item()
Richard Russon [Sat, 20 Apr 2019 01:43:54 +0000 (02:43 +0100)]
refactor mutt_str_append_item()

5 years agoclang-format
Richard Russon [Sun, 21 Apr 2019 23:17:00 +0000 (00:17 +0100)]
clang-format

5 years agomerge: upstream add index-format-hook
Richard Russon [Wed, 24 Apr 2019 11:23:03 +0000 (12:23 +0100)]
merge: upstream add index-format-hook

 * Add index-format-hook and expando
 * Add a flag for dynamic date range evaluation in patterns
 * Update the neomuttrc man page with added commands

5 years agoUpdate the neomuttrc man page with added commands 1665/head
Kevin McCarthy [Sat, 19 Jan 2019 04:46:07 +0000 (20:46 -0800)]
Update the neomuttrc man page with added commands

Add the "color compose", index-format-hook, and echo commands.

Add the HMS relative date units.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoAdd a flag for dynamic date range evaluation in patterns
Kevin McCarthy [Tue, 30 Oct 2018 18:53:37 +0000 (11:53 -0700)]
Add a flag for dynamic date range evaluation in patterns

By default, Mutt evaluates relative date patterns, such as "~d<1d"
against the date when the pattern is compiled.

For index-format-hook, we need to pattern match against a message
based on the current date/time, so that for example, conditional date
format patterns correctly match after Mutt has been open for many
days/weeks.

Add a flag, MUTT_PATTERN_DYNAMIC, that changes ~d and ~r evaluation to
reevaluate the min/max range with each match.

This will of course be slower, but for the index, where a screenful of
messages at a time are evaluated, is an acceptable tradeoff against
accurate pattern matching.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoAdd index-format-hook and expando
Kevin McCarthy [Mon, 29 Oct 2018 20:45:02 +0000 (13:45 -0700)]
Add index-format-hook and expando

index-format-hook is used to allow dynamic insertion/evaluation of
format strings into $index_format.

It can be used, for example, to implement date formatting based on the
age of the message.

Add a new %@name@ expando to $index_format, which evaluates the
matching index-format-hooks with "name".

Co-authored-by: Richard Russon <rich@flatcap.org>