]>
granicus.if.org Git - neomutt/log
Kevin McCarthy [Sun, 14 Apr 2019 17:46:36 +0000 (10:46 -0700)]
Rename mutt_buffer_adv_mktemp()
Remove buffer prefix since all callers now use this version.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sun, 14 Apr 2019 16:20:46 +0000 (09:20 -0700)]
Convert remaining mutt_adv_mktemp() calls to use buffer version
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Wed, 10 Apr 2019 01:54:20 +0000 (18:54 -0700)]
Rename to mutt_rfc1524_expand_filename()
Now that all callers pass a struct Buffer, the buffer prefix is not needed to
distinguish the parameter.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Wed, 10 Apr 2019 00:52:14 +0000 (17:52 -0700)]
Convert mutt_expand_fmt() and rfc1524_expand_filename() to struct Buffer
These two functions were tied together and so are converted at the
same time.
Note that rfc1524_expand_filename() had an off-by-one error for the
left hand size of the name template. It was only copying i-1 instead
of the i characters before %s.
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sun, 14 Oct 2018 21:35:21 +0000 (14:35 -0700)]
Convert mutt_print_attachment to use struct Buffer
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sun, 14 Oct 2018 21:02:20 +0000 (14:02 -0700)]
Convert mutt_view_attachment to use struct Buffer
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sun, 14 Oct 2018 20:02:20 +0000 (13:02 -0700)]
Convert mutt_edit_attachment to use struct Buffer
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sun, 14 Oct 2018 23:18:53 +0000 (16:18 -0700)]
Convert mutt_compose_attachment to use struct Buffer
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Sun, 14 Oct 2018 19:52:30 +0000 (12:52 -0700)]
Convert mutt_get_tmp_attachment to use struct Buffer
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Tue, 9 Apr 2019 22:20:51 +0000 (15:20 -0700)]
Convert mutt_expand_file_fmt() to accept struct Buffer dest parameter
mutt_expand_fmt() will be converted in the next commit, at the same
time as rfc1524_expand_filename().
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Tue, 9 Apr 2019 21:04:36 +0000 (14:04 -0700)]
Add mutt_buffer_quote_filename()
Convert almost all the callers to use the new function. alias.c usage
is a bit involved, so leave that for now.
Remove unneeded index while converting from mutt_quote_filename().
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Tue, 9 Apr 2019 02:51:01 +0000 (19:51 -0700)]
Convert mutt_check_simple() to accept a struct Buffer parameter
Co-authored-by: Richard Russon <rich@flatcap.org>
Kevin McCarthy [Mon, 8 Apr 2019 16:51:34 +0000 (09:51 -0700)]
Change autoview_handler() to use struct Buffer
This will allow the full conversion of rfc1524_expand_filename(), and
thereafter mutt_adv_mktemp() too.
Co-authored-by: Richard Russon <rich@flatcap.org>
Richard Russon [Tue, 30 Apr 2019 16:40:59 +0000 (17:40 +0100)]
merge: fix bind/macro translations
* icommands.c: Unify error messages about temp file creation
* icommands.c: Add hints about '%s' for the translators
* icommands.c: I18N: Fix piecemeal constructed translation string
* po: Update PO files due to icommands.c change
Reis Radomil [Mon, 29 Apr 2019 17:23:44 +0000 (17:23 +0000)]
po: Update PO files due to icommands.c change
Reis Radomil [Sun, 28 Apr 2019 14:32:34 +0000 (14:32 +0000)]
icommands.c: I18N: Fix piecemeal constructed translation string
Do not translate individual parts of a message and then combine them in
a printf-style way. This might work for English but miserably fails for
other languages. Instead use two or more complete sentences and pass
each of the sentences to the translator.
Fixes issue #1680
Reis Radomil [Sun, 28 Apr 2019 14:25:18 +0000 (14:25 +0000)]
icommands.c: Add hints about '%s' for the translators
Add comments which describe what the '%s' parameter in the translation
string is.
Reis Radomil [Sun, 28 Apr 2019 13:03:12 +0000 (13:03 +0000)]
icommands.c: Unify error messages about temp file creation
Unify all the messages stating that the temporary file could not be
created to include the filename of the temporary file.
Pietro Cerutti [Tue, 30 Apr 2019 15:25:01 +0000 (16:25 +0100)]
Respect collapse_all after limit (#1685)
Issue #1667
Pietro Cerutti [Tue, 30 Apr 2019 11:41:02 +0000 (11:41 +0000)]
Fix nullptr dereference
Fixes #1659
Richard Russon [Tue, 30 Apr 2019 10:39:04 +0000 (11:39 +0100)]
merge: add basic library tests
Add tests for:
- attach functions
- base64 functions
- body functions
- buffer functions
- charset functions
- date functions
- email functions
- envelope functions
- envlist functions
- file functions
- from functions
- hash functions
- history functions
- list functions
- logging functions
- mapping functions
- mbyte functions
- md5 functions
- memory functions
- parameter functions
- parse functions
- regex functions
- rfc2047 functions
- rfc2231 functions
- sha1 functions
- signal functions
- tags functions
- thread functions
- url functions
Pietro Cerutti [Tue, 30 Apr 2019 08:15:46 +0000 (08:15 +0000)]
test: add missing include
Pietro Cerutti [Tue, 30 Apr 2019 08:15:08 +0000 (08:15 +0000)]
test: fix compound initialization
Pietro Cerutti [Tue, 30 Apr 2019 08:13:01 +0000 (08:13 +0000)]
test: fix compound initialization
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libemail: fix url code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libemail: fix thread code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libemail: fix rfc2231 code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libemail: fix rfc2047 code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libemail: fix parse code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libemail: fix parameter code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libemail: fix envelope code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libemail: fix body code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libemail: fix attach code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libmutt: fix sha1 code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libmutt: fix regex code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix memory code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix md5 code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix mbyte code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix logging code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix list code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix history code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix hash code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix file code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix envlist code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix date code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix charset code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix buffer code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix base64 code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add url tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:47 +0000 (14:13 +0100)]
test: templates for url functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add thread tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for thread functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add tags tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:14:37 +0000 (14:14 +0100)]
test: templates for tags functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add rfc2231 tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for rfc2231 functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add rfc2047 tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for rfc2047 functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add parse tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for parse functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add parameter tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for parameter functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add from tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for from functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add envelope tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for envelope functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add email tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for email functions
Richard Russon [Mon, 29 Apr 2019 13:46:55 +0000 (14:46 +0100)]
test: add body tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for body functions
Richard Russon [Mon, 29 Apr 2019 13:46:55 +0000 (14:46 +0100)]
test: add attach tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for attach functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add signal tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:16 +0000 (12:37 +0100)]
test: templates for signal functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add sha1 tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for sha1 functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add regex tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for regex functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add memory tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for memory functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add md5 tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for md5 functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add mbyte tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for mbyte functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add mapping tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for mapping functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add logging tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for logging functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add list tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for list functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add history tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for history functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add hash tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for hash functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add file tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for file functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add envlist tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for envlist functions
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add date tests for degenerate cases
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for date functions