]> granicus.if.org Git - neomutt/log
neomutt
6 years agoRemove conversion of nbsp to space
Kevin McCarthy [Tue, 16 Oct 2018 23:04:57 +0000 (16:04 -0700)]
Remove conversion of nbsp to space

Keep the behavior of it not line-breaking, but don't change it to a
space character when displaying.  This is so copy-paste from the pager
will preserve the nbsp, which is semantically important in some
locales.

6 years agoadd Buffer fixup functions
Richard Russon [Mon, 26 Nov 2018 15:39:11 +0000 (15:39 +0000)]
add Buffer fixup functions

This is split out of another upstream commit

6 years agoAlways print mutt_buffer_pool_free() size debug output
Kevin McCarthy [Wed, 31 Oct 2018 19:19:56 +0000 (12:19 -0700)]
Always print mutt_buffer_pool_free() size debug output

So I can easily see the resulting size of the pool at the end of a
run.

6 years agoAdd mutt_buffer_adv_mktemp() transition function
Kevin McCarthy [Mon, 15 Oct 2018 02:02:47 +0000 (19:02 -0700)]
Add mutt_buffer_adv_mktemp() transition function

6 years agoAdd mutt_buffer_mktemp() transition function
Kevin McCarthy [Mon, 15 Oct 2018 01:36:08 +0000 (18:36 -0700)]
Add mutt_buffer_mktemp() transition function

This is self-contained and easy to translate, so instead just create
an alternate implementation using struct Buffer.

6 years agoclang-format
Richard Russon [Mon, 26 Nov 2018 11:00:28 +0000 (11:00 +0000)]
clang-format

6 years agoRename arguments of mutt_file_read_line for consistency
Ian Zimmerman [Sun, 25 Nov 2018 06:04:53 +0000 (22:04 -0800)]
Rename arguments of mutt_file_read_line for consistency

6 years agoAdd more convenient functions to map file lines
Ian Zimmerman [Thu, 22 Nov 2018 14:38:03 +0000 (06:38 -0800)]
Add more convenient functions to map file lines

6 years agocheck for Context
Richard Russon [Sun, 25 Nov 2018 22:28:55 +0000 (22:28 +0000)]
check for Context

6 years agomerge: doc: fixes
Richard Russon [Sun, 25 Nov 2018 21:22:00 +0000 (21:22 +0000)]
merge: doc: fixes

 * doc: correct pattern asterisk counts
 * doc: use non-breaking spaces before footnote asterisks
 * doc: add or remove missing or excess spacing respectively

6 years agodoc: add or remove missing or excess spacing respectively 1453/head
Joey Pabalinas [Sun, 25 Nov 2018 20:17:24 +0000 (10:17 -1000)]
doc: add or remove missing or excess spacing respectively

Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
6 years agodoc: use non-breaking spaces before footnote asterisks
Joey Pabalinas [Sun, 25 Nov 2018 20:05:55 +0000 (10:05 -1000)]
doc: use non-breaking spaces before footnote asterisks

Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
6 years agodoc: correct pattern asterisk counts
Joey Pabalinas [Sun, 25 Nov 2018 20:01:40 +0000 (10:01 -1000)]
doc: correct pattern asterisk counts

The patterns ~b, ~B, and ~h read each message in and should have 4
asterisks instead of 3 (3 refers to patterns with message number range
arguments). Add the missing asterisk to these patterns.

Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
6 years agodoc: change instances of GMail to Gmail for consistency
Joey Pabalinas [Sun, 25 Nov 2018 20:30:47 +0000 (10:30 -1000)]
doc: change instances of GMail to Gmail for consistency

Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
6 years agosplit up maildir/mh code
Richard Russon [Sat, 24 Nov 2018 01:51:14 +0000 (01:51 +0000)]
split up maildir/mh code

6 years agomove timespec functions to library
Richard Russon [Sun, 25 Nov 2018 15:32:48 +0000 (15:32 +0000)]
move timespec functions to library

6 years agoHow to run shell commands in global-hooks
Florian Wehner [Sat, 24 Nov 2018 13:52:42 +0000 (14:52 +0100)]
How to run shell commands in global-hooks

Addition is based on issue https://github.com/neomutt/neomutt/issues/1353

6 years agofactor out Context from maildir functions
Richard Russon [Fri, 23 Nov 2018 00:47:47 +0000 (00:47 +0000)]
factor out Context from maildir functions

6 years agomove backend-specific code
Austin Ray [Fri, 23 Nov 2018 12:41:55 +0000 (12:41 +0000)]
move backend-specific code

6 years agoimap: handle EXPUNGE and EXISTS during one pipeline 1449/head
Mehdi Abaakouk [Thu, 22 Nov 2018 08:13:23 +0000 (09:13 +0100)]
imap: handle EXPUNGE and EXISTS during one pipeline

Receiving EXPUNGE, VANISHED and EXISTS during the same imap pipelined
command is perfectly valid.

Currently when EXPUNGE/VANISHED is handled we ignore EXISTS, making
msn_index not updated. Then MUTT_REOPEN refreshes the mailbox where last
received messages are missing.

6 years agoDon't open the same mailbox twice
Mehdi Abaakouk [Wed, 21 Nov 2018 17:59:35 +0000 (18:59 +0100)]
Don't open the same mailbox twice

6 years agodoxygen: fix comments
Richard Russon [Thu, 22 Nov 2018 14:23:01 +0000 (14:23 +0000)]
doxygen: fix comments

[ci skip]

6 years agomerge: factor out Context
Richard Russon [Thu, 22 Nov 2018 13:46:30 +0000 (13:46 +0000)]
merge: factor out Context

 * notmuch: factor out Context
 * factor out Context from msg_padding_size()
 * factor out Context from tags_commit()
 * factor out Context from tags_edit()
 * factor out Context from mx_tags_is_supported()
 * light tidying
 * move Context flags to Mailbox
 * factor out Context from mx_msg_commit()
 * factor out Context from mutt_newsgroup_catchup()
 * factor out Context from mutt_newsgroup_uncatchup()
 * factor out Context from find_subject()
 * factor out Context from make_subj_hash()
 * factor out Context from check_subjects()
 * factor out Context from mbox_open_append()
 * factor out Context from mutt_messages_in_thread()
 * factor out Context from link_threads()
 * factor out Context from mx_toggle_write()
 * factor out Context from mutt_score_message()
 * factor out Context from maildir_update_flags()
 * factor out Context from mutt_check_rescore()
 * factor out Context from mutt_prepare_template()
 * factor out Context from append_message()
 * factor out Context from mutt_append_message()
 * factor out Context from mutt_set_flag_update()
 * factor out Context from mutt_copy_message_ctx()
 * factor out Context from mutt_save_message_ctx()
 * factor out Context from mutt_make_message_attach()
 * factor out Context from trash_append()
 * factor out Context from edit_or_view_one_message()

6 years agofactor out Context from edit_or_view_one_message()
Richard Russon [Thu, 22 Nov 2018 13:26:14 +0000 (13:26 +0000)]
factor out Context from edit_or_view_one_message()

6 years agofactor out Context from trash_append()
Richard Russon [Thu, 22 Nov 2018 13:24:40 +0000 (13:24 +0000)]
factor out Context from trash_append()

6 years agofactor out Context from mutt_make_message_attach()
Richard Russon [Thu, 22 Nov 2018 13:22:15 +0000 (13:22 +0000)]
factor out Context from mutt_make_message_attach()

6 years agofactor out Context from mutt_save_message_ctx()
Richard Russon [Thu, 22 Nov 2018 13:13:24 +0000 (13:13 +0000)]
factor out Context from mutt_save_message_ctx()

6 years agofactor out Context from mutt_copy_message_ctx()
Richard Russon [Thu, 22 Nov 2018 13:11:12 +0000 (13:11 +0000)]
factor out Context from mutt_copy_message_ctx()

6 years agofactor out Context from mutt_set_flag_update()
Richard Russon [Thu, 22 Nov 2018 13:07:17 +0000 (13:07 +0000)]
factor out Context from mutt_set_flag_update()

6 years agofactor out Context from mutt_append_message()
Richard Russon [Thu, 22 Nov 2018 13:01:49 +0000 (13:01 +0000)]
factor out Context from mutt_append_message()

6 years agofactor out Context from append_message()
Richard Russon [Thu, 22 Nov 2018 12:58:05 +0000 (12:58 +0000)]
factor out Context from append_message()

6 years agofactor out Context from mutt_prepare_template()
Richard Russon [Thu, 22 Nov 2018 12:49:34 +0000 (12:49 +0000)]
factor out Context from mutt_prepare_template()

6 years agofactor out Context from mutt_check_rescore()
Richard Russon [Thu, 22 Nov 2018 12:45:21 +0000 (12:45 +0000)]
factor out Context from mutt_check_rescore()

6 years agofactor out Context from maildir_update_flags()
Richard Russon [Thu, 22 Nov 2018 12:44:03 +0000 (12:44 +0000)]
factor out Context from maildir_update_flags()

6 years agofactor out Context from mutt_score_message()
Richard Russon [Thu, 22 Nov 2018 12:38:22 +0000 (12:38 +0000)]
factor out Context from mutt_score_message()

6 years agofactor out Context from mx_toggle_write()
Richard Russon [Thu, 22 Nov 2018 12:35:43 +0000 (12:35 +0000)]
factor out Context from mx_toggle_write()

6 years agofactor out Context from link_threads()
Richard Russon [Thu, 22 Nov 2018 12:28:22 +0000 (12:28 +0000)]
factor out Context from link_threads()

6 years agofactor out Context from mutt_messages_in_thread()
Richard Russon [Thu, 22 Nov 2018 12:27:40 +0000 (12:27 +0000)]
factor out Context from mutt_messages_in_thread()

6 years agofactor out Context from mbox_open_append()
Richard Russon [Thu, 22 Nov 2018 12:24:00 +0000 (12:24 +0000)]
factor out Context from mbox_open_append()

6 years agofactor out Context from check_subjects()
Richard Russon [Thu, 22 Nov 2018 12:17:30 +0000 (12:17 +0000)]
factor out Context from check_subjects()

6 years agofactor out Context from make_subj_hash()
Richard Russon [Thu, 22 Nov 2018 12:16:37 +0000 (12:16 +0000)]
factor out Context from make_subj_hash()

6 years agofactor out Context from find_subject()
Richard Russon [Thu, 22 Nov 2018 12:13:29 +0000 (12:13 +0000)]
factor out Context from find_subject()

6 years agofactor out Context from mutt_newsgroup_uncatchup()
Richard Russon [Thu, 22 Nov 2018 11:49:23 +0000 (11:49 +0000)]
factor out Context from mutt_newsgroup_uncatchup()

6 years agofactor out Context from mutt_newsgroup_catchup()
Richard Russon [Thu, 22 Nov 2018 11:48:29 +0000 (11:48 +0000)]
factor out Context from mutt_newsgroup_catchup()

6 years agofactor out Context from mx_msg_commit()
Richard Russon [Wed, 21 Nov 2018 15:18:16 +0000 (15:18 +0000)]
factor out Context from mx_msg_commit()

6 years agomove Context flags to Mailbox
Richard Russon [Wed, 21 Nov 2018 14:59:25 +0000 (14:59 +0000)]
move Context flags to Mailbox

6 years agolight tidying
Richard Russon [Wed, 21 Nov 2018 14:48:19 +0000 (14:48 +0000)]
light tidying

6 years agofactor out Context from mx_tags_is_supported()
Richard Russon [Wed, 21 Nov 2018 14:47:47 +0000 (14:47 +0000)]
factor out Context from mx_tags_is_supported()

6 years agofactor out Context from tags_edit()
Richard Russon [Wed, 21 Nov 2018 14:45:46 +0000 (14:45 +0000)]
factor out Context from tags_edit()

6 years agofactor out Context from tags_commit()
Richard Russon [Wed, 21 Nov 2018 14:26:00 +0000 (14:26 +0000)]
factor out Context from tags_commit()

6 years agofactor out Context from msg_padding_size()
Richard Russon [Wed, 21 Nov 2018 14:25:41 +0000 (14:25 +0000)]
factor out Context from msg_padding_size()

6 years agonotmuch: factor out Context
Richard Russon [Wed, 21 Nov 2018 14:18:48 +0000 (14:18 +0000)]
notmuch: factor out Context

6 years agoUse Mailbox instead of Context
Mehdi Abaakouk [Wed, 21 Nov 2018 08:51:04 +0000 (09:51 +0100)]
Use Mailbox instead of Context

This aims to remove Context from mutt_set_flag, to do so other function
signature have been changed too.

* mutt_set_flag_update
* mx_msg_open
* mx_msg_open_new
* mx_msg_close
* mutt_pattern_exec
* mutt_parse_mime_message
* mutt_set_header_color
* mutt_count_body_parts

6 years agomove ctx->tagged to mailbox->msg_tagged
Mehdi Abaakouk [Tue, 20 Nov 2018 22:58:03 +0000 (23:58 +0100)]
move ctx->tagged to mailbox->msg_tagged

6 years agoimap: remove unused define
Mehdi Abaakouk [Tue, 20 Nov 2018 17:20:17 +0000 (18:20 +0100)]
imap: remove unused define

6 years agoKeep adata on imap-logout-all
Pietro Cerutti [Tue, 20 Nov 2018 15:16:22 +0000 (15:16 +0000)]
Keep adata on imap-logout-all

The former call to `imap_adata_free((void **) adata);` caused an account to be around with no adata associated with it. This caused a crash when trying to access the account later on.

6 years agomerge: imap: refactor status functions
Richard Russon [Tue, 20 Nov 2018 11:05:17 +0000 (11:05 +0000)]
merge: imap: refactor status functions

 * imap: remove useless static int queued in imap_status()
 * imap: remove MESSAGES count optimization
 * imap: merge all STATUS function

6 years agoimap: merge all STATUS function 1432/head
Mehdi Abaakouk [Mon, 19 Nov 2018 13:38:49 +0000 (14:38 +0100)]
imap: merge all STATUS function

This change creates only one STATUS function.

6 years agoimap: remove MESSAGES count optimization
Mehdi Abaakouk [Mon, 19 Nov 2018 12:38:32 +0000 (13:38 +0100)]
imap: remove MESSAGES count optimization

This optimization is buggy, it puts sometimes mdata->messages out of
sync with m->msg_count;

This optimization links in an not obvious way the cmd_parse_status and
mx_mailbox_check().

This change removes this useless optimization and just always asks for
MESSAGES during STATUS.

6 years agoimap: remove useless static int queued in imap_status()
Mehdi Abaakouk [Mon, 19 Nov 2018 12:14:57 +0000 (13:14 +0100)]
imap: remove useless static int queued in imap_status()

Only imap_mbox_open() passes true to queue parameter of imap_status().
imap_mbox_open() takes care of flushing/droppping the imap pipeline
comamnds.

So we don't need this extra check about queued STATUS.

This change removes it.

6 years agoimap: move flags in ImapMboxData
Mehdi Abaakouk [Sun, 18 Nov 2018 19:39:36 +0000 (20:39 +0100)]
imap: move flags in ImapMboxData

Flags are a per mailbox thing.
So moves in ImapMboxData.

6 years agoimap: reduce complexity of imap_exec
Mehdi Abaakouk [Mon, 19 Nov 2018 14:17:27 +0000 (15:17 +0100)]
imap: reduce complexity of imap_exec

imap_exec flag IMAP_CMD_FAIL_OK is the only one that configure the
function return instead of the function behavior.

Also returned value of the function depends on the flag make hard to
understand what happen after imap_exec() is run.

This change removes this flags, instead we always returns the detailed
returns code, the caller have to deal with it.

Return code are always IMAP_EXEC_SUCCESS/IMAP_EXEC_ERROR/IMAP_EXEC_FATAL and
depends on if the command succeed, failure or if the imap connection
fail.

6 years agossl: don't shutdown broken connection
Mehdi Abaakouk [Tue, 20 Nov 2018 07:39:18 +0000 (08:39 +0100)]
ssl: don't shutdown broken connection

Closes #1440

6 years agoaccount.login is empty, use account.user instead 1436/head
Edward Betts [Mon, 19 Nov 2018 17:40:13 +0000 (17:40 +0000)]
account.login is empty, use account.user instead

6 years agoimap: tidy doc
Mehdi Abaakouk [Mon, 19 Nov 2018 06:56:47 +0000 (07:56 +0100)]
imap: tidy doc

6 years agomerge: trivial fixes
Richard Russon [Sun, 18 Nov 2018 17:41:31 +0000 (17:41 +0000)]
merge: trivial fixes

 * pop: remove sleeps on error paths
 * nntp: reorg cleanup
 * fix coverity defects
 * fix typos
 * mailbox tidy
 * boolify
 * rename vars
 * close attachments before closing logging
 * mbox: refactor for clarity

6 years agombox: refactor for clarity
Richard Russon [Sun, 18 Nov 2018 16:59:08 +0000 (16:59 +0000)]
mbox: refactor for clarity

6 years agoclose attachments before closing logging
Richard Russon [Sun, 18 Nov 2018 16:48:53 +0000 (16:48 +0000)]
close attachments before closing logging

6 years agorename vars
Richard Russon [Fri, 9 Nov 2018 12:25:05 +0000 (12:25 +0000)]
rename vars

6 years agoboolify
Richard Russon [Fri, 9 Nov 2018 12:00:54 +0000 (12:00 +0000)]
boolify

6 years agomailbox tidy
Richard Russon [Wed, 7 Nov 2018 19:15:16 +0000 (19:15 +0000)]
mailbox tidy

6 years agofix typos
Richard Russon [Sat, 17 Nov 2018 14:44:40 +0000 (14:44 +0000)]
fix typos

6 years agofix coverity defects
Richard Russon [Fri, 16 Nov 2018 18:49:15 +0000 (18:49 +0000)]
fix coverity defects

6 years agonntp: reorg cleanup
Richard Russon [Mon, 5 Nov 2018 22:54:20 +0000 (22:54 +0000)]
nntp: reorg cleanup

6 years agopop: remove sleeps on error paths
Richard Russon [Fri, 9 Nov 2018 12:04:17 +0000 (12:04 +0000)]
pop: remove sleeps on error paths

6 years agoimap: remove ImapCommandType
Mehdi Abaakouk [Sun, 18 Nov 2018 13:30:40 +0000 (14:30 +0100)]
imap: remove ImapCommandType

ImapAccountData->cmdtype can only be IMAP_CT_LIST
cmddata can only be set to an ImapList.

This change removes cmdtype and rename void *cmddata to ImapList
*cmdresult.

6 years agoImapStatus doesn't make sense since we have ImapMboxData.
Mehdi Abaakouk [Sat, 17 Nov 2018 17:39:32 +0000 (18:39 +0100)]
ImapStatus doesn't make sense since we have ImapMboxData.

Some attributes are duplicated a synced between strucuture.

This change moves all STATUS informations in ImapMboxData
and remove ImapStatus structure.

mboxcache is also removed because ImapMboxData stay in memory during the
whole Mailbox life, no more need to cache that.

6 years agonntp: remove unnec context reference
Richard Russon [Sat, 17 Nov 2018 22:54:32 +0000 (22:54 +0000)]
nntp: remove unnec context reference

6 years agoimap: move some adata attributes to mdata
Mehdi Abaakouk [Fri, 16 Nov 2018 14:05:53 +0000 (15:05 +0100)]
imap: move some adata attributes to mdata

6 years agonntp: fix url usage
Richard Russon [Fri, 16 Nov 2018 15:39:00 +0000 (15:39 +0000)]
nntp: fix url usage

6 years agofix leak in imap_status()
Richard Russon [Fri, 16 Nov 2018 14:49:36 +0000 (14:49 +0000)]
fix leak in imap_status()

6 years agofix leak in imap_ac_add()
Richard Russon [Fri, 16 Nov 2018 13:46:04 +0000 (13:46 +0000)]
fix leak in imap_ac_add()

6 years agoimap: fix browser
Richard Russon [Fri, 16 Nov 2018 16:34:27 +0000 (16:34 +0000)]
imap: fix browser

6 years agoAvoid segfault when an IMAP connection cannot be opened (II)
Pietro Cerutti [Fri, 16 Nov 2018 15:55:16 +0000 (15:55 +0000)]
Avoid segfault when an IMAP connection cannot be opened (II)

Part II of 6a2e9f, which broke edit-msg. It turns out that mx_ac_add()
is not required to be successful, e.g., when opening a temporary file.
This means we must be extra cautious and check that m->account->adata is
valid before using it

6 years agoMake sure error buffer is properly initialized
Pietro Cerutti [Fri, 16 Nov 2018 13:11:17 +0000 (13:11 +0000)]
Make sure error buffer is properly initialized

6 years agomerge: update translations
Richard Russon [Fri, 16 Nov 2018 13:07:49 +0000 (13:07 +0000)]
merge: update translations

 * Update zh_CN translation
 * Update Czech translation
 * More translations
 * Update lt_LT translations
 * Update Polish translation
 * update German translation
 * fix Polish format spec
 * Update lt_LT translation
 * Update Czech translation
 * Update Slovak translation
 * fixing typos in Polish translation
 * update filenames
 * sync translations

6 years agosync translations
Richard Russon [Fri, 16 Nov 2018 13:06:36 +0000 (13:06 +0000)]
sync translations

6 years agoupdate filenames
Richard Russon [Fri, 16 Nov 2018 13:03:37 +0000 (13:03 +0000)]
update filenames

6 years agofixing typos in Polish translation
Marcin Rajner [Tue, 13 Nov 2018 09:23:33 +0000 (10:23 +0100)]
fixing typos in Polish translation

6 years agoUpdate Slovak translation
David Sterba [Fri, 1 Jun 2018 10:37:25 +0000 (12:37 +0200)]
Update Slovak translation

6 years agoUpdate Czech translation
David Sterba [Thu, 1 Nov 2018 13:03:22 +0000 (14:03 +0100)]
Update Czech translation

6 years agoUpdate lt_LT translation
Marius Gedminas [Wed, 31 Oct 2018 14:51:53 +0000 (16:51 +0200)]
Update lt_LT translation

(I accidentally re-translated lt.po in master, and when I tried to
cherry-pick my translation onto the translate branch I noticed that I'd
translated a couple of messages incorrectly.)

6 years agofix Polish format spec
Richard Russon [Fri, 12 Oct 2018 16:26:29 +0000 (17:26 +0100)]
fix Polish format spec

6 years agoupdate German translation
ab [Fri, 12 Oct 2018 15:44:14 +0000 (17:44 +0200)]
update German translation

6 years agoUpdate Polish translation
Marcin Rajner [Tue, 9 Oct 2018 15:40:55 +0000 (17:40 +0200)]
Update Polish translation

6 years agoUpdate lt_LT translations
Marius Gedminas [Tue, 18 Sep 2018 10:19:50 +0000 (13:19 +0300)]
Update lt_LT translations

New messages, new fuzz, some old typos.

6 years agoMore translations
Winderickx Eli (p087068) [Thu, 13 Sep 2018 12:58:18 +0000 (14:58 +0200)]
More translations

6 years agoUpdate Czech translation
David Sterba [Fri, 7 Sep 2018 09:54:19 +0000 (11:54 +0200)]
Update Czech translation

6 years agoUpdate zh_CN translation
Zero King [Tue, 4 Sep 2018 03:41:35 +0000 (03:41 +0000)]
Update zh_CN translation

6 years agomerge: trivial fixes
Richard Russon [Fri, 16 Nov 2018 12:55:11 +0000 (12:55 +0000)]
merge: trivial fixes

 * doxygen: sort out Email descriptions
 * boolify params/retvals
 * imap: simplify some helper functions
 * remove unused member
 * imap: tiny refactor
 * doxygen: unify docs for private data
 * rename: _create to _new for simple allocs