]> granicus.if.org Git - neomutt/log
neomutt
5 years agoRename mutt_buffer_adv_mktemp()
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>
5 years agoConvert remaining mutt_adv_mktemp() calls to use buffer version
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>
5 years agoRename to mutt_rfc1524_expand_filename()
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>
5 years agoConvert mutt_expand_fmt() and rfc1524_expand_filename() to struct Buffer
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>
5 years agoConvert mutt_print_attachment to use struct Buffer
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>
5 years agoConvert mutt_view_attachment to use struct Buffer
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>
5 years agoConvert mutt_edit_attachment to use struct Buffer
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>
5 years agoConvert mutt_compose_attachment to use struct Buffer
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>
5 years agoConvert mutt_get_tmp_attachment to use struct Buffer
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>
5 years agoConvert mutt_expand_file_fmt() to accept struct Buffer dest parameter
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>
5 years agoAdd mutt_buffer_quote_filename()
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>
5 years agoConvert mutt_check_simple() to accept a struct Buffer parameter
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>
5 years agoChange autoview_handler() to use struct Buffer
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>
5 years agomerge: fix bind/macro translations
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

5 years agopo: Update PO files due to icommands.c change 1686/head
Reis Radomil [Mon, 29 Apr 2019 17:23:44 +0000 (17:23 +0000)]
po: Update PO files due to icommands.c change

5 years agoicommands.c: I18N: Fix piecemeal constructed translation string
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

5 years agoicommands.c: Add hints about '%s' for the translators
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.

5 years agoicommands.c: Unify error messages about temp file creation
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.

5 years agoRespect collapse_all after limit (#1685)
Pietro Cerutti [Tue, 30 Apr 2019 15:25:01 +0000 (16:25 +0100)]
Respect collapse_all after limit (#1685)

Issue #1667

5 years agoFix nullptr dereference
Pietro Cerutti [Tue, 30 Apr 2019 11:41:02 +0000 (11:41 +0000)]
Fix nullptr dereference

Fixes #1659

5 years agomerge: add basic library tests
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

5 years agotest: add missing include 1682/head
Pietro Cerutti [Tue, 30 Apr 2019 08:15:46 +0000 (08:15 +0000)]
test: add missing include

5 years agotest: fix compound initialization
Pietro Cerutti [Tue, 30 Apr 2019 08:15:08 +0000 (08:15 +0000)]
test: fix compound initialization

5 years agotest: fix compound initialization
Pietro Cerutti [Tue, 30 Apr 2019 08:13:01 +0000 (08:13 +0000)]
test: fix compound initialization

5 years agolibemail: fix url code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libemail: fix url code for degenerate cases

5 years agolibemail: fix thread code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libemail: fix thread code for degenerate cases

5 years agolibemail: fix rfc2231 code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libemail: fix rfc2231 code for degenerate cases

5 years agolibemail: fix rfc2047 code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libemail: fix rfc2047 code for degenerate cases

5 years agolibemail: fix parse code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libemail: fix parse code for degenerate cases

5 years agolibemail: fix parameter code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libemail: fix parameter code for degenerate cases

5 years agolibemail: fix envelope code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libemail: fix envelope code for degenerate cases

5 years agolibemail: fix body code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libemail: fix body code for degenerate cases

5 years agolibemail: fix attach code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libemail: fix attach code for degenerate cases

5 years agolibmutt: fix sha1 code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libmutt: fix sha1 code for degenerate cases

5 years agolibmutt: fix regex code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:30 +0000 (14:57 +0100)]
libmutt: fix regex code for degenerate cases

5 years agolibmutt: fix memory code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix memory code for degenerate cases

5 years agolibmutt: fix md5 code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix md5 code for degenerate cases

5 years agolibmutt: fix mbyte code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix mbyte code for degenerate cases

5 years agolibmutt: fix logging code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix logging code for degenerate cases

5 years agolibmutt: fix list code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix list code for degenerate cases

5 years agolibmutt: fix history code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix history code for degenerate cases

5 years agolibmutt: fix hash code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix hash code for degenerate cases

5 years agolibmutt: fix file code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix file code for degenerate cases

5 years agolibmutt: fix envlist code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix envlist code for degenerate cases

5 years agolibmutt: fix date code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix date code for degenerate cases

5 years agolibmutt: fix charset code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix charset code for degenerate cases

5 years agolibmutt: fix buffer code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix buffer code for degenerate cases

5 years agolibmutt: fix base64 code for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:57:29 +0000 (14:57 +0100)]
libmutt: fix base64 code for degenerate cases

5 years agotest: add url tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add url tests for degenerate cases

5 years agotest: templates for url functions
Richard Russon [Sun, 28 Apr 2019 13:13:47 +0000 (14:13 +0100)]
test: templates for url functions

5 years agotest: add thread tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add thread tests for degenerate cases

5 years agotest: templates for thread functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for thread functions

5 years agotest: add tags tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add tags tests for degenerate cases

5 years agotest: templates for tags functions
Richard Russon [Sun, 28 Apr 2019 13:14:37 +0000 (14:14 +0100)]
test: templates for tags functions

5 years agotest: add rfc2231 tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add rfc2231 tests for degenerate cases

5 years agotest: templates for rfc2231 functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for rfc2231 functions

5 years agotest: add rfc2047 tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add rfc2047 tests for degenerate cases

5 years agotest: templates for rfc2047 functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for rfc2047 functions

5 years agotest: add parse tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add parse tests for degenerate cases

5 years agotest: templates for parse functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for parse functions

5 years agotest: add parameter tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add parameter tests for degenerate cases

5 years agotest: templates for parameter functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for parameter functions

5 years agotest: add from tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add from tests for degenerate cases

5 years agotest: templates for from functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for from functions

5 years agotest: add envelope tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add envelope tests for degenerate cases

5 years agotest: templates for envelope functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for envelope functions

5 years agotest: add email tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add email tests for degenerate cases

5 years agotest: templates for email functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for email functions

5 years agotest: add body tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:55 +0000 (14:46 +0100)]
test: add body tests for degenerate cases

5 years agotest: templates for body functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for body functions

5 years agotest: add attach tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:55 +0000 (14:46 +0100)]
test: add attach tests for degenerate cases

5 years agotest: templates for attach functions
Richard Russon [Sun, 28 Apr 2019 13:13:46 +0000 (14:13 +0100)]
test: templates for attach functions

5 years agotest: add signal tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add signal tests for degenerate cases

5 years agotest: templates for signal functions
Richard Russon [Sun, 28 Apr 2019 11:37:16 +0000 (12:37 +0100)]
test: templates for signal functions

5 years agotest: add sha1 tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add sha1 tests for degenerate cases

5 years agotest: templates for sha1 functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for sha1 functions

5 years agotest: add regex tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add regex tests for degenerate cases

5 years agotest: templates for regex functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for regex functions

5 years agotest: add memory tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add memory tests for degenerate cases

5 years agotest: templates for memory functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for memory functions

5 years agotest: add md5 tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add md5 tests for degenerate cases

5 years agotest: templates for md5 functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for md5 functions

5 years agotest: add mbyte tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add mbyte tests for degenerate cases

5 years agotest: templates for mbyte functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for mbyte functions

5 years agotest: add mapping tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add mapping tests for degenerate cases

5 years agotest: templates for mapping functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for mapping functions

5 years agotest: add logging tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add logging tests for degenerate cases

5 years agotest: templates for logging functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for logging functions

5 years agotest: add list tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add list tests for degenerate cases

5 years agotest: templates for list functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for list functions

5 years agotest: add history tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add history tests for degenerate cases

5 years agotest: templates for history functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for history functions

5 years agotest: add hash tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add hash tests for degenerate cases

5 years agotest: templates for hash functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for hash functions

5 years agotest: add file tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add file tests for degenerate cases

5 years agotest: templates for file functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for file functions

5 years agotest: add envlist tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add envlist tests for degenerate cases

5 years agotest: templates for envlist functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for envlist functions

5 years agotest: add date tests for degenerate cases
Richard Russon [Mon, 29 Apr 2019 13:46:56 +0000 (14:46 +0100)]
test: add date tests for degenerate cases

5 years agotest: templates for date functions
Richard Russon [Sun, 28 Apr 2019 11:37:15 +0000 (12:37 +0100)]
test: templates for date functions