]>
granicus.if.org Git - neomutt/log
Mehdi Abaakouk [Wed, 14 Nov 2018 06:39:06 +0000 (07:39 +0100)]
imap: remove ImapMbox from imap_browse()
Mehdi Abaakouk [Tue, 13 Nov 2018 23:38:30 +0000 (00:38 +0100)]
imap: remove ImapMbox from imap_hcache_open()
Mehdi Abaakouk [Tue, 13 Nov 2018 23:36:45 +0000 (00:36 +0100)]
imap: remove ImapMbox from imap_copy_messages()
Mehdi Abaakouk [Tue, 13 Nov 2018 23:33:34 +0000 (00:33 +0100)]
imap: remove ImapMbox from imap_append_message()
Mehdi Abaakouk [Tue, 13 Nov 2018 23:31:41 +0000 (00:31 +0100)]
imap: remove ImapMbox from imap_adata_find()
Mehdi Abaakouk [Tue, 13 Nov 2018 23:18:08 +0000 (00:18 +0100)]
imap: remove ImapMbox from imap_delete_mailbox()
Mehdi Abaakouk [Tue, 13 Nov 2018 22:51:21 +0000 (23:51 +0100)]
imap: remove ImapMbox from imap_mbox_open()
Mehdi Abaakouk [Tue, 13 Nov 2018 22:47:07 +0000 (23:47 +0100)]
imap: remove ImapMbox from imap_ac_add()
Mehdi Abaakouk [Tue, 13 Nov 2018 17:24:31 +0000 (18:24 +0100)]
imap: remove ImapMbox from imap_fast_trash()
Mehdi Abaakouk [Tue, 13 Nov 2018 17:01:12 +0000 (18:01 +0100)]
imap: remove get_mailbox()
Mehdi Abaakouk [Tue, 13 Nov 2018 16:06:01 +0000 (17:06 +0100)]
imap: remove ImapMbox from imap_adata_find signature
Mehdi Abaakouk [Tue, 13 Nov 2018 15:04:00 +0000 (16:04 +0100)]
imap: remove ImapMbox from imap_prepare_mailbox
Mehdi Abaakouk [Tue, 13 Nov 2018 14:47:00 +0000 (15:47 +0100)]
imap: setup a mdata struct for each mailboxes
This change introduces `struct ImapMailboxeData` to mainly store
the mbox name in all its form.
Next change will use this names instead of parsing again and again the
path.
At this end we should be able to drop ImapMbox and imap_parse_path().
Mehdi Abaakouk [Sat, 10 Nov 2018 19:11:15 +0000 (20:11 +0100)]
imap: make imap_mailbox_check aware of Mailbox
With multiple imap account not loaded at startup time, when we switch to
another account, stats are almost not updated. If check_stats if true at
this time by change, mutt crash. Because we unexpectly update the
msg_unread of Context->mailbox.
Imap is the only backend that check stats is done for all backends at
once.
This change makes it more like other backends, and it make all imap
mailboxes stats to be loaded on next check_stats=true without crash.
Richard Russon [Wed, 14 Nov 2018 16:47:22 +0000 (16:47 +0000)]
merge: refactor Context/Mailbox usage
* pop: Mailbox refactor
* mbox: Mailbox refactor
* maildir: Mailbox refactor
* nntp: Mailbox refactor
* notmuch: Mailbox refactor
* compress: Mailbox refactor
* imap: Mailbox refactor
* flags: Mailbox refactor
* mx: Mailbox refactor
* threads: Mailbox refactor
* open_append: remove Context
* msg_close: remove Context
* msg_commit: remove Context
* msg_padding_size: remove Context
* tags_edit: remove Context
* mxapi: unify retval of msg_open
* path_canon: drop folder
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.