]> granicus.if.org Git - neomutt/log
neomutt
7 years agoEncode URIs created with nm_uri_from_query 692/head
William Pettersson [Sun, 30 Jul 2017 04:59:38 +0000 (14:59 +1000)]
Encode URIs created with nm_uri_from_query

Uses url_pct_encode to do the encoding. Note that url_pct_encode now
also encodes the ampersand, which shouldn't cause problems given that
it's only used for usernames and passwords otherwise.

Addresses issue #603

7 years agonm_description_to_path: fix a mailbox type 695/head
Jenya Sovetkin [Thu, 3 Aug 2017 08:17:30 +0000 (10:17 +0200)]
nm_description_to_path: fix a mailbox type

In nm_description_to_path a mailbox type is supposed to be MUTT_NOTMUCH,
since the function queries the path of a *notmuch* mailbox using
a description string.

Fixes #683.

7 years agoKill bundled wchar_t support, rely on the system's
Pietro Cerutti [Fri, 28 Jul 2017 13:43:52 +0000 (13:43 +0000)]
Kill bundled wchar_t support, rely on the system's

Issue #690

7 years agoDo not rely on backends setting error codes on success
Pietro Cerutti [Fri, 4 Aug 2017 07:36:06 +0000 (07:36 +0000)]
Do not rely on backends setting error codes on success

From the API documentation of KyotoCabinet, TokyoCabinet and QDBM, I am
not convinced that the error code routines consistently return 0 whenever
the previous operation succeeded. Also, I am not convinced that they
return 1 whenever the previous operation failed.
It is important that we do not return 0 on failure, so let's try to get
the error code and fallback to -1 if we couldn't get anything more
specific.

Issue #696

7 years agoReview hcache implementation return codes
Pietro Cerutti [Fri, 4 Aug 2017 06:40:41 +0000 (06:40 +0000)]
Review hcache implementation return codes

Especially, in this batch I have reviewed the return codes for fetch and
delete operations. KyotoCabinet, QDBM and TokyoCabinet were indeed
incorrectly implemented, as these backends generally return true on
success and false on failure.

I still have to investigate how to get a proper return code from QDBM.

Issue #696

7 years agoDoxify the Header cache
Pietro Cerutti [Fri, 4 Aug 2017 06:14:03 +0000 (06:14 +0000)]
Doxify the Header cache

The initial framework was written by @flatcap. I have merely filled in a
few blanks.

Issue #696

7 years agobuild: fix make dist
Richard Russon [Thu, 3 Aug 2017 20:00:45 +0000 (21:00 +0100)]
build: fix make dist

7 years agomerge: upstream fixes (mutt/default)
Richard Russon [Thu, 3 Aug 2017 15:56:36 +0000 (16:56 +0100)]
merge: upstream fixes (mutt/default)

 * Fix menu color calls to occur before positioning the cursor. (see #3956)
 * Change imap_cmd_start() to return OK when the cmd_queue is finished. (closes #3956)
 * When guessing an attachment type, don't allow text/plain if there is a null character. (see #2933)
 * Add timeout parameter to mutt_socket_poll.
 * Add $imap_poll_timeout to allow mailbox polling to time out.
 * Convert raw_socket_poll() to use gettimeofday().

7 years agoConvert raw_socket_poll() to use gettimeofday().
Kevin McCarthy [Fri, 28 Jul 2017 17:54:51 +0000 (10:54 -0700)]
Convert raw_socket_poll() to use gettimeofday().

As long as gettimeofday() is supported, it's better to be consistent
within mutt and ensure greater portability.

Change the raw_socket_poll() wait timer to count milliseconds, like
the mutt_progess_update() code.

Thanks to Vincent Lefèvre for his, as always, invaluable advice.

7 years agoAdd $imap_poll_timeout to allow mailbox polling to time out.
Kevin McCarthy [Sun, 23 Jul 2017 02:48:50 +0000 (19:48 -0700)]
Add $imap_poll_timeout to allow mailbox polling to time out.

Enable the polling flag for the NOOP in imap_check_mailbox(), the
STATUS command in imap_buffy_check(), and the LOGOUT command.

This is not intended to handle all blocking-IO related issues.
However, the periodic NOOP and STATUS are the most frequent places for
mutt to freeze up, especially after a laptop is sleep/woken.

Since these are quick operations with little data, this is a good place
to check if the connection is still working before hanging on a read.

7 years agoAdd timeout parameter to mutt_socket_poll.
Kevin McCarthy [Sun, 23 Jul 2017 02:48:49 +0000 (19:48 -0700)]
Add timeout parameter to mutt_socket_poll.

This will be used in the next commit to add a timeout when polling for
new mail.

7 years agoWhen guessing an attachment type, don't allow text/plain if there is a null character...
Kevin McCarthy [Fri, 21 Jul 2017 00:30:05 +0000 (17:30 -0700)]
When guessing an attachment type, don't allow text/plain if there is a null character. (see #2933)

Type text/plain should not contain any null characters.  Slightly
improve the type guesser by forcing an attachment with any null
characters to be application/octet-stream.

Note the type guesser could use much more improvement, but this is an
easy and obvious fix.

7 years agoChange imap_cmd_start() to return OK when the cmd_queue is finished. (closes #3956)
Kevin McCarthy [Wed, 19 Jul 2017 21:04:39 +0000 (14:04 -0700)]
Change imap_cmd_start() to return OK when the cmd_queue is finished. (closes #3956)

Some response handlers can end up recursively calling
imap_cmd_start(), processing all the command completions.  If the
outer call was an imap_exec(), this would result in the loop never
being terminated (or just blocking reading a server that has already
finished all the commands).

Change the callers that are simply using it to read a response,
without having called cmd_start(), to check for IMAP_CMD_OK instead.
Currently this is just the open connection function.

7 years agoFix menu color calls to occur before positioning the cursor. (see #3956)
Kevin McCarthy [Wed, 19 Jul 2017 21:04:32 +0000 (14:04 -0700)]
Fix menu color calls to occur before positioning the cursor. (see #3956)

It is possible for menu->color() to end up fetching an imap message,
and therefore generating a status message.

Because of this, we need to make those calls before we position the cursor.

7 years agomerge: trivial code fixes
Richard Russon [Thu, 3 Aug 2017 15:52:12 +0000 (16:52 +0100)]
merge: trivial code fixes

 * doxygen: fix comments
 * contrib: drop old iconv config
 * tidy: squeeze blank lines
 * tidy: remove duplicate prototypes
 * tidy: remove unnecessary casts
 * tidy: left-align goto labels
 * tidy: sort out typedef usage
 * tidy: rearrange code to avoid forward def
 * tidy: use DT_MASK to get type
 * tidy: sort out ++ -- comma operators
 * tidy: drop rarely-used macro
 * tidy: drop deprecated types
 * tidy: drop unnecessary INITVAL usage
 * rename: global boolean variables (insert underscores)
 * rename: global quad variables (insert underscores)
 * rename: tidy global variable naming
 * drop old testing code

7 years agodrop old testing code
Richard Russon [Thu, 3 Aug 2017 01:01:13 +0000 (02:01 +0100)]
drop old testing code

7 years agorename: tidy global variable naming
Richard Russon [Thu, 27 Jul 2017 19:06:47 +0000 (20:06 +0100)]
rename: tidy global variable naming

Rename the global variables to match the MixedCase coding style, e.g.
    Spoolfile -> SpoolFile

7 years agorename: global quad variables (insert underscores)
Richard Russon [Thu, 27 Jul 2017 18:18:39 +0000 (19:18 +0100)]
rename: global quad variables (insert underscores)

Rename constants for better legibility, such as:
    OPT_PGPENCRYPTSELF -> OPT_PGP_ENCRYPT_SELF

7 years agorename: global boolean variables (insert underscores)
Richard Russon [Thu, 27 Jul 2017 18:16:40 +0000 (19:16 +0100)]
rename: global boolean variables (insert underscores)

Rename constants for better legibility, such as:
    OPTNOCURSES -> OPT_NO_CURSES

7 years agotidy: drop unnecessary INITVAL usage
Richard Russon [Wed, 26 Jul 2017 15:39:51 +0000 (16:39 +0100)]
tidy: drop unnecessary INITVAL usage

Variables with a static/global scope are automatically initialised to 0/NULL.
About 10 variables were initialised to non-zero values, but they were
reset with values from init.h before they were used.

7 years agotidy: drop deprecated types
Richard Russon [Tue, 25 Jul 2017 15:33:21 +0000 (16:33 +0100)]
tidy: drop deprecated types

These have been unnecessary since 2012

7 years agotidy: drop rarely-used macro
Richard Russon [Tue, 25 Jul 2017 15:24:50 +0000 (16:24 +0100)]
tidy: drop rarely-used macro

7 years agotidy: sort out ++ -- comma operators
Richard Russon [Mon, 24 Jul 2017 17:26:43 +0000 (18:26 +0100)]
tidy: sort out ++ -- comma operators

Where possible:
- Change pre- to post-decrement
- Change pre- to post-increment
- Drop commas (separate statements)

7 years agotidy: use DT_MASK to get type
Richard Russon [Wed, 26 Jul 2017 18:49:25 +0000 (19:49 +0100)]
tidy: use DT_MASK to get type

7 years agotidy: rearrange code to avoid forward def
Richard Russon [Fri, 21 Jul 2017 23:45:36 +0000 (00:45 +0100)]
tidy: rearrange code to avoid forward def

7 years agotidy: sort out typedef usage
Richard Russon [Fri, 21 Jul 2017 23:35:47 +0000 (00:35 +0100)]
tidy: sort out typedef usage

7 years agotidy: left-align goto labels
Richard Russon [Fri, 21 Jul 2017 22:10:54 +0000 (23:10 +0100)]
tidy: left-align goto labels

7 years agotidy: remove unnecessary casts
Richard Russon [Tue, 25 Jul 2017 15:27:32 +0000 (16:27 +0100)]
tidy: remove unnecessary casts

7 years agotidy: remove duplicate prototypes
Richard Russon [Thu, 27 Jul 2017 18:22:40 +0000 (19:22 +0100)]
tidy: remove duplicate prototypes

7 years agotidy: squeeze blank lines
Richard Russon [Sat, 22 Jul 2017 00:31:07 +0000 (01:31 +0100)]
tidy: squeeze blank lines

7 years agocontrib: drop old iconv config
Richard Russon [Tue, 25 Jul 2017 15:35:58 +0000 (16:35 +0100)]
contrib: drop old iconv config

7 years agodoxygen: fix comments
Richard Russon [Fri, 21 Jul 2017 22:54:05 +0000 (23:54 +0100)]
doxygen: fix comments

7 years agomerge: create library of shared code
Richard Russon [Thu, 3 Aug 2017 14:36:53 +0000 (15:36 +0100)]
merge: create library of shared code

 * split out state functions
 * split out parameter functions
 * create library
 * change code to use lib/lib.h
 * move the ascii functions to the library
 * move the base64 functions to the library
 * move the date functions to the library
 * move the exit functions to the library
 * move the md5 functions to the library
 * move the sha1 functions to the library
 * move the memory functions to the library
 * move the message functions to the library
 * move the debug functions to the library
 * move the string functions to the library
 * move the file functions to the library
 * move the buffer functions to the library
 * move the hash functions to the library
 * drop lib.c
 * doxygen: update config
 * rename the library to libmutt

7 years agorename the library to libmutt
Richard Russon [Thu, 3 Aug 2017 13:32:54 +0000 (14:32 +0100)]
rename the library to libmutt

- strip lib_ prefix from files
- rename liblib to libmutt

The only renaming complication was `lib_string.h`.
It's been renamed to `string2.h` so that `#include <string.h>` still works.

7 years agodoxygen: update config 694/head
Richard Russon [Wed, 2 Aug 2017 15:24:35 +0000 (16:24 +0100)]
doxygen: update config

7 years agodrop lib.c
Richard Russon [Wed, 2 Aug 2017 15:20:34 +0000 (16:20 +0100)]
drop lib.c

7 years agomove the hash functions to the library
Richard Russon [Wed, 2 Aug 2017 15:08:35 +0000 (16:08 +0100)]
move the hash functions to the library

7 years agomove the buffer functions to the library
Richard Russon [Wed, 2 Aug 2017 15:03:38 +0000 (16:03 +0100)]
move the buffer functions to the library

7 years agomove the file functions to the library
Richard Russon [Wed, 2 Aug 2017 14:49:32 +0000 (15:49 +0100)]
move the file functions to the library

7 years agomove the string functions to the library
Richard Russon [Wed, 2 Aug 2017 14:41:50 +0000 (15:41 +0100)]
move the string functions to the library

7 years agomove the debug functions to the library
Richard Russon [Wed, 2 Aug 2017 14:34:05 +0000 (15:34 +0100)]
move the debug functions to the library

7 years agomove the message functions to the library
Richard Russon [Wed, 2 Aug 2017 14:29:18 +0000 (15:29 +0100)]
move the message functions to the library

7 years agomove the memory functions to the library
Richard Russon [Wed, 2 Aug 2017 14:23:42 +0000 (15:23 +0100)]
move the memory functions to the library

7 years agomove the sha1 functions to the library
Richard Russon [Wed, 2 Aug 2017 14:15:18 +0000 (15:15 +0100)]
move the sha1 functions to the library

7 years agomove the md5 functions to the library
Richard Russon [Wed, 2 Aug 2017 14:12:59 +0000 (15:12 +0100)]
move the md5 functions to the library

7 years agomove the exit functions to the library
Richard Russon [Wed, 2 Aug 2017 14:08:51 +0000 (15:08 +0100)]
move the exit functions to the library

7 years agomove the date functions to the library
Richard Russon [Wed, 2 Aug 2017 14:01:19 +0000 (15:01 +0100)]
move the date functions to the library

7 years agomove the base64 functions to the library
Richard Russon [Wed, 2 Aug 2017 13:43:57 +0000 (14:43 +0100)]
move the base64 functions to the library

7 years agomove the ascii functions to the library
Richard Russon [Wed, 2 Aug 2017 13:35:14 +0000 (14:35 +0100)]
move the ascii functions to the library

7 years agochange code to use lib/lib.h
Richard Russon [Wed, 2 Aug 2017 12:49:39 +0000 (13:49 +0100)]
change code to use lib/lib.h

7 years agocreate library
Richard Russon [Sun, 30 Jul 2017 14:49:36 +0000 (15:49 +0100)]
create library

7 years agosplit out parameter functions
Richard Russon [Sun, 30 Jul 2017 12:28:39 +0000 (13:28 +0100)]
split out parameter functions

7 years agosplit out state functions
Richard Russon [Sun, 30 Jul 2017 12:10:57 +0000 (13:10 +0100)]
split out state functions

7 years agodoxygen: tidy comments
Richard Russon [Fri, 21 Jul 2017 18:30:07 +0000 (19:30 +0100)]
doxygen: tidy comments

@return x, y -> multiple @retval
@return -> @retval
more /* */ comments to /**< */
merge .h and .c function descriptions
Prefix defines with #

7 years agobind editor <delete> to delete-char
Damien Riegel [Thu, 20 Jul 2017 15:31:32 +0000 (16:31 +0100)]
bind editor <delete> to delete-char

7 years agoLook for ncurses headers in more dedicated locations first (#679)
Pietro Cerutti [Thu, 20 Jul 2017 14:33:55 +0000 (15:33 +0100)]
Look for ncurses headers in more dedicated locations first (#679)

This solves a problem on FreeBSD, where the base system is shipped with
ncurses 5.9 (/usr/include/ncurses.h). When building against 3rd party
ncurses 6.0 from ports (/usr/local/include/ncurses/ncurses.h), the
configure script picks up the 5.9 headers and the 6.0 library. This
might cause problems, since 6.0 is not ABI compatible with 5.0.

7 years agoNo need to strdup the result of tigetstr (#682)
Pietro Cerutti [Thu, 20 Jul 2017 14:16:47 +0000 (15:16 +0100)]
No need to strdup the result of tigetstr (#682)

7 years agodoxygen: doc some more functions
Richard Russon [Tue, 18 Jul 2017 22:46:39 +0000 (23:46 +0100)]
doxygen: doc some more functions

7 years agoFix the printing of ncurses version in -v output
Pietro Cerutti [Tue, 18 Jul 2017 16:20:53 +0000 (16:20 +0000)]
Fix the printing of ncurses version in -v output

7 years agoFix the configure check for S-Lang (#676)
Pietro Cerutti [Tue, 18 Jul 2017 15:03:32 +0000 (16:03 +0100)]
Fix the configure check for S-Lang (#676)

Issue: #667

7 years agodocs: document some functions
Steven! Ragnarök [Tue, 18 Jul 2017 13:59:46 +0000 (14:59 +0100)]
docs: document some functions

7 years agomerge: rename functions/constants for consistency
Richard Russon [Mon, 17 Jul 2017 16:16:45 +0000 (17:16 +0100)]
merge: rename functions/constants for consistency

 * rename ESC_char
 * rename mutt_format_string and mutt_FormatString
 * rename SHA1_*
 * remove build constant SHA1HANDSOFF
 * #define constants in upper case

7 years ago#define constants in upper case
Richard Russon [Sat, 15 Jul 2017 08:44:21 +0000 (09:44 +0100)]
#define constants in upper case

7 years agoremove build constant SHA1HANDSOFF
Richard Russon [Sat, 15 Jul 2017 08:36:25 +0000 (09:36 +0100)]
remove build constant SHA1HANDSOFF

7 years agorename SHA1_*
Richard Russon [Sat, 15 Jul 2017 08:35:10 +0000 (09:35 +0100)]
rename SHA1_*

7 years agorename mutt_format_string and mutt_FormatString
Richard Russon [Fri, 14 Jul 2017 21:07:37 +0000 (22:07 +0100)]
rename mutt_format_string and mutt_FormatString

`mutt_format_string` and `mutt_FormatString` were much to similarly
named to be useful.  The first only does formatting.  The second uses
expandos to allow custom expansion.

To avoid future confusion, I've created new names that are distinct:
    mutt_format_string mutt_simple_format
    mutt_FormatString  mutt_expando_format

7 years agorename ESC_char
Richard Russon [Sat, 15 Jul 2017 08:32:53 +0000 (09:32 +0100)]
rename ESC_char

7 years agomerge: improve doxygen comments
Richard Russon [Mon, 17 Jul 2017 15:48:48 +0000 (16:48 +0100)]
merge: improve doxygen comments

 * name all enum types
 * fix all comments
 * fix colours and links
 * add file templates
 * add struct/enum/union templates
 * convert existing comments

7 years agodoxygen: convert existing comments
Richard Russon [Sun, 16 Jul 2017 19:49:10 +0000 (20:49 +0100)]
doxygen: convert existing comments

Lots of functions were already commented.
This commit re-formats the comments to be doxygen-compatible.

Despite the size of the commit, no code has changed.

7 years agodoxygen: add struct/enum/union templates
Richard Russon [Wed, 12 Jul 2017 11:28:47 +0000 (12:28 +0100)]
doxygen: add struct/enum/union templates

7 years agodoxygen: add file templates
Richard Russon [Wed, 12 Jul 2017 17:20:00 +0000 (18:20 +0100)]
doxygen: add file templates

7 years agodoxygen: fix colours and links
Richard Russon [Sat, 15 Jul 2017 16:24:23 +0000 (17:24 +0100)]
doxygen: fix colours and links

7 years agodoxygen: fix all comments
Richard Russon [Sat, 15 Jul 2017 09:08:59 +0000 (10:08 +0100)]
doxygen: fix all comments

7 years agoname all enum types
Richard Russon [Sun, 16 Jul 2017 12:04:20 +0000 (13:04 +0100)]
name all enum types

7 years agoonly match real mailboxes when looking for new mail
Richard Russon [Sat, 15 Jul 2017 15:42:41 +0000 (16:42 +0100)]
only match real mailboxes when looking for new mail

7 years agonntp: sync to upstream
Richard Russon [Mon, 26 Jun 2017 10:17:06 +0000 (11:17 +0100)]
nntp: sync to upstream

7 years agoNeoMutt 2017-07-14 (1.8.3) neomutt-20170714
Richard Russon [Fri, 14 Jul 2017 14:44:03 +0000 (15:44 +0100)]
NeoMutt 2017-07-14 (1.8.3)

7 years agomerge: sync to mutt/default
Richard Russon [Fri, 14 Jul 2017 14:43:25 +0000 (15:43 +0100)]
merge: sync to mutt/default

7 years agoupdate translations
Richard Russon [Fri, 14 Jul 2017 13:25:36 +0000 (14:25 +0100)]
update translations

7 years agoUpdate German translation
André Berger [Sun, 9 Jul 2017 22:01:26 +0000 (23:01 +0100)]
Update German translation

7 years agoclang-format
Richard Russon [Fri, 14 Jul 2017 13:15:08 +0000 (14:15 +0100)]
clang-format

7 years agodocs: update ChangeLog
Richard Russon [Fri, 14 Jul 2017 13:13:12 +0000 (14:13 +0100)]
docs: update ChangeLog

7 years agoversion: 2017-07-14
Richard Russon [Fri, 14 Jul 2017 12:06:58 +0000 (13:06 +0100)]
version: 2017-07-14

7 years agocoverity: fix two minor defects
Richard Russon [Fri, 14 Jul 2017 12:43:23 +0000 (13:43 +0100)]
coverity: fix two minor defects

7 years agodifferentiate hcaches
Richard Russon [Sun, 9 Jul 2017 21:38:25 +0000 (22:38 +0100)]
differentiate hcaches

7 years agofix hcachever.sh script
Richard Russon [Tue, 11 Jul 2017 13:33:48 +0000 (14:33 +0100)]
fix hcachever.sh script

This script stopped working when all the structs were renamed
(and lots of the moved out of mutt.h)

7 years agocompile-time output: use two lists 666/head
Thomas Adam [Sat, 8 Jul 2017 16:17:16 +0000 (17:17 +0100)]
compile-time output: use two lists

When asking NeoMutt for a list of compile-time features, the current
implementation assumes a mixture of options which can be enabled through
./configure, and some which default to on, without compile-time
exclusion.

Instead, separate this output in NeoMutt.

7 years agoconfigure: remove MUTTLIBS 665/head
Damien Riegel [Fri, 7 Jul 2017 21:55:21 +0000 (17:55 -0400)]
configure: remove MUTTLIBS

It's not clear to anyone why this variable existed in the first place,
so it was decided that it should be removed.

Most of the time, AC_CHECK_LIB and AC_SEARCH_LIBS will already alter
LIBS to prepend to it the found library, so there is no real reason to
duplicate this mechanism.

Some manual assignments have been kept because either the
action-if-found was set to no-op, or because new found libraries were
appended to MUTTLIBS, so this keeps the diff minimal with the same
"behaviour".

See issue #552

7 years agodocs: fix pattern typo
Richard Russon [Wed, 5 Jul 2017 16:34:35 +0000 (17:34 +0100)]
docs: fix pattern typo

Thanks to cybrNaut

7 years agomerge: upstream fixes (mutt/default)
Richard Russon [Fri, 14 Jul 2017 11:08:04 +0000 (12:08 +0100)]
merge: upstream fixes (mutt/default)

 * fix signed/unsigned comparison in longest_common_prefix
 * Fix crash when $postponed is on another server.
 * bcache: cast to avoid implicit signed/unsigned comparison in bcache_path
 * drop unused flags argument from imap_access

7 years agodrop unused flags argument from imap_access
Brendan Cully [Fri, 14 Jul 2017 05:05:28 +0000 (22:05 -0700)]
drop unused flags argument from imap_access

We are not using an actual interface so it is pointless.

7 years agobcache: cast to avoid implicit signed/unsigned comparison in bcache_path
Brendan Cully [Thu, 13 Jul 2017 04:20:24 +0000 (21:20 -0700)]
bcache: cast to avoid implicit signed/unsigned comparison in bcache_path

7 years agoFix crash when $postponed is on another server.
Kevin McCarthy [Wed, 12 Jul 2017 19:38:22 +0000 (12:38 -0700)]
Fix crash when $postponed is on another server.

imap_mxcmp() translates NULL to "INBOX".  When $postponed points to a
URL with an empty or "INBOX" path, this will end up matching against a
NULL idata->mailbox in imap_status().  This resulted in a crash
because idata->ctx is also NULL.

Thanks to Olaf Hering for the detailed bug report and suggested fix.

7 years agofix signed/unsigned comparison in longest_common_prefix
Brendan Cully [Sat, 8 Jul 2017 23:35:08 +0000 (16:35 -0700)]
fix signed/unsigned comparison in longest_common_prefix

7 years agodrop unused flags argument from imap_access
Brendan Cully [Fri, 14 Jul 2017 05:05:28 +0000 (22:05 -0700)]
drop unused flags argument from imap_access

We are not using an actual interface so it is pointless.

7 years agodoxygen: add config file
Richard Russon [Tue, 11 Jul 2017 15:56:38 +0000 (16:56 +0100)]
doxygen: add config file

7 years agodoxygen: tidy existing comments
Richard Russon [Thu, 13 Jul 2017 01:28:05 +0000 (02:28 +0100)]
doxygen: tidy existing comments

7 years agoname unnamed enums
Richard Russon [Thu, 13 Jul 2017 13:58:27 +0000 (14:58 +0100)]
name unnamed enums

7 years agorename some structs/enums/unions/constants
Richard Russon [Wed, 12 Jul 2017 14:40:21 +0000 (15:40 +0100)]
rename some structs/enums/unions/constants

struct/enum/union
    Capability_Aliases CapabilityAliases
    Capability_Alias   CapabilityAlias
    CryptKeyinfo       CryptKeyInfo
    div_type           DivType
    DnArrayS           DnArray
    FgetConvS          FgetConv
    format_flag        FormatFlag
    group_state_t      GroupState
    hash_key           HashKey
    hcache_ops_t       HcacheOps
    history_class_t    HistoryClass
    imap_auth_res_t    ImapAuthRes
    IMAP_COMMAND_TYPE  ImapCommandType
    key_cap_t          KeyCap
    mdb_txn_mode       MdbTxnMode
    NmCtxdata          NmCtxData
    NmHdrdata          NmHdrData
    NmHdrtag           NmHdrTag
    packet_tags        PacketTags
    pattern_exec_flag  PatternExecFlag
    pgp_ring_t         PgpRing
    pop_auth_res_t     PopAuthRes
    sb_src             SidebarSrc
    Sysexits           SysExits
    url_scheme         UrlScheme
    url_scheme_t       UrlScheme
    validate           Validate
    XDGType            XdgType

Constants
    kXDGConfigDirs     XDG_CONFIG_DIRS
    kXDGConfigHome     XDG_CONFIG_HOME
    ADDR               GS_ADDR
    NONE               GS_NONE
    RX                 GS_RX
    txn_read           TXN_READ
    txn_uninitialized  TXN_UNINITIALIZED
    txn_write          TXN_WRITE

Variables
    firstMessage       first_message
    hideQuoted         hide_quoted
    lastCached         last_cached
    lastLine           last_line
    lastLoaded         last_loaded
    lastMessage        last_message
    lineInfo           line_info
    maxLine            max_line
    newMailCount       new_mail_count
    QuoteList          quote_list
    SearchBack         search_back
    SearchCompiled     search_compiled
    searchDir          search_dir
    SearchFlag         search_flag
    SearchRE           search_re
    WrapMargin         wrap_margin

7 years agobcache: cast to avoid implicit signed/unsigned comparison in bcache_path
Brendan Cully [Thu, 13 Jul 2017 04:20:24 +0000 (21:20 -0700)]
bcache: cast to avoid implicit signed/unsigned comparison in bcache_path