]> granicus.if.org Git - neomutt/log
neomutt
5 years agoFix functions declarations/definitions 1760/head
Federico Kircheis [Thu, 4 Jul 2019 15:39:19 +0000 (17:39 +0200)]
Fix functions declarations/definitions

As the function declaration and definition did not match up

5 years agoReplace `or` member with `pat_or`
Federico Kircheis [Sat, 29 Jun 2019 19:27:34 +0000 (21:27 +0200)]
Replace `or` member with `pat_or`

It clashes with the alternate operators

5 years agoReplace `not` member with `pat_not`
Federico Kircheis [Sat, 29 Jun 2019 12:56:18 +0000 (14:56 +0200)]
Replace `not` member with `pat_not`

It clashes with the alternate operators

5 years agoReplace `class` member with `flags`
Federico Kircheis [Sun, 30 Jun 2019 03:30:19 +0000 (05:30 +0200)]
Replace `class` member with `flags`

As it's reserved in C++

5 years agoReplace `new` variable with `new_label`
Federico Kircheis [Thu, 4 Jul 2019 18:18:15 +0000 (20:18 +0200)]
Replace `new` variable with `new_label`

`new` is a reserved keyword in c++

5 years agoReplace `new` variable with `new_param`
Federico Kircheis [Sat, 29 Jun 2019 18:52:32 +0000 (20:52 +0200)]
Replace `new` variable with `new_param`

`new` is a reserved keyword in c++

5 years agoReplace `class` variable with `qc`
Federico Kircheis [Thu, 4 Jul 2019 15:14:19 +0000 (17:14 +0200)]
Replace `class` variable with `qc`

`class` is a reserved keyword in c++

5 years agoReplace `this` variable with `key`
Federico Kircheis [Sat, 29 Jun 2019 19:32:57 +0000 (21:32 +0200)]
Replace `this` variable with `key`

`this` is a reserved keyword in c++

5 years agoReplace `this` variable with `ctx_cur`
Federico Kircheis [Thu, 4 Jul 2019 04:14:09 +0000 (06:14 +0200)]
Replace `this` variable with `ctx_cur`

`this` is a reserved keyword in c++

5 years agoReplace `delete` variable with `delete_header`
Federico Kircheis [Sat, 29 Jun 2019 19:22:06 +0000 (21:22 +0200)]
Replace `delete` variable with `delete_header`

`delete` is a reserved keyword in c++

5 years agoReplace `new` variable with `new_mail`
Federico Kircheis [Wed, 3 Jul 2019 19:35:03 +0000 (21:35 +0200)]
Replace `new` variable with `new_mail`

`new` is a reserved keyword in c++

5 years agoReplace `new` variable with `tnew`
Federico Kircheis [Wed, 3 Jul 2019 19:29:39 +0000 (21:29 +0200)]
Replace `new` variable with `tnew`

`new` is a reserved keyword in c++

5 years agoReplace `new` variable with `new_label`
Federico Kircheis [Wed, 3 Jul 2019 19:26:16 +0000 (21:26 +0200)]
Replace `new` variable with `new_label`

`new` is a reserved keyword in c++

5 years agoReplace `new` variable with `new_tag`
Federico Kircheis [Wed, 3 Jul 2019 19:22:45 +0000 (21:22 +0200)]
Replace `new` variable with `new_tag`

`new` is a reserved keyword in c++

5 years agoReplace `new` variable with `new_mail`
Federico Kircheis [Wed, 3 Jul 2019 19:18:00 +0000 (21:18 +0200)]
Replace `new` variable with `new_mail`

`new` is a reserved keyword in c++

5 years agoReplace `new` variable with `add`
Federico Kircheis [Wed, 3 Jul 2019 19:12:26 +0000 (21:12 +0200)]
Replace `new` variable with `add`

`new` is a reserved keyword in c++

5 years agoUnify `body_new` name instances
Federico Kircheis [Wed, 3 Jul 2019 19:04:19 +0000 (21:04 +0200)]
Unify `body_new` name instances

`new` is a reserved keyword in c++
Most instances are named this way

5 years agoReplace `new` with `pnew`
Federico Kircheis [Wed, 3 Jul 2019 18:54:30 +0000 (20:54 +0200)]
Replace `new` with `pnew`

`new` is a reserved keyword in c++

5 years agoReplace `new` variable with `ap`
Federico Kircheis [Wed, 3 Jul 2019 18:46:17 +0000 (20:46 +0200)]
Replace `new` variable with `ap`

`new` is a reserved keyword in c++

5 years agoReplace `new` variable with `alias`
Federico Kircheis [Wed, 3 Jul 2019 18:27:35 +0000 (20:27 +0200)]
Replace `new` variable with `alias`

`new` is a reserved keyword in c++

5 years agoReplace `new` variable with `al_new`
Federico Kircheis [Wed, 3 Jul 2019 18:21:23 +0000 (20:21 +0200)]
Replace `new` variable with `al_new`

`new` is a reserved keyword in c++

5 years agoReplace `new` variable with `mark_new`
Federico Kircheis [Wed, 3 Jul 2019 18:13:28 +0000 (20:13 +0200)]
Replace `new` variable with `mark_new`

`new` is a reserved keyword in c++

5 years agoReplace `delete` variable with `delete_original`
Federico Kircheis [Sat, 29 Jun 2019 19:14:11 +0000 (21:14 +0200)]
Replace `delete` variable with `delete_original`

`delete` is a reserved keyword in c++

5 years agoReplace `public` variable with `only_public_key`
Federico Kircheis [Sun, 30 Jun 2019 03:23:18 +0000 (05:23 +0200)]
Replace `public` variable with `only_public_key`

`public` is a reserved keyword in c++

5 years agoReplace `new` variable with`new_file`
Federico Kircheis [Sat, 29 Jun 2019 18:52:50 +0000 (20:52 +0200)]
Replace `new` variable with`new_file`

`new` is a reserved keyword in c++

Rename both `new` and `old` to `new_file` and `old_file` for consistency

5 years agoReplace `new` variable with `has_new_mail`
Federico Kircheis [Sat, 29 Jun 2019 13:06:28 +0000 (15:06 +0200)]
Replace `new` variable with `has_new_mail`

`new` is a reserved keyword in c++

5 years agoReplace `catch` variable with `restore`
Federico Kircheis [Sat, 29 Jun 2019 13:09:54 +0000 (15:09 +0200)]
Replace `catch` variable with `restore`

`catch` is a reserved keyword in c++

5 years agoReplace `template` variable with `tmpl`
Federico Kircheis [Sat, 29 Jun 2019 13:00:17 +0000 (15:00 +0200)]
Replace `template` variable with `tmpl`

`virtual` is a reserved keyword in c++

5 years agoReplace `virtual` variable with `vnum`
Federico Kircheis [Sat, 29 Jun 2019 18:57:10 +0000 (20:57 +0200)]
Replace `virtual` variable with `vnum`

`virtual` is a reserved keyword in c++

5 years agoReplace `try` variable with `user`
Federico Kircheis [Sat, 29 Jun 2019 12:11:54 +0000 (14:11 +0200)]
Replace `try` variable with `user`

`try` is a keyword in c++

While this should not affect C code, it affects unfortunately the
tooling.

This specific instance triggers a "syntax error" in Cppcheck, so it
could hide other problems.

(Cppcheck version  1.86, code parsed with `--language=c --std=c99`)

Of course it is a bug in Cppcheck, but renaming the variable is the most
pragmatic approach, as the bug in Cppcheck does not manifest itself in
a simple program.

5 years agonotify: fix leak on exit
Richard Russon [Tue, 2 Jul 2019 12:43:02 +0000 (13:43 +0100)]
notify: fix leak on exit

5 years agoFix saving a msg to a non-existent mailbox
Pietro Cerutti [Mon, 1 Jul 2019 09:01:50 +0000 (09:01 +0000)]
Fix saving a msg to a non-existent mailbox

Fixes #1762

5 years agoAvoid UB when clearing stdin
Federico Kircheis [Tue, 1 May 2018 14:55:20 +0000 (16:55 +0200)]
Avoid UB when clearing stdin

Flushing `stdin` is undefined behaviour.

References
 http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf, chapter 7.21.5.2 (The fflush function)
 http://en.cppreference.com/w/c/io/fflush

5 years agoSync autosetup required version with what we ship
Pietro Cerutti [Fri, 28 Jun 2019 11:41:05 +0000 (11:41 +0000)]
Sync autosetup required version with what we ship

5 years agobuild: refactor idn headers check 1757/head
Pietro Cerutti [Fri, 28 Jun 2019 07:08:25 +0000 (07:08 +0000)]
build: refactor idn headers check

5 years agobuild: check which idn2 headers to include
Richard Russon [Thu, 27 Jun 2019 16:21:24 +0000 (17:21 +0100)]
build: check which idn2 headers to include

5 years agomerge: update translations
Richard Russon [Wed, 26 Jun 2019 22:17:39 +0000 (23:17 +0100)]
merge: update translations

 * Various chages to spanish localization
 * Update lt_LT translations
 * modified some Japanese translations
 * sync translations

5 years agosync translations
Richard Russon [Wed, 26 Jun 2019 22:16:59 +0000 (23:16 +0100)]
sync translations

5 years agomodified some Japanese translations
mochidai [Wed, 26 Jun 2019 19:15:25 +0000 (15:15 -0400)]
modified some Japanese translations

5 years agoUpdate lt_LT translations
Marius Gedminas [Sun, 23 Jun 2019 11:44:46 +0000 (14:44 +0300)]
Update lt_LT translations

One fuzzy down.

5 years agoVarious chages to spanish localization
Nagefire [Wed, 12 Jun 2019 22:12:45 +0000 (16:12 -0600)]
Various chages to spanish localization

5 years agoOptionally use pkg-config for 3rd party dependencies 1738/head
Pietro Cerutti [Thu, 6 Jun 2019 13:51:36 +0000 (13:51 +0000)]
Optionally use pkg-config for 3rd party dependencies

Add a new --pkgconf switch to configure.
When specified, the compiler and linker flags for most 3rd party dependencies
will be figured out using pkg-config.

5 years agoClarify header_cache behaviour on missing paths
Pietro Cerutti [Mon, 24 Jun 2019 12:50:46 +0000 (12:50 +0000)]
Clarify header_cache behaviour on missing paths

Fixes #1752

5 years agomerge: upstream fixes
Richard Russon [Mon, 24 Jun 2019 15:39:55 +0000 (16:39 +0100)]
merge: upstream fixes

 * Convert last rfc1524_expand_command caller to use a Buffer
 * Convert rfc1524_expand_command() implementation to use struct Buffer
 * Rename mutt_buffer_rfc1524_expand_command()
 * Fix send-mode printing when expand_filename() returns 1
 * Fix compose and edit attachment symlink failure code
 * Remove unnecessary strcmp for mutt_view_attachment()
 * Remove mutt_rfc1524_expand_filename() return value and checks
 * Make sure mailcap test %s is sanitized
 * Clean up mutt_print_attachment() cleanup
 * Add NULL checks to rfc1524_free_entry()
 * Detail the documentation of %l for index_format

5 years agoDetail the documentation of %l for index_format
Vincent Lefevre [Sun, 23 Jun 2019 00:05:43 +0000 (02:05 +0200)]
Detail the documentation of %l for index_format

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoAdd NULL checks to rfc1524_free_entry()
Kevin McCarthy [Sat, 22 Jun 2019 23:13:46 +0000 (16:13 -0700)]
Add NULL checks to rfc1524_free_entry()

The existing code was fine, but make it robust like other free
functions in mutt, so the behavior isn't surprising.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoClean up mutt_print_attachment() cleanup
Kevin McCarthy [Sat, 22 Jun 2019 23:01:19 +0000 (16:01 -0700)]
Clean up mutt_print_attachment() cleanup

Check if mutt_save_attachment() fails and abort the print in that
case.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoMake sure mailcap test %s is sanitized
Kevin McCarthy [Sat, 22 Jun 2019 21:57:36 +0000 (14:57 -0700)]
Make sure mailcap test %s is sanitized

It's not clear to me if %s is allowed as part of a test field.
However since we are passing the attachment filename, we should
sanitize it first.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoRemove mutt_rfc1524_expand_filename() return value and checks
Kevin McCarthy [Sat, 22 Jun 2019 20:33:11 +0000 (13:33 -0700)]
Remove mutt_rfc1524_expand_filename() return value and checks

The return value was of dubious value.  It returned 0 only for the
case that a nametemplate was specified and it already matched the
supplied oldfile.

However, just because the nametemplate matched does not mean
attachment handling in send-mode should skip the mutt_adv_mktemp()
conversion, which includes a call to mutt_sanitize_filename().  We
didn't do so if *no* nametemplate was supplied.

Remove the return value from the function, and remove the checks and
"special handing" in mutt_attach.c calls.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoRemove unnecessary strcmp for mutt_view_attachment()
Kevin McCarthy [Sat, 22 Jun 2019 19:54:40 +0000 (12:54 -0700)]
Remove unnecessary strcmp for mutt_view_attachment()

mutt_rfc1524_expand_filename() runs the result through
mutt_adv_mktemp(), which will sanitize and relocate the filename under
$tmpdir.  The strcmp() is unneeded and distracting to the program
logic; none of the other routines perform or need this check.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoFix compose and edit attachment symlink failure code
Kevin McCarthy [Sat, 22 Jun 2019 19:35:58 +0000 (12:35 -0700)]
Fix compose and edit attachment symlink failure code

In the case where safe_symlink() fail, mutt prompts to continue, but
did not properly reset the filename to be operated on.

Fix up mutt_view_attachment() to use the same flow as the others, to
allow for easier comparison.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoFix send-mode printing when expand_filename() returns 1
Kevin McCarthy [Sat, 22 Jun 2019 17:09:02 +0000 (10:09 -0700)]
Fix send-mode printing when expand_filename() returns 1

It will return this when a nametemplate entry already matched the
passed in filename.  So this bug required both a print entry and an
already matching nametemplate entry to trigger.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoRename mutt_buffer_rfc1524_expand_command()
Kevin McCarthy [Sun, 14 Apr 2019 22:38:15 +0000 (15:38 -0700)]
Rename mutt_buffer_rfc1524_expand_command()

Remove buffer prefix now that all callers are converted.

5 years agoConvert rfc1524_expand_command() implementation to use struct Buffer
Kevin McCarthy [Sun, 14 Apr 2019 20:34:37 +0000 (13:34 -0700)]
Convert rfc1524_expand_command() implementation to use struct Buffer

Add mutt_buffer_sanitize_filename() helper.

Add a few end-of-buffer checks while iterating over command.

Convert the parameter name, paramater value, and types to use struct Buffer
instead of fixed size strings.

5 years agoConvert last rfc1524_expand_command caller to use a Buffer
Kevin McCarthy [Sun, 14 Apr 2019 18:38:49 +0000 (11:38 -0700)]
Convert last rfc1524_expand_command caller to use a Buffer

5 years agomerge: upstream fixes
Richard Russon [Sun, 16 Jun 2019 00:32:52 +0000 (01:32 +0100)]
merge: upstream fixes

 * Improve imap_append_message() error message handling
 * Mention sources for ~p and ~P patterns
 * Allow imap_cmd_finish() to both expunge and fetch new mail
 * Improve $reverse_realname documentation
 * Add $fcc_before_send, defaulting unset

5 years agoAdd $fcc_before_send, defaulting unset
Kevin McCarthy [Tue, 11 Jun 2019 20:15:22 +0000 (13:15 -0700)]
Add $fcc_before_send, defaulting unset

When set, the message will be Fcc'ed the same as sent.  $fcc_clear and
$fcc_attach will be ignored.  This is because of the difficulty of
unwinding changes, notably Protected Headers, without potentially
breaking signatures.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoImprove $reverse_realname documentation
Kevin McCarthy [Fri, 14 Jun 2019 00:56:38 +0000 (17:56 -0700)]
Improve $reverse_realname documentation

Make it clear that, even if set, a missing realname part of the
matching address will be filled in by $realname.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoAllow imap_cmd_finish() to both expunge and fetch new mail
Kevin McCarthy [Mon, 10 Jun 2019 21:51:50 +0000 (14:51 -0700)]
Allow imap_cmd_finish() to both expunge and fetch new mail

Since commit dd327606 changed check_status setting to use bit
operators, and imap_check_mailbox() can call imap_cmd_finish() twice,
there is no reason to delay the processing of new mail until a second
call.

imap_read_headers() deals with msn_end < msg_begin, so remove
the (count > idata->max_msn) check.  This will allow the reopen flag
to be reset if somehow it's not the case.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoMention sources for ~p and ~P patterns
Kevin McCarthy [Sun, 9 Jun 2019 18:07:16 +0000 (11:07 -0700)]
Mention sources for ~p and ~P patterns

The manual only mentioned alternates.  Add $from and local
account/hostname to the list.

The man page implied the only source was alternates.  Change to the
same wording as the manual.

Thanks to @rear1019 for pointing out the misleading man page.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoImprove imap_append_message() error message handling
Kevin McCarthy [Fri, 7 Jun 2019 20:43:36 +0000 (13:43 -0700)]
Improve imap_append_message() error message handling

If the rc is IMAP_CMD_BAD, then either idata->buf is stale or an error
message has already been printed (in cmd_handle_untagged()).

Use imap_next_word() to skip over the next two words instead of
directly skipping over SEQLEN, in case the buffer is in a different
format.  We don't want to jump over the end of string.

Skip the mutt_error() if there is nothing to print.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agotest: fixes for recent updates
Richard Russon [Sat, 15 Jun 2019 21:40:27 +0000 (22:40 +0100)]
test: fixes for recent updates

5 years agomerge: trivial fixes
Richard Russon [Sat, 15 Jun 2019 20:44:54 +0000 (21:44 +0100)]
merge: trivial fixes

 * initialise all struct members
 * boolify Pattern.ready
 * docs: fix typo
 * fix #includes
 * unify GroupList variable naming
 * doxy: tidy compare_uid
 * move mutt_str_split() to list.c
 * reorder params for mutt_str_substr_copy()
 * rename el_free()

5 years agorename el_free()
Richard Russon [Sat, 15 Jun 2019 20:24:38 +0000 (21:24 +0100)]
rename el_free()

Rename to mutt_emaillist_free() to match other functions.

5 years agoreorder params for mutt_str_substr_copy()
Richard Russon [Sat, 15 Jun 2019 20:19:01 +0000 (21:19 +0100)]
reorder params for mutt_str_substr_copy()

- rename substr_cpy() to substr_copy()
- reorder params to put dest and destlen together

5 years agomove mutt_str_split() to list.c
Richard Russon [Sat, 15 Jun 2019 20:09:12 +0000 (21:09 +0100)]
move mutt_str_split() to list.c

Remove List dependency from string.c

5 years agodoxy: tidy compare_uid
Richard Russon [Sat, 15 Jun 2019 19:54:00 +0000 (20:54 +0100)]
doxy: tidy compare_uid

5 years agounify GroupList variable naming
Richard Russon [Sat, 15 Jun 2019 19:48:33 +0000 (20:48 +0100)]
unify GroupList variable naming

5 years agofix #includes
Richard Russon [Thu, 13 Jun 2019 13:24:59 +0000 (14:24 +0100)]
fix #includes

5 years agodocs: fix typo
Richard Russon [Thu, 13 Jun 2019 12:11:53 +0000 (13:11 +0100)]
docs: fix typo

5 years agoboolify Pattern.ready
Richard Russon [Thu, 13 Jun 2019 10:22:33 +0000 (11:22 +0100)]
boolify Pattern.ready

5 years agoinitialise all struct members
Richard Russon [Thu, 13 Jun 2019 10:19:33 +0000 (11:19 +0100)]
initialise all struct members

5 years agodrop mutt_dump_variables()
Richard Russon [Sat, 15 Jun 2019 14:28:44 +0000 (15:28 +0100)]
drop mutt_dump_variables()

This function has been replaced by dump_config().

5 years agobuild: fix doc auto-generation
Richard Russon [Fri, 14 Jun 2019 11:59:58 +0000 (12:59 +0100)]
build: fix doc auto-generation

5 years agobuild: update to latest autosetup
Pietro Cerutti [Thu, 13 Jun 2019 12:41:53 +0000 (12:41 +0000)]
build: update to latest autosetup

This version includes the location of the Tcl interpreter used at
configure time in config.log.

5 years agomerge: overhaul of the config system
Richard Russon [Wed, 12 Jun 2019 23:43:08 +0000 (00:43 +0100)]
merge: overhaul of the config system

 * config: allow deeper inheritance
 * tests: minor fixes
 * tidy type definitions
 * move private flags
 * move sensitive flag to type
 * tidy init.h config definitions
 * move redraw flags
 * rename the flags field to data (and move it)
 * drop dt_path
 * drop dt_command
 * drop mutt dump
 * add enum type
 * add slist type
 * mbox_type -> enum
 * drop magic type
 * hidden_tags -> slist
 * mailcap_path -> slist
 * imap_authenticators -> slist
 * smtp_authenticators -> slist
 * pop_authenticators -> slist
 * preferred_languages -> slist
 * fix makedoc

5 years agofix makedoc
Richard Russon [Wed, 12 Jun 2019 00:11:44 +0000 (01:11 +0100)]
fix makedoc

Fix the `makedoc` documentation generator to understand the new types.

5 years agopreferred_languages -> slist
Richard Russon [Mon, 10 Jun 2019 21:48:25 +0000 (22:48 +0100)]
preferred_languages -> slist

Convert `$preferred_languages` to use the new DT_SLIST type (string list).

5 years agopop_authenticators -> slist
Richard Russon [Mon, 10 Jun 2019 20:14:34 +0000 (21:14 +0100)]
pop_authenticators -> slist

Convert `$pop_authenticators` to use the new DT_SLIST type (string list).

5 years agosmtp_authenticators -> slist
Richard Russon [Mon, 10 Jun 2019 19:41:48 +0000 (20:41 +0100)]
smtp_authenticators -> slist

Convert `$smtp_authenticators` to use the new DT_SLIST type (string list).

5 years agoimap_authenticators -> slist
Richard Russon [Mon, 10 Jun 2019 18:51:17 +0000 (19:51 +0100)]
imap_authenticators -> slist

Convert `$imap_authenticators` to use the new DT_SLIST type (string list).

5 years agomailcap_path -> slist
Richard Russon [Mon, 10 Jun 2019 13:44:18 +0000 (14:44 +0100)]
mailcap_path -> slist

Convert `$mailcap_path` to use the new DT_SLIST type (string list).

5 years agohidden_tags -> slist
Richard Russon [Mon, 10 Jun 2019 12:26:47 +0000 (13:26 +0100)]
hidden_tags -> slist

Convert `$hidden_tags` to use the new DT_SLIST type (string list).

5 years agodrop magic type
Richard Russon [Sun, 9 Jun 2019 15:56:10 +0000 (16:56 +0100)]
drop magic type

The DT_MAGIC type is unnecessary; it's an enumeration of four strings.
That's better handled by the new DT_ENUM type.

5 years agombox_type -> enum
Richard Russon [Sun, 9 Jun 2019 15:50:33 +0000 (16:50 +0100)]
mbox_type -> enum

Convert `$mbox_type` to use the new Config enumeration.

5 years agoadd slist type
Richard Russon [Sun, 9 Jun 2019 15:23:55 +0000 (16:23 +0100)]
add slist type

Add a string list type.  This manages strings delimited by space, comma
or colon.  The NeoMutt code doesn't need to parse the string any more,
it's simply presented with a STAILQ (list) of strings.

5 years agoadd enum type
Richard Russon [Sun, 9 Jun 2019 14:49:03 +0000 (15:49 +0100)]
add enum type

Create a new config type for enumerations.
This will use the `ConfigDef.data` field and an `EnumDef` to define the
allowed strings.

5 years agodrop mutt dump
Richard Russon [Sun, 9 Jun 2019 11:33:28 +0000 (12:33 +0100)]
drop mutt dump

Drop the legacy config dump code.
It's less versatile than the new code.

5 years agodrop dt_command
Richard Russon [Sun, 9 Jun 2019 10:26:23 +0000 (11:26 +0100)]
drop dt_command

The DT_COMMAND type is unnecessary; it behaves exactly the same as DT_STRING.
Only the NeoMutt code needs to make the distinction, so use a subclass
of DT_STRING instead of a separate type.

5 years agodrop dt_path
Richard Russon [Sun, 9 Jun 2019 10:21:53 +0000 (11:21 +0100)]
drop dt_path

The DT_PATH type is unnecessary; it behaves exactly the same as DT_STRING.
Only the NeoMutt code needs to make the distinction, so use a subclass
of DT_STRING instead of a separate type.

5 years agorename the flags field to data (and move it)
Richard Russon [Sun, 9 Jun 2019 02:25:28 +0000 (03:25 +0100)]
rename the flags field to data (and move it)

Deprecate the flags field of ConfigDef and create a data field.
The data field is inserted near the end of the struct as it won't be
used often.

5 years agomove redraw flags
Richard Russon [Sun, 9 Jun 2019 01:07:00 +0000 (02:07 +0100)]
move redraw flags

Move the redraw flags from a general flags field to the type field.
These GUI flags don't belong in the config definition, but once the
notification system is complete, the flags will be obsolete.

The `ConfigDef.flags` field is now unused.

5 years agotidy init.h config definitions
Richard Russon [Sun, 9 Jun 2019 00:12:28 +0000 (01:12 +0100)]
tidy init.h config definitions

Remove all the excess whitespace.
The fields may once have been aligned, but was long ago.

5 years agomove sensitive flag to type
Richard Russon [Sat, 8 Jun 2019 22:16:51 +0000 (23:16 +0100)]
move sensitive flag to type

Rename F_SENSITIVE to DT_SENSITIVE.
Move it from a general flags field, to the type field (with the other
type modifying flags).

5 years agomove private flags
Richard Russon [Sat, 8 Jun 2019 22:16:25 +0000 (23:16 +0100)]
move private flags

Move the private config flags to the 'top' of the variable.

5 years agotidy type definitions
Richard Russon [Sat, 8 Jun 2019 21:33:18 +0000 (22:33 +0100)]
tidy type definitions

Unify the flag definitions using the (1 << n) form.

5 years agotests: minor fixes
Richard Russon [Tue, 11 Jun 2019 12:13:13 +0000 (13:13 +0100)]
tests: minor fixes

Fix:
- Misleading output
- printf specifiers
- Missing test cases

5 years agoconfig: allow deeper inheritance
Richard Russon [Wed, 12 Jun 2019 19:00:29 +0000 (20:00 +0100)]
config: allow deeper inheritance

The code assumed that an inherited HashElem had a normal HashElem
parent.  This change removes the assumption, allowing deep nesting of
Config Items.

5 years agomerge: trivial fixes
Richard Russon [Fri, 7 Jun 2019 11:20:03 +0000 (12:20 +0100)]
merge: trivial fixes

 * fix folder use in mx_path_canon()
 * doxy: fix typos
 * rename local variable for clarity
 * test: tidy code
 * refactor #ifdef'd conditional
 * check includes with iwyu

5 years agocheck includes with iwyu
Richard Russon [Thu, 6 Jun 2019 19:38:01 +0000 (20:38 +0100)]
check includes with iwyu