]> granicus.if.org Git - neomutt/log
neomutt
6 years agomutt_str_startswith - mutt/pop.c
Pietro Cerutti [Mon, 12 Nov 2018 11:35:08 +0000 (11:35 +0000)]
mutt_str_startswith - mutt/pop.c

6 years agomutt_str_startswith - mutt/charset.c
Pietro Cerutti [Mon, 12 Nov 2018 11:34:49 +0000 (11:34 +0000)]
mutt_str_startswith - mutt/charset.c

6 years agomutt_str_startswith - mbox/mbox.c
Pietro Cerutti [Mon, 12 Nov 2018 11:34:25 +0000 (11:34 +0000)]
mutt_str_startswith - mbox/mbox.c

6 years agomutt_str_startswith - browser.c (leftover)
Pietro Cerutti [Mon, 12 Nov 2018 10:52:21 +0000 (10:52 +0000)]
mutt_str_startswith - browser.c (leftover)

6 years agomutt_str_startswith - terminal.c
Pietro Cerutti [Mon, 12 Nov 2018 10:41:18 +0000 (10:41 +0000)]
mutt_str_startswith - terminal.c

6 years agomutt_str_startswith - smtp.c
Pietro Cerutti [Mon, 12 Nov 2018 10:38:53 +0000 (10:38 +0000)]
mutt_str_startswith - smtp.c

6 years agomutt_str_startswith - sendlib.c
Pietro Cerutti [Mon, 12 Nov 2018 10:27:55 +0000 (10:27 +0000)]
mutt_str_startswith - sendlib.c

6 years agomutt_str_startswith - send.c
Pietro Cerutti [Mon, 12 Nov 2018 10:27:06 +0000 (10:27 +0000)]
mutt_str_startswith - send.c

6 years agoRemove unneeded strlen
Pietro Cerutti [Mon, 12 Nov 2018 10:24:59 +0000 (10:24 +0000)]
Remove unneeded strlen

6 years agomutt_str_startswith - rfc1524.c
Pietro Cerutti [Mon, 12 Nov 2018 10:24:03 +0000 (10:24 +0000)]
mutt_str_startswith - rfc1524.c

6 years agomutt_str_startswith - postpone.c
Pietro Cerutti [Mon, 12 Nov 2018 10:22:41 +0000 (10:22 +0000)]
mutt_str_startswith - postpone.c

6 years agomutt_str_startswith - pop/pop_lib.c
Pietro Cerutti [Mon, 12 Nov 2018 10:15:14 +0000 (10:15 +0000)]
mutt_str_startswith - pop/pop_lib.c

6 years agomutt_str_startswith - notmuch/mutt_notmuch.c
Pietro Cerutti [Fri, 9 Nov 2018 17:01:47 +0000 (17:01 +0000)]
mutt_str_startswith - notmuch/mutt_notmuch.c

6 years agomutt_str_startswith - nntp/nntp.c
Pietro Cerutti [Fri, 9 Nov 2018 17:01:17 +0000 (17:01 +0000)]
mutt_str_startswith - nntp/nntp.c

6 years agomutt_str_startswith - ncrypt/smime.c
Pietro Cerutti [Fri, 9 Nov 2018 17:00:55 +0000 (17:00 +0000)]
mutt_str_startswith - ncrypt/smime.c

6 years agomutt_str_startswith - ncrypt/crypt.c
Pietro Cerutti [Fri, 9 Nov 2018 17:00:27 +0000 (17:00 +0000)]
mutt_str_startswith - ncrypt/crypt.c

6 years agomutt_str_startswith - config/sort.c - fix logic
Pietro Cerutti [Fri, 9 Nov 2018 16:59:48 +0000 (16:59 +0000)]
mutt_str_startswith - config/sort.c - fix logic

6 years agomutt_str_startswith - mutt_header.c
Pietro Cerutti [Fri, 9 Nov 2018 16:11:13 +0000 (16:11 +0000)]
mutt_str_startswith - mutt_header.c

6 years agomutt_str_startswith - mutt/list.c
Pietro Cerutti [Fri, 9 Nov 2018 16:10:06 +0000 (16:10 +0000)]
mutt_str_startswith - mutt/list.c

6 years agomutt_str_startswith - mutt/date.c
Pietro Cerutti [Fri, 9 Nov 2018 16:01:23 +0000 (16:01 +0000)]
mutt_str_startswith - mutt/date.c

6 years agomutt_str_startswith - sendlib.c
Pietro Cerutti [Fri, 9 Nov 2018 15:57:25 +0000 (15:57 +0000)]
mutt_str_startswith - sendlib.c

6 years agomutt_str_startswith - rfc3676.c
Pietro Cerutti [Fri, 9 Nov 2018 15:55:38 +0000 (15:55 +0000)]
mutt_str_startswith - rfc3676.c

6 years agomutt_str_startswith - postpone.c
Pietro Cerutti [Fri, 9 Nov 2018 15:54:03 +0000 (15:54 +0000)]
mutt_str_startswith - postpone.c

6 years agomutt_str_startswith - pop/pop_lib.c
Pietro Cerutti [Fri, 9 Nov 2018 15:52:00 +0000 (15:52 +0000)]
mutt_str_startswith - pop/pop_lib.c

6 years agomutt_str_startswith - pop/pop_auth.c
Pietro Cerutti [Fri, 9 Nov 2018 15:51:23 +0000 (15:51 +0000)]
mutt_str_startswith - pop/pop_auth.c

6 years agomutt_str_startswith - pager.c
Pietro Cerutti [Fri, 9 Nov 2018 15:50:42 +0000 (15:50 +0000)]
mutt_str_startswith - pager.c

6 years agomutt_str_startswith - nntp/nntp.c
Pietro Cerutti [Fri, 9 Nov 2018 15:50:21 +0000 (15:50 +0000)]
mutt_str_startswith - nntp/nntp.c

6 years agomutt_str_startswith - ncrypt/pgp.c
Pietro Cerutti [Fri, 9 Nov 2018 15:44:06 +0000 (15:44 +0000)]
mutt_str_startswith - ncrypt/pgp.c

6 years agomutt_str_startswith - ncrypt/crypt_gpgme.c
Pietro Cerutti [Fri, 9 Nov 2018 15:40:59 +0000 (15:40 +0000)]
mutt_str_startswith - ncrypt/crypt_gpgme.c

6 years agomutt_str_startswith - muttlib.c
Pietro Cerutti [Fri, 9 Nov 2018 15:36:48 +0000 (15:36 +0000)]
mutt_str_startswith - muttlib.c

6 years agomutt_str_startswith - mutt_lua.c
Pietro Cerutti [Fri, 9 Nov 2018 15:33:41 +0000 (15:33 +0000)]
mutt_str_startswith - mutt_lua.c

6 years agomutt_str_startswith - mutt/path.c
Pietro Cerutti [Fri, 9 Nov 2018 15:33:13 +0000 (15:33 +0000)]
mutt_str_startswith - mutt/path.c

6 years agomutt_str_startswith - mutt/envlist.c
Pietro Cerutti [Fri, 9 Nov 2018 15:19:26 +0000 (15:19 +0000)]
mutt_str_startswith - mutt/envlist.c

6 years agomutt_str_startswith - mbox/mbox.c
Pietro Cerutti [Fri, 9 Nov 2018 15:14:48 +0000 (15:14 +0000)]
mutt_str_startswith - mbox/mbox.c

6 years agomutt_str_startswith - main.c
Pietro Cerutti [Fri, 9 Nov 2018 15:12:15 +0000 (15:12 +0000)]
mutt_str_startswith - main.c

6 years agomutt_str_startswith - maildir/mh.c
Pietro Cerutti [Fri, 9 Nov 2018 15:11:54 +0000 (15:11 +0000)]
mutt_str_startswith - maildir/mh.c

6 years agomutt_str_startswith - init.c
Pietro Cerutti [Fri, 9 Nov 2018 15:11:41 +0000 (15:11 +0000)]
mutt_str_startswith - init.c

6 years agomutt_str_startswith - imap/util.c
Pietro Cerutti [Fri, 9 Nov 2018 15:11:13 +0000 (15:11 +0000)]
mutt_str_startswith - imap/util.c

6 years agomutt_str_startswith - imap/message.c
Pietro Cerutti [Fri, 9 Nov 2018 15:11:04 +0000 (15:11 +0000)]
mutt_str_startswith - imap/message.c

6 years agomutt_str_startswith - imap/imap.c
Pietro Cerutti [Fri, 9 Nov 2018 15:10:54 +0000 (15:10 +0000)]
mutt_str_startswith - imap/imap.c

6 years agomutt_str_startswith - imap/command.c
Pietro Cerutti [Fri, 9 Nov 2018 15:10:40 +0000 (15:10 +0000)]
mutt_str_startswith - imap/command.c

6 years agomutt_str_startswith - imap/browse.c
Pietro Cerutti [Fri, 9 Nov 2018 15:10:31 +0000 (15:10 +0000)]
mutt_str_startswith - imap/browse.c

6 years agomutt_str_startswith - imap/auth_sasl.c
Pietro Cerutti [Fri, 9 Nov 2018 15:10:05 +0000 (15:10 +0000)]
mutt_str_startswith - imap/auth_sasl.c

6 years agomutt_str_startswith - handler.c
Pietro Cerutti [Fri, 9 Nov 2018 15:09:44 +0000 (15:09 +0000)]
mutt_str_startswith - handler.c

6 years agomutt_str_startswith - email/parse.c
Pietro Cerutti [Fri, 9 Nov 2018 15:09:33 +0000 (15:09 +0000)]
mutt_str_startswith - email/parse.c

6 years agomutt_str_startswith - email/idna.c
Pietro Cerutti [Fri, 9 Nov 2018 15:09:22 +0000 (15:09 +0000)]
mutt_str_startswith - email/idna.c

6 years agomutt_str_startswith - email/from.c
Pietro Cerutti [Fri, 9 Nov 2018 15:08:47 +0000 (15:08 +0000)]
mutt_str_startswith - email/from.c

6 years agomutt_str_startswith - copy.c
Pietro Cerutti [Fri, 9 Nov 2018 14:22:21 +0000 (14:22 +0000)]
mutt_str_startswith - copy.c

6 years agomutt_str_startswith - config/sort.c
Pietro Cerutti [Fri, 9 Nov 2018 13:43:48 +0000 (13:43 +0000)]
mutt_str_startswith - config/sort.c

6 years agomutt_str_startswith - color.c
Pietro Cerutti [Fri, 9 Nov 2018 13:43:23 +0000 (13:43 +0000)]
mutt_str_startswith - color.c

6 years agomutt_str_startswith - browser.c
Pietro Cerutti [Fri, 9 Nov 2018 13:43:12 +0000 (13:43 +0000)]
mutt_str_startswith - browser.c

6 years agomutt_str_startswith - bcache.c
Pietro Cerutti [Fri, 9 Nov 2018 13:42:56 +0000 (13:42 +0000)]
mutt_str_startswith - bcache.c

6 years agoAdd mutt_str_startswith API
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.

6 years agoFix NONULL so it's usable in expressions such as `!*NONULL(str)`
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)`

6 years agoAvoid closing a mailbox prematurely
Pietro Cerutti [Wed, 14 Nov 2018 11:39:22 +0000 (11:39 +0000)]
Avoid closing a mailbox prematurely

6 years agofix some msg_new update
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.

6 years agoimap: simplify getter around ImapAccountData
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()

6 years agoMake sure imap_subscribed is always called with an expanded path
Pietro Cerutti [Mon, 12 Nov 2018 19:29:59 +0000 (19:29 +0000)]
Make sure imap_subscribed is always called with an expanded path

6 years agoimap: fix imap list subscribe
Mehdi Abaakouk [Mon, 12 Nov 2018 16:55:56 +0000 (17:55 +0100)]
imap: fix imap list subscribe

6 years agomutt_list_find doesn't modify the list, so it should take a const*
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*

6 years agoCentralize Context cleanup in a dedicated function
Pietro Cerutti [Mon, 12 Nov 2018 15:02:45 +0000 (15:02 +0000)]
Centralize Context cleanup in a dedicated function

6 years agoFix adding / removing mailboxes
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.

6 years agoFix pointer dereference
Pietro Cerutti [Mon, 12 Nov 2018 14:16:15 +0000 (14:16 +0000)]
Fix pointer dereference

6 years agoSimplify account cleanup
Pietro Cerutti [Mon, 12 Nov 2018 11:56:34 +0000 (11:56 +0000)]
Simplify account cleanup

6 years agoAlways do mailbox_check() the first time we see a mailbox
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.

6 years agoAlso delete account if needed during unmailboxes
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.

6 years agoAvoid FREE'ing a non-malloc'd block
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.

6 years agoremove mailbox.closing 1403/head
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.

6 years agomove Context.new (leftover) 1402/head
Mehdi Abaakouk [Fri, 9 Nov 2018 19:13:45 +0000 (20:13 +0100)]
move Context.new (leftover)

6 years agomove Context.deleted
Mehdi Abaakouk [Fri, 9 Nov 2018 19:10:07 +0000 (20:10 +0100)]
move Context.deleted

6 years agomerge: manage lifespan of mailcap tmp files
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

6 years agoDelete temporary file upon signal reception
ryt [Mon, 5 Nov 2018 17:33:50 +0000 (18:33 +0100)]
Delete temporary file upon signal reception

6 years agodoc: document 'x-neomut-keep'
Richard Russon [Sat, 10 Nov 2018 15:07:43 +0000 (15:07 +0000)]
doc: document 'x-neomut-keep'

6 years agoUnlink temporary attachment files on mutt_timeout_hook
Pietro Cerutti [Wed, 7 Nov 2018 16:29:27 +0000 (16:29 +0000)]
Unlink temporary attachment files on mutt_timeout_hook

6 years agoImplement mailcap option x-neomutt-keep
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;

6 years agomerge: imap: remove imap_conn_find
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

6 years agoimap: rename imap_conn_find2 to imap_login 1396/head
Mehdi Abaakouk [Thu, 8 Nov 2018 22:59:18 +0000 (23:59 +0100)]
imap: rename imap_conn_find2 to imap_login

6 years agoimap: remove unused imap_conn_find
Mehdi Abaakouk [Thu, 8 Nov 2018 14:36:04 +0000 (15:36 +0100)]
imap: remove unused imap_conn_find

6 years agoimap: replace all imap_conn_find with MUTT_IMAP_CONN_NONEW
Mehdi Abaakouk [Thu, 8 Nov 2018 14:34:13 +0000 (15:34 +0100)]
imap: replace all imap_conn_find with MUTT_IMAP_CONN_NONEW

6 years agoimap: remove imap_conn_find from imap_completes
Mehdi Abaakouk [Thu, 8 Nov 2018 14:14:03 +0000 (15:14 +0100)]
imap: remove imap_conn_find from imap_completes

6 years agoimap: remove imap_conn_find from imap_browse
Mehdi Abaakouk [Thu, 8 Nov 2018 16:25:48 +0000 (17:25 +0100)]
imap: remove imap_conn_find from imap_browse

6 years agoimap: remove imap_conn_find from imap_subscribe
Mehdi Abaakouk [Thu, 8 Nov 2018 13:57:05 +0000 (14:57 +0100)]
imap: remove imap_conn_find from imap_subscribe

6 years agoimap: remove imap_conn_find from imap_delete_mailbox
Mehdi Abaakouk [Thu, 8 Nov 2018 13:45:05 +0000 (14:45 +0100)]
imap: remove imap_conn_find from imap_delete_mailbox

6 years agoimap: remove imap_conn_find in imap_mbox_open_append
Mehdi Abaakouk [Thu, 8 Nov 2018 09:55:03 +0000 (10:55 +0100)]
imap: remove imap_conn_find in imap_mbox_open_append

All code using imap_conn_find is currently broken.

This change is the first part of moving out imap_conn_find.

To do so, a new function mail_prepare_mailbox() will setup the
ImapAccountData structure.

This method will be used in imap_access()/imap_mbox_open()/imap_mbox_open_append().

6 years agoimap: remove imap_conn_find in cmd_handle_fatal
Mehdi Abaakouk [Thu, 8 Nov 2018 10:03:23 +0000 (11:03 +0100)]
imap: remove imap_conn_find in cmd_handle_fatal

imap_conn_find() is broken and always return NULL if MUTT_IMAP_CONN_NONEW
flag is passed.

This change removes it from cmd_handle_fatal().

6 years agomerge: notmuch refactoring
Richard Russon [Sat, 10 Nov 2018 11:43:48 +0000 (11:43 +0000)]
merge: notmuch refactoring

 * replace hard-coded protocol with constant
 * replace hard-coded maildir flags
 * remove nm_path_probe(...) calls
 * single point for closing database
 * remove all unneeded #ifdef USE_NOTMUCH
 * remove nm_normalize_uri(...)
 * move version-specific loading to one spot

6 years agonotmuch: move version-specific loading to one spot
Austin Ray [Thu, 8 Nov 2018 01:22:24 +0000 (20:22 -0500)]
notmuch: move version-specific loading to one spot

Moved loading of messages and threads to into their own method,
respectively. This helper method abstracts the loading for the caller.
All version-specific calls are in one spot for easier maintenance.

6 years agonotmuch: remove nm_normalize_uri(...)
Austin Ray [Sun, 4 Nov 2018 02:18:33 +0000 (22:18 -0400)]
notmuch: remove nm_normalize_uri(...)

`nm_normalize_uri(...)` had one usage in `mutt_parse_unmailboxes(...)`.
Removing it had no affect on the `unmailboxes` command. I was able to
remove mailboxes without error.

6 years agonotmuch: remove all unneeded #ifdef USE_NOTMUCH
Austin Ray [Sun, 4 Nov 2018 00:03:48 +0000 (20:03 -0400)]
notmuch: remove all unneeded #ifdef USE_NOTMUCH

Removed all unnecessary #ifdef USE_NOTMUCH. The remaining #ifdef
USE_NOTMUCH statements gate notmuch-specific calls that are not covered
by an interface.

The notmuch implementation of `mx_path_canon(...)` has been replaced with a
call to `nm_normalize_uri(...)` since that already canonizes notmuch
queries.

6 years agonotmuch: single point for closing database
Austin Ray [Sun, 4 Nov 2018 01:11:50 +0000 (21:11 -0400)]
notmuch: single point for closing database

There are three points where a database is closed. Each point duplicates
the code for different versions of notmuch. Implemented a new method for
the version-specific notmuch code is handled. This method takes in a
database and closes it.

6 years agonotmuch: remove nm_path_probe(...) calls
Austin Ray [Sat, 3 Nov 2018 19:42:05 +0000 (15:42 -0400)]
notmuch: remove nm_path_probe(...) calls

Replaced `nm_path_probe(...)` with `mx_path_probe(...)` to make notmuch
be completely compliant with the MX api.

6 years agonotmuch: replace hard-coded maildir flags
Austin Ray [Fri, 2 Nov 2018 23:02:11 +0000 (19:02 -0400)]
notmuch: replace hard-coded maildir flags

Replaced the hard-coded maildir flags unread, flagged, and replied with
variables NmUnreadTag, NmFlaggedTag, and NmRepliedTag.

Since unread and flagged may be different from the maildir flag, we do
not want to limit to using "unread", "flagged", or "unread" when
modifying tags. The user can specify which tags they use for the maildir
flags, and the subsystem will update maildir flags correctly.

6 years agonotmuch: replace hard-coded protocol with constant
Austin Ray [Fri, 2 Nov 2018 22:48:25 +0000 (18:48 -0400)]
notmuch: replace hard-coded protocol with constant

Removed all instances of `notmuch://` with a constant, NmUriProtocol.
This makes it easier to change to protocol if necessary.

6 years agoclang-format
Richard Russon [Sat, 10 Nov 2018 11:24:06 +0000 (11:24 +0000)]
clang-format

6 years agoimap: when opening mailbox, reset Mailbox attrs
Mehdi Abaakouk [Fri, 9 Nov 2018 14:26:50 +0000 (15:26 +0100)]
imap: when opening mailbox, reset Mailbox attrs

We currently only reset vcount and msg_count.

But imap_read_headers() call from imap_mbox_open() reload all
messages and then call mx_update_context(). So attributes that have not
been reseted will grow from previous values.

This does the reset of size, msg_unread, msg_flagged, msg_new.

6 years agoRemove unused ImapAccountData->account
Mehdi Abaakouk [Fri, 9 Nov 2018 10:36:47 +0000 (11:36 +0100)]
Remove unused ImapAccountData->account

6 years agomove Context.new
Mehdi Abaakouk [Fri, 9 Nov 2018 12:33:10 +0000 (13:33 +0100)]
move Context.new

6 years agoflags: change confusing var name
Mehdi Abaakouk [Fri, 9 Nov 2018 12:28:01 +0000 (13:28 +0100)]
flags: change confusing var name

mailbox->msg_flagged was stored in mailbox variable.

This change rename mailbox to flagged.

6 years agomailbox: drop unnec function
Richard Russon [Fri, 9 Nov 2018 00:20:00 +0000 (00:20 +0000)]
mailbox: drop unnec function

Fixes #1388

Thanks to @alyssais and @puckipedia.

6 years agomxapi: mx_path_canon should not double / uri
Mehdi Abaakouk [Tue, 6 Nov 2018 15:35:28 +0000 (16:35 +0100)]
mxapi: mx_path_canon should not double / uri

At least for imap if "folder=imap://example.com" and mailboxes contains "=Foo"

mx_path_canon will construct imap://example.com//Foo

This change ensures we do not add the extra /.