]>
granicus.if.org Git - neomutt/log
Richard Russon [Mon, 13 Nov 2017 00:39:27 +0000 (00:39 +0000)]
fix leak in mutt_select_file()
Richard Russon [Tue, 14 Nov 2017 00:39:58 +0000 (00:39 +0000)]
fix typos
Pietro Cerutti [Tue, 14 Nov 2017 15:39:47 +0000 (15:39 +0000)]
Make sure objects are not compiled before git_ver.h is generated
Richard Russon [Sat, 11 Nov 2017 23:40:23 +0000 (23:40 +0000)]
autosetup: expand --everything in `neomutt -v`
Richard Russon [Sun, 12 Nov 2017 02:26:13 +0000 (02:26 +0000)]
doxygen: document parameter functions
Richard Russon [Sun, 12 Nov 2017 02:22:06 +0000 (02:22 +0000)]
doxygen: document envelope functions
Richard Russon [Sun, 12 Nov 2017 02:20:43 +0000 (02:20 +0000)]
doxygen: document address functions
Richard Russon [Sat, 11 Nov 2017 23:20:57 +0000 (23:20 +0000)]
docs: add a sentence to quasi-delete docs
Pietro Cerutti [Thu, 9 Nov 2017 17:03:52 +0000 (17:03 +0000)]
Cleanup "SSL is unavailable" error in mutt_conn_find
- Remove the sleep
- Be more informative about the failed connection
Issue #934
Pietro Cerutti [Thu, 9 Nov 2017 08:50:52 +0000 (08:50 +0000)]
Sanitize mutt_copy_message* APIs
Richard Russon [Tue, 7 Nov 2017 15:11:18 +0000 (15:11 +0000)]
rename public functions with a leading underscore
Richard Russon [Tue, 7 Nov 2017 15:11:14 +0000 (15:11 +0000)]
rename static functions with a leading underscore
Edward Betts [Thu, 9 Nov 2017 09:38:53 +0000 (09:38 +0000)]
Correct spelling mistakes.
Richard Russon [Wed, 8 Nov 2017 16:47:29 +0000 (16:47 +0000)]
doc: display_filter escape sequence
Issue #897
Richard Russon [Wed, 1 Nov 2017 05:14:22 +0000 (05:14 +0000)]
fix: drop capability aliases
`CapabilityAliases` was a list of alternative names (just one) for IMAP
capability strings. This isn't necessary. We can put the strings in
`Capabilities` and fix the enumeration.
```c
enum ImapCaps
{
...
X_GM_EXT1,
X_GM_ALT1 = X_GM_EXT1,
...
};
```
Richard Russon [Wed, 1 Nov 2017 05:13:59 +0000 (05:13 +0000)]
bug: imap gmail search
The order of strings in Capabilities should match the enums in ImapCaps.
Pietro Cerutti [Wed, 8 Nov 2017 12:01:30 +0000 (12:01 +0000)]
Do not turn CRLF into LF when dealing with transfer-encoding=base64 (#920)
Fixes #722
Pietro Cerutti [Wed, 8 Nov 2017 12:01:21 +0000 (12:01 +0000)]
Check that OpenSSL md5 supports -r before using it (#915)
* Check that OpenSSL md5 supports -r before using it
Fixes #914
* Remove unused variable assignment
Fixes #914
Richard Russon [Tue, 7 Nov 2017 14:40:35 +0000 (14:40 +0000)]
merge: trivial code fixes/changes
* move test to the right place
* Remove unnecessary semicolon
* build: fix shadow variable warning
* refactor malloc/calloc
* ignore temporary build files
* fix copyright messages
* fix plain unsigned
* unused prototypes, whitespace
* Standardise spelling s/RfC/RFC/
* alias drop self
Richard Russon [Sat, 4 Nov 2017 14:31:54 +0000 (14:31 +0000)]
alias drop self
struct Alias began:
```c
struct Alias
{
struct Alias *self; /* XXX - ugly hack */
...
```
There didn't seem to be any reason for this pointer.
The two places that allocate a new Alias, immediately set the self
pointer to the object. No users of `self` test it first.
Richard Russon [Thu, 2 Nov 2017 14:29:21 +0000 (14:29 +0000)]
Standardise spelling s/RfC/RFC/
Richard Russon [Wed, 1 Nov 2017 04:24:02 +0000 (04:24 +0000)]
unused prototypes, whitespace
Richard Russon [Wed, 1 Nov 2017 02:29:43 +0000 (02:29 +0000)]
fix plain unsigned
Be specific. Replace `unsigned` with `unsigned int`.
Richard Russon [Wed, 1 Nov 2017 02:24:50 +0000 (02:24 +0000)]
fix copyright messages
Richard Russon [Sat, 28 Oct 2017 15:19:48 +0000 (16:19 +0100)]
ignore temporary build files
Richard Russon [Thu, 26 Oct 2017 15:32:41 +0000 (16:32 +0100)]
refactor malloc/calloc
Replace a malloc() and repeated memset()s with a single calloc().
Richard Russon [Thu, 26 Oct 2017 14:44:52 +0000 (15:44 +0100)]
build: fix shadow variable warning
Richard Russon [Tue, 24 Oct 2017 16:01:46 +0000 (17:01 +0100)]
Remove unnecessary semicolon
Richard Russon [Mon, 23 Oct 2017 11:37:19 +0000 (12:37 +0100)]
move test to the right place
Pietro Cerutti [Mon, 6 Nov 2017 13:54:25 +0000 (13:54 +0000)]
Respect --with-ssl path (#917)
Fixes #916
Richard Russon [Mon, 6 Nov 2017 13:19:57 +0000 (13:19 +0000)]
autosetup: fix check for missing sendmail
If sendmail wasn't on the path, then configure.autosetup defined
SENDMAIL=false
Pietro Cerutti [Mon, 6 Nov 2017 12:32:52 +0000 (12:32 +0000)]
Define NCURSES_WIDECHAR to require wide-char support from ncurses (#908)
See https://lists.gnu.org/archive/html/qemu-devel/2017-06/msg00634.html
for a discussion. This might be a solution for #589.
Pietro Cerutti [Sun, 5 Nov 2017 16:14:31 +0000 (16:14 +0000)]
Fix wrong extern declaration of globals in conn/conn_globals.h (#919)
* Revert "Move definition of conn/globals.h back into globals.h (#912)"
This reverts commit
fe03e2b126ca899f6fdd8276125bef3c66b6aef4 .
* Fix wrong extern definition of globals in conn/conn_globals.h
Issue #918
Pietro Cerutti [Sun, 5 Nov 2017 12:42:55 +0000 (12:42 +0000)]
Move definition of conn/globals.h back into globals.h (#912)
Fixed #907
Pietro Cerutti [Sun, 5 Nov 2017 12:42:43 +0000 (12:42 +0000)]
Make sure Url is initialized even when u->scheme == U_UNKNOWN (#911)
Fixed #910
Pietro Cerutti [Mon, 30 Oct 2017 15:44:04 +0000 (15:44 +0000)]
Enhance ifdef feature to support my_ vars (#906)
* Enhance ifdef feature to support my_ vars
Issue #905
* Use myvar_get, do not reinvent the wheel
Issue #905
Pietro Cerutti [Mon, 30 Oct 2017 09:22:15 +0000 (09:22 +0000)]
Fix build, apply clang-format
Richard Russon [Fri, 27 Oct 2017 16:34:13 +0000 (17:34 +0100)]
fix build for RHEL6
RHEL6 doesn't have the function sasl_client_done().
Richard Russon [Sat, 28 Oct 2017 16:19:31 +0000 (17:19 +0100)]
Add comment blocks to ~60 functions
Richard Russon [Sat, 28 Oct 2017 14:24:44 +0000 (15:24 +0100)]
build: Create a Connection Library (libconn)
There are no changes to the code, just rearrangements of functions.
Richard Russon [Sat, 28 Oct 2017 03:42:53 +0000 (04:42 +0100)]
merge: Document 70 IMAP functions
There are no code changes in this set.
* rearrange functions
* rename static functions
* fix some types
* comment blocks
Richard Russon [Mon, 23 Oct 2017 13:47:37 +0000 (14:47 +0100)]
comment blocks
Richard Russon [Tue, 24 Oct 2017 18:08:08 +0000 (19:08 +0100)]
fix some types
Richard Russon [Mon, 23 Oct 2017 13:46:09 +0000 (14:46 +0100)]
rename static functions
Richard Russon [Mon, 23 Oct 2017 13:39:53 +0000 (14:39 +0100)]
rearrange functions
No code changes
Static functions first
General public functions
Mailbox functions
Richard Russon [Fri, 27 Oct 2017 15:22:21 +0000 (16:22 +0100)]
NeoMutt 2017-10-27
Richard Russon [Fri, 27 Oct 2017 13:22:43 +0000 (14:22 +0100)]
update translations
Richard Russon [Fri, 27 Oct 2017 13:18:23 +0000 (14:18 +0100)]
clang-format
Richard Russon [Fri, 27 Oct 2017 13:03:00 +0000 (14:03 +0100)]
update mailmap
Richard Russon [Fri, 27 Oct 2017 12:49:48 +0000 (13:49 +0100)]
docs: update credits
Richard Russon [Fri, 27 Oct 2017 12:46:24 +0000 (13:46 +0100)]
update changelog
Richard Russon [Fri, 27 Oct 2017 12:13:28 +0000 (13:13 +0100)]
version 2017-10-27
Pietro Cerutti [Thu, 26 Oct 2017 16:08:41 +0000 (17:08 +0100)]
Wrap dirname(3) inside a mutt_dirname() function
* Wrap dirname(3) inside a mutt_dirname() function
This new function, opposite to the original dirname(3), does not modify
its argument and can be passed a const char * argument. This means that
callers mustn't copy their strings before calling dirname anymore.
Richard Russon [Thu, 26 Oct 2017 16:06:34 +0000 (17:06 +0100)]
autosetup: check for sys_siglist[]
Mehdi ABAAKOUK [Wed, 25 Oct 2017 16:10:53 +0000 (18:10 +0200)]
url: make notmuch query string parser generic (#812)
* Notmuch: remove custom UriTag linked list
Use STAILQ helper for UriTag linked list.
* url: make notmuch query string parser generic
Enhance the url.c to handle query strings.
This permits to remove the notmuch custom url parser.
* url: always parse query string
This removes url_parse_with_qs methods.
* fix some problems
- double free in nm_normalize_uri()
- set path to NULL in url_parse()
If we're setting all the other members, we should set the path too
- tidy some doxygen docs
* notmuch: remove useless starting / from db_filename
Richard Russon [Wed, 25 Oct 2017 15:56:21 +0000 (16:56 +0100)]
build: --enable-everything includes lua (#868)
Fixes #855
Pietro Cerutti [Wed, 25 Oct 2017 15:51:46 +0000 (16:51 +0100)]
Do not use CPPFLAGS / CFLAGS together with CC_FOR_BUILD (#882)
* Do not use CPPFLAGS / CFLAGS together with CC_FOR_BUILD
* Restore -std=c99 when building makedoc
* Make sure host-independent CFLAGS are passed to CC_FOR_BUILD
* Let CC_FOR_BUILD carry CFLAGS_FOR_BUILD, there's no reason to split them
Austin Ray [Sat, 21 Oct 2017 18:08:34 +0000 (14:08 -0400)]
Fix smart wrap in pager without breaking header
This commit addresses the issue of smart wrap not working if a line
started with whitespace.
This behavior was a result commit
f5e472b where smart wrap was disabled
on lines beginning with a space or tab to prevent headers from having
weird wrapping.
This commit addresses this issue by only applying smart wrapping if the
pager is displaying a message body. This allows smart_wrap to work
inside of a message and preserves what commit
f5e472b addressed.
Additionally, the buf[cnt] checks have been simplified with the use of
the ISSPACE() macro.
While fixing the smart wrap, it became apparent that the HEADER portion
of the pager was not properly updating when the wrap size was modified.
To address this, the wrap command was changed from R_PAGER to
R_PAGER_FLOW in init.h. This redraws the pager after wrap is modified.
Richard Russon [Sat, 21 Oct 2017 15:51:38 +0000 (16:51 +0100)]
call the folder-hook before saving to $record
Richard Russon [Tue, 24 Oct 2017 12:27:21 +0000 (13:27 +0100)]
fix actions on tagged messages (#823)
Many actions aren't performed on all tagged messages if the messages are
within a collapsed thread.
Richard Russon [Sat, 21 Oct 2017 00:08:24 +0000 (01:08 +0100)]
lib: move List and Queue into library
Pietro Cerutti [Mon, 23 Oct 2017 08:04:37 +0000 (08:04 +0000)]
Update autosetup to latest master branch
This includes the fix for a more fine-grained interaction between
$prefix, /etc, and /var.
See https://github.com/msteveb/autosetup/issues/31.
Larry Rosenman [Sun, 22 Oct 2017 02:24:31 +0000 (21:24 -0500)]
Issue 888: Fix imap mailbox flag logging
remove the blank line in the keywords logging, per @flatcap
use Buffer and related functions for mailbox flag print
Review comments from @flatcap on IRC
free() -> FREE()
revert free() -> FREE()
Correct use of FREE() per @flatcap
tabs->spaces, per @flatcap
clang-format
One log line for flags, per @gahr
Pietro Cerutti [Mon, 23 Oct 2017 11:50:37 +0000 (12:50 +0100)]
Fixes for endianness detection (#893)
* Move endian check after system extensions
GNU/Linux does not seem to define BYTE_ORDER in vanilla c99 mode.
Issue #883
* Make sure WORDS_BIGENDIAN is defined if big-endian
Issue #883
* Fix typo: s/Endianess/Endianness/
Issue #883
Richard Russon [Mon, 23 Oct 2017 07:53:51 +0000 (08:53 +0100)]
autosetup: delete makedoc on 'make clean' (#891)
Now that makedoc is always built, alter the 'make clean' target to
delete it.
Zero King [Sun, 22 Oct 2017 14:45:26 +0000 (14:45 +0000)]
docs: compressed and nntp features are now always built
Richard Russon [Sat, 14 Oct 2017 16:28:18 +0000 (17:28 +0100)]
initialise variables
These variables were passed uninitialised to a function which increments
them.
Discovered by Coverity after the 'if-assign' commits.
Richard Russon [Fri, 20 Oct 2017 14:47:08 +0000 (15:47 +0100)]
refactor out O_NOFOLLOW
O_NOFOLLOW is part of POSIX:2008 which isn't required for NeoMutt.
This refactoring streamlines the code.
Richard Russon [Mon, 16 Oct 2017 13:14:19 +0000 (14:14 +0100)]
use mutt_array_size()
Richard Russon [Sun, 8 Oct 2017 11:13:16 +0000 (12:13 +0100)]
minor code fixes
* Fix typos
* Fix function prototype
* Remove spurious semicolons
* Remove duplicate #include
Pietro Cerutti [Thu, 19 Oct 2017 11:34:13 +0000 (11:34 +0000)]
Update autosetup to latest master branch
Richard Russon [Wed, 18 Oct 2017 16:36:25 +0000 (17:36 +0100)]
doxygen: fix a few warnings
Pietro Cerutti [Thu, 19 Oct 2017 15:13:47 +0000 (15:13 +0000)]
Move mutt_rename_file to lib/file.[hc]
Pietro Cerutti [Thu, 19 Oct 2017 12:28:00 +0000 (12:28 +0000)]
Use host compiler to build the documentation
Issue #870
Pietro Cerutti [Fri, 20 Oct 2017 08:38:41 +0000 (08:38 +0000)]
Use bundled wcscasecmp if an implementation is not found in libc
Issue #879
Pietro Cerutti [Thu, 19 Oct 2017 11:55:48 +0000 (11:55 +0000)]
Use safe_calloc to initialize memory, simplify size_t overflow check
Richard Russon [Thu, 19 Oct 2017 11:54:05 +0000 (12:54 +0100)]
add extra checks to mutt_pattern_exec()
Anton Rieger [Wed, 18 Oct 2017 19:39:52 +0000 (21:39 +0200)]
bool: convert function parameters in nntp.h
* nntp_active_fetch()
* nntp_select_server()
Caller affected
* main()
* mutt_compose_menu()
* mutt_index_menu()
* _mutt_select_file()
* nntp_open_mailbox()
* nntp_post()
* nntp_select_server()
Austin Ray [Tue, 17 Oct 2017 21:23:36 +0000 (17:23 -0400)]
notmuch: virtual-mailboxes should accept a limit
* Fix issue #849
nm_uri_from_query() checks if there is a custom limit and includes it
in the URI. This keeps the limit intact after nm_normalize_uri()
terminates. Otherwise, the limit is stored within nm_normalize_uri()'s
temporary NmCtxData struct and lost upon termination.
Additionally, nm_normalize_uri() properly initializes tmp_ctxdata, which
sets the default db_limit value. This ensures db_limit is either
NmDbLimit or the custom limit. My earlier attempt to resolve #849 did
not initialize db_limit and suffered from random db_limit values.
The url_parse_query() check was removed from nm_normalize_uri() as
new_ctxdata() contains the same block of code. Error message numbering
has been updated the reflect the change.
* Remove redundant variable
Refactor per suggestions in code review to remove redundant variable and
update method signature.
The removal of the redundant variable prompt the need to change
tmp_ctxdata from NmCtxData to *NmCtxData. Calls to its fields have been
updated to reflect its new status.
* wipe the context before use
Richard Russon [Tue, 17 Oct 2017 03:29:52 +0000 (04:29 +0100)]
split up 'if' statements that assign and test (3)
Split 'if' statements that combine an assignment with a test.
e.g. from:
if ((rc = mutt_socket_readln(buf, bufsize, conn)) < 0)
To:
rc = mutt_socket_readln(buf, bufsize, conn);
if (rc < 0)
This makes the statements a little easier to read and debug.
Larry Rosenman [Tue, 17 Oct 2017 02:22:16 +0000 (21:22 -0500)]
English and other cleanups
Mehdi Abaakouk [Mon, 16 Oct 2017 13:19:06 +0000 (15:19 +0200)]
imap/notmuch tags: Add some documentation
Pietro Cerutti [Tue, 17 Oct 2017 08:24:29 +0000 (09:24 +0100)]
Let autosetup define PWD, do not unnecessarily try to create hcache dir (#847)
Issue #845
Mehdi Abaakouk [Mon, 16 Oct 2017 13:32:27 +0000 (15:32 +0200)]
tags: Show fake header for all backends
Closes #864
Pietro Cerutti [Mon, 16 Oct 2017 11:23:05 +0000 (11:23 +0000)]
Generate neomuttrc even if configured with --disable-doc
Issue #862
Kevin McCarthy [Sun, 15 Oct 2017 07:13:18 +0000 (15:13 +0800)]
Add polling for the IDLE command. (closes #3957)
Add $imap_poll_timeout poll for IDLE, since this is also a command
that will freeze after waking if $imap_idle is set.
Pietro Cerutti [Sat, 14 Oct 2017 13:08:23 +0000 (13:08 +0000)]
Allow to specify --docdir at configure time
Issue #857
Pietro Cerutti [Sat, 14 Oct 2017 12:16:54 +0000 (12:16 +0000)]
Fix neomutt.pot location, remove from git
Issue #853
Pietro Cerutti [Fri, 13 Oct 2017 14:08:08 +0000 (14:08 +0000)]
Fix update-po
Issue #853
Anton Rieger [Fri, 13 Oct 2017 11:41:16 +0000 (13:41 +0200)]
Bool: change functions in mx.h
* maildir_parse_message()
* maildir_parse_stream()
* mx_tags_is_supported()
* mx_update_tables()
Caller affected
* append_message()
* append_message()
* maildir_update_tables()
* mx_sync_mailbox()
* mx_update_tables()
Anton Rieger [Fri, 13 Oct 2017 11:07:47 +0000 (13:07 +0200)]
Refactor: Remove unused return type
* mutt_tunnel_socket_setup()
Richard Russon [Mon, 9 Oct 2017 12:39:26 +0000 (13:39 +0100)]
fix: prevent timezone overflow
On 32-bit arches it's easy to over-/under-flow the date.
We replace these with the max/min values allowed in a time_t.
When we encounter one of these dates, pretend it's UTC to prevent
another overflow.
Fixes #819
Fixes #820
Richard Russon [Sat, 7 Oct 2017 10:24:25 +0000 (11:24 +0100)]
split up 'if' statements that assign and test (2)
Split 'if' statements that combine an assignment with a test.
e.g. from:
if (!(adr = mutt_parse_adrlist(adr, buf)))
To:
adr = mutt_parse_adrlist(adr, buf);
if (!adr)
This makes the statements a little easier to read and debug.
Richard Russon [Sat, 7 Oct 2017 10:24:25 +0000 (11:24 +0100)]
split up 'if' statements that assign and test
Split 'if' statements that combine an assignment with a test.
e.g. from:
if ((pc = imap_get_flags(&(idata->flags), pc)) == NULL)
To
pc = imap_get_flags(&(idata->flags), pc);
if (!pc)
This makes the statements a little easier to read and debug.
Richard Russon [Sat, 14 Oct 2017 14:32:06 +0000 (15:32 +0100)]
merge: minor code cleanups
* move functions to library
* lib: move MIN/MAX macros
* simplify null checks
* kill preproc expansion laziness
* fix: variable type when using fread
* reduce scope of variables
Richard Russon [Wed, 4 Oct 2017 12:14:08 +0000 (13:14 +0100)]
reduce scope of variables
C99 allows a 'for' loop to define its variable.
This reduces the variable's scope making its use clearer.
Richard Russon [Tue, 10 Oct 2017 13:47:39 +0000 (14:47 +0100)]
fix: variable type when using fread
Richard Russon [Sat, 7 Oct 2017 01:19:56 +0000 (02:19 +0100)]
kill preproc expansion laziness
Replace macros which were shortcuts for code, e.g.
```
#define CUR_ENV Context->hdrs[i]->env
function(CUR_ENV);
CUR_ENV->from = "user";
#undef CUR_ENV
```
Richard Russon [Sat, 7 Oct 2017 20:37:34 +0000 (21:37 +0100)]
simplify null checks
Simplify checks:
* `if (x == NULL)` -> `if (!x)`
* `if (x != NULL)` -> `if (x)`
Richard Russon [Wed, 4 Oct 2017 18:35:07 +0000 (19:35 +0100)]
lib: move MIN/MAX macros
Remove a duplicate definition of the MIN/MAX macros.