]> granicus.if.org Git - neomutt/log
neomutt
6 years agofactor out PostContext
Richard Russon [Sat, 19 Jan 2019 16:19:08 +0000 (16:19 +0000)]
factor out PostContext

6 years agomx_mbox_open: drop path param
Richard Russon [Sat, 5 Jan 2019 12:50:27 +0000 (12:50 +0000)]
mx_mbox_open: drop path param

6 years agoadd mx_path_resolve()
Richard Russon [Fri, 28 Dec 2018 14:51:34 +0000 (14:51 +0000)]
add mx_path_resolve()

6 years agomx_mbox_sync
Richard Russon [Sun, 13 Jan 2019 15:39:26 +0000 (15:39 +0000)]
mx_mbox_sync

6 years agomutt_mailbox_check: factor out Context
Richard Russon [Sun, 13 Jan 2019 15:05:15 +0000 (15:05 +0000)]
mutt_mailbox_check: factor out Context

6 years agoci_send_message: factor Context out of dependents
Richard Russon [Sat, 12 Jan 2019 00:34:23 +0000 (00:34 +0000)]
ci_send_message: factor Context out of dependents

6 years agoci_send_message: factor out Context
Richard Russon [Fri, 11 Jan 2019 21:51:53 +0000 (21:51 +0000)]
ci_send_message: factor out Context

6 years agoci_send_message: factor Context out of mutt_make_string()
Richard Russon [Fri, 11 Jan 2019 14:30:09 +0000 (14:30 +0000)]
ci_send_message: factor Context out of mutt_make_string()

6 years agomutt_change_flag: factor out Context
Richard Russon [Fri, 11 Jan 2019 11:58:51 +0000 (11:58 +0000)]
mutt_change_flag: factor out Context

6 years agomutt_save_message: factor out Context
Richard Russon [Fri, 11 Jan 2019 10:51:12 +0000 (10:51 +0000)]
mutt_save_message: factor out Context

6 years agopipe_message: factor out Context
Richard Russon [Fri, 11 Jan 2019 01:56:56 +0000 (01:56 +0000)]
pipe_message: factor out Context

6 years agopipe_msg: add Mailbox param
Richard Russon [Thu, 10 Jan 2019 20:48:30 +0000 (20:48 +0000)]
pipe_msg: add Mailbox param

6 years agomutt_label_message: factor out Context
Richard Russon [Thu, 10 Jan 2019 15:49:22 +0000 (15:49 +0000)]
mutt_label_message: factor out Context

6 years agomutt_link_threads: factor out Context
Richard Russon [Thu, 10 Jan 2019 15:27:30 +0000 (15:27 +0000)]
mutt_link_threads: factor out Context

6 years agocrypt_extract_keys_from_messages: factor out Context
Richard Russon [Thu, 10 Jan 2019 14:51:13 +0000 (14:51 +0000)]
crypt_extract_keys_from_messages: factor out Context

6 years agomutt_check_traditional_pgp: factor out Context
Richard Russon [Thu, 10 Jan 2019 14:26:15 +0000 (14:26 +0000)]
mutt_check_traditional_pgp: factor out Context

6 years agobounce_message: factor out Context
Richard Russon [Tue, 8 Jan 2019 18:21:02 +0000 (18:21 +0000)]
bounce_message: factor out Context

6 years agomutt_ev_message: factor out Context
Richard Russon [Thu, 10 Jan 2019 13:44:17 +0000 (13:44 +0000)]
mutt_ev_message: factor out Context

6 years agorefactor edit_or_view_one_message
Richard Russon [Thu, 10 Jan 2019 13:40:05 +0000 (13:40 +0000)]
refactor edit_or_view_one_message

6 years agoadd EmailList for tagged Emails
Richard Russon [Mon, 31 Dec 2018 16:21:20 +0000 (16:21 +0000)]
add EmailList for tagged Emails

6 years agoMap SASL loglevels to neomutt loglevels
Ian Zimmerman [Thu, 7 Feb 2019 21:38:08 +0000 (13:38 -0800)]
Map SASL loglevels to neomutt loglevels

6 years agofixed: sort_browser attribute modified after sorting
Victor Fernandes [Sat, 2 Feb 2019 19:37:31 +0000 (20:37 +0100)]
fixed: sort_browser attribute modified after sorting

sort_browser has modified after calling browser_sort,
which means the first time sort is called it uses the old
sort method instead of the new one.

Fixes #1551

6 years agosplit up 'update' and 'resort' notifications
Richard Russon [Thu, 24 Jan 2019 02:04:30 +0000 (02:04 +0000)]
split up 'update' and 'resort' notifications

Fixes #1546

6 years agofix: crash with short attachment name
Pietro Cerutti [Wed, 23 Jan 2019 12:10:57 +0000 (12:10 +0000)]
fix: crash with short attachment name

6 years agotags: fix multiple tags set on multiple emails
Mehdi Abaakouk [Mon, 14 Jan 2019 20:16:02 +0000 (21:16 +0100)]
tags: fix multiple tags set on multiple emails

When we set multiple tags on multiple emails at once, only the first
email get all tags.

This is because we use strsep that will modify the initial buffer that
contains all tags.

This change fixes it by duplicating the buffer of tags before using
strsep on it.

6 years agopager: fix missing Mailbox reference
Richard Russon [Mon, 14 Jan 2019 15:38:51 +0000 (15:38 +0000)]
pager: fix missing Mailbox reference

6 years agoAllow the creation of a new mbox when saving to a local file
Pietro Cerutti [Mon, 14 Jan 2019 09:09:10 +0000 (09:09 +0000)]
Allow the creation of a new mbox when saving to a local file

Fixes #1537

6 years agonotmuch: implement read-only vfolder-from-query
Austin Ray [Sat, 12 Jan 2019 17:37:14 +0000 (12:37 -0500)]
notmuch: implement read-only vfolder-from-query

Implemented a read-only variant of vfolder-from-query for users who want
to have an immutable window. This ensures no accidental tag changes
occur.

6 years ago+install instructions in README.md
Antoine Amarilli [Sat, 12 Jan 2019 19:02:17 +0000 (20:02 +0100)]
+install instructions in README.md

6 years agocontext: move message_is_tagged,message_is_visible
Richard Russon [Thu, 10 Jan 2019 13:21:15 +0000 (13:21 +0000)]
context: move message_is_tagged,message_is_visible

6 years agomutt_make_string: separate Context from Mailbox
Richard Russon [Fri, 11 Jan 2019 14:09:58 +0000 (14:09 +0000)]
mutt_make_string: separate Context from Mailbox

6 years agodoxy: fix headers
Richard Russon [Thu, 10 Jan 2019 23:15:37 +0000 (23:15 +0000)]
doxy: fix headers

6 years agonotmuch: remove Context in nm_read_entire_thread() 1387/head
Austin Ray [Wed, 9 Jan 2019 22:28:08 +0000 (17:28 -0500)]
notmuch: remove Context in nm_read_entire_thread()

Removed the coupling between `nm_read_entire_thread()` and `struct
Context` by replacing it with `struct Mailbox`.

`Context` had two uses: `Mailbox` reference source and `ctx_update()`.

The introduction of mailbox notification code allows mailbox events to
trigger `ctx_update()`, which removes the hard dependency on `Context`.

Passing a `Mailbox` reference removes the remaining soft dependency on
`Context`.

6 years agoRelax non-empty requirement on compose_format, pager_format, and status_format (...
Pietro Cerutti [Wed, 9 Jan 2019 14:31:07 +0000 (14:31 +0000)]
Relax non-empty requirement on compose_format, pager_format, and status_format (#1531)

Fixes #1530

6 years agoRevert "Don't override ndata with temporary context"
Pietro Cerutti [Wed, 9 Jan 2019 09:20:35 +0000 (09:20 +0000)]
Revert "Don't override ndata with temporary context"

This reverts commit c128c131185fb076476991f477565ba115352faa.

6 years agoDon't override ndata with temporary context 1528/head
Mehdi Abaakouk [Tue, 8 Jan 2019 14:56:53 +0000 (15:56 +0100)]
Don't override ndata with temporary context

postponed/sendlib code can reopen an already opened mailbox.

This overrides m->ndata with a temporary context but never revert it back to
the previous one.

At first glance, when postponed/sendlib code open the mailbox they don't care
to have their context updated with the notification system. It should be
the Context used for the UI that should be updated instead.

So until we don't open a mailbox twice anymore, just set ndata when it
looks accurate to workaround the issue.

6 years agofix: check for mailbox for folder-hook
Richard Russon [Tue, 8 Jan 2019 12:02:47 +0000 (12:02 +0000)]
fix: check for mailbox for folder-hook

Fixes #1527

6 years agofix: saving email to fcc
Richard Russon [Tue, 8 Jan 2019 11:55:35 +0000 (11:55 +0000)]
fix: saving email to fcc

6 years agoSort by UID so sequence ranges in UID STORE make sense
Pietro Cerutti [Tue, 8 Jan 2019 10:22:31 +0000 (10:22 +0000)]
Sort by UID so sequence ranges in UID STORE make sense

This fixes the use case where a bunch of messages are tagged, removed,
then the mailbox is sync'd in a thread view. In this case, the sequence
number given by email->index is not monotonic, which results in weird
sequence sets being passed to UID STORE.

6 years agofix crash in ci_send_message()
Richard Russon [Mon, 7 Jan 2019 23:08:49 +0000 (23:08 +0000)]
fix crash in ci_send_message()

Fixes #1525

6 years agofix crash in mutt_parse_unmailboxes()
Richard Russon [Mon, 7 Jan 2019 15:46:46 +0000 (15:46 +0000)]
fix crash in mutt_parse_unmailboxes()

Fixes #1523

6 years agoclose command prompt when deleting the colon
Pablo Ovelleiro Corral [Sun, 23 Dec 2018 17:06:47 +0000 (18:06 +0100)]
close command prompt when deleting the colon

Fixes #1505

6 years agomerge: upstream changes
Richard Russon [Mon, 7 Jan 2019 15:10:46 +0000 (15:10 +0000)]
merge: upstream changes

 * Factor out rfc2047_decode_envelope()
 * Parse and store mime headers in the BODY
 * Add mx operation save_to_header_cache
 * Add protected header received email support
 * Add rfc2047_encode_envelope helper
 * Refactor save_fcc() function
 * Move fcc after send
 * Prompt when mutt_write_fcc() fails
 * Refactor postpone_message()
 * When postponing, encode descriptions before encrypting
 * More postpone cleanup
 * Fix flags if mutt_get_postponed() has no messages
 * Display mail sent message after Fcc finishes
 * Handle improperly encoded pgp/mime octetstream part
 * Add config and data structure for protected header write support
 * Add a new mode for mutt_write_rfc822_header()
 * Finish protected header write support
 * Read in protected headers when resuming a postponed message
 * Free pgpkeylist if the send fails
 * Rfc2047 encode and fold X-Label when writing updates
 * Restore the xlabel_changed reset
 * Make a copy of x_label before encoding it for updates
 * spelling consistency
 * Updated French translation
 * Added support for the "light" color prefix (in addition to "bright")
 * Light colors: do not do the + 8 on negative values, such as COLOR_DEFAULT
 * Create envelope->changed to mark all field changes
 * Change x-label editing flag to be in the envelope
 * Add $crypt_protected_headers_save
 * Color protected subject as a header in the pager
 * Respect ignore for the protected subject display
 * fix config order
 * Remove unused MUTT_FORMAT_MAKEPRINT flag
 * Sleep $sleep_time after displaying "mail sent" message
 * Update copyright for the next stable release

6 years agoUpdate copyright for the next stable release
Kevin McCarthy [Sat, 5 Jan 2019 21:25:38 +0000 (13:25 -0800)]
Update copyright for the next stable release

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoSleep $sleep_time after displaying "mail sent" message
Kevin McCarthy [Tue, 1 Jan 2019 19:24:11 +0000 (11:24 -0800)]
Sleep $sleep_time after displaying "mail sent" message

In case returning the index displays some kind of error right away, to
give time to see the success message.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoRemove unused MUTT_FORMAT_MAKEPRINT flag
Kevin McCarthy [Mon, 31 Dec 2018 23:39:04 +0000 (15:39 -0800)]
Remove unused MUTT_FORMAT_MAKEPRINT flag

The code in mutt_FormatString() that was using it was commented out 19
years ago.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agofix config order
Richard Russon [Mon, 7 Jan 2019 11:29:52 +0000 (11:29 +0000)]
fix config order

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoRespect ignore for the protected subject display
Kevin McCarthy [Sat, 29 Dec 2018 21:50:00 +0000 (13:50 -0800)]
Respect ignore for the protected subject display

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoColor protected subject as a header in the pager
Kevin McCarthy [Sat, 29 Dec 2018 21:20:03 +0000 (13:20 -0800)]
Color protected subject as a header in the pager

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoAdd $crypt_protected_headers_save
Kevin McCarthy [Thu, 27 Dec 2018 20:05:43 +0000 (12:05 -0800)]
Add $crypt_protected_headers_save

Setting this option will save the protected header back into the
clear-text message headers.  This improves
usability (searching/limiting/replying) when reopening a mailbox
without header cache.  However, it is a security trade-off, so
defaults off and strongly warns about what it is doing in the documentation.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoChange x-label editing flag to be in the envelope
Kevin McCarthy [Wed, 26 Dec 2018 03:52:53 +0000 (19:52 -0800)]
Change x-label editing flag to be in the envelope

Handle like In-Reply-To and References editing.  Change the flag
setting to be inside mutt_copy_header().

The resetting of the changed flag occurs explicitly in the imap and
maildir/mh sync_mailbox code.  It occurs for mbox in the
mx_update_tables() call in mx_sync_mailbox().

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoCreate envelope->changed to mark all field changes
Kevin McCarthy [Wed, 26 Dec 2018 03:24:08 +0000 (19:24 -0800)]
Create envelope->changed to mark all field changes

In subsequent commits, we're going to add the x-label and subject
headers changed flags into the envelope.  To avoid the list of checks
exploding everywhere, just use a single field to check and reset those
values.

Several places in the code are checking for a null header->env.  I
wasn't aware this was possible, so I've added todo notes to track down
when this occurs.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoLight colors: do not do the + 8 on negative values, such as COLOR_DEFAULT
Vincent Lefevre [Sat, 29 Dec 2018 19:08:26 +0000 (20:08 +0100)]
Light colors: do not do the + 8 on negative values, such as COLOR_DEFAULT

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoAdded support for the "light" color prefix (in addition to "bright")
Vincent Lefevre [Sat, 29 Dec 2018 18:37:57 +0000 (19:37 +0100)]
Added support for the "light" color prefix (in addition to "bright")

At the same time, restrict the advance by 8 to colors in the range 0-7
and no longer use the blink attribute to emulate light background colors
in some terminals (e.g. linux console and rxvt), as this is really blink
in other terminals (e.g. xterm); light background colors can still be
obtained by choosing a proper $TERM value (tested with linux console,
using TERM=linux-16color, and rxvt).

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoUpdated French translation
Vincent Lefevre [Sat, 29 Dec 2018 17:17:43 +0000 (18:17 +0100)]
Updated French translation

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agospelling consistency
Vincent Lefevre [Sat, 29 Dec 2018 17:03:27 +0000 (18:03 +0100)]
spelling consistency

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoMake a copy of x_label before encoding it for updates
Kevin McCarthy [Fri, 28 Dec 2018 23:43:51 +0000 (15:43 -0800)]
Make a copy of x_label before encoding it for updates

This isn't actually a bug.  Context->label_hash strdups the keys, so
we are safe from dangling references.  However, the subj_hash uses
direct references, so to keep things consistent and safe, make a copy
and encode that.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoRestore the xlabel_changed reset
Kevin McCarthy [Fri, 28 Dec 2018 00:24:27 +0000 (16:24 -0800)]
Restore the xlabel_changed reset

The cherry pick accidentally obliterated the reset.  That flag is now
located in hdr->env->changed in the branch and is reset properly
elsewhere.  Keep it in place in the stable branch.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoRfc2047 encode and fold X-Label when writing updates
Kevin McCarthy [Fri, 28 Dec 2018 00:08:36 +0000 (16:08 -0800)]
Rfc2047 encode and fold X-Label when writing updates

Also, add a missing "skip" in mutt_copy_hdr() for the non-simple case.

These fixes were backported from the kevin/mutt_protected_header branch.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoFree pgpkeylist if the send fails
Kevin McCarthy [Tue, 25 Dec 2018 00:22:07 +0000 (16:22 -0800)]
Free pgpkeylist if the send fails

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoRead in protected headers when resuming a postponed message
Kevin McCarthy [Mon, 24 Dec 2018 23:11:09 +0000 (15:11 -0800)]
Read in protected headers when resuming a postponed message

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoFinish protected header write support
Kevin McCarthy [Mon, 24 Dec 2018 00:32:52 +0000 (16:32 -0800)]
Finish protected header write support

Write out the protected headers when writing the mime header part.

Hide protected subjects with $crypt_protected_headers_subject, for
outgoing, postponed, and fcc'ed messages.

Don't hide in postponed and fcc'ed if $crypt_protected_headers_read
isn't set.

Add a few missing cases where mime_headers needed to be cleaned up on
error.

Remove the protected headers for $fcc_clear.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoAdd a new mode for mutt_write_rfc822_header()
Kevin McCarthy [Mon, 24 Dec 2018 00:23:02 +0000 (16:23 -0800)]
Add a new mode for mutt_write_rfc822_header()

Convert the mode parameter to an enum, to make the code a bit more readable.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoAdd config and data structure for protected header write support
Kevin McCarthy [Sun, 16 Dec 2018 21:15:05 +0000 (13:15 -0800)]
Add config and data structure for protected header write support

Add config vars $crypt_protected_headers_write (unset by default),
and $crypt_protected_headers_subject.

Store the protected headers during mime_protect().

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoHandle improperly encoded pgp/mime octetstream part
Kevin McCarthy [Fri, 21 Dec 2018 18:13:17 +0000 (10:13 -0800)]
Handle improperly encoded pgp/mime octetstream part

Some clients (or even mail servers) improperly encode the octetstream
part.

Thanks to Riccardo Schirone for the original merge request patch.
This commit also handles the attachment menu, and makes the decoding
conditional so it's not done if it isn't necessary.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoDisplay mail sent message after Fcc finishes
Kevin McCarthy [Fri, 21 Dec 2018 17:42:26 +0000 (09:42 -0800)]
Display mail sent message after Fcc finishes

For the case of IMAP, the uploading message would otherwise stay on
the screen.  In any case, it's best to show that message as the last
thing before returning to the index.

Thanks to chdiza for reporting the issue!

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoFix flags if mutt_get_postponed() has no messages
Kevin McCarthy [Thu, 20 Dec 2018 02:48:04 +0000 (18:48 -0800)]
Fix flags if mutt_get_postponed() has no messages

Flags needs to be reset so memory cleanup is done at the end.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoMore postpone cleanup
Kevin McCarthy [Thu, 20 Dec 2018 02:36:19 +0000 (18:36 -0800)]
More postpone cleanup

Provide an error message if $postponed is not set.

Make sure the clear content is freed for encrypted messages.

If the write_fcc() fails, make sure to restore the clear content.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoWhen postponing, encode descriptions before encrypting
Kevin McCarthy [Thu, 20 Dec 2018 01:43:26 +0000 (17:43 -0800)]
When postponing, encode descriptions before encrypting

This matches the behavior of the normal send process.  I don't think
there is actually an issue here since nothing is sent, but it makes
sense to be consistent.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoRefactor postpone_message()
Kevin McCarthy [Thu, 20 Dec 2018 00:20:23 +0000 (16:20 -0800)]
Refactor postpone_message()

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoPrompt when mutt_write_fcc() fails
Kevin McCarthy [Wed, 19 Dec 2018 23:42:24 +0000 (15:42 -0800)]
Prompt when mutt_write_fcc() fails

Allow the user to retry, specify an alternate mailbox, or skip.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoMove fcc after send
Kevin McCarthy [Wed, 19 Dec 2018 22:35:22 +0000 (14:35 -0800)]
Move fcc after send

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoRefactor save_fcc() function
Kevin McCarthy [Wed, 19 Dec 2018 22:24:46 +0000 (14:24 -0800)]
Refactor save_fcc() function

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoAdd rfc2047_encode_envelope helper
Kevin McCarthy [Sun, 16 Dec 2018 22:23:54 +0000 (14:23 -0800)]
Add rfc2047_encode_envelope helper

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoAdd protected header received email support
Kevin McCarthy [Tue, 11 Dec 2018 22:11:30 +0000 (14:11 -0800)]
Add protected header received email support

Add $crypt_protected_headers_read config variable to enable reading
and updating the index/header cache.

Print protected Subject header in the pager as parts are rendered.

Once opened, update the index, subject hash, and header cache.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoAdd mx operation save_to_header_cache
Kevin McCarthy [Sat, 15 Dec 2018 22:49:55 +0000 (14:49 -0800)]
Add mx operation save_to_header_cache

This will be used when reading protected headers, to store the
encrypted subject in the header cache so it can be searched with.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoParse and store mime headers in the BODY
Kevin McCarthy [Mon, 10 Dec 2018 01:41:58 +0000 (17:41 -0800)]
Parse and store mime headers in the BODY

Don't store the field in the header cache though.

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoFactor out rfc2047_decode_envelope()
Kevin McCarthy [Mon, 10 Dec 2018 03:52:21 +0000 (19:52 -0800)]
Factor out rfc2047_decode_envelope()

Co-authored-by: Richard Russon <rich@flatcap.org>
6 years agoclang-format
Richard Russon [Mon, 7 Jan 2019 11:49:12 +0000 (11:49 +0000)]
clang-format

6 years agoacutest: sync to upstream
Pietro Cerutti [Mon, 7 Jan 2019 14:54:47 +0000 (14:54 +0000)]
acutest: sync to upstream

6 years agomerge: factor Context out of mailbox functions
Richard Russon [Sat, 5 Jan 2019 14:46:13 +0000 (14:46 +0000)]
merge: factor Context out of mailbox functions

 * imap: drop Context from imap_copy_messages()
 * tidy mbox_close
 * mailbox: add notify callback
 * mx_fastclose_mailbox: use mailbox notifications
 * mx_fastclose_mailbox: factor out Context
 * imap_expunge_mailbox: use mailbox notifications
 * imap: drop mdata->ctx
 * mbox_open: factor out Context
 * mbox_check: use mailbox notifications
 * mbox_check: factor out Context
 * mbox_sync: use mailbox notifications
 * mbox_sync: factor out Context
 * split out context functions
 * mx_mbox_close drop index_hint
 * imap tidy

6 years agoimap tidy
Richard Russon [Fri, 28 Dec 2018 14:16:29 +0000 (14:16 +0000)]
imap tidy

6 years agomx_mbox_close drop index_hint
Richard Russon [Sun, 30 Dec 2018 02:29:04 +0000 (02:29 +0000)]
mx_mbox_close drop index_hint

6 years agosplit out context functions
Richard Russon [Fri, 28 Dec 2018 11:08:37 +0000 (11:08 +0000)]
split out context functions

6 years agombox_sync: factor out Context
Richard Russon [Wed, 26 Dec 2018 18:14:46 +0000 (18:14 +0000)]
mbox_sync: factor out Context

6 years agombox_sync: use mailbox notifications
Richard Russon [Wed, 26 Dec 2018 18:10:36 +0000 (18:10 +0000)]
mbox_sync: use mailbox notifications

6 years agombox_check: factor out Context
Richard Russon [Mon, 24 Dec 2018 11:57:57 +0000 (11:57 +0000)]
mbox_check: factor out Context

6 years agombox_check: use mailbox notifications
Richard Russon [Mon, 24 Dec 2018 11:50:31 +0000 (11:50 +0000)]
mbox_check: use mailbox notifications

6 years agombox_open: factor out Context
Richard Russon [Mon, 24 Dec 2018 11:23:23 +0000 (11:23 +0000)]
mbox_open: factor out Context

6 years agoimap: drop mdata->ctx
Richard Russon [Sun, 23 Dec 2018 00:14:10 +0000 (00:14 +0000)]
imap: drop mdata->ctx

6 years agoimap_expunge_mailbox: use mailbox notifications
Richard Russon [Sun, 23 Dec 2018 00:11:20 +0000 (00:11 +0000)]
imap_expunge_mailbox: use mailbox notifications

6 years agomx_fastclose_mailbox: factor out Context
Richard Russon [Sun, 23 Dec 2018 00:06:32 +0000 (00:06 +0000)]
mx_fastclose_mailbox: factor out Context

6 years agomx_fastclose_mailbox: use mailbox notifications
Richard Russon [Thu, 20 Dec 2018 13:37:38 +0000 (13:37 +0000)]
mx_fastclose_mailbox: use mailbox notifications

6 years agomailbox: add notify callback
Richard Russon [Wed, 19 Dec 2018 13:24:17 +0000 (13:24 +0000)]
mailbox: add notify callback

6 years agotidy mbox_close
Richard Russon [Mon, 31 Dec 2018 02:05:20 +0000 (02:05 +0000)]
tidy mbox_close

6 years agoimap: drop Context from imap_copy_messages()
Richard Russon [Mon, 31 Dec 2018 18:03:15 +0000 (18:03 +0000)]
imap: drop Context from imap_copy_messages()

6 years agofolder-hook: try matching on description
Austin Ray [Fri, 4 Jan 2019 02:20:21 +0000 (21:20 -0500)]
folder-hook: try matching on description

Use the description, in addition to the path, when determining to
execute a `folder-hook`. Since `named-mailboxes` and `virtual-mailboxes`
use descriptions to hide ugliness of raw paths, the description may
differ from the path and/or contain information not included in the
path.

The inclusion of description checking makes `folder-hook`s improves its
ergonomics. `notmuch` users were particularly affect by poor
`folder-hook` ergonomics since `virtual-mailboxes` paths often had large
overlap, making it hard to craft a good regex. A workaround was to add a
unique dummy key.

6 years agomerge: add summary pages
Richard Russon [Fri, 4 Jan 2019 01:19:40 +0000 (01:19 +0000)]
merge: add summary pages

 * add ICommand for new :ex-style commands
 * Implement :set [all] commands
 * Implement :version command

6 years agoImplement :version command
ryt [Mon, 12 Nov 2018 21:26:44 +0000 (22:26 +0100)]
Implement :version command

6 years agoImplement :set [all] commands
ryt [Mon, 12 Nov 2018 19:49:57 +0000 (20:49 +0100)]
Implement :set [all] commands