]> granicus.if.org Git - neomutt/log
neomutt
5 years agoreduce scope of loop variables
Richard Russon [Sat, 16 Feb 2019 16:11:56 +0000 (16:11 +0000)]
reduce scope of loop variables

5 years agomerge: refactor/tidy mutt_index_menu()
Richard Russon [Tue, 19 Feb 2019 00:43:19 +0000 (00:43 +0000)]
merge: refactor/tidy mutt_index_menu()

 * refactor index's check macros
 * reduce scope of loop variables
 * reduce scope of variables
 * tidy mutt_index_menu()

5 years agotidy mutt_index_menu() 1560/head
Richard Russon [Sat, 16 Feb 2019 16:50:03 +0000 (16:50 +0000)]
tidy mutt_index_menu()

5 years agoreduce scope of variables
Richard Russon [Thu, 14 Feb 2019 02:20:46 +0000 (02:20 +0000)]
reduce scope of variables

5 years agoreduce scope of loop variables
Richard Russon [Thu, 14 Feb 2019 02:12:33 +0000 (02:12 +0000)]
reduce scope of loop variables

5 years agorefactor index's check macros
Richard Russon [Tue, 12 Feb 2019 22:31:40 +0000 (22:31 +0000)]
refactor index's check macros

5 years agoupdate list of translatable files
Richard Russon [Tue, 12 Feb 2019 21:36:41 +0000 (21:36 +0000)]
update list of translatable files

[ci skip]

5 years agomerge: trivial code fixes
Richard Russon [Sat, 16 Feb 2019 15:50:10 +0000 (15:50 +0000)]
merge: trivial code fixes

 * boolify Score->exact
 * boolify is_reply()
 * boolify do_locales
 * boolify exact
 * boolify imap_set_flags()
 * doxy: fix typo
 * comp_mbox_close: swap if clauses
 * fix sprintf specifiers
 * fix lgtm alerts

5 years agofix lgtm alerts 1562/head
Richard Russon [Sat, 16 Feb 2019 00:35:04 +0000 (00:35 +0000)]
fix lgtm alerts

Each of the removed tests was redundant.

5 years agofix sprintf specifiers
Richard Russon [Fri, 15 Feb 2019 23:23:35 +0000 (23:23 +0000)]
fix sprintf specifiers

5 years agocomp_mbox_close: swap if clauses
Richard Russon [Fri, 15 Feb 2019 23:14:48 +0000 (23:14 +0000)]
comp_mbox_close: swap if clauses

5 years agodoxy: fix typo
Richard Russon [Fri, 15 Feb 2019 23:07:24 +0000 (23:07 +0000)]
doxy: fix typo

5 years agoboolify imap_set_flags()
Richard Russon [Fri, 15 Feb 2019 23:09:08 +0000 (23:09 +0000)]
boolify imap_set_flags()

5 years agoboolify exact
Richard Russon [Sat, 16 Feb 2019 12:45:22 +0000 (12:45 +0000)]
boolify exact

5 years agoboolify do_locales
Richard Russon [Sat, 16 Feb 2019 12:44:13 +0000 (12:44 +0000)]
boolify do_locales

5 years agoboolify is_reply()
Richard Russon [Fri, 15 Feb 2019 23:07:02 +0000 (23:07 +0000)]
boolify is_reply()

5 years agoboolify Score->exact
Richard Russon [Fri, 15 Feb 2019 23:04:32 +0000 (23:04 +0000)]
boolify Score->exact

5 years agolgtm: add config
Richard Russon [Sat, 16 Feb 2019 13:38:11 +0000 (13:38 +0000)]
lgtm: add config

5 years agofix mailbox size
Richard Russon [Wed, 13 Feb 2019 13:51:18 +0000 (13:51 +0000)]
fix mailbox size

When re-opening a mailbox, the size wasn't being reset.

5 years agomerge: trivial code fixes
Richard Russon [Fri, 8 Feb 2019 20:25:16 +0000 (20:25 +0000)]
merge: trivial code fixes

 * fix spelling
 * compare integers against 0
 * standardise naming in B64Context
 * standardise naming in ComposeRedrawData
 * standardise naming in FgetConv
 * standardise naming in Group
 * standardise naming in ImapHeader
 * standardise naming in MailboxNode
 * standardise naming in Pattern
 * standardise naming in SslSockData
 * standardise naming in Pager
 * simplify bitfields in Mailbox
 * simplify bitfields in ImapAccountData
 * simplify bitfields in smtp
 * drop bitfields
 * doxy: mark all out-params
 * tidy mutt_folder_hook
 * index.c move data
 * tidy reopen_mailbox
 * doxy: add comment blocks
 * iwyu
 * boolify variables
 * doxy: fix typo
 * fix param names
 * rename pop_adata_get
 * eliminate asymmetric quotes
 * reduce variable scope

5 years agoreduce variable scope
Richard Russon [Fri, 8 Feb 2019 19:55:42 +0000 (19:55 +0000)]
reduce variable scope

5 years agoeliminate asymmetric quotes
Richard Russon [Fri, 8 Feb 2019 19:46:05 +0000 (19:46 +0000)]
eliminate asymmetric quotes

5 years agorename pop_adata_get
Richard Russon [Fri, 8 Feb 2019 19:25:29 +0000 (19:25 +0000)]
rename pop_adata_get

5 years agofix param names
Richard Russon [Fri, 8 Feb 2019 19:17:27 +0000 (19:17 +0000)]
fix param names

5 years agodoxy: fix typo
Richard Russon [Fri, 8 Feb 2019 19:15:05 +0000 (19:15 +0000)]
doxy: fix typo

5 years agoboolify variables
Richard Russon [Fri, 8 Feb 2019 19:15:00 +0000 (19:15 +0000)]
boolify variables

5 years agoiwyu
Richard Russon [Wed, 9 Jan 2019 23:18:47 +0000 (23:18 +0000)]
iwyu

5 years agodoxy: add comment blocks
Richard Russon [Tue, 5 Feb 2019 20:28:40 +0000 (20:28 +0000)]
doxy: add comment blocks

5 years agotidy reopen_mailbox
Richard Russon [Fri, 18 Jan 2019 02:39:58 +0000 (02:39 +0000)]
tidy reopen_mailbox

5 years agoindex.c move data
Richard Russon [Fri, 18 Jan 2019 02:32:41 +0000 (02:32 +0000)]
index.c move data

5 years agotidy mutt_folder_hook
Richard Russon [Fri, 18 Jan 2019 02:30:43 +0000 (02:30 +0000)]
tidy mutt_folder_hook

5 years agodoxy: mark all out-params
Richard Russon [Mon, 4 Feb 2019 02:31:47 +0000 (02:31 +0000)]
doxy: mark all out-params

5 years agodrop bitfields
Richard Russon [Mon, 21 Jan 2019 23:34:47 +0000 (23:34 +0000)]
drop bitfields

5 years agosimplify bitfields in smtp
Richard Russon [Mon, 21 Jan 2019 23:31:59 +0000 (23:31 +0000)]
simplify bitfields in smtp

5 years agosimplify bitfields in ImapAccountData
Richard Russon [Mon, 21 Jan 2019 23:21:10 +0000 (23:21 +0000)]
simplify bitfields in ImapAccountData

5 years agosimplify bitfields in Mailbox
Richard Russon [Mon, 21 Jan 2019 22:52:26 +0000 (22:52 +0000)]
simplify bitfields in Mailbox

5 years agostandardise naming in Pager
Richard Russon [Fri, 18 Jan 2019 02:14:15 +0000 (02:14 +0000)]
standardise naming in Pager

5 years agostandardise naming in SslSockData
Richard Russon [Fri, 18 Jan 2019 02:12:13 +0000 (02:12 +0000)]
standardise naming in SslSockData

5 years agostandardise naming in Pattern
Richard Russon [Fri, 18 Jan 2019 02:09:51 +0000 (02:09 +0000)]
standardise naming in Pattern

5 years agostandardise naming in MailboxNode
Richard Russon [Fri, 18 Jan 2019 02:07:17 +0000 (02:07 +0000)]
standardise naming in MailboxNode

5 years agostandardise naming in ImapHeader
Richard Russon [Fri, 18 Jan 2019 02:01:21 +0000 (02:01 +0000)]
standardise naming in ImapHeader

5 years agostandardise naming in Group
Richard Russon [Fri, 18 Jan 2019 01:52:15 +0000 (01:52 +0000)]
standardise naming in Group

5 years agostandardise naming in FgetConv
Richard Russon [Fri, 18 Jan 2019 01:47:49 +0000 (01:47 +0000)]
standardise naming in FgetConv

5 years agostandardise naming in ComposeRedrawData
Richard Russon [Fri, 18 Jan 2019 01:44:47 +0000 (01:44 +0000)]
standardise naming in ComposeRedrawData

5 years agostandardise naming in B64Context
Richard Russon [Fri, 18 Jan 2019 01:43:16 +0000 (01:43 +0000)]
standardise naming in B64Context

5 years agocompare integers against 0
Richard Russon [Thu, 17 Jan 2019 19:58:57 +0000 (19:58 +0000)]
compare integers against 0

5 years agofix spelling
Richard Russon [Tue, 5 Feb 2019 17:55:56 +0000 (17:55 +0000)]
fix spelling

5 years agomerge: more Context elimination
Richard Russon [Fri, 8 Feb 2019 16:35:52 +0000 (16:35 +0000)]
merge: more Context elimination

 * add EmailList for tagged Emails
 * refactor edit_or_view_one_message
 * mutt_ev_message: factor out Context
 * bounce_message: factor out Context
 * mutt_check_traditional_pgp: factor out Context
 * crypt_extract_keys_from_messages: factor out Context
 * mutt_link_threads: factor out Context
 * mutt_label_message: factor out Context
 * pipe_msg: add Mailbox param
 * pipe_message: factor out Context
 * mutt_save_message: factor out Context
 * mutt_change_flag: factor out Context
 * ci_send_message: factor Context out of mutt_make_string()
 * ci_send_message: factor out Context
 * ci_send_message: factor Context out of dependents
 * mutt_mailbox_check: factor out Context
 * mx_mbox_sync
 * add mx_path_resolve()
 * mx_mbox_open: drop path param
 * factor out PostContext
 * tidy code
 * tidy Email variables
 * move parse_mailboxes()

5 years agomove parse_mailboxes()
Richard Russon [Sun, 20 Jan 2019 16:46:19 +0000 (16:46 +0000)]
move parse_mailboxes()

This function has dependencies on Context and inotify().

5 years agotidy Email variables
Richard Russon [Sat, 19 Jan 2019 16:53:56 +0000 (16:53 +0000)]
tidy Email variables

5 years agotidy code
Richard Russon [Sat, 19 Jan 2019 15:52:39 +0000 (15:52 +0000)]
tidy code

Non-functional changes

5 years agofactor out PostContext
Richard Russon [Sat, 19 Jan 2019 16:19:08 +0000 (16:19 +0000)]
factor out PostContext

5 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

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

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

5 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

5 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

5 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

5 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()

5 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

5 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

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

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

5 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

5 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

5 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

5 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

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

5 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

5 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

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

5 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

5 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

5 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

5 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

5 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.

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

5 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>