]>
granicus.if.org Git - neomutt/log
Richard Russon [Tue, 13 Nov 2018 02:02:02 +0000 (02:02 +0000)]
path_canon: drop folder
Richard Russon [Wed, 14 Nov 2018 11:11:37 +0000 (11:11 +0000)]
mxapi: unify retval of msg_open
Richard Russon [Tue, 13 Nov 2018 01:54:20 +0000 (01:54 +0000)]
tags_edit: remove Context
Richard Russon [Tue, 13 Nov 2018 01:51:50 +0000 (01:51 +0000)]
msg_padding_size: remove Context
Richard Russon [Tue, 13 Nov 2018 01:40:26 +0000 (01:40 +0000)]
msg_commit: remove Context
Richard Russon [Tue, 13 Nov 2018 01:35:03 +0000 (01:35 +0000)]
msg_close: remove Context
Richard Russon [Tue, 13 Nov 2018 01:29:36 +0000 (01:29 +0000)]
open_append: remove Context
Richard Russon [Tue, 13 Nov 2018 01:11:19 +0000 (01:11 +0000)]
threads: Mailbox refactor
Richard Russon [Tue, 13 Nov 2018 01:11:09 +0000 (01:11 +0000)]
mx: Mailbox refactor
Richard Russon [Mon, 12 Nov 2018 17:34:04 +0000 (17:34 +0000)]
flags: Mailbox refactor
Richard Russon [Mon, 12 Nov 2018 17:08:56 +0000 (17:08 +0000)]
imap: Mailbox refactor
Richard Russon [Mon, 12 Nov 2018 17:00:16 +0000 (17:00 +0000)]
compress: Mailbox refactor
Richard Russon [Mon, 12 Nov 2018 16:54:52 +0000 (16:54 +0000)]
notmuch: Mailbox refactor
Richard Russon [Mon, 12 Nov 2018 16:30:24 +0000 (16:30 +0000)]
nntp: Mailbox refactor
Richard Russon [Mon, 12 Nov 2018 16:11:02 +0000 (16:11 +0000)]
maildir: Mailbox refactor
Richard Russon [Mon, 12 Nov 2018 16:00:29 +0000 (16:00 +0000)]
mbox: Mailbox refactor
Richard Russon [Mon, 12 Nov 2018 15:51:54 +0000 (15:51 +0000)]
pop: Mailbox refactor
Pietro Cerutti [Wed, 14 Nov 2018 12:16:06 +0000 (12:16 +0000)]
Do not create an additional ctx for syncing a mailbox
When the additional ctx is closed, the mailbox is free'd too, which
causes a crash back in the index.
Richard Russon [Wed, 14 Nov 2018 15:19:35 +0000 (15:19 +0000)]
merge: add mutt_str_startswith API
* Fix NONULL so it's usable in expressions such as `!*NONULL(str)`
* Add mutt_str_startswith API
* mutt_str_startswith - bcache.c
* mutt_str_startswith - browser.c
* mutt_str_startswith - color.c
* mutt_str_startswith - config/sort.c
* mutt_str_startswith - copy.c
* mutt_str_startswith - email/from.c
* mutt_str_startswith - email/idna.c
* mutt_str_startswith - email/parse.c
* mutt_str_startswith - handler.c
* mutt_str_startswith - imap/auth_sasl.c
* mutt_str_startswith - imap/browse.c
* mutt_str_startswith - imap/command.c
* mutt_str_startswith - imap/imap.c
* mutt_str_startswith - imap/message.c
* mutt_str_startswith - imap/util.c
* mutt_str_startswith - init.c
* mutt_str_startswith - maildir/mh.c
* mutt_str_startswith - main.c
* mutt_str_startswith - mbox/mbox.c
* mutt_str_startswith - mutt/envlist.c
* mutt_str_startswith - mutt/path.c
* mutt_str_startswith - mutt_lua.c
* mutt_str_startswith - muttlib.c
* mutt_str_startswith - ncrypt/crypt_gpgme.c
* mutt_str_startswith - ncrypt/pgp.c
* mutt_str_startswith - nntp/nntp.c
* mutt_str_startswith - pager.c
* mutt_str_startswith - pop/pop_auth.c
* mutt_str_startswith - pop/pop_lib.c
* mutt_str_startswith - postpone.c
* mutt_str_startswith - rfc3676.c
* mutt_str_startswith - sendlib.c
* mutt_str_startswith - mutt/date.c
* mutt_str_startswith - mutt/list.c
* mutt_str_startswith - mutt_header.c
* mutt_str_startswith - config/sort.c - fix logic
* mutt_str_startswith - ncrypt/crypt.c
* mutt_str_startswith - ncrypt/smime.c
* mutt_str_startswith - nntp/nntp.c
* mutt_str_startswith - notmuch/mutt_notmuch.c
* mutt_str_startswith - pop/pop_lib.c
* mutt_str_startswith - postpone.c
* mutt_str_startswith - rfc1524.c
* Remove unneeded strlen
* mutt_str_startswith - send.c
* mutt_str_startswith - sendlib.c
* mutt_str_startswith - smtp.c
* mutt_str_startswith - terminal.c
* mutt_str_startswith - browser.c (leftover)
* mutt_str_startswith - mbox/mbox.c
* mutt_str_startswith - mutt/charset.c
* mutt_str_startswith - mutt/pop.c
* mutt_str_startswith - rfc1524.c
Pietro Cerutti [Mon, 12 Nov 2018 11:35:26 +0000 (11:35 +0000)]
mutt_str_startswith - rfc1524.c
Pietro Cerutti [Mon, 12 Nov 2018 11:35:08 +0000 (11:35 +0000)]
mutt_str_startswith - mutt/pop.c
Pietro Cerutti [Mon, 12 Nov 2018 11:34:49 +0000 (11:34 +0000)]
mutt_str_startswith - mutt/charset.c
Pietro Cerutti [Mon, 12 Nov 2018 11:34:25 +0000 (11:34 +0000)]
mutt_str_startswith - mbox/mbox.c
Pietro Cerutti [Mon, 12 Nov 2018 10:52:21 +0000 (10:52 +0000)]
mutt_str_startswith - browser.c (leftover)
Pietro Cerutti [Mon, 12 Nov 2018 10:41:18 +0000 (10:41 +0000)]
mutt_str_startswith - terminal.c
Pietro Cerutti [Mon, 12 Nov 2018 10:38:53 +0000 (10:38 +0000)]
mutt_str_startswith - smtp.c
Pietro Cerutti [Mon, 12 Nov 2018 10:27:55 +0000 (10:27 +0000)]
mutt_str_startswith - sendlib.c
Pietro Cerutti [Mon, 12 Nov 2018 10:27:06 +0000 (10:27 +0000)]
mutt_str_startswith - send.c
Pietro Cerutti [Mon, 12 Nov 2018 10:24:59 +0000 (10:24 +0000)]
Remove unneeded strlen
Pietro Cerutti [Mon, 12 Nov 2018 10:24:03 +0000 (10:24 +0000)]
mutt_str_startswith - rfc1524.c
Pietro Cerutti [Mon, 12 Nov 2018 10:22:41 +0000 (10:22 +0000)]
mutt_str_startswith - postpone.c
Pietro Cerutti [Mon, 12 Nov 2018 10:15:14 +0000 (10:15 +0000)]
mutt_str_startswith - pop/pop_lib.c
Pietro Cerutti [Fri, 9 Nov 2018 17:01:47 +0000 (17:01 +0000)]
mutt_str_startswith - notmuch/mutt_notmuch.c
Pietro Cerutti [Fri, 9 Nov 2018 17:01:17 +0000 (17:01 +0000)]
mutt_str_startswith - nntp/nntp.c
Pietro Cerutti [Fri, 9 Nov 2018 17:00:55 +0000 (17:00 +0000)]
mutt_str_startswith - ncrypt/smime.c
Pietro Cerutti [Fri, 9 Nov 2018 17:00:27 +0000 (17:00 +0000)]
mutt_str_startswith - ncrypt/crypt.c
Pietro Cerutti [Fri, 9 Nov 2018 16:59:48 +0000 (16:59 +0000)]
mutt_str_startswith - config/sort.c - fix logic
Pietro Cerutti [Fri, 9 Nov 2018 16:11:13 +0000 (16:11 +0000)]
mutt_str_startswith - mutt_header.c
Pietro Cerutti [Fri, 9 Nov 2018 16:10:06 +0000 (16:10 +0000)]
mutt_str_startswith - mutt/list.c
Pietro Cerutti [Fri, 9 Nov 2018 16:01:23 +0000 (16:01 +0000)]
mutt_str_startswith - mutt/date.c
Pietro Cerutti [Fri, 9 Nov 2018 15:57:25 +0000 (15:57 +0000)]
mutt_str_startswith - sendlib.c
Pietro Cerutti [Fri, 9 Nov 2018 15:55:38 +0000 (15:55 +0000)]
mutt_str_startswith - rfc3676.c
Pietro Cerutti [Fri, 9 Nov 2018 15:54:03 +0000 (15:54 +0000)]
mutt_str_startswith - postpone.c
Pietro Cerutti [Fri, 9 Nov 2018 15:52:00 +0000 (15:52 +0000)]
mutt_str_startswith - pop/pop_lib.c
Pietro Cerutti [Fri, 9 Nov 2018 15:51:23 +0000 (15:51 +0000)]
mutt_str_startswith - pop/pop_auth.c
Pietro Cerutti [Fri, 9 Nov 2018 15:50:42 +0000 (15:50 +0000)]
mutt_str_startswith - pager.c
Pietro Cerutti [Fri, 9 Nov 2018 15:50:21 +0000 (15:50 +0000)]
mutt_str_startswith - nntp/nntp.c
Pietro Cerutti [Fri, 9 Nov 2018 15:44:06 +0000 (15:44 +0000)]
mutt_str_startswith - ncrypt/pgp.c
Pietro Cerutti [Fri, 9 Nov 2018 15:40:59 +0000 (15:40 +0000)]
mutt_str_startswith - ncrypt/crypt_gpgme.c
Pietro Cerutti [Fri, 9 Nov 2018 15:36:48 +0000 (15:36 +0000)]
mutt_str_startswith - muttlib.c
Pietro Cerutti [Fri, 9 Nov 2018 15:33:41 +0000 (15:33 +0000)]
mutt_str_startswith - mutt_lua.c
Pietro Cerutti [Fri, 9 Nov 2018 15:33:13 +0000 (15:33 +0000)]
mutt_str_startswith - mutt/path.c
Pietro Cerutti [Fri, 9 Nov 2018 15:19:26 +0000 (15:19 +0000)]
mutt_str_startswith - mutt/envlist.c
Pietro Cerutti [Fri, 9 Nov 2018 15:14:48 +0000 (15:14 +0000)]
mutt_str_startswith - mbox/mbox.c
Pietro Cerutti [Fri, 9 Nov 2018 15:12:15 +0000 (15:12 +0000)]
mutt_str_startswith - main.c
Pietro Cerutti [Fri, 9 Nov 2018 15:11:54 +0000 (15:11 +0000)]
mutt_str_startswith - maildir/mh.c
Pietro Cerutti [Fri, 9 Nov 2018 15:11:41 +0000 (15:11 +0000)]
mutt_str_startswith - init.c
Pietro Cerutti [Fri, 9 Nov 2018 15:11:13 +0000 (15:11 +0000)]
mutt_str_startswith - imap/util.c
Pietro Cerutti [Fri, 9 Nov 2018 15:11:04 +0000 (15:11 +0000)]
mutt_str_startswith - imap/message.c
Pietro Cerutti [Fri, 9 Nov 2018 15:10:54 +0000 (15:10 +0000)]
mutt_str_startswith - imap/imap.c
Pietro Cerutti [Fri, 9 Nov 2018 15:10:40 +0000 (15:10 +0000)]
mutt_str_startswith - imap/command.c
Pietro Cerutti [Fri, 9 Nov 2018 15:10:31 +0000 (15:10 +0000)]
mutt_str_startswith - imap/browse.c
Pietro Cerutti [Fri, 9 Nov 2018 15:10:05 +0000 (15:10 +0000)]
mutt_str_startswith - imap/auth_sasl.c
Pietro Cerutti [Fri, 9 Nov 2018 15:09:44 +0000 (15:09 +0000)]
mutt_str_startswith - handler.c
Pietro Cerutti [Fri, 9 Nov 2018 15:09:33 +0000 (15:09 +0000)]
mutt_str_startswith - email/parse.c
Pietro Cerutti [Fri, 9 Nov 2018 15:09:22 +0000 (15:09 +0000)]
mutt_str_startswith - email/idna.c
Pietro Cerutti [Fri, 9 Nov 2018 15:08:47 +0000 (15:08 +0000)]
mutt_str_startswith - email/from.c
Pietro Cerutti [Fri, 9 Nov 2018 14:22:21 +0000 (14:22 +0000)]
mutt_str_startswith - copy.c
Pietro Cerutti [Fri, 9 Nov 2018 13:43:48 +0000 (13:43 +0000)]
mutt_str_startswith - config/sort.c
Pietro Cerutti [Fri, 9 Nov 2018 13:43:23 +0000 (13:43 +0000)]
mutt_str_startswith - color.c
Pietro Cerutti [Fri, 9 Nov 2018 13:43:12 +0000 (13:43 +0000)]
mutt_str_startswith - browser.c
Pietro Cerutti [Fri, 9 Nov 2018 13:42:56 +0000 (13:42 +0000)]
mutt_str_startswith - bcache.c
Pietro Cerutti [Fri, 9 Nov 2018 09:01:18 +0000 (09:01 +0000)]
Add mutt_str_startswith API
The function mutt_str_startswith(str, p, cs) checks whether str starts
with p. The case-sensitivity of the comparison is done according to cs.
Pietro Cerutti [Fri, 9 Nov 2018 09:00:09 +0000 (09:00 +0000)]
Fix NONULL so it's usable in expressions such as `!*NONULL(str)`
Pietro Cerutti [Wed, 14 Nov 2018 11:39:22 +0000 (11:39 +0000)]
Avoid closing a mailbox prematurely
Mehdi Abaakouk [Tue, 13 Nov 2018 09:27:17 +0000 (10:27 +0100)]
fix some msg_new update
This changes fixes some case where mailboxe->msg_unread is ++/-- without
changing mailbox->msg_new.
Mehdi Abaakouk [Mon, 12 Nov 2018 20:47:03 +0000 (21:47 +0100)]
imap: simplify getter around ImapAccountData
Remove now useless attributes of imap_prepare_mailbox()
Rename imap_ac_data_find() to imap_adata_find() and move it in util.c
aside other adata related function.
Parse path within ImapMbox in imap_adata_find() to remove some common
code.
Create ImapAccountData resource during imap_ac_add()
Pietro Cerutti [Mon, 12 Nov 2018 19:29:59 +0000 (19:29 +0000)]
Make sure imap_subscribed is always called with an expanded path
Mehdi Abaakouk [Mon, 12 Nov 2018 16:55:56 +0000 (17:55 +0100)]
imap: fix imap list subscribe
Ian Zimmerman [Tue, 13 Nov 2018 01:17:30 +0000 (17:17 -0800)]
mutt_list_find doesn't modify the list, so it should take a const*
Pietro Cerutti [Mon, 12 Nov 2018 15:02:45 +0000 (15:02 +0000)]
Centralize Context cleanup in a dedicated function
Pietro Cerutti [Mon, 12 Nov 2018 14:32:39 +0000 (14:32 +0000)]
Fix adding / removing mailboxes
Do not duplicate mailboxes in the AllMailboxes list. Reset Context when
the last mailbox goes away.
Pietro Cerutti [Mon, 12 Nov 2018 14:16:15 +0000 (14:16 +0000)]
Fix pointer dereference
Pietro Cerutti [Mon, 12 Nov 2018 11:56:34 +0000 (11:56 +0000)]
Simplify account cleanup
Mehdi Abaakouk [Sat, 10 Nov 2018 19:55:53 +0000 (20:55 +0100)]
Always do mailbox_check() the first time we see a mailbox
When multiple accounts are used, stats are all 0 until the next
MailCheckStatsInterval is reached.
This change does an initial check when we see a mailbox for the first
time.
Mehdi Abaakouk [Sat, 10 Nov 2018 21:10:47 +0000 (22:10 +0100)]
Also delete account if needed during unmailboxes
When we do:
mailboxes imaps://foo
unmailboxes *
mailboxes imaps://foo
* account->mailboxes is not cleaned and have pointer to freed mailboxes
* account is still there even if not used
This changes cleanup account->mailboxes and account if needed.
Pietro Cerutti [Mon, 12 Nov 2018 09:38:50 +0000 (09:38 +0000)]
Avoid FREE'ing a non-malloc'd block
The mx.mbox member variable could remain uninitialized if imap_prepare_mailbox
failed, for example because a mailbox in the list doesn't have an account
associated with it.
Mehdi Abaakouk [Sat, 10 Nov 2018 13:48:52 +0000 (14:48 +0100)]
remove mailbox.closing
mx_mbox_close() does not always put back mailbox.closing to false.
This make next imap_sync_mailbox() during mx_mbox_sync() closing the
imap connection when it should not.
Since this attribute is only used by imap backend, this change removes
it and handle the imap specific shutdown within the imap backend.
Mehdi Abaakouk [Fri, 9 Nov 2018 19:13:45 +0000 (20:13 +0100)]
move Context.new (leftover)
Mehdi Abaakouk [Fri, 9 Nov 2018 19:10:07 +0000 (20:10 +0100)]
move Context.deleted
Richard Russon [Sat, 10 Nov 2018 15:19:39 +0000 (15:19 +0000)]
merge: manage lifespan of mailcap tmp files
* Implement mailcap option x-neomutt-keep
* Unlink temporary attachment files on mutt_timeout_hook
* doc: document 'x-neomut-keep'
* Delete temporary file upon signal reception
ryt [Mon, 5 Nov 2018 17:33:50 +0000 (18:33 +0100)]
Delete temporary file upon signal reception
Richard Russon [Sat, 10 Nov 2018 15:07:43 +0000 (15:07 +0000)]
doc: document 'x-neomut-keep'
Pietro Cerutti [Wed, 7 Nov 2018 16:29:27 +0000 (16:29 +0000)]
Unlink temporary attachment files on mutt_timeout_hook
Pietro Cerutti [Wed, 7 Nov 2018 12:59:21 +0000 (12:59 +0000)]
Implement mailcap option x-neomutt-keep
The option x-neomutt-keep instructs neomutt not to remove the attachment
after the view-command has quit. This is helpful with mime types handled
by commands such as firefox, which fork before opening the attachment in
the main instance. Example:
application/pdf; evince; x-neomutt-keep;
Richard Russon [Sat, 10 Nov 2018 13:26:27 +0000 (13:26 +0000)]
merge: imap: remove imap_conn_find
* remove imap_conn_find in cmd_handle_fatal
* remove imap_conn_find in imap_mbox_open_append
* remove imap_conn_find from imap_delete_mailbox
* remove imap_conn_find from imap_subscribe
* remove imap_conn_find from imap_browse
* remove imap_conn_find from imap_completes
* replace all imap_conn_find with MUTT_IMAP_CONN_NONEW
* remove unused imap_conn_find
* rename imap_conn_find2 to imap_login
Mehdi Abaakouk [Thu, 8 Nov 2018 22:59:18 +0000 (23:59 +0100)]
imap: rename imap_conn_find2 to imap_login
Mehdi Abaakouk [Thu, 8 Nov 2018 14:36:04 +0000 (15:36 +0100)]
imap: remove unused imap_conn_find
Mehdi Abaakouk [Thu, 8 Nov 2018 14:34:13 +0000 (15:34 +0100)]
imap: replace all imap_conn_find with MUTT_IMAP_CONN_NONEW
Mehdi Abaakouk [Thu, 8 Nov 2018 14:14:03 +0000 (15:14 +0100)]
imap: remove imap_conn_find from imap_completes