]> granicus.if.org Git - neomutt/log
neomutt
7 years agoFix type mismatch in mutt_progress_init()
Jakub Wilk [Thu, 14 Dec 2017 15:23:38 +0000 (16:23 +0100)]
Fix type mismatch in mutt_progress_init()

Fixes the following GCC warning:

    curs_lib.c: In function ‘mutt_progress_init’:
    curs_lib.c:471:65: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat=]
           snprintf(progress->sizestr, sizeof(progress->sizestr), "%ld", progress->size);
                                                                     ^

7 years agoFix type mismatch in mutt_pretty_size()
Jakub Wilk [Thu, 14 Dec 2017 15:22:37 +0000 (16:22 +0100)]
Fix type mismatch in mutt_pretty_size()

Fixes the following GCC warnings:

    muttlib.c: In function ‘mutt_pretty_size’:
    config.h:55:19: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat=]
     #define OFF_T_FMT "%" PRId64
                       ^
    muttlib.c:614:22: note: in expansion of macro ‘OFF_T_FMT’
         snprintf(s, len, OFF_T_FMT "K", (n + 51) / 1024);
                          ^~~~~~~~~
    config.h:55:19: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat=]
     #define OFF_T_FMT "%" PRId64
                       ^
    muttlib.c:621:22: note: in expansion of macro ‘OFF_T_FMT’
         snprintf(s, len, OFF_T_FMT "M", (n + 52428) / 1048576);
                          ^~~~~~~~~

7 years agoAdd spaces after "References:" and "In-Reply-To:"
Jakub Wilk [Thu, 14 Dec 2017 15:20:24 +0000 (16:20 +0100)]
Add spaces after "References:" and "In-Reply-To:"

7 years agoContext might be NULL - avoid dereferencing it
Pietro Cerutti [Thu, 14 Dec 2017 07:47:31 +0000 (07:47 +0000)]
Context might be NULL - avoid dereferencing it

Issue #999

7 years agoReview of "Bring consistency among sizes"
Pietro Cerutti [Wed, 13 Dec 2017 13:17:52 +0000 (13:17 +0000)]
Review of "Bring consistency among sizes"

Issue #928

7 years agoBring consistency among sizes
Justin Vasel [Wed, 29 Nov 2017 18:00:44 +0000 (13:00 -0500)]
Bring consistency among sizes

There are instances in the code that refer to lengths or sizes of strings and
buffers and the like, but they are not typed in a consistent manner. The purpose
of this commit is to provide some consistency to these scenarios by changing
their type from unsigned int, int, unsigned long, etc. to size_t.

In general, these situations were identified by globally searching the code
for patterns along the lines of:
(unsigned|unsigned int|int|long) (len|blen|olen|length|l|size)
and changing the type to size_t on a case-by-case basis.

The following situations were explicitly ignored:

- autosetup/jimsh0.c, because it appears to be third-party code

- inputs to function calls relating to ssl and sasl, because they don't take
size_t as inputs and recasting in the function call didn't seem worth the
increased messiness

- for loop indices, because in some cases unsigned indices can breed bugs

This commit takes care of most obvious cases. There may certainly be subtler
ones that were missed in this pass.

Resolves: #928

7 years agofix variable names
Richard Russon [Tue, 12 Dec 2017 21:13:43 +0000 (21:13 +0000)]
fix variable names

7 years agoRevert "Don't clear the macro buffer during startup"
Richard Russon [Wed, 13 Dec 2017 15:19:05 +0000 (15:19 +0000)]
Revert "Don't clear the macro buffer during startup"

Fixes #997

This reverts commit baf6ebbfc939278efb1895bed47e553ea7de19b1.

7 years agoFix SMTP RET parameter which was substituted by rc (#996)
Pietro Cerutti [Wed, 13 Dec 2017 14:55:02 +0000 (14:55 +0000)]
Fix SMTP RET parameter which was substituted by rc (#996)

Fixes #995

7 years agoConfigure number of directory components displayed in sidebar
Justin Vasel [Thu, 30 Nov 2017 04:29:58 +0000 (23:29 -0500)]
Configure number of directory components displayed in sidebar

In cases of a complex maildir directory structures, one may want to hide the
highest `N` directories from display in the sidebar to keep things looking
clean and legible.

This commit introduces a new config parameter, `sidebar_component_depth`, which
takes a positive integer as its value.

For example, suppose I have the following directory structure:
```
Inbox
dir1/dir2
dir1/dir2/dir3/sushi
dir1/dir2/dir3/neomutt/developer
```

By setting `sidebar_component_depth=2` in one's rc file, the sidebar will
display these maildirs in the following way:
```
Inbox
dir2
dir3/sushi
dir3/neomutt/developer
```

As seen in this example, the two highest directories have been truncated from
each path except in the case when there are `<= N` subdirectories, in which
case the bottom-most directory is displayed.

This parameter has a default value of 0, which disables the feature.

A previously-existing option, `sidebar_short_path`, provides similar behavior,
but truncates all except the bottom-most directories. When that option is
enabled, `sidebar_component_depth` is ignored.

Issue #813

7 years agoKill autotools (#994)
Pietro Cerutti [Tue, 12 Dec 2017 12:22:47 +0000 (12:22 +0000)]
Kill autotools (#994)

7 years agoman: "mutt" --> "neomutt"
Tobias Angele [Mon, 11 Dec 2017 15:32:12 +0000 (16:32 +0100)]
man: "mutt" --> "neomutt"

* man: "mutt" --> "neomutt"
* man: fix debug file and bug tracking system
* man: fix file reference
* Makefile uses lower-case files.
* man: update bugs section, update references

7 years agoNeoMutt 2017-12-08 neomutt-20171208
Richard Russon [Fri, 8 Dec 2017 16:53:17 +0000 (16:53 +0000)]
NeoMutt 2017-12-08

7 years agoupdate translations
Richard Russon [Fri, 8 Dec 2017 16:47:49 +0000 (16:47 +0000)]
update translations

7 years agoclang-format
Richard Russon [Fri, 8 Dec 2017 16:37:39 +0000 (16:37 +0000)]
clang-format

7 years agoupdate mailmap
Richard Russon [Fri, 8 Dec 2017 16:32:29 +0000 (16:32 +0000)]
update mailmap

7 years agoupdate credits
Richard Russon [Fri, 8 Dec 2017 15:36:58 +0000 (15:36 +0000)]
update credits

7 years agoupdate changelog
Richard Russon [Fri, 8 Dec 2017 15:36:51 +0000 (15:36 +0000)]
update changelog

7 years agoversion 2017-12-08
Richard Russon [Fri, 8 Dec 2017 13:58:31 +0000 (13:58 +0000)]
version 2017-12-08

7 years agoUpdate autosetup to latest master
Julian Andres Klode [Sun, 26 Nov 2017 11:37:25 +0000 (12:37 +0100)]
Update autosetup to latest master

Update autosetup to commit b5a0e85d87a46d931ff1e4f8e5de8cd5307f93ba
- this makes it accept --enable-silent-rules and --disable-silent-rules
amongst other things, as requested in
https://github.com/msteveb/autosetup/issues/33

7 years agoInstall stuff to $(PACKAGE) in $(libexecdir), not $(libdir)
Julian Andres Klode [Sun, 26 Nov 2017 11:30:48 +0000 (12:30 +0100)]
Install stuff to $(PACKAGE) in $(libexecdir), not $(libdir)

This does not really make a huge difference, probably, but it
is infinitely more correct.

7 years agoDefine prefix in Makefile.autosetup
Julian Andres Klode [Sun, 26 Nov 2017 11:26:30 +0000 (12:26 +0100)]
Define prefix in Makefile.autosetup

Debian tools and probably other tools too pass arguments like
--mandir=\${prefix}/share/man
to configure. The prefix survives the output into the Makefile,
therefore, we need to define prefix in the Makefile too.

7 years agobuild: moved the check for idn before the check for notmuch
Andreas Rammhold [Sun, 3 Dec 2017 22:28:04 +0000 (23:28 +0100)]
build: moved the check for idn before the check for notmuch

(original version from @gahr see [1])

[1] https://github.com/neomutt/neomutt/pull/771#issuecomment-342147768

7 years agoFix segfault when pipe'ing a deleted message
Pietro Cerutti [Thu, 28 Sep 2017 12:06:51 +0000 (12:06 +0000)]
Fix segfault when pipe'ing a deleted message

Fixes #796

7 years agoSupport reading FQDN from mailname files
Pietro Cerutti [Fri, 1 Dec 2017 15:49:15 +0000 (15:49 +0000)]
Support reading FQDN from mailname files

Currently, we support reading from /etc/mailname and /etc/mail/mailname.
Adding support for more files is trivial. Reading these files is only
done if NeoMutt was configured without the --with-domain option.

Issue #974

7 years agorestore folder settings after folder-hook
Richard Russon [Sun, 3 Dec 2017 00:00:38 +0000 (00:00 +0000)]
restore folder settings after folder-hook

Issue #866 (4aaf1ef7) fixed a problem where the folder-hook wasn't being
called for the 'fcc' (sent mail folder).

If we run the folder-hook for the fcc folder, we must run the
folder-hook for the current folder afterwards.

Fixes #977

7 years agomerge: minor code improvements
Richard Russon [Thu, 7 Dec 2017 12:21:22 +0000 (12:21 +0000)]
merge: minor code improvements

 * fix camelCase variable names
 * rename variables starting with a underscore
 * minor code fixes
 * return early where possible

7 years agoreturn early where possible
Richard Russon [Mon, 4 Dec 2017 23:46:04 +0000 (23:46 +0000)]
return early where possible

7 years agominor code fixes
Richard Russon [Sun, 3 Dec 2017 02:39:14 +0000 (02:39 +0000)]
minor code fixes

7 years agorename variables starting with a underscore
Richard Russon [Wed, 6 Dec 2017 14:25:02 +0000 (14:25 +0000)]
rename variables starting with a underscore

7 years agofix camelCase variable names
Richard Russon [Wed, 6 Dec 2017 00:36:00 +0000 (00:36 +0000)]
fix camelCase variable names

Local variable names should be lower case (with optional underscores).

7 years agoadd sleep after SMTP error
Richard Russon [Mon, 4 Dec 2017 14:29:06 +0000 (14:29 +0000)]
add sleep after SMTP error

Fixes #982

7 years agomerge: add charset functions to libmutt
Richard Russon [Mon, 4 Dec 2017 14:53:57 +0000 (14:53 +0000)]
merge: add charset functions to libmutt

 * move charset functions to libmutt
 * standardise the naming of the charset functions
 * add doxygen comments

7 years agoadd doxygen comments
Richard Russon [Sun, 26 Nov 2017 23:24:03 +0000 (23:24 +0000)]
add doxygen comments

7 years agostandardise the naming of the charset functions
Richard Russon [Sun, 26 Nov 2017 23:11:52 +0000 (23:11 +0000)]
standardise the naming of the charset functions

7 years agomove charset functions to libmutt
Richard Russon [Wed, 22 Nov 2017 17:26:52 +0000 (17:26 +0000)]
move charset functions to libmutt

7 years agogithub: make removal of irrelevant sections easier
toogley [Sat, 2 Dec 2017 19:51:50 +0000 (20:51 +0100)]
github: make removal of irrelevant sections easier

When users remove the irrelevant things for their issue, they often
leave the indentation of the nested list. That causes github to render
those lines as code instead of markdown list items.

7 years agoFixup smart modify-labels-then-hide for !tag case (#975)
Julian Andres Klode [Fri, 1 Dec 2017 12:32:38 +0000 (13:32 +0100)]
Fixup smart modify-labels-then-hide for !tag case (#975)

The code used to automatically handle setting the quasi delete
state to whether the message is still visible after performing
the change.

This was broken for the !tag case in

commit 7d151fd0919f6cc7ba9cdc1e7de90697c66dce43
Author: Mehdi Abaakouk <sileht@sileht.net>
Date:   Tue Feb 21 10:50:35 2017 +0100

    Share label editing between imap/notmuch

Which replaced the !still_visible with simply true.

7 years agomodify gpg.rc to accommodate GPG 2.1 changes 949/head
Bletchley Park [Sun, 12 Nov 2017 17:31:57 +0000 (18:31 +0100)]
modify gpg.rc to accommodate GPG 2.1 changes

7 years agoremove debug/logging from makefile/configure 625/head
toogley [Sat, 10 Jun 2017 20:25:35 +0000 (22:25 +0200)]
remove debug/logging from makefile/configure

7 years agodrop #ifdef DEBUG
toogley [Sat, 10 Jun 2017 20:25:35 +0000 (22:25 +0200)]
drop #ifdef DEBUG

7 years agoDon't clear the macro buffer during startup 818/head
Richard Russon [Wed, 4 Oct 2017 01:07:20 +0000 (02:07 +0100)]
Don't clear the macro buffer during startup

* Move the folder hook after the folder has been opened
* Prevent a SIGWINCH during startup from clearing the macro buffer

Fixes #227

7 years agobuild: restore externs 937/head
Richard Russon [Thu, 9 Nov 2017 12:35:02 +0000 (12:35 +0000)]
build: restore externs

The MacOS build failed, with linker errors for libconn's global
variables.

By initialising them, we hope to force the linker to use them.

7 years agoFix reference to neomuttrc
Pietro Cerutti [Wed, 29 Nov 2017 10:55:26 +0000 (10:55 +0000)]
Fix reference to neomuttrc

7 years agomerge: refactor and document email functions
Richard Russon [Wed, 29 Nov 2017 01:13:47 +0000 (01:13 +0000)]
merge: refactor and document email functions

 * move functions to mutt_address.c
 * rename rfc822.c to address.c
 * move rfc822_new_address to address.c
 * standardise the address functions
 * standardise the envelope functions
 * standardise the parameter functions
 * move address functions
 * move envelope function
 * move parameter functions
 * rename mutt_tags to tags
 * add comments
 * rename rfc822 constants
 * minor tidying/boolification
 * move statics first

7 years agomove statics first
Richard Russon [Wed, 29 Nov 2017 01:13:11 +0000 (01:13 +0000)]
move statics first

7 years agominor tidying/boolification
Richard Russon [Wed, 29 Nov 2017 00:13:59 +0000 (00:13 +0000)]
minor tidying/boolification

7 years agorename rfc822 constants
Richard Russon [Tue, 28 Nov 2017 23:25:50 +0000 (23:25 +0000)]
rename rfc822 constants

7 years agoadd comments
Richard Russon [Tue, 28 Nov 2017 22:48:08 +0000 (22:48 +0000)]
add comments

7 years agorename mutt_tags to tags
Richard Russon [Tue, 28 Nov 2017 21:44:33 +0000 (21:44 +0000)]
rename mutt_tags to tags

7 years agomove parameter functions
Richard Russon [Tue, 28 Nov 2017 20:42:22 +0000 (20:42 +0000)]
move parameter functions

7 years agomove envelope function
Richard Russon [Tue, 28 Nov 2017 20:38:45 +0000 (20:38 +0000)]
move envelope function

7 years agomove address functions
Richard Russon [Tue, 28 Nov 2017 20:21:44 +0000 (20:21 +0000)]
move address functions

7 years agostandardise the parameter functions
Richard Russon [Tue, 28 Nov 2017 19:36:31 +0000 (19:36 +0000)]
standardise the parameter functions

7 years agostandardise the envelope functions
Richard Russon [Tue, 28 Nov 2017 19:25:12 +0000 (19:25 +0000)]
standardise the envelope functions

7 years agostandardise the address functions
Richard Russon [Tue, 28 Nov 2017 19:08:21 +0000 (19:08 +0000)]
standardise the address functions

7 years agomove rfc822_new_address to address.c
Richard Russon [Tue, 28 Nov 2017 15:25:35 +0000 (15:25 +0000)]
move rfc822_new_address to address.c

7 years agorename rfc822.c to address.c
Richard Russon [Tue, 28 Nov 2017 15:16:06 +0000 (15:16 +0000)]
rename rfc822.c to address.c

7 years agomove functions to mutt_address.c
Richard Russon [Tue, 28 Nov 2017 15:01:16 +0000 (15:01 +0000)]
move functions to mutt_address.c

7 years agoDon't do I/O in a signal handler
Richard Russon [Tue, 28 Nov 2017 13:13:23 +0000 (13:13 +0000)]
Don't do I/O in a signal handler

7 years agoRemove unused parameters
Richard Russon [Tue, 28 Nov 2017 11:53:18 +0000 (11:53 +0000)]
Remove unused parameters

* curs_main.c main_change_folder(flags)
* imap/imap.c imap_buffy_check(force)
* init.c mutt_nm_tag_complete(pos)
* ncrypt/crypt_gpgme.c verify_sender(protocol)
* recvcmd.c attach_forward_bodies(flags)
* mutt/file.c mutt_file_lock(path)
* mutt/file.c mutt_file_unlock(path)
* recvcmd.c mutt_attach_bounce(hdr)
* recvcmd.c mutt_attach_resend(hdr)
* recvcmd.c attach_forward_msgs(hdr)
* recvcmd.c attach_include_reply(flags)
* send.c mutt_make_misc_reply_headers(hdr,ctx)
* sendlib.c encode_8bit(istext)

7 years agoAdd the missing debug macro
Richard Russon [Mon, 27 Nov 2017 16:23:03 +0000 (16:23 +0000)]
Add the missing debug macro

The vital macro got lost from the earlier commit.

7 years agoFix stdout + stderr redirection in hcachever.sh
Pietro Cerutti [Mon, 27 Nov 2017 16:31:11 +0000 (16:31 +0000)]
Fix stdout + stderr redirection in hcachever.sh

7 years agomerge: more additions to libmutt
Richard Russon [Mon, 27 Nov 2017 00:09:26 +0000 (00:09 +0000)]
merge: more additions to libmutt

 * move signal functions to libmutt
 * standardise the naming of the signal functions
 * move exit syslist to libmutt
 * factor out ICONV_CONST from headers

7 years agofactor out ICONV_CONST from headers
Richard Russon [Wed, 22 Nov 2017 22:45:12 +0000 (22:45 +0000)]
factor out ICONV_CONST from headers

7 years agomove exit syslist to libmutt
Richard Russon [Fri, 24 Nov 2017 01:59:47 +0000 (01:59 +0000)]
move exit syslist to libmutt

7 years agostandardise the naming of the signal functions
Richard Russon [Thu, 23 Nov 2017 16:06:13 +0000 (16:06 +0000)]
standardise the naming of the signal functions

7 years agomove signal functions to libmutt
Richard Russon [Thu, 23 Nov 2017 02:32:06 +0000 (02:32 +0000)]
move signal functions to libmutt

7 years agodebug: Strip function names from debug messages 950/head
Richard Russon [Sun, 12 Nov 2017 20:33:32 +0000 (20:33 +0000)]
debug: Strip function names from debug messages

7 years agodebug: replace mutt_debug with a macro
Richard Russon [Wed, 13 Sep 2017 15:26:41 +0000 (16:26 +0100)]
debug: replace mutt_debug with a macro

The macro passes the file and line number to mutt_debug_real().

7 years agomerge: standardise the string formatting functions
Richard Russon [Sun, 26 Nov 2017 22:48:58 +0000 (22:48 +0000)]
merge: standardise the string formatting functions

There are lots of callback functions used by `mutt_expando_format()`.
These commits make sure they all have similar names and have similarly
named parameters and variables.

 * rename formatting functions
 * rename format parameters/variables
 * update format function comments
 * rearrange switch statements in format functions
 * light tidy of format functions

7 years agolight tidy of format functions
Richard Russon [Sun, 26 Nov 2017 02:53:14 +0000 (02:53 +0000)]
light tidy of format functions

7 years agorearrange switch statements in format functions
Richard Russon [Sun, 26 Nov 2017 02:44:39 +0000 (02:44 +0000)]
rearrange switch statements in format functions

7 years agoupdate format function comments
Richard Russon [Sun, 26 Nov 2017 02:32:18 +0000 (02:32 +0000)]
update format function comments

7 years agorename format parameters/variables
Richard Russon [Sun, 26 Nov 2017 02:28:55 +0000 (02:28 +0000)]
rename format parameters/variables

7 years agorename formatting functions
Richard Russon [Sun, 26 Nov 2017 01:30:53 +0000 (01:30 +0000)]
rename formatting functions

7 years agomerge: rename some variables
Richard Russon [Sun, 26 Nov 2017 22:46:28 +0000 (22:46 +0000)]
merge: rename some variables

The majority of the code uses the variable name 'buf' for a char buffer.
Most return-code variables are called 'rc'.

This mass rename makes the code more consistent.

 * buff -> buf
 * ret -> rc
 * rv -> rc

7 years agorename variables: rv -> rc
Richard Russon [Fri, 24 Nov 2017 15:45:50 +0000 (15:45 +0000)]
rename variables: rv -> rc

7 years agorename variables: ret -> rc
Richard Russon [Fri, 24 Nov 2017 15:39:49 +0000 (15:39 +0000)]
rename variables: ret -> rc

7 years agorename variables: buff -> buf
Richard Russon [Fri, 24 Nov 2017 15:27:25 +0000 (15:27 +0000)]
rename variables: buff -> buf

7 years agomerge: trivial code improvements
Richard Russon [Sun, 26 Nov 2017 22:45:04 +0000 (22:45 +0000)]
merge: trivial code improvements

 * drop unused code in #if 0
 * doxygen: fix comments
 * fix shadow variable
 * drop duplicate prototype
 * remove unnecessary alloc checks
 * add logging around getaddrinfo()

7 years agoadd logging around getaddrinfo()
Richard Russon [Thu, 23 Nov 2017 20:25:48 +0000 (20:25 +0000)]
add logging around getaddrinfo()

If the user's networking isn't set up correctly, this call can
potentially take several seconds to timeout.

7 years agoremove unnecessary alloc checks
Richard Russon [Tue, 21 Nov 2017 16:59:48 +0000 (16:59 +0000)]
remove unnecessary alloc checks

7 years agodrop duplicate prototype
Richard Russon [Thu, 16 Nov 2017 23:35:50 +0000 (23:35 +0000)]
drop duplicate prototype

7 years agofix shadow variable
Richard Russon [Thu, 16 Nov 2017 03:21:55 +0000 (03:21 +0000)]
fix shadow variable

7 years agodoxygen: fix comments
Richard Russon [Thu, 16 Nov 2017 03:19:44 +0000 (03:19 +0000)]
doxygen: fix comments

7 years agodrop unused code in #if 0
Richard Russon [Fri, 24 Nov 2017 15:07:54 +0000 (15:07 +0000)]
drop unused code in #if 0

7 years agomerge: code style improvements
Richard Russon [Sun, 26 Nov 2017 22:39:41 +0000 (22:39 +0000)]
merge: code style improvements

 * standardise infinite loops
 * fix justify constants
 * insert braces
 * split ifs
 * fallthrough

7 years agoFix ansi escape sequences with both reset and color parameters
Kevin McCarthy [Sun, 19 Nov 2017 03:13:08 +0000 (19:13 -0800)]
Fix ansi escape sequences with both reset and color parameters

The initial 0 "reset/normal" was setting attr = ANSI_OFF, which was
subsequently being or'ed with ANSI_COLOR.

The color resolution was then checking for the ANSI_OFF bit and
turning all coloring off, even though ANSI_COLOR was also set.

Change the color resolution to check for "attr == ANSI_OFF" instead, so
the color isn't reset unless the reset occurs last in the sequence.

(closes #3689)

7 years agofallthrough
Richard Russon [Sat, 25 Nov 2017 00:18:30 +0000 (00:18 +0000)]
fallthrough

7 years agotidy: clang-format
Richard Russon [Thu, 23 Nov 2017 15:48:25 +0000 (15:48 +0000)]
tidy: clang-format

7 years agosplit ifs
Richard Russon [Fri, 24 Nov 2017 16:49:23 +0000 (16:49 +0000)]
split ifs

7 years agoinsert braces
Richard Russon [Fri, 24 Nov 2017 14:46:24 +0000 (14:46 +0000)]
insert braces

7 years agofix justify constants
Richard Russon [Fri, 24 Nov 2017 15:14:33 +0000 (15:14 +0000)]
fix justify constants

7 years agostandardise infinite loops
Richard Russon [Fri, 24 Nov 2017 14:13:02 +0000 (14:13 +0000)]
standardise infinite loops

7 years agofix out-of-tree builds
Richard Russon [Wed, 22 Nov 2017 00:48:48 +0000 (00:48 +0000)]
fix out-of-tree builds

7 years agoRemove vim syntax file from the main repo
Guillaume Brogi [Tue, 21 Nov 2017 10:56:03 +0000 (11:56 +0100)]
Remove vim syntax file from the main repo

The syntax file is now in an extension at https://github.com/neomutt/neomutt.vim

7 years agoMigrate code to use mutt_file_chmod{,_add,_rm} functions
Reis Radomil [Sat, 18 Nov 2017 16:47:32 +0000 (17:47 +0100)]
Migrate code to use mutt_file_chmod{,_add,_rm} functions

Migrate the old code to use the new functions mutt_file_chmod(),
mutt_file_chmod_add(), mutt_file_chmod_rm() instead of plain chmod().

7 years agoAdd chmod() wrappers to library
Reis Radomil [Sat, 18 Nov 2017 08:40:25 +0000 (09:40 +0100)]
Add chmod() wrappers to library

Add functions for changing/adding/removing permissions of files.

mutt_file_chmod          - set permissions
mutt_file_chmod_add      - add permissions
mutt_file_chmod_add_stat - add permissions
mutt_file_chmod_rm       - remove permissions
mutt_file_chmod_rm_stat  - remove permissions

The *_stat functions accept an additional optional stat structure
parameter, which must point to the stat structure of the file.
Using the *_stat functions can save a call to stat() as the stat
structure does not need to be queried by the mutt_file_chmod_* function.

7 years agobuild: fix update-po target
Richard Russon [Thu, 16 Nov 2017 23:31:57 +0000 (23:31 +0000)]
build: fix update-po target