]>
granicus.if.org Git - neomutt/log
Richard Russon [Fri, 8 Mar 2019 17:36:37 +0000 (17:36 +0000)]
fold comments
Richard Russon [Fri, 8 Mar 2019 17:05:57 +0000 (17:05 +0000)]
fix block comments
Richard Russon [Thu, 7 Mar 2019 00:36:25 +0000 (00:36 +0000)]
tidy L10N comments
Richard Russon [Thu, 7 Mar 2019 00:16:09 +0000 (00:16 +0000)]
fix comments
Richard Russon [Wed, 6 Mar 2019 16:34:30 +0000 (16:34 +0000)]
docs: fix typos
Richard Russon [Thu, 7 Mar 2019 00:41:28 +0000 (00:41 +0000)]
Rename variables: string -> str
Consistent variable naming makes the code easier to read.
Richard Russon [Thu, 7 Mar 2019 03:28:31 +0000 (03:28 +0000)]
fix pre-increment in for loops
In for loops, there's no difference in behaviour between:
`for (int i = 0; i < 10; ++i)`
`for (int i = 0; i < 10; i++)`
Use the C form, `i++`, for consistency.
Richard Russon [Thu, 7 Mar 2019 00:20:01 +0000 (00:20 +0000)]
move switch/case break
Move the `break` inside the {}s of a case statement (for consistency).
Richard Russon [Fri, 8 Mar 2019 21:45:13 +0000 (21:45 +0000)]
move group to email
group.[ch] have dependencies on Address, so they should live in libemail.
Pietro Cerutti [Thu, 7 Mar 2019 12:42:10 +0000 (12:42 +0000)]
Disable all history operations if history is not enabled
Fixes #1592
Pietro Cerutti [Thu, 7 Mar 2019 08:49:50 +0000 (08:49 +0000)]
Fix composing a new message (again)
The old code had crept in again in 028c34.
Richard Russon [Wed, 6 Mar 2019 23:10:14 +0000 (23:10 +0000)]
add parentheses to conditionals
(flatcap discovers uncrustify)
Jakub Jindra [Mon, 4 Mar 2019 12:38:51 +0000 (13:38 +0100)]
ifdef: add support for environment variables
This allows the user to make config decisions based on the existence of
environment variables. e.g.
ifdef PS1 source interactive.rc
Richard Russon [Tue, 5 Mar 2019 12:08:19 +0000 (12:08 +0000)]
drop devel script
Committed by accident
[ci skip]
Richard Russon [Tue, 5 Mar 2019 01:36:41 +0000 (01:36 +0000)]
merge: lots of tidying
* fp prefix
* return r
* return ret
* return result
* rename SHA1 contexts
* rename MD5 contexts
* create enum SortType
* add typedef for PatternFlags
* use enum QuadOption for query_quadoption(), mutt_yesorno()
* separate enum for mutt_view_attachment()
* separate enum for mailcap lookups
* separate enum for mutt_save_attachment()
* separate enums for pattern types
* create TreeChar enum for tree characters
Richard Russon [Mon, 4 Mar 2019 16:10:19 +0000 (16:10 +0000)]
create TreeChar enum for tree characters
Richard Russon [Mon, 4 Mar 2019 17:19:25 +0000 (17:19 +0000)]
separate enums for pattern types
Richard Russon [Mon, 4 Mar 2019 15:37:24 +0000 (15:37 +0000)]
separate enum for mutt_save_attachment()
Richard Russon [Mon, 4 Mar 2019 15:08:50 +0000 (15:08 +0000)]
separate enum for mailcap lookups
Richard Russon [Mon, 4 Mar 2019 14:38:07 +0000 (14:38 +0000)]
separate enum for mutt_view_attachment()
Richard Russon [Mon, 4 Mar 2019 14:19:06 +0000 (14:19 +0000)]
use enum QuadOption for query_quadoption(), mutt_yesorno()
Richard Russon [Sun, 3 Mar 2019 23:03:00 +0000 (23:03 +0000)]
add typedef for PatternFlags
Richard Russon [Sun, 3 Mar 2019 20:38:48 +0000 (20:38 +0000)]
create enum SortType
Richard Russon [Sun, 3 Mar 2019 16:45:42 +0000 (16:45 +0000)]
rename MD5 contexts
Distinguish MD5 contexts from Context contexts.
Richard Russon [Sun, 3 Mar 2019 16:49:04 +0000 (16:49 +0000)]
rename SHA1 contexts
Distinguish SHA1 contexts from Context contexts.
Richard Russon [Thu, 28 Feb 2019 17:14:42 +0000 (17:14 +0000)]
return result
Richard Russon [Thu, 28 Feb 2019 17:07:16 +0000 (17:07 +0000)]
return ret
Richard Russon [Thu, 28 Feb 2019 16:56:00 +0000 (16:56 +0000)]
return r
Richard Russon [Thu, 28 Feb 2019 16:35:39 +0000 (16:35 +0000)]
fp prefix
Pietro Cerutti [Wed, 27 Feb 2019 12:01:51 +0000 (12:01 +0000)]
Let ctx_update_tables update the mx size for IMAP emails
Issue #1577
Pietro Cerutti [Wed, 27 Feb 2019 11:50:15 +0000 (11:50 +0000)]
Decreasing mbox size is done at ctx_update_tables, !active is not used
Issue #1577
Pietro Cerutti [Wed, 27 Feb 2019 11:47:27 +0000 (11:47 +0000)]
Fix crash when an email disappears from IMAP
Issue #1577
Pietro Cerutti [Mon, 4 Mar 2019 12:06:38 +0000 (12:06 +0000)]
Update to latest autosetup
Pietro Cerutti [Mon, 4 Mar 2019 10:10:40 +0000 (10:10 +0000)]
Fix composing a new message
Fixes #1582
Richard Russon [Sun, 3 Mar 2019 00:56:24 +0000 (00:56 +0000)]
merge: fix coverity defects
* defect 180847: Pointer to local outside scope
* defect 189753: Inferred misuse of enum
* defect 190188: Unchecked return value from library
* defect 190189: Unchecked return value
* defect 190190: Dereference before null check
* defect 190853: Dereference after null check
* defect 190854: Logical vs. bitwise operator
* defect 190855: Dereference after null check
* defect 190856: Overlapping buffer in memory
* defect 190857: Dereference after null check
Richard Russon [Sat, 2 Mar 2019 14:57:12 +0000 (14:57 +0000)]
defect 190857: Dereference after null check
Richard Russon [Sat, 2 Mar 2019 15:00:21 +0000 (15:00 +0000)]
defect 190856: Overlapping buffer in memory
Richard Russon [Sat, 2 Mar 2019 15:15:20 +0000 (15:15 +0000)]
defect 190855: Dereference after null check
Richard Russon [Sat, 2 Mar 2019 15:26:20 +0000 (15:26 +0000)]
defect 190854: Logical vs. bitwise operator
Richard Russon [Sat, 2 Mar 2019 15:28:10 +0000 (15:28 +0000)]
defect 190853: Dereference after null check
Richard Russon [Sat, 2 Mar 2019 15:33:02 +0000 (15:33 +0000)]
defect 190190: Dereference before null check
Richard Russon [Sat, 2 Mar 2019 15:35:28 +0000 (15:35 +0000)]
defect 190189: Unchecked return value
Richard Russon [Sat, 2 Mar 2019 15:40:09 +0000 (15:40 +0000)]
defect 190188: Unchecked return value from library
Richard Russon [Sat, 2 Mar 2019 15:44:52 +0000 (15:44 +0000)]
defect 189753: Inferred misuse of enum
Richard Russon [Sat, 2 Mar 2019 15:53:18 +0000 (15:53 +0000)]
defect 180847: Pointer to local outside scope
Richard Russon [Sun, 3 Mar 2019 00:49:57 +0000 (00:49 +0000)]
merge: trivial tidying
* clang-format
* rename variables: descrip -> desc
* rename variables: buffer -> buf
* rename variables: command -> cmd
* rename variables: progressbar -> progress
* rename variables: thepid -> pid
* rename variables: synch -> sync
* name macro variables
* lowercase local variables
* expand meaningless R_BOTH macros
* tidy mutt_edit_content_type()
* tidy generate_body()
* tidy mutt_alias_create()
* small code tidying
* boolify variables/params
* reduce variable scope
Richard Russon [Thu, 28 Feb 2019 18:36:53 +0000 (18:36 +0000)]
reduce variable scope
Richard Russon [Thu, 28 Feb 2019 15:13:21 +0000 (15:13 +0000)]
boolify variables/params
Richard Russon [Sat, 2 Mar 2019 15:17:25 +0000 (15:17 +0000)]
small code tidying
- fix typo
- drop once-used define
- rename old_msg_count
- drop unnec parentheses
Richard Russon [Thu, 28 Feb 2019 15:30:30 +0000 (15:30 +0000)]
tidy mutt_alias_create()
- return early, reducing indent
- rename variables for clarity
Richard Russon [Sat, 2 Mar 2019 15:03:50 +0000 (15:03 +0000)]
tidy generate_body()
- fix variable type
Richard Russon [Sat, 2 Mar 2019 14:12:59 +0000 (14:12 +0000)]
tidy mutt_edit_content_type()
- boolify
- parenthesise
Richard Russon [Thu, 28 Feb 2019 14:06:36 +0000 (14:06 +0000)]
expand meaningless R_BOTH macros
Both what?
- R_BOTH -> R_INDEX | R_PAGER
- R_RESORT_BOTH -> R_RESORT | R_RESORT_SUB
Richard Russon [Thu, 28 Feb 2019 14:00:57 +0000 (14:00 +0000)]
lowercase local variables
Local variables should be lowercase and snake_case.
Consistent variable naming makes the code easier to read.
Richard Russon [Thu, 28 Feb 2019 13:52:01 +0000 (13:52 +0000)]
name macro variables
Change macros from:
`#define function(A,B,C) other(A,B,C)`
to
`#define function(ctx,buf,buflen) other(ctx,buf,buflen)`
Richard Russon [Thu, 28 Feb 2019 14:39:35 +0000 (14:39 +0000)]
rename variables: synch -> sync
Consistent variable naming makes the code easier to read.
Richard Russon [Thu, 28 Feb 2019 14:38:28 +0000 (14:38 +0000)]
rename variables: thepid -> pid
Consistent variable naming makes the code easier to read.
Richard Russon [Thu, 28 Feb 2019 14:35:55 +0000 (14:35 +0000)]
rename variables: progressbar -> progress
Consistent variable naming makes the code easier to read.
Richard Russon [Thu, 28 Feb 2019 14:21:39 +0000 (14:21 +0000)]
rename variables: command -> cmd
Consistent variable naming makes the code easier to read.
Richard Russon [Thu, 28 Feb 2019 14:16:33 +0000 (14:16 +0000)]
rename variables: buffer -> buf
Consistent variable naming makes the code easier to read.
Richard Russon [Thu, 28 Feb 2019 14:32:05 +0000 (14:32 +0000)]
rename variables: descrip -> desc
Consistent variable naming makes the code easier to read.
Richard Russon [Sun, 3 Mar 2019 00:04:22 +0000 (00:04 +0000)]
clang-format
Richard Russon [Sat, 2 Mar 2019 13:22:19 +0000 (13:22 +0000)]
merge: Define types for more flags/bitfields
* imap: rename constants to match capability strings
* smtp: convert capability enum to flags
* add typedef for ImapCapFlags
* add typedef for SmtpCapFlags
* add typedef for AnsiFlags
* add typedef for CheckFlags
* add typedef for MhSeqFlags
* add typedef for AclFlags
* add typedef for HashFlags
* add typedef for MixCapFlags
* add typedef for CliFlags
* add typedef for SelectFileFlags
Richard Russon [Sat, 2 Mar 2019 12:53:24 +0000 (12:53 +0000)]
add typedef for SelectFileFlags
Richard Russon [Sat, 2 Mar 2019 12:45:19 +0000 (12:45 +0000)]
add typedef for CliFlags
Richard Russon [Sat, 2 Mar 2019 12:33:06 +0000 (12:33 +0000)]
add typedef for MixCapFlags
Richard Russon [Sat, 2 Mar 2019 12:21:07 +0000 (12:21 +0000)]
add typedef for HashFlags
Richard Russon [Sat, 2 Mar 2019 12:15:56 +0000 (12:15 +0000)]
add typedef for AclFlags
Richard Russon [Sat, 2 Mar 2019 01:12:45 +0000 (01:12 +0000)]
add typedef for MhSeqFlags
Richard Russon [Fri, 1 Mar 2019 21:52:01 +0000 (21:52 +0000)]
add typedef for CheckFlags
Richard Russon [Fri, 1 Mar 2019 21:27:01 +0000 (21:27 +0000)]
add typedef for AnsiFlags
Richard Russon [Sat, 2 Mar 2019 13:01:22 +0000 (13:01 +0000)]
add typedef for SmtpCapFlags
Richard Russon [Sat, 2 Mar 2019 12:57:53 +0000 (12:57 +0000)]
add typedef for ImapCapFlags
Richard Russon [Fri, 1 Mar 2019 17:48:10 +0000 (17:48 +0000)]
smtp: convert capability enum to flags
Richard Russon [Fri, 1 Mar 2019 17:40:58 +0000 (17:40 +0000)]
imap: rename constants to match capability strings
Richard Russon [Fri, 1 Mar 2019 13:26:44 +0000 (13:26 +0000)]
merge: Define types for all of the flags/bitfields.
Being 'C' this doesn't add any type safety, but it does make the code far more legible.<Paste>
* add typedef for ConfigDumpFlags
* add typedef for ConfigRedrawFlags
* add typedef for MuttFormatFlags
* add typedef for HookFlags
* add typedef for ImapOpenFlags
* add typedef for ImapCmdFlags
* add typedef for MuttAccountFlags
* add typedef for CompletionFlags
* add typedef for TokenFlags
* add typedef for MuttRedrawFlags
* add typedef for MuttThreadFlags
* add typedef for OpenMailboxFlags
* add typedef for MsgOpenFlags
* add typedef for PagerFlags
* add typedef for SendFlags
* add typedef for StateFlags
* add typedef for KeyFlags
* add typedef for SecurityFlags
* add typedef for CopyHeaderFlags
* add typedef for CopyMessageFlags
Richard Russon [Wed, 27 Feb 2019 00:53:51 +0000 (00:53 +0000)]
add typedef for CopyMessageFlags
Richard Russon [Wed, 27 Feb 2019 00:51:16 +0000 (00:51 +0000)]
add typedef for CopyHeaderFlags
Richard Russon [Wed, 27 Feb 2019 00:16:33 +0000 (00:16 +0000)]
add typedef for SecurityFlags
Richard Russon [Wed, 27 Feb 2019 00:14:30 +0000 (00:14 +0000)]
add typedef for KeyFlags
Richard Russon [Tue, 26 Feb 2019 23:45:54 +0000 (23:45 +0000)]
add typedef for StateFlags
Richard Russon [Tue, 26 Feb 2019 23:44:53 +0000 (23:44 +0000)]
add typedef for SendFlags
Richard Russon [Tue, 26 Feb 2019 23:42:57 +0000 (23:42 +0000)]
add typedef for PagerFlags
Richard Russon [Tue, 26 Feb 2019 23:42:08 +0000 (23:42 +0000)]
add typedef for MsgOpenFlags
Richard Russon [Tue, 26 Feb 2019 23:41:01 +0000 (23:41 +0000)]
add typedef for OpenMailboxFlags
Richard Russon [Tue, 26 Feb 2019 23:39:05 +0000 (23:39 +0000)]
add typedef for MuttThreadFlags
Richard Russon [Tue, 26 Feb 2019 23:38:28 +0000 (23:38 +0000)]
add typedef for MuttRedrawFlags
Richard Russon [Tue, 26 Feb 2019 23:35:52 +0000 (23:35 +0000)]
add typedef for TokenFlags
Richard Russon [Tue, 26 Feb 2019 23:35:15 +0000 (23:35 +0000)]
add typedef for CompletionFlags
Richard Russon [Tue, 26 Feb 2019 23:34:26 +0000 (23:34 +0000)]
add typedef for MuttAccountFlags
Richard Russon [Tue, 26 Feb 2019 23:33:59 +0000 (23:33 +0000)]
add typedef for ImapCmdFlags
Richard Russon [Tue, 26 Feb 2019 23:32:03 +0000 (23:32 +0000)]
add typedef for ImapOpenFlags
Richard Russon [Tue, 26 Feb 2019 23:31:02 +0000 (23:31 +0000)]
add typedef for HookFlags
Richard Russon [Tue, 26 Feb 2019 23:29:50 +0000 (23:29 +0000)]
add typedef for MuttFormatFlags
Richard Russon [Tue, 26 Feb 2019 23:23:19 +0000 (23:23 +0000)]
add typedef for ConfigRedrawFlags
Richard Russon [Tue, 26 Feb 2019 23:22:26 +0000 (23:22 +0000)]
add typedef for ConfigDumpFlags
Richard Russon [Fri, 1 Mar 2019 13:06:29 +0000 (13:06 +0000)]
merge: Replace STRING constants
Constants like LONG_STRING aren't meaningful to anyone, so replace them
with their numeric equivalents.
* replace SHORT_STRING with 128
* replace STRING with 256
* replace LONG_STRING with 1024
* replace HUGE_STRING with 8192 or STR_COMMAND
Richard Russon [Sat, 23 Feb 2019 13:22:17 +0000 (13:22 +0000)]
replace HUGE_STRING with 8192 or STR_COMMAND
Richard Russon [Sat, 23 Feb 2019 12:31:54 +0000 (12:31 +0000)]
replace LONG_STRING with 1024
Richard Russon [Sat, 23 Feb 2019 12:17:13 +0000 (12:17 +0000)]
replace STRING with 256