]>
granicus.if.org Git - neomutt/log
Richard Russon [Wed, 20 Jun 2018 12:29:20 +0000 (13:29 +0100)]
tidy init.h values
Richard Russon [Wed, 20 Jun 2018 11:51:55 +0000 (12:51 +0100)]
strip down .gitignore
Get rid of all the things we don't see any more, like autoconf.
Ivan J [Tue, 19 Jun 2018 14:15:13 +0000 (16:15 +0200)]
Refactor resize.c into separate functions
Splits up mutt_resize_screen() into its separate function to improve readability.
Closes #1149
Richard Russon [Tue, 19 Jun 2018 00:00:51 +0000 (01:00 +0100)]
merge: minor improvements
* light tidy
* coverity: fix defects
* Put variable declaration inside case-break into braces.
* Trailing spaces
* Insert extern
* One definition is enough
* External linkage was not intended
* Remove doubled #include
* Redundant if clause
Bertram Scharpf [Mon, 18 Jun 2018 14:41:34 +0000 (16:41 +0200)]
Redundant if clause
Bertram Scharpf [Mon, 18 Jun 2018 06:56:24 +0000 (08:56 +0200)]
Remove doubled #include
Bertram Scharpf [Sun, 17 Jun 2018 14:13:04 +0000 (16:13 +0200)]
External linkage was not intended
Bertram Scharpf [Sun, 17 Jun 2018 14:11:20 +0000 (16:11 +0200)]
One definition is enough
Bertram Scharpf [Sun, 17 Jun 2018 13:48:05 +0000 (15:48 +0200)]
Insert extern
The variable was already defined in "git_ver.h".
Bertram Scharpf [Sun, 17 Jun 2018 13:47:02 +0000 (15:47 +0200)]
Trailing spaces
Bertram Scharpf [Sun, 17 Jun 2018 13:44:00 +0000 (15:44 +0200)]
Put variable declaration inside case-break into braces.
Richard Russon [Mon, 18 Jun 2018 12:24:08 +0000 (13:24 +0100)]
coverity: fix defects
Richard Russon [Thu, 14 Jun 2018 14:57:22 +0000 (15:57 +0100)]
light tidy
Richard Russon [Mon, 18 Jun 2018 11:01:28 +0000 (12:01 +0100)]
Fix for missing fingerprint
If GPGME doesn't return a key fingerprint, don't crash.
Richard Russon [Mon, 18 Jun 2018 10:11:22 +0000 (11:11 +0100)]
Fix off-by-one in index jump
In an index of 'n' items, you couldn't jump to 'n', only (n-1).
Fixes #1261
Richard Russon [Sun, 17 Jun 2018 09:18:24 +0000 (10:18 +0100)]
acutest: sync to upstream
This file is from the Acutest project:
- https://github.com/mity/acutest
Specifically, from commit: `
03885e23 `
Bertram Scharpf [Sun, 17 Jun 2018 09:06:58 +0000 (11:06 +0200)]
fcc_attach: Don't ask every time
Option fcc_attach used to ask in any case, if there were attachment nad if there weren't.
In case there is no attachment, there is no need to ask.
Richard Russon [Thu, 14 Jun 2018 18:12:33 +0000 (19:12 +0100)]
fix non-empty buffers
Insert a few `mutt_buffer_reset()`s.
Commit
9d6a2418 replaced a lot of `snprintf()`s with `mutt_buffer_printf()`.
Unfortunately, a few of the original lines were relying on `snprintf()`
writing over the beginning of the buffer.
Richard Russon [Wed, 13 Jun 2018 21:19:48 +0000 (22:19 +0100)]
doxygen: document mh functions
Richard Russon [Tue, 12 Jun 2018 20:40:51 +0000 (21:40 +0100)]
doxygen: document menu functions
Richard Russon [Tue, 12 Jun 2018 13:28:27 +0000 (14:28 +0100)]
drop memset for simple neomutt structs
Richard Russon [Tue, 12 Jun 2018 13:06:07 +0000 (14:06 +0100)]
drop memset for simple arrays
Richard Russon [Tue, 12 Jun 2018 12:52:45 +0000 (13:52 +0100)]
merge: more ncrypt tidying
* drop unused param in pgp_make_key_attachment()
* drop unused param in pgp_extract_keys_from_attachment_list()
* boolify need_passphrase
* boolify params
* boolify retval
Richard Russon [Tue, 12 Jun 2018 11:36:00 +0000 (12:36 +0100)]
boolify retval
Richard Russon [Tue, 12 Jun 2018 11:32:53 +0000 (12:32 +0100)]
boolify params
Richard Russon [Tue, 12 Jun 2018 11:08:26 +0000 (12:08 +0100)]
boolify need_passphrase
Richard Russon [Tue, 12 Jun 2018 10:55:52 +0000 (11:55 +0100)]
drop unused param in pgp_extract_keys_from_attachment_list()
The function wasn't being use to look for tagged messages.
So, it's been renamed to pgp_extract_key_from_attachment()
Richard Russon [Tue, 12 Jun 2018 10:41:22 +0000 (11:41 +0100)]
drop unused param in pgp_make_key_attachment()
It was unused by any of the callers of the API wrapper:
crypt_pgp_make_key_attachment().
Richard Russon [Tue, 12 Jun 2018 01:45:59 +0000 (02:45 +0100)]
merge: mass tidy-up of ncrypt
* drop unnec typedefs
* fold CryptModuleFunctions into CryptModuleSpecs
* drop redirect functions
* tidy headers
* doxygen: Document the encryption API
* doxygen: document api implementors
* unify the naming of all the ncrypt API functions
* doxygen: document the ncrypt api wrappers
Richard Russon [Tue, 12 Jun 2018 01:31:09 +0000 (02:31 +0100)]
doxygen: document the ncrypt api wrappers
Richard Russon [Mon, 11 Jun 2018 23:18:17 +0000 (00:18 +0100)]
unify the naming of all the ncrypt API functions
Richard Russon [Mon, 11 Jun 2018 22:35:05 +0000 (23:35 +0100)]
doxygen: document api implementors
Richard Russon [Mon, 11 Jun 2018 14:00:53 +0000 (15:00 +0100)]
doxygen: Document the encryption API
Richard Russon [Fri, 8 Jun 2018 15:09:21 +0000 (16:09 +0100)]
tidy headers
Richard Russon [Fri, 8 Jun 2018 16:50:32 +0000 (17:50 +0100)]
drop redirect functions
Richard Russon [Fri, 8 Jun 2018 14:31:52 +0000 (15:31 +0100)]
fold CryptModuleFunctions into CryptModuleSpecs
Richard Russon [Fri, 8 Jun 2018 14:30:10 +0000 (15:30 +0100)]
drop unnec typedefs
Richard Russon [Mon, 11 Jun 2018 12:46:27 +0000 (13:46 +0100)]
merge: minor improvements
* tidy bcache
* boolify function params
* doxy: add function comments
* fix comment order
* tidy hcache definitions
Richard Russon [Thu, 7 Jun 2018 12:07:47 +0000 (13:07 +0100)]
tidy hcache definitions
Richard Russon [Thu, 7 Jun 2018 12:04:11 +0000 (13:04 +0100)]
fix comment order
Richard Russon [Fri, 8 Jun 2018 14:13:17 +0000 (15:13 +0100)]
doxy: add function comments
Richard Russon [Fri, 8 Jun 2018 12:30:47 +0000 (13:30 +0100)]
boolify function params
Richard Russon [Fri, 8 Jun 2018 14:11:38 +0000 (15:11 +0100)]
tidy bcache
Richard Russon [Mon, 11 Jun 2018 10:46:46 +0000 (11:46 +0100)]
revert dodgy type changes
Some of the type changes I introduced in
309ecbf4 would cause problems
when strtol() and atoi() return errors.
Richard Russon [Sun, 10 Jun 2018 14:25:48 +0000 (15:25 +0100)]
fix trash mailbox
The second `for` loop was using the value of `i` as a starting place.
By changing the first loop, the second loop wasn't doing any work.
Fixes #1253
Richard Russon [Wed, 6 Jun 2018 15:03:38 +0000 (16:03 +0100)]
merge: update translations
* add missing 'Plural-Forms' statement
* sync translations
* trans: de-dupe an ssl string
* Update Czech translation
* Update ja translation
* Update Slovak translation
* Update zh_CN translation
* use consistent expression for memory streams
Richard Russon [Wed, 6 Jun 2018 15:02:27 +0000 (16:02 +0100)]
sync translations
Zero King [Tue, 5 Jun 2018 10:00:30 +0000 (10:00 +0000)]
Update zh_CN translation
Richard Russon [Tue, 5 Jun 2018 09:53:46 +0000 (10:53 +0100)]
use consistent expression for memory streams
Zero King [Tue, 5 Jun 2018 09:35:03 +0000 (09:35 +0000)]
Update zh_CN translation
Zero King [Tue, 5 Jun 2018 03:23:24 +0000 (03:23 +0000)]
Update zh_CN translation
Zero King [Mon, 4 Jun 2018 13:27:20 +0000 (13:27 +0000)]
Update zh_CN translation
Zero King [Sun, 3 Jun 2018 12:16:32 +0000 (12:16 +0000)]
Update ja translation
Zero King [Sat, 2 Jun 2018 03:36:44 +0000 (03:36 +0000)]
Update ja translation
Richard Russon [Fri, 1 Jun 2018 21:55:24 +0000 (22:55 +0100)]
trans: de-dupe an ssl string
David Sterba [Fri, 1 Jun 2018 10:37:25 +0000 (12:37 +0200)]
Update Slovak translation
Richard Russon [Thu, 31 May 2018 14:22:48 +0000 (15:22 +0100)]
add missing 'Plural-Forms' statement
Zero King [Thu, 31 May 2018 13:52:18 +0000 (13:52 +0000)]
Update ja translation
Zero King [Tue, 29 May 2018 12:50:30 +0000 (12:50 +0000)]
Update zh_CN translation
Zero King [Tue, 29 May 2018 12:33:32 +0000 (12:33 +0000)]
Update zh_CN translation
Zero King [Tue, 29 May 2018 12:07:56 +0000 (12:07 +0000)]
Update zh_CN translation
David Sterba [Tue, 29 May 2018 11:31:48 +0000 (13:31 +0200)]
Update Czech translation
Zero King [Tue, 29 May 2018 05:21:13 +0000 (05:21 +0000)]
Update zh_CN translation
Richard Russon [Wed, 6 Jun 2018 14:58:24 +0000 (15:58 +0100)]
merge: increase and unify buffer sizes
* adjust the size of some general buffers
* Use sizeof() rather than constants
* Create a large buffer for command strings
* Enlarge buffers from _POSIX_PATH_MAX to PATH_MAX
* Enlarge buffers from LONG_STRING to PATH_MAX
Richard Russon [Tue, 29 May 2018 15:52:55 +0000 (16:52 +0100)]
Enlarge buffers from LONG_STRING to PATH_MAX
Every buffer that has a filesystem path copied into it
Richard Russon [Tue, 29 May 2018 14:55:51 +0000 (15:55 +0100)]
Enlarge buffers from _POSIX_PATH_MAX to PATH_MAX
Every buffer that has a filesystem path copied into it
Richard Russon [Tue, 29 May 2018 14:38:06 +0000 (15:38 +0100)]
Create a large buffer for command strings
Richard Russon [Tue, 29 May 2018 14:32:05 +0000 (15:32 +0100)]
Use sizeof() rather than constants
Richard Russon [Wed, 6 Jun 2018 14:43:55 +0000 (15:43 +0100)]
merge: small improvements
* tidy handler.c
* tidy for loops
* insert {}s
* doxy: document buffy.c
* tidy return statements
* move new functions to reduce header deps
* add enum for 'set' commands
* tidy the regex types
* minor tidying
Richard Russon [Sat, 2 Jun 2018 17:12:56 +0000 (18:12 +0100)]
minor tidying
- rename parameters
- change member types
- fix doxygen typo
- make variable const
Richard Russon [Thu, 31 May 2018 00:36:06 +0000 (01:36 +0100)]
tidy the regex types
- remove unnecessary casts
- fix variable types
- remove once-used macro (REGEXEC)
Richard Russon [Sat, 2 Jun 2018 11:42:55 +0000 (12:42 +0100)]
add enum for 'set' commands
The 'set' family of commands are mutually exclusive, so change the
defines to an enumeration.
Richard Russon [Sat, 2 Jun 2018 22:37:17 +0000 (23:37 +0100)]
move new functions to reduce header deps
Having the `new` functions in the header creates a requirement on the
mutt library.
Richard Russon [Tue, 5 Jun 2018 11:00:45 +0000 (12:00 +0100)]
tidy return statements
Add ()s to return statements where the logic is non-trivial.
Richard Russon [Mon, 4 Jun 2018 23:24:38 +0000 (00:24 +0100)]
doxy: document buffy.c
Richard Russon [Sun, 3 Jun 2018 16:53:10 +0000 (17:53 +0100)]
insert {}s
Insert {}s where the conditional or body take up more than one line.
Richard Russon [Sat, 2 Jun 2018 23:40:53 +0000 (00:40 +0100)]
tidy for loops
- Add {}s where the body of a `for` loop isn't obvious.
- Add ()s where the logic isn't clear
Richard Russon [Sat, 2 Jun 2018 21:33:17 +0000 (22:33 +0100)]
tidy handler.c
- Move the function prototypes to a new file `handler.h`
- Rearrange the functions
There are no changes to the code.
Richard Russon [Wed, 6 Jun 2018 12:18:46 +0000 (13:18 +0100)]
tidy hcache
- Drop the typedefs -- they were only used once
- Move the backend list `HCACHE_BACKEND_LIST` into hcache.c
- Update all the source docs
Richard Russon [Wed, 6 Jun 2018 12:46:58 +0000 (13:46 +0100)]
merge: tidy the mailbox API
* unify parameter naming
* reorder functions
* rename functions
* rename implementation functions
* document all implementation functions
* swap mx_commit_message() params
* rename mx functions to match api
Richard Russon [Wed, 6 Jun 2018 01:27:15 +0000 (02:27 +0100)]
mx api: rename mx functions to match api
Richard Russon [Wed, 6 Jun 2018 01:16:05 +0000 (02:16 +0100)]
mx api: swap mx_commit_message() params
for consistency with the other api functions
Richard Russon [Wed, 6 Jun 2018 01:05:11 +0000 (02:05 +0100)]
mx api: document all implementation functions
Richard Russon [Tue, 5 Jun 2018 19:55:34 +0000 (20:55 +0100)]
mx api: rename implementation functions
Richard Russon [Tue, 5 Jun 2018 19:42:03 +0000 (20:42 +0100)]
mx api: rename functions
Richard Russon [Tue, 5 Jun 2018 19:22:55 +0000 (20:22 +0100)]
mx api: reorder functions
Richard Russon [Tue, 5 Jun 2018 19:10:34 +0000 (20:10 +0100)]
mx api: unify parameter naming
Pietro Cerutti [Mon, 4 Jun 2018 07:37:45 +0000 (07:37 +0000)]
Do not (try to) install / uninstall nonexistent man pages
See #1247
Richard Russon [Fri, 1 Jun 2018 10:01:51 +0000 (11:01 +0100)]
merge: drop pgpring references
* remove pgpring from docs
* remove last references to pgpring
* drop obsolete pgp notes
Richard Russon [Fri, 1 Jun 2018 09:47:58 +0000 (10:47 +0100)]
drop obsolete pgp notes
Richard Russon [Fri, 1 Jun 2018 09:47:04 +0000 (10:47 +0100)]
remove last references to pgpring
Bo YU [Fri, 1 Jun 2018 08:48:30 +0000 (16:48 +0800)]
remove pgpring from docs
Bo YU [Thu, 31 May 2018 08:44:55 +0000 (16:44 +0800)]
Remove PgpSignature
The PgpSignature is only used by the pgpring tool.
The pgpring tool is only needed by users of PGP2 and PGP5.
PGP5 is over twenty years old.
- remove PgpSignature from ncrypt/pgplib.[ch]
- remove pgppubring.c
- update Makefile.autosetup
- remove contrib/pgp2.rc
- remove contrib/pgp5.rc
- remove contrib/pgp6.rc
- update contrib/Makefile.autosetup
Mehdi ABAAKOUK [Wed, 30 May 2018 14:27:38 +0000 (16:27 +0200)]
pager: index must be rebuilt on MUTT_REOPENED
When we call mx_check_mailbox() and something change
header in Context->hdrs may have been updated.
In case of MUTT_NEW_MAIL, the page rebuild the index, and fixup
rd.index->current/max and extra->hdr. If the extra->hdr change
like when an above the opened one, or the selected one, is deleted, the
pager is closed.
In case of MUTT_REOPENED we do nothing. Making rd.index->current/max
wrong and extra->hdr perhaps pointing to something that doesn't exist
anymore.
This change makes the MUTT_REOPENED behavior similar to MUTT_NEW_MAIL.
Note that we this the pager have good change to be closed with the
mailbox is modified externally, just like the current MUTT_NEW_MAIL
behavior.
Closes #796
Pietro Cerutti [Wed, 30 May 2018 12:44:14 +0000 (13:44 +0100)]
Handle a BAD response in AUTH PLAIN w/o initial response (#1237)
The incorrect assumption was that the first line of an AUTH PLAIN w/o
I-R was always successful, so the client could write the second line and
end up with a readable socket that would be activated by the server
sending the final OK or BAD response.
If however the first line results in a BAD response already, the server
wouldn't write anything else and the client would be left polling for an
additional response that never arrives, effectively hanging the process.
Issue #1236
Pietro Cerutti [Tue, 29 May 2018 15:39:23 +0000 (15:39 +0000)]
Avoid regenerating hcache/hcversion.h after building objects in hcache
Specifying the hcache directory asqa dependency for hcache/hcversion.h
means that the latter will be regenerated whenever the hcache directory
is changed, such as when object files are written into it. The net
effect is that "make; make" regenerates hcache/hcversion.h twice.
This commit fixes this problem by explicitely creating the hcache
directory as part of the hcache/hcversion.h target.
Richard Russon [Tue, 29 May 2018 15:12:50 +0000 (16:12 +0100)]
adjust the size of some general buffers
Also, reduce the scope of the variables.
Pietro Cerutti [Tue, 29 May 2018 13:29:02 +0000 (14:29 +0100)]
Add the mutt_ch_check API (#1139)
* Add the mutt_ch_check API
This adds the mutt_ch_check API that can be used to check whether a
string can be converted between character sets. It is stricter than
mutt_ch_convert_string in that it doesn't apply any replacement chars to
unconvertible characters and doesn't return the converted string.
* Fix ICONV_CONST
* Fix arguments to iconv()
* Free the correct pointer
Pietro Cerutti [Tue, 29 May 2018 12:05:10 +0000 (13:05 +0100)]
Don't let info messages reset error messages' timeouts (#1234)
Issue #1100
Pietro Cerutti [Tue, 29 May 2018 08:13:11 +0000 (08:13 +0000)]
Fix typo in comment