]> granicus.if.org Git - neomutt/log
neomutt
5 years agoFix mailcap %{charset} expansion in send mode
Kevin McCarthy [Fri, 8 Mar 2019 10:06:52 +0000 (18:06 +0800)]
Fix mailcap %{charset} expansion in send mode

Use the current charset of the file for the parameter, since the file
hasn't been converted yet.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoUse gpgme recipient strings for encryption when available
Kevin McCarthy [Mon, 4 Mar 2019 07:05:50 +0000 (15:05 +0800)]
Use gpgme recipient strings for encryption when available

For gpgme >= 1.11.0, use gpgme_op_encrypt_ext() and
gpgme_op_encrypt_sign_ext() to specify recipients as a string.

This allows '!' to specify forcing a subkey, as is the case in classic
gpg and from the command line.

Remove the '!' "force valid" usage for the newer version.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoAdd $include_encrypted config to prevent reply-decryption attack
Kevin McCarthy [Fri, 22 Feb 2019 21:50:52 +0000 (13:50 -0800)]
Add $include_encrypted config to prevent reply-decryption attack

@jensvoid, in cooperation with Ruhr-Uni Bochum and FH Münster,
Germany, reported a possible "Oracle decryption" attack on various
mail clients.  An attacker could include previously encrypted contents
they obtained access to, and include it in a message.  Replying
without trimming would include the decrypted contents.

This attack relies on several "ifs", and is more dangerous for clients
that compose HTML mail.  However, it is still an issue that an
unwary/busy Mutt user could fall for.

Add a new config $include_encrytped, defaulting off, to reduce the
possibility of the user being unaware of previously encrypted parts in
the reply.  Only the main initial encrypted part will be included in
the reply.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoFix truncation of long filenames in attachments
Andrey Skvortsov [Thu, 21 Feb 2019 13:37:05 +0000 (16:37 +0300)]
Fix truncation of long filenames in attachments

Currently mutt truncates long filenames in attachments and doesn't
take into account UTF-8 character size. If filename is truncated in
the middle of multi-byte UTF-8 character (last character is bad),
then some mail clients assume whole attachment name bad and don't
display its name (use 'Noname' instead).

Filenames can be up to 255 *characters* long depending on used
filesystem. ReiserFS, NFTS, FAT, APFS and some other supports up to
255 characters.
In the worst case 255 characters in UTF-8 will take 255*4 = 1020
bytes. Every non-ascii byte in the filename will be encoded using 3
bytes (for example, %8D).
So 'Content-Disposition' will take in the worst case up to: 1020*3 =
3060 bytes. Therefore even LONG_STRING (1024) isn't enough.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoFix raw socket read/write to follow expected behavior
Kevin McCarthy [Mon, 21 Jan 2019 23:19:08 +0000 (15:19 -0800)]
Fix raw socket read/write to follow expected behavior

The mutt_sasl.c code expects conn_write() to write the entire buffer.
This is inconsistent with mutt_socket.c, but since other conn_write()
implementations guarantee this, change raw_socket_write() to do so too
for now.

Also, update reading and writing to loop on EINTR, as gnutls does.
They won't return EAGAIN or EWOULDBLOCK because we don't mark sockets
as non-blocking.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agomerge: Tidy a lot of messages/translations
Richard Russon [Tue, 9 Apr 2019 11:51:23 +0000 (12:51 +0100)]
merge: Tidy a lot of messages/translations

 * add missing constants
 * quote 'nametemplate'
 * add space after question prompt
 * remove []s from a question
 * remove colons from questions
 * use a question mark in the crypto questions
 * use a question mark in the bounce question
 * merge similar translation strings 1
 * merge similar translation strings 2
 * merge similar translation strings 2
 * quote Content-Language
 * quote alternatives
 * quote multilingual
 * quote multipart/alternative
 * quote multipart/multilingual
 * quote Content-Language
 * reword relative path error message
 * replace cannot with can't
 * ensure (o)ptions' style
 * mutt_debug
 * sync translations

5 years agosync translations
Richard Russon [Tue, 9 Apr 2019 11:51:06 +0000 (12:51 +0100)]
sync translations

5 years agomutt_debug 1637/head
Richard Russon [Fri, 5 Apr 2019 21:56:48 +0000 (22:56 +0100)]
mutt_debug

Tidy lots of debugging messages

5 years agoensure (o)ptions' style
Richard Russon [Fri, 5 Apr 2019 19:16:16 +0000 (20:16 +0100)]
ensure (o)ptions' style

Make sure all multi-choice options have their letters parenthesised.

5 years agoreplace cannot with can't
Richard Russon [Fri, 5 Apr 2019 16:17:27 +0000 (17:17 +0100)]
replace cannot with can't

"can't" is used more often than "cannot", so use it everywhere.

5 years agoreword relative path error message
Richard Russon [Fri, 5 Apr 2019 16:09:43 +0000 (17:09 +0100)]
reword relative path error message

5 years agoquote Content-Language
Richard Russon [Fri, 5 Apr 2019 16:05:17 +0000 (17:05 +0100)]
quote Content-Language

'Content-Language' is a reserved keyword -- not to be translated

5 years agoquote multipart/multilingual
Richard Russon [Fri, 5 Apr 2019 16:03:06 +0000 (17:03 +0100)]
quote multipart/multilingual

'multipart/multilingual' is a reserved keyword -- not to be translated

5 years agoquote multipart/alternative
Richard Russon [Fri, 5 Apr 2019 16:01:50 +0000 (17:01 +0100)]
quote multipart/alternative

'multipart/alternative' is a reserved keyword -- not to be translated

5 years agoquote multilingual
Richard Russon [Fri, 5 Apr 2019 15:59:26 +0000 (16:59 +0100)]
quote multilingual

'multilingual' is a reserved keyword -- not to be translated

5 years agoquote alternatives
Richard Russon [Fri, 5 Apr 2019 15:57:21 +0000 (16:57 +0100)]
quote alternatives

'alternatives' is a reserved keyword -- not to be translated

5 years agoquote Content-Language
Richard Russon [Fri, 5 Apr 2019 15:54:25 +0000 (16:54 +0100)]
quote Content-Language

'Content-Language' is a reserved keyword -- not to be translated

5 years agomerge similar translation strings 2
Richard Russon [Fri, 5 Apr 2019 15:47:04 +0000 (16:47 +0100)]
merge similar translation strings 2

- brackets
- parentheses

5 years agomerge similar translation strings 2
Richard Russon [Fri, 5 Apr 2019 15:38:58 +0000 (16:38 +0100)]
merge similar translation strings 2

- Compressing %s...
- Compressing %s

5 years agomerge similar translation strings 1
Richard Russon [Fri, 5 Apr 2019 15:35:03 +0000 (16:35 +0100)]
merge similar translation strings 1

- Can't create %s %s
- Can't create %s: %s

5 years agouse a question mark in the bounce question
Richard Russon [Fri, 5 Apr 2019 15:21:31 +0000 (16:21 +0100)]
use a question mark in the bounce question

5 years agouse a question mark in the crypto questions
Richard Russon [Fri, 5 Apr 2019 15:03:39 +0000 (16:03 +0100)]
use a question mark in the crypto questions

5 years agoremove colons from questions
Richard Russon [Fri, 5 Apr 2019 15:00:12 +0000 (16:00 +0100)]
remove colons from questions

Remove the :'s to align the style with other questions.

5 years agoremove []s from a question
Richard Russon [Fri, 5 Apr 2019 14:59:22 +0000 (15:59 +0100)]
remove []s from a question

Remove the []s to align the style with other questions.

5 years agoadd space after question prompt
Richard Russon [Fri, 5 Apr 2019 14:38:51 +0000 (15:38 +0100)]
add space after question prompt

Change the code to print a space after a question.
This simplifies the translation strings.

5 years agoquote 'nametemplate'
Richard Russon [Fri, 5 Apr 2019 14:40:41 +0000 (15:40 +0100)]
quote 'nametemplate'

'nametemplate' is a reserved keyword -- not to be translated

5 years agoadd missing constants
Richard Russon [Fri, 5 Apr 2019 14:38:28 +0000 (15:38 +0100)]
add missing constants

- mutt_debug()
- mutt_yesorno()

5 years agoGet rid of one-shot macro
Pietro Cerutti [Thu, 4 Apr 2019 11:50:25 +0000 (11:50 +0000)]
Get rid of one-shot macro

5 years agoDisable mailbox notify on close
Pietro Cerutti [Thu, 4 Apr 2019 07:28:03 +0000 (07:28 +0000)]
Disable mailbox notify on close

This fixes a crash when two mailboxes have been opened within a session,
and an 'unmailboxes *' command is issued. In this case, both the current
mailbox and the previously opened mailbox have a non-NULL `notify`
member. The notify method assumes the mailbox is currently active within
the context. The context gets thus doubly freed.

5 years agomerge: trivial fixes
Richard Russon [Thu, 4 Apr 2019 10:38:23 +0000 (11:38 +0100)]
merge: trivial fixes

 * clang-format
 * add parentheses around logic-with-spaces
 * boolify: mutt_simple_format()
 * rename locals to avoid clash
 * add: enum FormatJustify
 * doxy: tidying

5 years agodoxy: tidying 1632/head
Richard Russon [Wed, 3 Apr 2019 13:32:15 +0000 (14:32 +0100)]
doxy: tidying

5 years agoadd: enum FormatJustify
Richard Russon [Mon, 1 Apr 2019 17:36:51 +0000 (18:36 +0100)]
add: enum FormatJustify

5 years agorename locals to avoid clash
Richard Russon [Mon, 1 Apr 2019 17:09:57 +0000 (18:09 +0100)]
rename locals to avoid clash

We're using the `C_` prefix for config variables.

5 years agoboolify: mutt_simple_format()
Richard Russon [Mon, 1 Apr 2019 17:08:16 +0000 (18:08 +0100)]
boolify: mutt_simple_format()

5 years agoadd parentheses around logic-with-spaces
Richard Russon [Mon, 1 Apr 2019 16:50:25 +0000 (17:50 +0100)]
add parentheses around logic-with-spaces

5 years agoclang-format
Richard Russon [Mon, 1 Apr 2019 16:47:53 +0000 (17:47 +0100)]
clang-format

5 years agounify variable naming
Richard Russon [Mon, 1 Apr 2019 17:16:12 +0000 (17:16 +0000)]
unify variable naming

5 years agoMake sure email size is consistently computed in status bar and index
Pietro Cerutti [Tue, 2 Apr 2019 10:47:28 +0000 (10:47 +0000)]
Make sure email size is consistently computed in status bar and index

5 years agoDisplay B for bytes when pretty-printing a size
Pietro Cerutti [Mon, 1 Apr 2019 15:47:55 +0000 (15:47 +0000)]
Display B for bytes when pretty-printing a size

5 years agoFix dependencies of libemail
Pietro Cerutti [Mon, 1 Apr 2019 12:38:17 +0000 (13:38 +0100)]
Fix dependencies of libemail

Fixes #1618

5 years agoFix bogus mailbox size accounting
Pietro Cerutti [Fri, 29 Mar 2019 10:52:36 +0000 (10:52 +0000)]
Fix bogus mailbox size accounting

5 years agotags: Use STAILQ instead of strsep
Mehdi Abaakouk [Mon, 14 Jan 2019 20:16:02 +0000 (21:16 +0100)]
tags: Use STAILQ instead of strsep

This change introduces a new string function mutt_str_split(src, sep) to
return a STAILQ of the split string.

This new funtion is used first in tags code.

5 years agofix further crash in ci_send_message()
Christian Storm [Fri, 29 Mar 2019 11:54:05 +0000 (12:54 +0100)]
fix further crash in ci_send_message()

Signed-off-by: Christian Storm <storm@mailbox.org>
5 years agomerge: update translations
Richard Russon [Fri, 29 Mar 2019 11:46:36 +0000 (11:46 +0000)]
merge: update translations

 * Update Spanish translation
 * po/zh_CN: complete translation
 * swedish: fix option typo
 * Update Finnish translation
 * spanish: pgp-menu multioptions fixed
 * update German translation
 * trans: fix smime questions
 * sync translations

5 years agosync translations
Richard Russon [Fri, 29 Mar 2019 11:44:24 +0000 (11:44 +0000)]
sync translations

5 years agotrans: fix smime questions
ryt [Fri, 29 Mar 2019 11:04:06 +0000 (11:04 +0000)]
trans: fix smime questions

5 years agoupdate German translation
ryt [Fri, 29 Mar 2019 11:03:25 +0000 (11:03 +0000)]
update German translation

5 years agospanish: pgp-menu multioptions fixed
Victor Fernandes [Mon, 25 Mar 2019 17:07:46 +0000 (18:07 +0100)]
spanish: pgp-menu multioptions fixed

5 years agoUpdate Finnish translation
Perry Thompson [Mon, 25 Mar 2019 16:50:15 +0000 (11:50 -0500)]
Update Finnish translation

5 years agoswedish: fix option typo
Richard Russon [Sun, 24 Mar 2019 14:24:18 +0000 (14:24 +0000)]
swedish: fix option typo

5 years agopo/zh_CN: complete translation
Mingcong Bai [Sat, 16 Mar 2019 17:54:39 +0000 (12:54 -0500)]
po/zh_CN: complete translation

5 years agoUpdate Spanish translation
Nagefire [Tue, 12 Mar 2019 14:53:48 +0000 (08:53 -0600)]
Update Spanish translation

5 years agotidy maildir_move_to_mailbox
Richard Russon [Wed, 27 Mar 2019 23:55:16 +0000 (23:55 +0000)]
tidy maildir_move_to_mailbox

5 years agotidy memory functions
Richard Russon [Fri, 29 Mar 2019 00:15:26 +0000 (00:15 +0000)]
tidy memory functions

- reduce scope of variables
- test scalars against 0

5 years agomemory: return NULL, not 0
Austin Ray [Fri, 29 Mar 2019 00:09:37 +0000 (20:09 -0400)]
memory: return NULL, not 0

mutt_mem_free() should return NULL, instead of 0, to match code style[0]

[0] https://neomutt.org/dev/coding-style#distinguish-between-0-and-null

5 years agomerge: Style Menu Options
Richard Russon [Fri, 29 Mar 2019 11:25:25 +0000 (11:25 +0000)]
merge: Style Menu Options

 * add mutt_window_mvaddnstr()
 * Style Menu Options
 * smime: unify multi-option questions

5 years agosmime: unify multi-option questions 1607/head
ryt [Fri, 29 Mar 2019 10:55:21 +0000 (10:55 +0000)]
smime: unify multi-option questions

Change the questions to match the rest of NeoMutt.

From:
  "1: apple, 2: banana"
to
  "(1) apple, (2) banana"

5 years agoStyle Menu Options
ryt [Fri, 22 Mar 2019 15:11:40 +0000 (15:11 +0000)]
Style Menu Options

Closes: #1181
Co-authored-by: Mehdi Abaakouk <sileht@sileht.net>
Co-authored-by: Pietro Cerutti <gahr@gahr.ch>
5 years agoadd mutt_window_mvaddnstr()
ryt [Fri, 22 Mar 2019 14:51:24 +0000 (14:51 +0000)]
add mutt_window_mvaddnstr()

5 years agoclang-format
Richard Russon [Wed, 27 Mar 2019 18:22:15 +0000 (18:22 +0000)]
clang-format

5 years agosidebar(update_entries_visibility): Use bool instead of short for booleans
Darshit Shah [Tue, 26 Mar 2019 10:06:54 +0000 (11:06 +0100)]
sidebar(update_entries_visibility): Use bool instead of short for booleans

5 years agosidebar: New option to display only non-empty mailboxes
Darshit Shah [Tue, 26 Mar 2019 07:40:11 +0000 (08:40 +0100)]
sidebar: New option to display only non-empty mailboxes

Adds a new option $sidebar_only_non_empty_mailboxes which forces neomutt
to display only the mailboxes that have atleast one mail in them. This
option will also work in tandem with the existing $side_new_mail_only

5 years agosidebar: Refactor visibility detection
Darshit Shah [Tue, 26 Mar 2019 07:08:07 +0000 (08:08 +0100)]
sidebar: Refactor visibility detection

5 years agosidebar: Use an explicit fast path for checking visibility
Darshit Shah [Tue, 26 Mar 2019 06:56:29 +0000 (07:56 +0100)]
sidebar: Use an explicit fast path for checking visibility

5 years agoincrease space for key name
Richard Russon [Wed, 27 Mar 2019 16:46:15 +0000 (16:46 +0000)]
increase space for key name

We need enough space for '<backspace>'.

5 years agoimplement unbind and unmacro commands
Jakub Jindra [Thu, 7 Mar 2019 17:31:51 +0000 (18:31 +0100)]
implement unbind and unmacro commands

5 years agolua: fix command-line processing
Richard Russon [Tue, 26 Mar 2019 12:07:11 +0000 (12:07 +0000)]
lua: fix command-line processing

The 'lua' command uses the entire line of text.
Clear the Buffer so that NeoMutt doesn't try to interpret it.

Fixes #1610

5 years agodoxy: fix function comments
Richard Russon [Mon, 25 Mar 2019 16:05:18 +0000 (16:05 +0000)]
doxy: fix function comments

5 years agodoxy: css fixes
Richard Russon [Sat, 23 Mar 2019 22:36:43 +0000 (22:36 +0000)]
doxy: css fixes

5 years agofix out-of-tree test/pattern build
Richard Russon [Mon, 25 Mar 2019 15:42:58 +0000 (15:42 +0000)]
fix out-of-tree test/pattern build

5 years agotest: add pattern compilation tests
Naveen Nathan [Sun, 6 Jan 2019 01:55:25 +0000 (12:55 +1100)]
test: add pattern compilation tests

Closes #1522

5 years agopattern: change Pattern to use SLIST_* macros 1526/head
Naveen Nathan [Mon, 7 Jan 2019 17:07:30 +0000 (04:07 +1100)]
pattern: change Pattern to use SLIST_* macros

Resolves #1224

5 years agoslang/color: parse direct-color values in 24bit hex format 1107/head
Roger Pau Monne [Sun, 18 Mar 2018 16:00:08 +0000 (16:00 +0000)]
slang/color: parse direct-color values in 24bit hex format

And render them using SLtt_set_color.

The way to use direct-color values in the config file is:

color status "#ff0000" "#630000"

Note that the '#' needs to be quoted in order to avoid discarding it
as a comment.

At the moment there's no way to use direct color values with ncurses,
so this feature is only supported when using slang.

Tested on iTerm 3.1.5 with s-lang 2.3.1a.

5 years agocolor: switch color types to uint32_t
Roger Pau Monne [Sun, 18 Mar 2018 16:00:08 +0000 (16:00 +0000)]
color: switch color types to uint32_t

So they can be used to store truecolor values which are 24bits.

5 years agonotmuch: close thread queries' hcache on SigInt (#1606)
Austin Ray [Fri, 22 Mar 2019 12:27:08 +0000 (08:27 -0400)]
notmuch: close thread queries' hcache on SigInt (#1606)

Ensure read_threads_query() behaves the same as read_mesgs_query() when
receiving SigInt.

5 years agodocs: update credits
Richard Russon [Fri, 22 Mar 2019 00:08:02 +0000 (00:08 +0000)]
docs: update credits

5 years agomaildir: remove unnecessary function
Richard Russon [Thu, 21 Mar 2019 15:47:08 +0000 (15:47 +0000)]
maildir: remove unnecessary function

5 years ago()s on ternary
Richard Russon [Wed, 20 Mar 2019 00:30:53 +0000 (00:30 +0000)]
()s on ternary

5 years agocomment summary bindings
Richard Russon [Tue, 19 Mar 2019 19:36:43 +0000 (19:36 +0000)]
comment summary bindings

5 years agocompress: rename command strings
Richard Russon [Tue, 19 Mar 2019 19:25:58 +0000 (19:25 +0000)]
compress: rename command strings

Distinguish them from other structs' members.

5 years agologging: improve range logic
Richard Russon [Mon, 18 Mar 2019 22:46:59 +0000 (22:46 +0000)]
logging: improve range logic

5 years agoMake NotMuch hcache-aware
Pietro Cerutti [Thu, 21 Mar 2019 12:30:36 +0000 (12:30 +0000)]
Make NotMuch hcache-aware

Closes: #1600
5 years agoFix table in man page
Alyssa Ross [Thu, 21 Mar 2019 10:44:48 +0000 (10:44 +0000)]
Fix table in man page

Previously:

    /usr/bin/tbl:<standard input>:824: unrecognised format `\'
    /usr/bin/tbl:<standard input>:824: giving up on this table

It seems the period after table headers must be on its own line.

5 years agomerge: trivial fixes
Richard Russon [Mon, 18 Mar 2019 22:14:12 +0000 (22:14 +0000)]
merge: trivial fixes

 * trivial ()s and NUL
 * pop: add typedef for pop_fetch_data()
 * doxy: add links
 * more NULs
 * fix typos
 * add checks to imap_account_match()
 * add check to imap_adata_find()
 * maildir: rename context functions
 * add flags to maildir_mbox_check()

5 years agoadd flags to maildir_mbox_check()
Richard Russon [Sun, 17 Mar 2019 22:00:31 +0000 (22:00 +0000)]
add flags to maildir_mbox_check()

5 years agomaildir: rename context functions
Richard Russon [Sun, 17 Mar 2019 21:35:11 +0000 (21:35 +0000)]
maildir: rename context functions

These functions now work with Mailboxes:
- maildir_add_to_context()
- maildir_move_to_context()

5 years agoadd check to imap_adata_find()
Richard Russon [Sat, 16 Mar 2019 13:02:52 +0000 (13:02 +0000)]
add check to imap_adata_find()

5 years agoadd checks to imap_account_match()
Richard Russon [Sat, 16 Mar 2019 12:42:57 +0000 (12:42 +0000)]
add checks to imap_account_match()

5 years agofix typos
Richard Russon [Fri, 15 Mar 2019 16:32:15 +0000 (16:32 +0000)]
fix typos

5 years agomore NULs
Richard Russon [Thu, 14 Mar 2019 00:17:41 +0000 (00:17 +0000)]
more NULs

5 years agodoxy: add links
Richard Russon [Tue, 12 Mar 2019 15:27:46 +0000 (15:27 +0000)]
doxy: add links

5 years agopop: add typedef for pop_fetch_data()
Richard Russon [Mon, 11 Mar 2019 23:18:18 +0000 (23:18 +0000)]
pop: add typedef for pop_fetch_data()

5 years agotrivial ()s and NUL
Richard Russon [Mon, 11 Mar 2019 19:54:10 +0000 (19:54 +0000)]
trivial ()s and NUL

5 years agoDo not prepend "attach_save_dir" to an absolute path
Pietro Cerutti [Fri, 15 Mar 2019 12:27:16 +0000 (12:27 +0000)]
Do not prepend "attach_save_dir" to an absolute path

This happens when saving multiple attachment. Assume `attach_save_dir = ./`.
When saving multiple attachments to `/tmp/att`, the proposed path
becomes `.//tmp/att`.

5 years agohcache: fix hash generator
Pietro Cerutti [Thu, 14 Mar 2019 11:04:44 +0000 (11:04 +0000)]
hcache: fix hash generator

`struct Header` was renamed to `struct Email`

Fixes: #1595
5 years agoadded: localtime_r/gmtime_r wrappers
Victor Fernandes [Thu, 28 Feb 2019 18:28:14 +0000 (19:28 +0100)]
added: localtime_r/gmtime_r wrappers

Fixes: #1571
5 years agoFix incorrect IMAP message purging bug.
Kevin McCarthy [Wed, 13 Mar 2019 04:06:11 +0000 (12:06 +0800)]
Fix incorrect IMAP message purging bug.

Thanks to Ivan Middleton @imiddle for the awesome bug report and
suggested fix.

The bug is most easily generated using Gmail with the $trash variable
set.

Deleted messages are first copied to the $trash folder.  If this is
set to "[Gmail]/Trash", then Gmail inteprets the copy as a "delete"
and sends EXPUNGE messages back for the messages.

cmd_parse_expunge() and cmd_parse_vanished() set the hdr->index to
INT_MAX, which subsequently an imap_expunge_mailbox() will use to
remove the messages from the local mailbox.

If we close the mailbox instead of sync it, Mutt will end up executing
the 'Deleted' flag setting before processing the expunge (because
"imap_check_mailbox() -> imap_cmd_finish()' doesn't set check_status
when we are closing).  The expunged messages will then be included in
the set of 'Deleted' flags.

Unfortunately, because the messages are sorted by *index* before
msgset generation, an incorrect range of UIDs will be sent, which
could easily include messages that should not be deleted.

This fix is a minimal fix for a stable bug fix  excluding
messages with the index set to INT_MAX from all msg sets.  Other
things that should be investigated in master are:

- sorting by UID instead of index before msgset generation
- unsetting the 'active' flag in cmd_parse_expunge() and
  cmd_parse_vanished() instead of waiting until imap_expunge_mailbox()
  to do so.

Co-authored-by: Richard Russon <rich@flatcap.org>
5 years agoFix opening IMAP messages when the body cache is disabled
Pietro Cerutti [Mon, 11 Mar 2019 17:18:02 +0000 (17:18 +0000)]
Fix opening IMAP messages when the body cache is disabled

Fixes #1574

5 years agomx: fix mbox double free
Richard Russon [Mon, 11 Mar 2019 13:53:01 +0000 (13:53 +0000)]
mx: fix mbox double free

Fixes: #1597
5 years agoFix pointer assignment to '\0' introduced in 495153
Pietro Cerutti [Mon, 11 Mar 2019 08:32:46 +0000 (08:32 +0000)]
Fix pointer assignment to '\0' introduced in 495153