]> granicus.if.org Git - neomutt/log
neomutt
8 years agomerge: smime-encrypt-to-self neomutt-20160709
Richard Russon [Fri, 8 Jul 2016 16:52:01 +0000 (17:52 +0100)]
merge: smime-encrypt-to-self

 * default to off

8 years agodefault to off
Richard Russon [Fri, 8 Jul 2016 16:51:03 +0000 (17:51 +0100)]
default to off

8 years agofix version.sh regression
Faidon Liambotis [Fri, 8 Jul 2016 13:04:46 +0000 (14:04 +0100)]
fix version.sh regression

8 years agomerge: bugs-common
Richard Russon [Thu, 7 Jul 2016 13:06:50 +0000 (14:06 +0100)]
merge: bugs-common

 * Reset buffy->new for the current mailbox in IMAP.

8 years agoReset buffy->new for the current mailbox in IMAP.
Kevin McCarthy [Tue, 14 Jun 2016 20:11:56 +0000 (13:11 -0700)]
Reset buffy->new for the current mailbox in IMAP.

1f840760e6e0 moved the buffy->new reset inside the STATUS processor.
Since the current mailbox is not STATUS'ed, it needs to be reset in
imap_buffy_check().

Thanks to Aaron Schrab for reporting this issue (and for helping test
tip).

8 years agomerge: vim-keybindings
Richard Russon [Thu, 7 Jul 2016 00:52:15 +0000 (01:52 +0100)]
merge: vim-keybindings

 * contrib: vim-keybindings
 * Mutt config for vim users
 * Scroll half page thanks to @rgrinberg

8 years agotravis: add config
Richard Russon [Wed, 6 Jul 2016 23:59:52 +0000 (00:59 +0100)]
travis: add config

8 years agomerge: smime-encrypt-to-self
Richard Russon [Wed, 6 Jul 2016 23:49:03 +0000 (00:49 +0100)]
merge: smime-encrypt-to-self

 * smime encrypt to self patch

8 years agomerge: new-mail
Richard Russon [Wed, 6 Jul 2016 23:47:51 +0000 (00:47 +0100)]
merge: new-mail

 * feature: new_mail_command
 * Add documentation template

8 years agoAdd documentation template
Richard Russon [Sun, 24 Apr 2016 22:44:00 +0000 (23:44 +0100)]
Add documentation template

There are three parts:
  - doc/manual.xml.head -- main manual
  - doc/muttrc.new-mail -- sample muttrc
  - doc/vimrc.new-mail  -- syntax file for vim users

8 years agofeature: new_mail_command
Yoshiki Vázquez Baeza [Sat, 23 Apr 2016 20:33:50 +0000 (13:33 -0700)]
feature: new_mail_command

This setting executes a command when new mail is received.

8 years agotravis: add config
Richard Russon [Sun, 24 Apr 2016 22:49:52 +0000 (23:49 +0100)]
travis: add config

8 years agosmime encrypt to self patch
Richard Russon [Thu, 16 Jun 2016 23:31:48 +0000 (00:31 +0100)]
smime encrypt to self patch

8 years agomerge: sidebar
Richard Russon [Wed, 6 Jul 2016 22:44:27 +0000 (23:44 +0100)]
merge: sidebar

 * Fix sidebar crash for non-existent mailbox

8 years agomerge: mutt-1.6.2
Richard Russon [Wed, 6 Jul 2016 22:17:15 +0000 (23:17 +0100)]
merge: mutt-1.6.2

 * Fix infinite loop when help is bound to a named key combination.
 * Check $pgp_autoinline and $pgp_replyinline if oppenc is set. (closes #3846)

8 years agomerge: mutt-1.6.2
Richard Russon [Wed, 6 Jul 2016 22:12:39 +0000 (23:12 +0100)]
merge: mutt-1.6.2

 * Fix infinite loop when help is bound to a named key combination.
 * Check $pgp_autoinline and $pgp_replyinline if oppenc is set. (closes #3846)

8 years agochange ident to -git
Richard Russon [Wed, 6 Jul 2016 19:27:21 +0000 (20:27 +0100)]
change ident to -git

8 years agomerge: mutt-1.6.2
Richard Russon [Wed, 6 Jul 2016 22:05:03 +0000 (23:05 +0100)]
merge: mutt-1.6.2

 * Fix infinite loop when help is bound to a named key combination.
 * Check $pgp_autoinline and $pgp_replyinline if oppenc is set. (closes #3846)
 * automatic post-release commit for mutt-1.6.2

8 years agochange ident to -git
Richard Russon [Wed, 6 Jul 2016 19:27:21 +0000 (20:27 +0100)]
change ident to -git

8 years agomerge upstream fixes
Richard Russon [Wed, 6 Jul 2016 18:06:18 +0000 (19:06 +0100)]
merge upstream fixes

* upstream/stable:
  mutt-1.6.2 signed
  Added tag mutt-1-6-2-rel for changeset 7ccd4417bd70
  automatic post-release commit for mutt-1.6.2

8 years agoFix sidebar crash for non-existent mailbox
Richard Russon [Wed, 6 Jul 2016 16:09:33 +0000 (17:09 +0100)]
Fix sidebar crash for non-existent mailbox

If you <change-folder> to a non-existent mailbox, there will be no
Context.

8 years agomutt-1.6.2 signed
Kevin McCarthy [Wed, 6 Jul 2016 17:41:54 +0000 (10:41 -0700)]
mutt-1.6.2 signed

8 years agoAdded tag mutt-1-6-2-rel for changeset 7ccd4417bd70
Kevin McCarthy [Wed, 6 Jul 2016 17:40:35 +0000 (10:40 -0700)]
Added tag mutt-1-6-2-rel for changeset 7ccd4417bd70

8 years agoautomatic post-release commit for mutt-1.6.2
Kevin McCarthy [Wed, 6 Jul 2016 17:40:26 +0000 (10:40 -0700)]
automatic post-release commit for mutt-1.6.2

8 years agosort manual sections
Richard Russon [Wed, 6 Jul 2016 11:24:17 +0000 (12:24 +0100)]
sort manual sections

8 years agoTemporary compatibility workaround
Richard Russon [Wed, 6 Jul 2016 11:20:49 +0000 (12:20 +0100)]
Temporary compatibility workaround

There have been some changes upstream to the way the Sidebar displays
itself.  This commit hides those changes, for now.  It will be reverted
next release.

Upstream changes:
* SidebarRefreshTime - obsolete
* mail_check_stats - enable extra mailbox checks
* sidebar_format - Simplified to reduce load

8 years agomerge: sidebar
Richard Russon [Tue, 5 Jul 2016 11:05:57 +0000 (12:05 +0100)]
merge: sidebar

 * build fix for mixmaster
 * fix Sidebar width problem

8 years agofix Sidebar width problem
Richard Russon [Tue, 5 Jul 2016 11:05:34 +0000 (12:05 +0100)]
fix Sidebar width problem

8 years agobuild fix for mixmaster
Richard Russon [Mon, 4 Jul 2016 23:51:50 +0000 (00:51 +0100)]
build fix for mixmaster

8 years agomerge: lmdb
Richard Russon [Mon, 4 Jul 2016 23:17:49 +0000 (00:17 +0100)]
merge: lmdb

 * feature: add ldmb support
 * docs: add template docs
 * docs: document lmdb feature
 * FIX

8 years agomerge: sidebar
Richard Russon [Mon, 4 Jul 2016 14:08:29 +0000 (15:08 +0100)]
merge: sidebar

 * Sidebar clean up: building and drawing logic.
 * Fix sidebar check_sec.sh warnings.
 * Clean up the sidebar manual.
 * Various fixes to the sidebar logic.
 * Start to fix sidebar buffy modifications.
 * Corrected OPS.SIDEBAR filename in EXTRA_DIST.
 * Change the default for sidebar_format to use %n.
 * Make extended buffy independent of the sidebar.
 * Combine the basic and extended buffy functions.
 * Add documentation to the "New Mail Detection" section of the manual.
 * Change sidebar next/prev-new to look at buffy->new too.
 * Change sidebar to consistently use realpath for context and buffy comparison.
 * Remove $sidebar_refresh_time from Sample Sidebar Config
 * Remove unused SORT_DESC.
 * Fix missing sidebar documentation links. (closes #3847)
 * Decouple the sidebar from the Buffy list.
 * Fix sidebar "unsorted" order to match Buffy list order.
 * Add R_SIDEBAR to redraw sidebar when its settings change.
 * Fix the documented sort methods for sidebar_sort_method.
 * Add cols parameter to mutt_FormatString()

8 years agomerge: bugs-common
Richard Russon [Sun, 3 Jul 2016 14:41:03 +0000 (15:41 +0100)]
merge: bugs-common

 * Set COLUMNS to MuttIndexWindow->cols in mutt_create_filter_fd. (closes #3837)
 * Fix infinite loop when help is bound to a named key combination.
 * Add real prototype for re_match_2_internal in regex.c
 * Clarify oppenc option documention. (closes #3846)
 * Include ncurses tinfo library if found.
 * Fix cppflags and muttlibs duplication with --with-gss.
 * Check $pgp_autoinline and $pgp_replyinline if oppenc is set. (closes #3846)

8 years agoAdd cols parameter to mutt_FormatString()
Kevin McCarthy [Thu, 28 Apr 2016 00:56:59 +0000 (17:56 -0700)]
Add cols parameter to mutt_FormatString()

Continuing with the conversion to using windows for screen drawing,
mutt_FormatString() was directly using COLS for right justification
and similar formatting.  Instead pass in a parameter, cols.

This change involved seeding the parameter through callback functions
too, as many of them call mutt_FormatString() back.

8 years agoFix the documented sort methods for sidebar_sort_method.
Kevin McCarthy [Sat, 2 Jul 2016 19:32:55 +0000 (12:32 -0700)]
Fix the documented sort methods for sidebar_sort_method.

Remove references to unused "date" and "size", and add "flagged".

8 years agoAdd R_SIDEBAR to redraw sidebar when its settings change.
Kevin McCarthy [Sat, 2 Jul 2016 19:25:59 +0000 (12:25 -0700)]
Add R_SIDEBAR to redraw sidebar when its settings change.

Add to the sidebar settings that control formatting of the sidebar.

8 years agoFix sidebar "unsorted" order to match Buffy list order.
Kevin McCarthy [Sat, 2 Jul 2016 19:24:25 +0000 (12:24 -0700)]
Fix sidebar "unsorted" order to match Buffy list order.

Since the previous commit decoupled the sidebar from the Buffy list,
we can now restore the order to match the buffy list when
sidebar_sort_method is set (back) to "unsorted".

8 years agoDecouple the sidebar from the Buffy list.
Kevin McCarthy [Sat, 2 Jul 2016 19:22:51 +0000 (12:22 -0700)]
Decouple the sidebar from the Buffy list.

Change the sidebar to use an array of SBENTRY* instead.  Move the
"is_hidden" into SBENTRY.  Remove the added "prev" pointer from BUFFY.

This way, sorting the sidebar doesn't affect the BUFFY list order, and
we don't need elements inside BUFFY just for the sidebar presentation.

Fix sidebar-next for the case where the mailboxes are unsorted and
$sidebar_new_mail_only is set.  Change sorting not to clump hidden
mailboxes at the bottom, instead simply skip over hidden mailboxes in
sidebar-next/prev.

8 years agoFix missing sidebar documentation links. (closes #3847)
Kevin McCarthy [Thu, 30 Jun 2016 19:57:17 +0000 (12:57 -0700)]
Fix missing sidebar documentation links. (closes #3847)

USE_SIDEBAR needed to be set in doc/makedoc-defs.h so that the sidebar
option documentation is generated whether mutt is configured with the
sidebar or not.

8 years agoRemove unused SORT_DESC.
Kevin McCarthy [Tue, 28 Jun 2016 23:06:22 +0000 (16:06 -0700)]
Remove unused SORT_DESC.

This came over with the sidebar patch, but I believe is only used by
the notmuch extension.

8 years agoRemove $sidebar_refresh_time from Sample Sidebar Config
Fahri Cihan Demirci [Tue, 28 Jun 2016 22:59:09 +0000 (15:59 -0700)]
Remove $sidebar_refresh_time from Sample Sidebar Config

The $sidebar_refresh_time option was removed with the changeset
1f840760e6e0. Remove it from the sample sidebar configuration as well,
so that anyone using that file in its entirety won't have to deal with "unknown
variable" errors.

8 years agoChange sidebar to consistently use realpath for context and buffy comparison.
Kevin McCarthy [Thu, 23 Jun 2016 19:38:07 +0000 (12:38 -0700)]
Change sidebar to consistently use realpath for context and buffy comparison.

The original sidebar patch contained a half-implemented attempt to use
realpath() mailbox paths for comparison.  (Presumably so the open mailbox
remains highlighted despite symlink issues).

Add realpath to the Context, and set it when opening a mailbox.
Remove sidebar ifdef for the buffy member, and always set it there too.

Change the sidebar to use the realpath for comparison everywhere.

mutt_buffy_check() is using stat device and inode for comparison.
Perhaps this can be changed to use realpath instead, but that's beyond
the scope of this patch.

8 years agoChange sidebar next/prev-new to look at buffy->new too.
Kevin McCarthy [Wed, 22 Jun 2016 16:20:39 +0000 (09:20 -0700)]
Change sidebar next/prev-new to look at buffy->new too.

Look at new in addition to msg_unread count, to account for when
$mail_check_stats is unset or when the sidebar only shows the %n
status flag.

8 years agoAdd documentation to the "New Mail Detection" section of the manual.
Kevin McCarthy [Tue, 21 Jun 2016 03:09:52 +0000 (20:09 -0700)]
Add documentation to the "New Mail Detection" section of the manual.

Mention the behavior change with $mail_check_recent.

Add a section about $mail_check_stats.

8 years agoCombine the basic and extended buffy functions.
Kevin McCarthy [Fri, 17 Jun 2016 17:30:30 +0000 (10:30 -0700)]
Combine the basic and extended buffy functions.

Add a check_stats parameter to the mbox, maildir, and mh buffy
functions.  Use that parameter to determine whether to also count
total, new, and flagged messages.

This makes the functions a bit more complicated, but improves
efficiency (for maildir and mh).

Also includes the following cleanup/fixes:
* Move the orig-value counter reset to the beginnining of the loop,
  (before tmp->new is set to 0).

* Change trashed maildir messages to not be counted in msg_count

* Remove an incorrect setting of mailbox->new based on msg_count in
  maildir.  (I missed this one for 1f840760e6e0)

* Change mbox to use the context->mtime for stats_last_checked,
  removing a race condition.

* Fix mh to actually count the messages in order to generate msg_count.
  mh_sequences only covers the range of messages with some sort of
  flag.

8 years agoMake extended buffy independent of the sidebar.
Kevin McCarthy [Tue, 7 Jun 2016 22:02:58 +0000 (15:02 -0700)]
Make extended buffy independent of the sidebar.

Add new boolean option $mail_check_stats (default off) and
$mail_check_stats_interval.  The first turns extended buffy on.  The
second sets the amount of time in between extended buffy checks
(defaulting to 60 seconds).

Remove the option $sidebar_refresh_time.

Change mutt_buffy_check() to only notify the sidebar to redraw if a
mailbox buffy value changes.

Remove the #ifdefs around the extended buffy functions.  The next
patch will merge these functions with the basic functions and pass a
parameter instead.

Imap is a special case, because it sends out the status in one batch.
Change this to perform the comparisons inside cmd_parse_status() and
flag the sidebar there.  It was previously directly assigning the
status counters (unsigned int) to the buffy->new (short).  Change this
to assign 1/0.

8 years agoChange the default for sidebar_format to use %n.
Kevin McCarthy [Wed, 8 Jun 2016 21:43:35 +0000 (14:43 -0700)]
Change the default for sidebar_format to use %n.

The next series of patches is going to create a new option,
$mail_check_stats defaulting off.  When off, the extended buffy which
calculates total/new/flagged messages won't be run.  To help reduce
"sidebar is broken" bug reports, this changes the default format to
something not requiring extended buffy.

The previous default is documented in the option and preserved in the
sample sidebar muttrc in contrib.

8 years agoCorrected OPS.SIDEBAR filename in EXTRA_DIST.
Vincent Lefevre [Wed, 8 Jun 2016 11:28:54 +0000 (13:28 +0200)]
Corrected OPS.SIDEBAR filename in EXTRA_DIST.

8 years agoStart to fix sidebar buffy modifications.
Kevin McCarthy [Sat, 4 Jun 2016 18:32:12 +0000 (11:32 -0700)]
Start to fix sidebar buffy modifications.

The extended buffy for mh had incorrect placement of the loop
brackets.  The counters weren't being incremented in the loop.

Fix extended buffy for maildir to count a maildir message as new if it
doesn't have the info delimeter.

Remove shortcircuits added to the basic buffy stating there is new
mail when (msg_unread > 0).  This is not necessarily true, depending
on $mail_check_recent.

Note: the extended buffy still needs more fixes, which will be done
when it is refactored into its own option.

8 years agoVarious fixes to the sidebar logic.
Kevin McCarthy [Sat, 4 Jun 2016 18:32:09 +0000 (11:32 -0700)]
Various fixes to the sidebar logic.

Use strfcpy instead of strncpy.  The current logic could write past
the end of the buffer.

Don't mess with BUFFY next pointers during removal.  The
mutt_parse_mailboxes() is fine, but this is still not something that
should be done inside sidebar.c.

On removal, set next->prev since we can.

Fix unmailboxes logic:
  * only fix the prev pointers once.
  * if we unmailbox the open mailbox, set it to NULL.

Lastly, flag a redraw on mailboxes/unmailboxes.

8 years agoClean up the sidebar manual.
Kevin McCarthy [Sat, 4 Jun 2016 18:32:07 +0000 (11:32 -0700)]
Clean up the sidebar manual.

Remove the introduction section.  It's a nice effort, but reads more
like a tutorial than something that belongs in section 2.  Will
probably put in on the website instead.

Remove references to a "patch", neomutt, and the history.

Remove the sample muttrc from the manual.

Fix validation errors for the documentation.

8 years agoFix sidebar check_sec.sh warnings.
Kevin McCarthy [Sat, 4 Jun 2016 18:32:04 +0000 (11:32 -0700)]
Fix sidebar check_sec.sh warnings.

Use safe_malloc, FREE, and the safe_strcat functions.

8 years agoSidebar clean up: building and drawing logic.
Kevin McCarthy [Sat, 4 Jun 2016 18:32:03 +0000 (11:32 -0700)]
Sidebar clean up: building and drawing logic.

Fix the autoconf/makefile.am changes to be consistent.

Create a global SidebarNeedsRedraw to indicate a redraw is needed,
instead of putting sb_draw() everywhere in the code.

Create a menu_redraw_sidebar() function and use the REDRAW_SIDEBAR
flag instead of piggy-backing it inside the index loop.

Fix curs_main.c and pager.c to be a bit cleaner by using the global and
REDRAW_SIDEBAR.

Start to clean up some of the buffy code, but this needs to refactored
and fixed.

8 years agoCheck $pgp_autoinline and $pgp_replyinline if oppenc is set. (closes #3846)
Kevin McCarthy [Fri, 1 Jul 2016 20:33:20 +0000 (13:33 -0700)]
Check $pgp_autoinline and $pgp_replyinline if oppenc is set. (closes #3846)

The first oppenc call takes place after the initial checks of
$pgp_autoline and $pgp_replyinline, and doesn't go through the pgp
menu.

Therefore, check for $pgp_autoline and $pgp_replyinline if oppenc is
set too, to avoid oppenc enabling encryption without INLINE being set
in those cases.

a6a4d6ed0f19 previously cleaned things up so that it is safe
to set INLINE even if encryption isn't enabled.

8 years agoFix cppflags and muttlibs duplication with --with-gss.
Kevin McCarthy [Thu, 30 Jun 2016 01:58:53 +0000 (18:58 -0700)]
Fix cppflags and muttlibs duplication with --with-gss.

When krb5-config was found, MUTT_AM_PATH_GSSAPI included CFLAGS in
GSSAPI_CFLAGS and MUTTLIBS in GSSAPI_LIBS.  However, configure.ac
afterwards sets:
    CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
    MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
This caused the flags and libs to be duplicated.

8 years agoInclude ncurses tinfo library if found.
Kevin McCarthy [Thu, 30 Jun 2016 01:58:48 +0000 (18:58 -0700)]
Include ncurses tinfo library if found.

Thanks to Fabian Groffen for reporting this issue and providing a
couple possible patches.  From Fabian's report:

  For some time now, ncurses can be built in a mode where the low level
  terminfo functionality lives in a separate lib called libtinfo.
  Because some people do, this means Mutt needs to include this
  library in that case to avoid linking errors [...]

8 years agoClarify oppenc option documention. (closes #3846)
Kevin McCarthy [Wed, 29 Jun 2016 19:25:34 +0000 (12:25 -0700)]
Clarify oppenc option documention. (closes #3846)

Rephrase the option description to try and make it clearer what the
option does, and how to enable/disable it within a message.

8 years agoAdd real prototype for re_match_2_internal in regex.c
Olaf Hering [Fri, 17 Jun 2016 17:33:57 +0000 (10:33 -0700)]
Add real prototype for re_match_2_internal in regex.c

Fixes compilation warning with -Wunprototyped-calls

8 years agoFix infinite loop when help is bound to a named key combination.
Kevin McCarthy [Tue, 24 May 2016 19:08:46 +0000 (12:08 -0700)]
Fix infinite loop when help is bound to a named key combination.

Commit a07e8215a0ef introduced a bug in km_error_key, which is called
when an unbound key is pressed.

If help is bound to a sequence containing named keys (e.g. <esc>), the
raw (untokenized) string would be pushed back into the unget buffer.
This could lead to an infinite loop of unbound key presses triggering
more unbound keys being put into the unget buffer.

Change km_error_key to tokenize the string before putting it in the unget buffer.

Much thanks to Jiri Bohac for his bug report, analysis, and initial patch!

8 years agoSet COLUMNS to MuttIndexWindow->cols in mutt_create_filter_fd. (closes #3837)
Kevin McCarthy [Tue, 10 May 2016 16:42:27 +0000 (09:42 -0700)]
Set COLUMNS to MuttIndexWindow->cols in mutt_create_filter_fd. (closes #3837)

This allows filters to automatically (or via a command line argument)
adjust to the width of the pager/index.  This is even more important
with the sidebar, since the width of the pager is smaller than the
terminal width.

Thanks to Vincent Lefèvre for his helpful information and suggestions,
and to Richard Russon for the initial patches.

8 years agotravis: add config
Richard Russon [Sun, 3 Jul 2016 13:06:03 +0000 (14:06 +0100)]
travis: add config

8 years agomerge upstream fixes
Richard Russon [Fri, 1 Jul 2016 21:40:39 +0000 (22:40 +0100)]
merge upstream fixes

* upstream/stable:
  Check $pgp_autoinline and $pgp_replyinline if oppenc is set. (closes #3846)

8 years agoCheck $pgp_autoinline and $pgp_replyinline if oppenc is set. (closes #3846)
Kevin McCarthy [Fri, 1 Jul 2016 20:33:20 +0000 (13:33 -0700)]
Check $pgp_autoinline and $pgp_replyinline if oppenc is set. (closes #3846)

The first oppenc call takes place after the initial checks of
$pgp_autoline and $pgp_replyinline, and doesn't go through the pgp
menu.

Therefore, check for $pgp_autoline and $pgp_replyinline if oppenc is
set too, to avoid oppenc enabling encryption without INLINE being set
in those cases.

a6a4d6ed0f19 previously cleaned things up so that it is safe
to set INLINE even if encryption isn't enabled.

8 years agomerge: sidebar
Richard Russon [Thu, 23 Jun 2016 15:12:09 +0000 (16:12 +0100)]
merge: sidebar

 * fix sidebar/mail_check painting problem

8 years agomerge: notmuch
Richard Russon [Thu, 23 Jun 2016 15:12:04 +0000 (16:12 +0100)]
merge: notmuch

 * Fix compiler warnings due to always true condition

8 years agomerge: compress
Richard Russon [Thu, 23 Jun 2016 15:11:57 +0000 (16:11 +0100)]
merge: compress

 * update dependency in readme

8 years agomerge: keywords
Richard Russon [Thu, 23 Jun 2016 15:11:48 +0000 (16:11 +0100)]
merge: keywords

 * update dependency in readme

8 years agomerge: nntp
Richard Russon [Thu, 23 Jun 2016 15:11:43 +0000 (16:11 +0100)]
merge: nntp

 * update dependency in readme

8 years agofix sidebar/mail_check painting problem
Richard Russon [Thu, 23 Jun 2016 14:57:32 +0000 (15:57 +0100)]
fix sidebar/mail_check painting problem

The bug was triggered when $mail_check was set to 0.

When drawing the status line, the Sidebar lied about its size to
workaround a bug in mutt_FormatString().  Whilst in that function the
Sidebar was redrawn.

The Sidebar got confused over whether it should be visible or not and
promptly vanished.

8 years agoFix compiler warnings due to always true condition
Darshit Shah [Wed, 22 Jun 2016 05:23:05 +0000 (07:23 +0200)]
Fix compiler warnings due to always true condition

BUFFY declares path as a char array. Hence, p->path will always resolve
to a valid array location making the check redundant. It causes a
compiler warning. Hence, remove the redundant check to silence the
warning.

8 years agoScroll half page thanks to @rgrinberg
Ivan Tham [Mon, 20 Jun 2016 14:34:18 +0000 (22:34 +0800)]
Scroll half page thanks to @rgrinberg

8 years agotravis: new build script
Richard Russon [Mon, 20 Jun 2016 03:54:59 +0000 (04:54 +0100)]
travis: new build script

8 years agotravis: new build script
Richard Russon [Mon, 20 Jun 2016 03:52:37 +0000 (04:52 +0100)]
travis: new build script

8 years agotravis: new build script
Richard Russon [Mon, 20 Jun 2016 03:52:37 +0000 (04:52 +0100)]
travis: new build script

8 years agotravis: new build script
Richard Russon [Mon, 20 Jun 2016 03:52:37 +0000 (04:52 +0100)]
travis: new build script

8 years agotravis: new build script
Richard Russon [Mon, 20 Jun 2016 03:52:36 +0000 (04:52 +0100)]
travis: new build script

8 years agotravis: new build script
Richard Russon [Mon, 20 Jun 2016 03:52:36 +0000 (04:52 +0100)]
travis: new build script

8 years agotravis: new build script
Richard Russon [Mon, 20 Jun 2016 03:52:36 +0000 (04:52 +0100)]
travis: new build script

8 years agoMutt config for vim users
Ivan Tham [Sun, 19 Jun 2016 19:44:35 +0000 (20:44 +0100)]
Mutt config for vim users

8 years agocontrib: vim-keybindings
Richard Russon [Sun, 19 Jun 2016 19:44:04 +0000 (20:44 +0100)]
contrib: vim-keybindings

8 years agomerge: sidebar
Richard Russon [Sat, 18 Jun 2016 23:00:57 +0000 (00:00 +0100)]
merge: sidebar

 * make the cursor resetting work in slang

8 years agomake the cursor resetting work in slang
Richard Russon [Sat, 18 Jun 2016 22:59:04 +0000 (23:59 +0100)]
make the cursor resetting work in slang

fixes: neomutt/homebrew-neomutt#13

8 years agoupdate dependency in readme
Richard Russon [Sat, 18 Jun 2016 00:43:12 +0000 (01:43 +0100)]
update dependency in readme

[ci skip]

8 years agoupdate dependency in readme
Richard Russon [Sat, 18 Jun 2016 00:42:34 +0000 (01:42 +0100)]
update dependency in readme

[ci skip]

8 years agoupdate dependency in readme
Richard Russon [Sat, 18 Jun 2016 00:42:15 +0000 (01:42 +0100)]
update dependency in readme

[ci skip]

9 years agomerge: notmuch
Richard Russon [Thu, 16 Jun 2016 14:44:45 +0000 (15:44 +0100)]
merge: notmuch

 * Fix IDNA functions for systems without iconv.
 * Fix mutt_protect() when INLINE is set. (closes #3828)
 * Create a wrapper sys_socket.h to work around Solaris namespace issues. (closes #3833)
 * automatic post-release commit for mutt-1.6.1
 * reduce the frequency of mailbox checks

9 years agomerge: index-color
Richard Russon [Thu, 16 Jun 2016 14:43:17 +0000 (15:43 +0100)]
merge: index-color

 * fix index_format truncation problem

9 years agomerge: status-color
Richard Russon [Thu, 16 Jun 2016 14:43:12 +0000 (15:43 +0100)]
merge: status-color

 * rework mutt_draw_statusline()

9 years agomerge: sidebar
Richard Russon [Thu, 16 Jun 2016 14:42:34 +0000 (15:42 +0100)]
merge: sidebar

 * fix cursor position after sidebar redraw
 * Add sidebar_format flag '%n' to display 'N' on new mail.
 * Fix the case of messages in OPS.MIX and OPS.SIDEBAR

9 years agoFix the case of messages in OPS.MIX and OPS.SIDEBAR
Kevin McCarthy [Sun, 12 Jun 2016 20:49:18 +0000 (13:49 -0700)]
Fix the case of messages in OPS.MIX and OPS.SIDEBAR

Thanks to Vincent Lefèvre for spotting the discrepancy.

9 years agoAdd sidebar_format flag '%n' to display 'N' on new mail.
Kevin McCarthy [Wed, 8 Jun 2016 20:16:45 +0000 (13:16 -0700)]
Add sidebar_format flag '%n' to display 'N' on new mail.

9 years agoreduce the frequency of mailbox checks
Richard Russon [Tue, 14 Jun 2016 00:09:07 +0000 (01:09 +0100)]
reduce the frequency of mailbox checks

9 years agoautomatic post-release commit for mutt-1.6.1
Kevin McCarthy [Sat, 30 Apr 2016 21:21:44 +0000 (14:21 -0700)]
automatic post-release commit for mutt-1.6.1

9 years agoCreate a wrapper sys_socket.h to work around Solaris namespace issues. (closes #3833)
Kevin McCarthy [Wed, 27 Apr 2016 20:08:52 +0000 (13:08 -0700)]
Create a wrapper sys_socket.h to work around Solaris namespace issues. (closes #3833)

Solaris includes "sys/stream.h" inside their "sys/socket.h".  This
include file adds many non-reserved macros to Mutt's namespace, two of
which conflict with existing Mutt macros.

The simplest fix would be to rename those macros in Mutt, however this
will cause difficulty with out-of-tree patches.  This fix creates a
wrapper include file that preserves those existing macros and prevents
the Solaris values from entering Mutt's namespace.

9 years agoFix mutt_protect() when INLINE is set. (closes #3828)
Kevin McCarthy [Sun, 10 Apr 2016 23:02:06 +0000 (16:02 -0700)]
Fix mutt_protect() when INLINE is set. (closes #3828)

The oppenc changes allow security bits to be set even when not
encrypting or signing (for instance, OPPENCRYPT and INLINE).

mutt_protect() assumed that if INLINE is set, then either ENCRYPT or
SIGN must also be set.  Specifically, it would end up inline-signing
the message even though neither was set.

Ensure mutt_protect() is a noop if neither SIGN or ENCRYPT are set.

In ci_send_message(), check for sign or encrypt before calling the
crypt_get_keys() / mutt_protect() block, and also in the fcc section
(since clear_content would be NULL if not).

The second change to the fcc part is somewhat redundant, but better to
be explicit and avoid the case where the subtype is somehow
"encrypted" or "signed" even though msg->security wasn't set thus.

9 years agoFix IDNA functions for systems without iconv.
Kevin McCarthy [Tue, 5 Apr 2016 21:31:36 +0000 (14:31 -0700)]
Fix IDNA functions for systems without iconv.

The IDNA changes for SMTPUTF8 support introduced a bug for systems
without iconv.  For those systems, the local<->intl functions would
return an error due to the charset conversion failing.

Change mutt_idna.c back to being conditionally compiled, but this time
based on HAVE_ICONV.  If there is no iconv, stub out the functions in
mutt_idna.h.

9 years agofix index_format truncation problem
Richard Russon [Wed, 15 Jun 2016 15:47:22 +0000 (16:47 +0100)]
fix index_format truncation problem

mutt_wstr_trunc() didn't take index coloring into account when measuring a
string's length.  When combined with a soft-fill '%* ' in the index_format it
lead to formatting problems.

Fixes: #51
9 years agofix cursor position after sidebar redraw
Richard Russon [Mon, 13 Jun 2016 17:09:50 +0000 (18:09 +0100)]
fix cursor position after sidebar redraw

If the user is entering data, e.g. mail subject, and a sidebar redraw
interrupts them, put the cursor back where it belongs.

Fixes: #49
9 years agorework mutt_draw_statusline()
Richard Russon [Sun, 5 Jun 2016 02:29:06 +0000 (03:29 +0100)]
rework mutt_draw_statusline()

Refactor, simplify and comment mutt_draw_statusline.

It now calls addnstr() to display strings instead of addch() which was
causing display problems with some terminals.

Fixes: #41
9 years agoupdate changelog neomutt-20160611
Richard Russon [Sat, 11 Jun 2016 17:28:33 +0000 (18:28 +0100)]
update changelog

9 years agomerge: nntp
Richard Russon [Sat, 11 Jun 2016 16:02:22 +0000 (17:02 +0100)]
merge: nntp

 * Fix spelling error