]> granicus.if.org Git - neomutt/log
neomutt
6 years agomerge: upstream fixes
Richard Russon [Mon, 1 Oct 2018 22:34:23 +0000 (23:34 +0100)]
merge: upstream fixes

 * Increase buffer sizes for some IMAP commands.
 * Change imap_rename_mailbox to use a BUFFER.
 * Convert pgp_invoke_list_keys and mix_send_message to use BUFFERs.

6 years agoConvert pgp_invoke_list_keys and mix_send_message to use BUFFERs.
Kevin McCarthy [Fri, 28 Sep 2018 22:08:19 +0000 (15:08 -0700)]
Convert pgp_invoke_list_keys and mix_send_message to use BUFFERs.

Both repetitively perform a lot of copying back in forth, which is
much cleaner with a BUFFER.

Note that in pgp_invoke_list_keys, if there are no hints uids->data
would be NULL.  However, the pgp_invoke() checks and wraps all the
format substitutions with NONULL.

6 years agoChange imap_rename_mailbox to use a BUFFER.
Kevin McCarthy [Fri, 28 Sep 2018 21:22:09 +0000 (14:22 -0700)]
Change imap_rename_mailbox to use a BUFFER.

6 years agoIncrease buffer sizes for some IMAP commands.
Kevin McCarthy [Fri, 28 Sep 2018 00:29:16 +0000 (17:29 -0700)]
Increase buffer sizes for some IMAP commands.

Use to ensure assembled IMAP commands fit in the resultant buffer to
be imap_exec()'ed.

RFC2683 suggested a limit of 1000, but asked servers to accept up to
8000.  Furthermore, RFC7162 bumped the client limit suggestion up to
8192.  So I don't believe any issues will be caused by this.

Most of these are increases are just to remove theoretical truncation
warned about by the compiler; I don't believe we've had reports of
actual command truncation due to a mailbox 1024 characters long.

6 years agoFix non-threaded $sort_aux "reverse-" sorting.
Kevin McCarthy [Wed, 26 Sep 2018 02:03:56 +0000 (19:03 -0700)]
Fix non-threaded $sort_aux "reverse-" sorting.

The secondary sort was looking at (Sort & SORT_REVERSE) instead
of (SortAux & SORT_REVERSE), so wasn't even performing the reverse
based on the correct flag.

Additionally, afterwards, the primary sort was improperly applying a
reverse when the secondary sort returned non-zero.

Change SORTCODE() to look at SortAux when we are inside a secondary
sort.

Change AUXSORT() to return the result if the secondary sort returns
non-zero.  It is ugly to put a return inside the macro, but the check
for non-zero needs to be performed inside the AUXSORT if branch.

If the secondary sort returns 0, then the primary sort can still
compare index and apply a reverse as needed.

6 years agomerge: minor tidying
Richard Russon [Sat, 29 Sep 2018 23:14:38 +0000 (00:14 +0100)]
merge: minor tidying

 * boolify: account_match
 * rename header_cache_t vars
 * move file_get_size
 * docs: fix example
 * doxy: comment remaining parse functions
 * doxy: comment remaining connection functions

6 years agodoxy: comment remaining connection functions
Richard Russon [Sat, 29 Sep 2018 21:44:21 +0000 (22:44 +0100)]
doxy: comment remaining connection functions

6 years agodoxy: comment remaining parse functions
Richard Russon [Sat, 29 Sep 2018 18:44:06 +0000 (19:44 +0100)]
doxy: comment remaining parse functions

6 years agodocs: fix example
Richard Russon [Thu, 27 Sep 2018 19:37:43 +0000 (20:37 +0100)]
docs: fix example

6 years agomove file_get_size
Richard Russon [Thu, 27 Sep 2018 19:27:46 +0000 (20:27 +0100)]
move file_get_size

6 years agorename header_cache_t vars
Richard Russon [Thu, 27 Sep 2018 19:20:20 +0000 (20:20 +0100)]
rename header_cache_t vars

6 years agoboolify: account_match
Richard Russon [Thu, 27 Sep 2018 19:09:35 +0000 (20:09 +0100)]
boolify: account_match

6 years agomerge: minor tidying
Richard Russon [Fri, 28 Sep 2018 22:53:56 +0000 (23:53 +0100)]
merge: minor tidying

 * sync mutt_parse_mailboxes to other parse functions
 * refactor mutt_account_match
 * refactor mutt_conn_new()
 * mx_path_probe: export stat info
 * tidy code
 * add comments

6 years agoadd comments
Richard Russon [Fri, 28 Sep 2018 18:49:58 +0000 (19:49 +0100)]
add comments

6 years agotidy code
Richard Russon [Fri, 28 Sep 2018 19:20:10 +0000 (20:20 +0100)]
tidy code

6 years agomx_path_probe: export stat info
Richard Russon [Fri, 28 Sep 2018 18:46:57 +0000 (19:46 +0100)]
mx_path_probe: export stat info

6 years agorefactor mutt_conn_new()
Richard Russon [Fri, 28 Sep 2018 18:48:37 +0000 (19:48 +0100)]
refactor mutt_conn_new()

6 years agorefactor mutt_account_match
Richard Russon [Fri, 28 Sep 2018 19:10:53 +0000 (20:10 +0100)]
refactor mutt_account_match

6 years agosync mutt_parse_mailboxes to other parse functions
Richard Russon [Fri, 28 Sep 2018 16:04:58 +0000 (17:04 +0100)]
sync mutt_parse_mailboxes to other parse functions

6 years agomerge: tidy menu api functions
Richard Russon [Thu, 27 Sep 2018 00:03:26 +0000 (01:03 +0100)]
merge: tidy menu api functions

 * rename functions
 * document api functions
 * rename functions
 * unify api function params

6 years agomenu: unify api function params
Richard Russon [Wed, 26 Sep 2018 23:41:32 +0000 (00:41 +0100)]
menu: unify api function params

6 years agomenu: rename functions
Richard Russon [Wed, 26 Sep 2018 23:14:57 +0000 (00:14 +0100)]
menu: rename functions

6 years agomenu: document api functions
Richard Russon [Wed, 26 Sep 2018 23:01:30 +0000 (00:01 +0100)]
menu: document api functions

6 years agomenu: rename functions
Richard Russon [Wed, 26 Sep 2018 18:28:11 +0000 (19:28 +0100)]
menu: rename functions

6 years agomerge: upstream fixes
Richard Russon [Tue, 25 Sep 2018 13:03:59 +0000 (14:03 +0100)]
merge: upstream fixes

 * Change imap_conn_find() to always return an authenticated conn.
 * Free queries and alias_queries before exiting.
 * Remove purpose checks in smime_keys.pl verify step.
 * Send imap keepalives for interactive filters.
 * Add output during smime_keys purpose flag checking.
 * Increase user/pass field sizes in auth_login.

6 years agoIncrease user/pass field sizes in auth_login.
Kevin McCarthy [Sat, 22 Sep 2018 16:53:55 +0000 (09:53 -0700)]
Increase user/pass field sizes in auth_login.

account.pass was previously increased to 256 in cd421c13.  Also, the
buf should be bigger than the user+pass+"LOGIN", so bump it up too.

6 years agoAdd output during smime_keys purpose flag checking.
Kevin McCarthy [Sat, 22 Sep 2018 00:13:02 +0000 (17:13 -0700)]
Add output during smime_keys purpose flag checking.

6 years agoSend imap keepalives for interactive filters.
Kevin McCarthy [Tue, 18 Sep 2018 02:40:22 +0000 (19:40 -0700)]
Send imap keepalives for interactive filters.

When viewing attachments externally with a (non-copiousoutput) mailcap
entry missing %s, the command is invoked as a filter, with the
attachment piped into stdin.  However, unlike a filter, the user
interacts with the command, instead of just displaying the output in
the pager.

Just as with the mutt_system() command, Mutt needs to send imap
keepalives to keep those connections from closing during the
potentially extended invocation.

Thanks to John Hawkinson for the bug report, and his suggested patch,
which this commit is based upon.

6 years agoRemove purpose checks in smime_keys.pl verify step.
Kevin McCarthy [Fri, 14 Sep 2018 21:23:04 +0000 (14:23 -0700)]
Remove purpose checks in smime_keys.pl verify step.

The purpose checks are subsequently performed, and added as a field to
the .index.  In any case, it turns out passing multiple '-purpose'
arguments isn't even correct: openssl appears to just use the last
one.

Thanks to David J. Weller-Fahy for reporting the problem, and for
including a possible patch.

6 years agoFree queries and alias_queries before exiting.
Kevin McCarthy [Fri, 14 Sep 2018 21:21:04 +0000 (14:21 -0700)]
Free queries and alias_queries before exiting.

6 years agoChange imap_conn_find() to always return an authenticated conn.
Kevin McCarthy [Thu, 13 Sep 2018 01:23:00 +0000 (18:23 -0700)]
Change imap_conn_find() to always return an authenticated conn.

With the flag MUTT_IMAP_CONN_NONEW, it was already ensured the
connection would be authenticated.  However, without that flag, an
error in opening the connection or authentication would still return
an idata.

The callers that didn't bother to check the state were still assuming
authenticated, because they were all subseqeuently issuing an
"authenticated state" command to the server.

Rather than add state checks to every caller, just change the function
to return NULL if the idata did not end up in an authenticated state.

Remove the now redundant state checks in imap_open_mailbox() and
imap_get_mailbox().

6 years agorefactor/simplify status %f
Richard Russon [Tue, 25 Sep 2018 11:31:01 +0000 (12:31 +0100)]
refactor/simplify status %f

6 years agoboolify ImapMboxData data members
Richard Russon [Mon, 17 Sep 2018 15:06:53 +0000 (16:06 +0100)]
boolify ImapMboxData data members

6 years agofix naming of ImapMboxData alloc/free functions
Richard Russon [Mon, 17 Sep 2018 15:04:33 +0000 (16:04 +0100)]
fix naming of ImapMboxData alloc/free functions

6 years agodocs: fix 'hidden_tags' references
Richard Russon [Mon, 24 Sep 2018 09:50:40 +0000 (10:50 +0100)]
docs: fix 'hidden_tags' references

Fixes #1347

[ci skip]

6 years agoFix segfault when checking a mailbox after a disconnect (II)
Pietro Cerutti [Fri, 21 Sep 2018 12:15:26 +0000 (12:15 +0000)]
Fix segfault when checking a mailbox after a disconnect (II)

6 years agoFix segfault when checking a mailbox after a disconnect
Pietro Cerutti [Fri, 21 Sep 2018 12:07:19 +0000 (12:07 +0000)]
Fix segfault when checking a mailbox after a disconnect

6 years agorestore Mailbox order
Richard Russon [Mon, 17 Sep 2018 13:11:11 +0000 (14:11 +0100)]
restore Mailbox order

6 years agorename socket-private data structs
Richard Russon [Mon, 17 Sep 2018 12:58:58 +0000 (13:58 +0100)]
rename socket-private data structs

6 years agoreorg socket functions
Richard Russon [Mon, 17 Sep 2018 12:56:25 +0000 (13:56 +0100)]
reorg socket functions

6 years agoadd const to mutt_browser_select_dir
Richard Russon [Sat, 15 Sep 2018 14:57:58 +0000 (15:57 +0100)]
add const to mutt_browser_select_dir

6 years agosidebar: drop unnec fn: mutt_sb_set_mailbox_stats
Richard Russon [Sat, 15 Sep 2018 14:52:14 +0000 (15:52 +0100)]
sidebar: drop unnec fn: mutt_sb_set_mailbox_stats

This used to copy stats from the Context to the Mailbox.
Now, the Context points to the Mailbox.

6 years agodrop debugging code
Richard Russon [Fri, 14 Sep 2018 09:59:41 +0000 (10:59 +0100)]
drop debugging code

6 years agomerge: tidy private data usage
Richard Russon [Thu, 13 Sep 2018 23:15:25 +0000 (00:15 +0100)]
merge: tidy private data usage

 * rename Account to ConnAccount
 * add config Account
 * tidy notmuch
 * reorg notmuch functions
 * reorg pop functions
 * tidy pop
 * reorg imap functions
 * reorg maildir functions
 * reorg mbox functions
 * reorg nntp functions
 * tidy maildir
 * rename maildir_flags()
 * rename email include
 * rename Header to Email
 * Email doesn't begin with 'h'
 * notmuch: tidy data naming
 * notmuch: distinguish between Mailbox and Email data
 * notmuch: fix header references
 * nntp: tidy data naming
 * pop: tidy data naming
 * pop: separate email data
 * imap: tidy data naming
 * imap: more data tidying
 * change free functions to use void**

6 years agochange free functions to use void**
Richard Russon [Thu, 13 Sep 2018 22:17:02 +0000 (23:17 +0100)]
change free functions to use void**

6 years agoimap: more data tidying
Richard Russon [Thu, 13 Sep 2018 18:09:00 +0000 (19:09 +0100)]
imap: more data tidying

6 years agoimap: tidy data naming
Richard Russon [Thu, 13 Sep 2018 16:49:57 +0000 (17:49 +0100)]
imap: tidy data naming

6 years agopop: separate email data
Richard Russon [Thu, 13 Sep 2018 16:05:34 +0000 (17:05 +0100)]
pop: separate email data

6 years agopop: tidy data naming
Richard Russon [Thu, 13 Sep 2018 15:25:27 +0000 (16:25 +0100)]
pop: tidy data naming

6 years agonntp: tidy data naming
Richard Russon [Thu, 13 Sep 2018 14:20:57 +0000 (15:20 +0100)]
nntp: tidy data naming

6 years agonotmuch: fix header references
Richard Russon [Thu, 13 Sep 2018 13:09:02 +0000 (14:09 +0100)]
notmuch: fix header references

6 years agonotmuch: distinguish between Mailbox and Email data
Richard Russon [Thu, 13 Sep 2018 12:59:20 +0000 (13:59 +0100)]
notmuch: distinguish between Mailbox and Email data

6 years agonotmuch: tidy data naming
Richard Russon [Thu, 13 Sep 2018 12:04:38 +0000 (13:04 +0100)]
notmuch: tidy data naming

6 years agoEmail doesn't begin with 'h'
Richard Russon [Wed, 12 Sep 2018 20:43:56 +0000 (21:43 +0100)]
Email doesn't begin with 'h'

6 years agorename Header to Email
Richard Russon [Wed, 12 Sep 2018 20:05:46 +0000 (21:05 +0100)]
rename Header to Email

6 years agorename email include
Richard Russon [Wed, 12 Sep 2018 19:41:33 +0000 (20:41 +0100)]
rename email include

6 years agorename maildir_flags()
Richard Russon [Wed, 12 Sep 2018 15:15:28 +0000 (16:15 +0100)]
rename maildir_flags()

6 years agotidy maildir
Richard Russon [Tue, 11 Sep 2018 19:18:15 +0000 (20:18 +0100)]
tidy maildir

6 years agoreorg nntp functions
Richard Russon [Tue, 11 Sep 2018 16:49:47 +0000 (17:49 +0100)]
reorg nntp functions

6 years agoreorg mbox functions
Richard Russon [Tue, 11 Sep 2018 16:49:40 +0000 (17:49 +0100)]
reorg mbox functions

6 years agoreorg maildir functions
Richard Russon [Tue, 11 Sep 2018 16:49:34 +0000 (17:49 +0100)]
reorg maildir functions

6 years agoreorg imap functions
Richard Russon [Tue, 11 Sep 2018 16:49:24 +0000 (17:49 +0100)]
reorg imap functions

6 years agotidy pop
Richard Russon [Tue, 11 Sep 2018 16:00:42 +0000 (17:00 +0100)]
tidy pop

6 years agoreorg pop functions
Richard Russon [Tue, 11 Sep 2018 16:03:05 +0000 (17:03 +0100)]
reorg pop functions

6 years agoreorg notmuch functions
Richard Russon [Tue, 11 Sep 2018 15:42:16 +0000 (16:42 +0100)]
reorg notmuch functions

6 years agotidy notmuch
Richard Russon [Tue, 11 Sep 2018 15:29:17 +0000 (16:29 +0100)]
tidy notmuch

6 years agoadd config Account
Richard Russon [Sun, 26 Aug 2018 23:54:08 +0000 (00:54 +0100)]
add config Account

6 years agorename Account to ConnAccount
Richard Russon [Tue, 21 Aug 2018 19:34:25 +0000 (20:34 +0100)]
rename Account to ConnAccount

6 years agomaildir: alloc mem for headers
Richard Russon [Wed, 12 Sep 2018 12:01:49 +0000 (13:01 +0100)]
maildir: alloc mem for headers

Fixes #1337

6 years agoFix segfault introduced by 5e8cb63
Pietro Cerutti [Tue, 11 Sep 2018 08:40:37 +0000 (08:40 +0000)]
Fix segfault introduced by 5e8cb63

6 years agoboolify
Richard Russon [Mon, 10 Sep 2018 20:39:31 +0000 (21:39 +0100)]
boolify

- be_edit_header
- boolify mutt_file_lock
  The parameters were only being used as bools.
- boolify maildir_delayed_parsing

6 years agobug: check for aborted dir read
Richard Russon [Mon, 10 Sep 2018 20:08:49 +0000 (21:08 +0100)]
bug: check for aborted dir read

6 years agodoxy: fix links
Richard Russon [Mon, 10 Sep 2018 19:59:14 +0000 (20:59 +0100)]
doxy: fix links

6 years agotrivial fixes
Richard Russon [Sun, 9 Sep 2018 17:33:56 +0000 (18:33 +0100)]
trivial fixes

6 years agoFix build
Pietro Cerutti [Mon, 10 Sep 2018 09:38:06 +0000 (09:38 +0000)]
Fix build

6 years agoFix check on empty strings
Pietro Cerutti [Mon, 10 Sep 2018 07:44:52 +0000 (07:44 +0000)]
Fix check on empty strings

6 years agomerge: redistribute Context and Mailbox
Richard Russon [Sun, 9 Sep 2018 15:20:11 +0000 (16:20 +0100)]
merge: redistribute Context and Mailbox

 * fix mxapi comments
 * move Context.mx_ops
 * move Context.ctx->data
 * move Context.{hdrs,hdrmax}
 * move Context.{size,changed,readonly,quiet,closing}
 * free_data
 * notmuch: move mailbox data
 * notmuch: let mxapi do cleanup
 * notmuch: use mailbox, not context
 * mbox: use Mailbox, not Context
 * maildir: use Mailbox, not Context
 * nntp: use Mailbox, not Context
 * pop: use Mailbox, not Context
 * compress: use Mailbox, not Context
 * imap: use Mailbox, not Context
 * add mbox private Mailbox data
 * move Context.rights
 * eliminate Context from backends
 * Mailbox doesn't begin with 'b'
 * move Context.compress
 * tidy compress
 * move Context.{id,subj,label}_hash
 * move Context.{v2r,vcount}
 * move Context.mtime
 * tidy context usage
 * imap: rename mailbox out of the way

6 years agoimap: rename mailbox out of the way
Richard Russon [Sun, 9 Sep 2018 01:40:21 +0000 (02:40 +0100)]
imap: rename mailbox out of the way

6 years agotidy context usage
Richard Russon [Sat, 8 Sep 2018 14:59:25 +0000 (15:59 +0100)]
tidy context usage

6 years agomove Context.mtime
Richard Russon [Sat, 8 Sep 2018 15:05:42 +0000 (16:05 +0100)]
move Context.mtime

6 years agomove Context.{v2r,vcount}
Richard Russon [Sat, 8 Sep 2018 12:37:27 +0000 (13:37 +0100)]
move Context.{v2r,vcount}

6 years agomove Context.{id,subj,label}_hash
Richard Russon [Sat, 8 Sep 2018 12:28:40 +0000 (13:28 +0100)]
move Context.{id,subj,label}_hash

6 years agotidy compress
Richard Russon [Sat, 8 Sep 2018 12:02:56 +0000 (13:02 +0100)]
tidy compress

6 years agomove Context.compress
Richard Russon [Fri, 7 Sep 2018 19:46:12 +0000 (20:46 +0100)]
move Context.compress

6 years agoMailbox doesn't begin with 'b'
Richard Russon [Fri, 7 Sep 2018 18:22:49 +0000 (19:22 +0100)]
Mailbox doesn't begin with 'b'

6 years agoeliminate Context from backends
Richard Russon [Thu, 6 Sep 2018 22:51:41 +0000 (23:51 +0100)]
eliminate Context from backends

6 years agomove Context.rights
Richard Russon [Thu, 6 Sep 2018 16:40:59 +0000 (17:40 +0100)]
move Context.rights

6 years agoadd mbox private Mailbox data
Richard Russon [Thu, 6 Sep 2018 15:09:34 +0000 (16:09 +0100)]
add mbox private Mailbox data

6 years agoimap: use Mailbox, not Context
Richard Russon [Thu, 6 Sep 2018 12:01:11 +0000 (13:01 +0100)]
imap: use Mailbox, not Context

6 years agocompress: use Mailbox, not Context
Richard Russon [Thu, 6 Sep 2018 11:45:17 +0000 (12:45 +0100)]
compress: use Mailbox, not Context

6 years agopop: use Mailbox, not Context
Richard Russon [Thu, 6 Sep 2018 11:33:26 +0000 (12:33 +0100)]
pop: use Mailbox, not Context

6 years agonntp: use Mailbox, not Context
Richard Russon [Thu, 6 Sep 2018 11:20:42 +0000 (12:20 +0100)]
nntp: use Mailbox, not Context

6 years agomaildir: use Mailbox, not Context
Richard Russon [Thu, 6 Sep 2018 10:16:45 +0000 (11:16 +0100)]
maildir: use Mailbox, not Context

6 years agombox: use Mailbox, not Context
Richard Russon [Thu, 6 Sep 2018 10:03:46 +0000 (11:03 +0100)]
mbox: use Mailbox, not Context

6 years agonotmuch: use mailbox, not context
Richard Russon [Thu, 6 Sep 2018 09:56:18 +0000 (10:56 +0100)]
notmuch: use mailbox, not context

6 years agonotmuch: let mxapi do cleanup
Richard Russon [Thu, 6 Sep 2018 09:29:30 +0000 (10:29 +0100)]
notmuch: let mxapi do cleanup

6 years agonotmuch: move mailbox data
Richard Russon [Wed, 5 Sep 2018 22:58:26 +0000 (23:58 +0100)]
notmuch: move mailbox data

6 years agofree_data
Richard Russon [Tue, 4 Sep 2018 17:21:59 +0000 (18:21 +0100)]
free_data

6 years agomove Context.{size,changed,readonly,quiet,closing}
Richard Russon [Wed, 5 Sep 2018 16:24:23 +0000 (17:24 +0100)]
move Context.{size,changed,readonly,quiet,closing}

6 years agomove Context.{hdrs,hdrmax}
Richard Russon [Wed, 5 Sep 2018 15:55:32 +0000 (16:55 +0100)]
move Context.{hdrs,hdrmax}