]> granicus.if.org Git - mutt/log
mutt
11 years agoAdd gpg signature name. (closes #3478)
Kevin McCarthy [Wed, 30 Oct 2013 01:25:52 +0000 (18:25 -0700)]
Add gpg signature name. (closes #3478)

Some mail clients display "noname" for the gpg signature
attachment.  This patch sets the mime name to "signature.asc".

The patch is based on
http://dev.mutt.org/trac/attachment/ticket/3478/gpg_signature_name.patch
with the changes:
  - removes the configuration options
  - removes mime description

10 years agomerge stable
Kevin McCarthy [Tue, 6 Jan 2015 22:38:27 +0000 (14:38 -0800)]
merge stable

10 years agomerge stable
Kevin McCarthy [Tue, 6 Jan 2015 22:31:48 +0000 (14:31 -0800)]
merge stable

10 years agoChange bounce to use mutt_parse_adrlist() for address parsing.
Kevin McCarthy [Sat, 3 Jan 2015 19:33:10 +0000 (11:33 -0800)]
Change bounce to use mutt_parse_adrlist() for address parsing.

When prompting for recipients, forwarding, replying, and mailing all use
mutt_parse_adrlist() to parse the addresses.  This allows for addresses
to be separated by spaces.

Bounce message currently uses rfc822_parse_adrlist(), which doesn't
allow the spaces.  This one-line patch simply changes bounce to behave
the same as mail, reply, and forwarding for the address prompt.

Thanks to Roger Cornelius for the patch!

10 years agoFix segfault of extract-keys (^K) under gpgme. (closes #3698)
Kevin McCarthy [Thu, 1 Jan 2015 04:35:38 +0000 (20:35 -0800)]
Fix segfault of extract-keys (^K) under gpgme. (closes #3698)

This patch is based on the patch by Ben Price, which relocated the
safe_fclose (&in) after its use by keydata in pgp_gpgme_extract_keys.
Thank you for the patch!

In addition, this patch:
  * removes spurious (debug?) output when the extract keys is finished.
  * adds a gpgme_data_release() call to free the keydata.

10 years agoFix segfault of extract-keys (^K) under gpgme. (closes #3698)
Kevin McCarthy [Thu, 1 Jan 2015 04:35:38 +0000 (20:35 -0800)]
Fix segfault of extract-keys (^K) under gpgme. (closes #3698)

This patch is based on the patch by Ben Price, which relocated the
safe_fclose (&in) after its use by keydata in pgp_gpgme_extract_keys.
Thank you for the patch!

In addition, this patch:
  * removes spurious (debug?) output when the extract keys is finished.
  * adds a gpgme_data_release() call to free the keydata.

10 years agoRevert write_one_header() to skip space and tab. (closes #3716)
Kevin McCarthy [Mon, 1 Dec 2014 22:19:24 +0000 (14:19 -0800)]
Revert write_one_header() to skip space and tab.  (closes #3716)

This patch fixes CVE-2014-9116 in the stable branch.  It reverts
write_one_header() to the pre [f251d523ca5a] code for skipping
whitespace.

Thanks to Antonio Radici and Tomas Hoger for their analysis and patches
to mutt, which this patch is based off of.

10 years agoFix segv in pgp_getkeybystr(). (closes #3725)
Kevin McCarthy [Tue, 6 Jan 2015 02:28:59 +0000 (18:28 -0800)]
Fix segv in pgp_getkeybystr().  (closes #3725)

When searching for keys, and the user supplies "" to match against,
pgp_getkeybystr will have values:
  p = "";
  l = 0;
After returning from pgp_select_key(), it will try to assign to
p[l-1].

(As a note, the function is chopping off and restoring the trailing
"!" character because of ticket #1928.)

10 years agoFix a memory leak in mutt_query_complete.
Kevin McCarthy [Fri, 10 Oct 2014 06:17:09 +0000 (14:17 +0800)]
Fix a memory leak in mutt_query_complete.

When a single result was returned, it was written to the buffer and
returned, but the query result was never freed.

This patch creates a free_query function and changes the code to use
that everywhere.

10 years agomutt_sasl: fix double negative in iptostring result check (fixes #3705)
Brendan Cully [Sun, 7 Sep 2014 18:04:54 +0000 (11:04 -0700)]
mutt_sasl: fix double negative in iptostring result check (fixes #3705)

10 years agomutt_sasl: whitespace only
Brendan Cully [Sun, 7 Sep 2014 17:52:21 +0000 (10:52 -0700)]
mutt_sasl: whitespace only

10 years agoFix variable name in configure.ac.
Kevin McCarthy [Fri, 15 Aug 2014 03:12:28 +0000 (20:12 -0700)]
Fix variable name in configure.ac.

$ac_cv_search_STRINGPREP_CHECK_VERSION should be
$ac_cv_search_stringprep_check_version, to match the first parameter of
the AC_SEARCH_LIBS([stringprep_check_version] above.

Running configure was giving a "test: =: unary operator expected" error.

10 years agoRemove duplicate SmimeCryptAlg declaration in globals.h
Kevin McCarthy [Sun, 28 Dec 2014 17:41:09 +0000 (09:41 -0800)]
Remove duplicate SmimeCryptAlg declaration in globals.h

Thank you Elias Diem for the patch.

10 years agoWrap pgp_uid_t->addr in NONULL(). (closes #3564)
Kevin McCarthy [Tue, 12 Aug 2014 21:33:17 +0000 (14:33 -0700)]
Wrap pgp_uid_t->addr in NONULL(). (closes #3564)

The previous patch introduced the possibility for addr to be null.  Mutt
is surprisingly robust against null strings, but there are a few places
that should be wrapped in NONULL().

10 years agoFix parse_pub_line to allow an empty User-ID field for a pub record. (see #3564)
Kevin McCarthy [Tue, 12 Aug 2014 21:33:17 +0000 (14:33 -0700)]
Fix parse_pub_line to allow an empty User-ID field for a pub record. (see #3564)

A key whose primary uid record has an empty User-ID will result in the
user being unable to use the key to encrypt an email in mutt.  This is
because the mutt functions for key selection iterate through the address
fields of a key for matching against and for displaying to the user.

This change allows a pgp_uid_t record to be created for a pub record
whose User-ID field is blank.  So the key will have one address record,
albeit with a null addr field.

10 years agoUpdated French translation.
Vincent Lefevre [Fri, 25 Jul 2014 18:43:05 +0000 (20:43 +0200)]
Updated French translation.

10 years agoUpdated Catalan translation.
Ivan Vilata i Balaguer [Thu, 13 Mar 2014 23:37:01 +0000 (23:37 +0000)]
Updated Catalan translation.

10 years agoUpdated Ukrainian translation.
Vsevolod Volkov [Thu, 13 Mar 2014 17:41:29 +0000 (17:41 +0000)]
Updated Ukrainian translation.

10 years agoUpdated Russian translation.
Vsevolod Volkov [Thu, 13 Mar 2014 17:41:01 +0000 (17:41 +0000)]
Updated Russian translation.

10 years agofix typo in man page.
Jonathan Wakely [Thu, 13 Mar 2014 17:36:01 +0000 (17:36 +0000)]
fix typo in man page.

10 years agoUpdated Czech translation
Petr Pisar [Thu, 13 Mar 2014 03:56:39 +0000 (03:56 +0000)]
Updated Czech translation

10 years agomutt-1.5.23 signed
Brendan Cully [Wed, 12 Mar 2014 16:44:43 +0000 (09:44 -0700)]
mutt-1.5.23 signed

10 years agoAdded tag mutt-1-5-23-rel for changeset b8a63730c848
Brendan Cully [Wed, 12 Mar 2014 16:28:10 +0000 (09:28 -0700)]
Added tag mutt-1-5-23-rel for changeset b8a63730c848

10 years agoautomatic post-release commit for mutt-1.5.23 mutt-1-5-23-rel
Brendan Cully [Wed, 12 Mar 2014 16:28:10 +0000 (09:28 -0700)]
automatic post-release commit for mutt-1.5.23

10 years agobuild-release: make sure version is picked up by autoconf
Brendan Cully [Wed, 12 Mar 2014 16:25:57 +0000 (09:25 -0700)]
build-release: make sure version is picked up by autoconf

10 years agomkchangelog: only show log entries on current branch
Brendan Cully [Wed, 12 Mar 2014 16:25:27 +0000 (09:25 -0700)]
mkchangelog: only show log entries on current branch

10 years agoNo more devel
Brendan Cully [Wed, 12 Mar 2014 16:15:35 +0000 (09:15 -0700)]
No more devel

10 years agoadd user visible changes since 1.5.22 release.
Michael Elkins [Tue, 11 Mar 2014 17:04:47 +0000 (10:04 -0700)]
add user visible changes since 1.5.22 release.

10 years agoFix buffer overrun caused by not updating a string length after address expansion.
Michael Elkins [Tue, 11 Mar 2014 16:40:09 +0000 (09:40 -0700)]
Fix buffer overrun caused by not updating a string length after address expansion.

11 years agoOverride draft headers with arguments. (closes #3580)
Kevin McCarthy [Sun, 3 Nov 2013 03:12:41 +0000 (20:12 -0700)]
Override draft headers with arguments. (closes #3580)

Currently, if the -H option is used, it is not possible to redefine the
recipient addresses with positional argument. This patch fixes it as
well as CC, Bcc, and Subject headers.

This patch is based on the patch by Petr Písař at
http://dev.mutt.org/trac/attachment/ticket/3580/override_draft_headers_with_arguments.patch

This version of the patch merges the To, Cc, and Bcc commandline
arguments into the template, and fixes a few small problems with the
previous patch.

This patch also moves the fin close outside the "if (tempfile)" block,
since it is opened outside that block.

10 years agoEnable %a format string for all pgp command configs. (closes #3699)
Kevin McCarthy [Sat, 21 Jun 2014 20:51:38 +0000 (13:51 -0700)]
Enable %a format string for all pgp command configs. (closes #3699)

Currently, the documentation states that, with the exception of
pgp_getkeys_command, all the PGP format commands should be available to
the pgp_*_command configuration variables.

However, the %a format is actually only enabled for
pgp_clearsign_command, pgp_encrypt_sign_command, and pgp_sign_command.

Philip Rinn discovered this problem when he was trying to add a
"--encrypt-to %a" to pgp_encrypt_only_command.  Rather than just fix
the one configuration he was having the problem with, this patch
enables %a usage for all of them. (With the exception of the documented
pgp_getkeys_command.)

11 years agoNote correct usage of $edit_headers. (closes #3673)
Kevin McCarthy [Thu, 19 Dec 2013 03:19:30 +0000 (19:19 -0800)]
Note correct usage of $edit_headers. (closes #3673)

Ticket 3673 shows that it isn't necessarily obvious a blank
line is needed between the headers and body of a message when using
$edit_headers.  This patch adds a small note to the documentation,
indicating the blank line should be preserved between the headers and
body.

Thank you Sinan Kaan Yerli for the patch.

10 years agoClarify PGPPATH usage in manpages.
Kevin McCarthy [Wed, 13 Aug 2014 20:46:40 +0000 (13:46 -0700)]
Clarify PGPPATH usage in manpages.

Make more clear that, when used with the original PGP program, mutt and
pgpring rely on this being set.

10 years agoFix a memory leak in mutt_query_complete.
Kevin McCarthy [Fri, 10 Oct 2014 06:17:09 +0000 (14:17 +0800)]
Fix a memory leak in mutt_query_complete.

When a single result was returned, it was written to the buffer and
returned, but the query result was never freed.

This patch creates a free_query function and changes the code to use
that everywhere.

10 years agoRemove unused variable t in start_debug().
Kevin McCarthy [Fri, 22 Aug 2014 01:41:07 +0000 (18:41 -0700)]
Remove unused variable t in start_debug().

t was set but never used.  This was generating a compiler warning.

10 years agoFix variable name in configure.ac.
Kevin McCarthy [Fri, 15 Aug 2014 03:12:28 +0000 (20:12 -0700)]
Fix variable name in configure.ac.

$ac_cv_search_STRINGPREP_CHECK_VERSION should be
$ac_cv_search_stringprep_check_version, to match the first parameter of
the AC_SEARCH_LIBS([stringprep_check_version] above.

Running configure was giving a "test: =: unary operator expected" error.

10 years agoRemove duplicate SmimeCryptAlg declaration in globals.h
Kevin McCarthy [Sun, 28 Dec 2014 17:41:09 +0000 (09:41 -0800)]
Remove duplicate SmimeCryptAlg declaration in globals.h

Thank you Elias Diem for the patch.

10 years agoDisable SSLv3 by default.
David Champion [Wed, 5 Nov 2014 05:40:10 +0000 (23:40 -0600)]
Disable SSLv3 by default.

Since Oct. 14 2014 SSLv3 is no longer considered safe. See POODLE:
https://en.wikipedia.org/wiki/Transport_Layer_Security#POODLE_attack

10 years agohcache tcdb debug logging
Brendan Cully [Sat, 11 Oct 2014 20:20:54 +0000 (13:20 -0700)]
hcache tcdb debug logging

10 years agoadd check-syntax target for flymake
Brendan Cully [Sat, 11 Oct 2014 18:05:21 +0000 (11:05 -0700)]
add check-syntax target for flymake

10 years agoignore generated pgpewrap/pgpring man pages
Brendan Cully [Sat, 11 Oct 2014 17:59:34 +0000 (10:59 -0700)]
ignore generated pgpewrap/pgpring man pages

10 years agoignore gnu global tags
Brendan Cully [Sat, 11 Oct 2014 17:58:38 +0000 (10:58 -0700)]
ignore gnu global tags

10 years agomerge stable
Brendan Cully [Sun, 7 Sep 2014 19:00:28 +0000 (12:00 -0700)]
merge stable

10 years agomerge stable
Brendan Cully [Sun, 7 Sep 2014 17:36:33 +0000 (10:36 -0700)]
merge stable

10 years agoFix deprecated gnutls_protocol_set_priority. (closes #3515)
Kevin McCarthy [Sat, 23 Aug 2014 01:51:38 +0000 (18:51 -0700)]
Fix deprecated gnutls_protocol_set_priority.  (closes #3515)

This patch is based off of the patch at
http://dev.mutt.org/trac/attachment/ticket/3515/624058-gnutls-deprecated-set-priority.patch

The mutt source has changed since then, with more TLS options being
added.  This patch therefore uses a slightly different strategy for generating the
priority string.

The patch also adds autoconf support, as requested by brendan at
http://dev.mutt.org/trac/ticket/3515#comment:1

10 years agoUpdated Dutch translation
Benno Schulenberg [Sat, 8 Feb 2014 18:24:22 +0000 (10:24 -0800)]
Updated Dutch translation

11 years agoMerge stable into default
Brendan Cully [Tue, 29 Oct 2013 07:11:16 +0000 (00:11 -0700)]
Merge stable into default

11 years agoremove trailing period from documentation for $pgp_list_secring_command
Michael Elkins [Thu, 24 Oct 2013 16:55:36 +0000 (09:55 -0700)]
remove trailing period from documentation for $pgp_list_secring_command

11 years agoremove trailing period from documentation for $pgp_list_pubring_command
Michael Elkins [Thu, 24 Oct 2013 16:24:58 +0000 (09:24 -0700)]
remove trailing period from documentation for $pgp_list_pubring_command

11 years agomerge changesets from stable branch
Michael Elkins [Wed, 23 Oct 2013 18:20:24 +0000 (11:20 -0700)]
merge changesets from stable branch

11 years agoMerge stable into default
Brendan Cully [Wed, 23 Oct 2013 04:26:31 +0000 (21:26 -0700)]
Merge stable into default

11 years agoMove HEAD to default
Brendan Cully [Wed, 23 Oct 2013 04:25:31 +0000 (21:25 -0700)]
Move HEAD to default

11 years agocreate stable branch
Brendan Cully [Wed, 23 Oct 2013 04:11:55 +0000 (21:11 -0700)]
create stable branch

11 years agoadd note about use of ! ~Q in send-hook when paired with reply-hook.
Michael Elkins [Mon, 21 Oct 2013 18:58:24 +0000 (11:58 -0700)]
add note about use of ! ~Q in send-hook when paired with reply-hook.

11 years agoremove <stdbool.h> and use "1" instead of "true". closes #3657
Michael Elkins [Sat, 19 Oct 2013 18:23:20 +0000 (11:23 -0700)]
remove <stdbool.h> and use "1" instead of "true".  closes #3657

see #3642 for the change that caused this bug.

11 years agoupdate UPDATING with 1.5.22 release date
Michael Elkins [Fri, 18 Oct 2013 21:12:08 +0000 (14:12 -0700)]
update UPDATING with 1.5.22 release date

11 years agomutt-1.5.22 signed
Brendan Cully [Fri, 18 Oct 2013 05:55:27 +0000 (22:55 -0700)]
mutt-1.5.22 signed

11 years agoAdded tag mutt-1-5-22-rel for changeset 8c5ea668e7e0
Brendan Cully [Fri, 18 Oct 2013 05:43:06 +0000 (22:43 -0700)]
Added tag mutt-1-5-22-rel for changeset 8c5ea668e7e0

11 years agoautomatic post-release commit for mutt-1.5.22 mutt-1-5-22-rel
Brendan Cully [Fri, 18 Oct 2013 05:43:05 +0000 (22:43 -0700)]
automatic post-release commit for mutt-1.5.22

11 years agoRework logic to avoid advancing list pointer inside the for loop.
Michael Elkins [Wed, 16 Oct 2013 16:04:29 +0000 (16:04 +0000)]
Rework logic to avoid advancing list pointer inside the for loop.

closes #3531

11 years agoupdated Catalan translation
Ivan Vilata i Balaguer [Tue, 15 Oct 2013 15:41:29 +0000 (15:41 +0000)]
updated Catalan translation

11 years agoupdated Ukranian translation
Vsevolod Volkov [Fri, 11 Oct 2013 15:51:18 +0000 (15:51 +0000)]
updated Ukranian translation

11 years agoupdated Japanese translation
TAKAHASHI Tamotsu [Fri, 11 Oct 2013 15:49:47 +0000 (15:49 +0000)]
updated Japanese translation

11 years agoadd missing files that were supposed to be included with [76f8df0ac80396559aa80e7f145...
Michael Elkins [Mon, 7 Oct 2013 17:32:11 +0000 (17:32 +0000)]
add missing files that were supposed to be included with [76f8df0ac80396559aa80e7f145be6f235a6db51]

11 years agoadds some missing options in doc and adds man pages for binaries pgpewrap and pgpring.
hhorak [Mon, 7 Oct 2013 17:21:38 +0000 (17:21 +0000)]
adds some missing options in doc and adds man pages for binaries pgpewrap and pgpring.

closes #3643

11 years agoProblems with muttrc.5:
esr [Mon, 7 Oct 2013 17:09:25 +0000 (17:09 +0000)]
Problems with muttrc.5:

Ambiguous or invalid backslash.  This doesn't cause groff a problem.
but it confuses doclifter and may confuse older troff implementations.

Unknown or invalid macro.  That is, one that does not fit in the
macro set that the man page seems to be using.  This is a serious
error; it often means part of your text is being lost or rendered
incorrectly.

Use local definitions of .EX/.EE or .DS/.DE to avoid low-level troff
requests in the page body.  There are plans to add these to groff man;
in the interim, this patch adds a compatible definition to your page.

11 years agoProblems with mutt.1:
esr [Mon, 7 Oct 2013 16:10:00 +0000 (16:10 +0000)]
Problems with mutt.1:

Ambiguous or invalid backslash.  This doesn't cause groff a problem.
but it confuses doclifter and may confuse older troff implementations.

Spelling error or typo.

11 years agoinclude <stdbool.h> for definition 'true'
nihilhill [Sun, 6 Oct 2013 16:31:17 +0000 (09:31 -0700)]
include <stdbool.h> for definition 'true'

closes #3642

11 years agoFix segfault when viewing text attachments in compose menu. (closes #3644)
Kevin McCarthy [Sat, 5 Oct 2013 07:57:49 +0000 (15:57 +0800)]
Fix segfault when viewing text attachments in compose menu.  (closes #3644)

The segfault was introduced in changeset b9f9e3147eb4.  Since decoding
and charset conversion aren't needed for attachments when composing a
message, this patch reverts to just using mutt_save_attachment() to view
"raw data" for text attachments in the compose/send case.

This patch is based on Michael Elkins' patch at
http://dev.mutt.org/trac/attachment/ticket/3644/view_attach_compose_segfault
with just a missing return value check added.

11 years agoEnsure that BUFFER variables are initialized to prevent later attempts
Aaron Schrab [Sun, 6 Oct 2013 14:32:45 +0000 (14:32 +0000)]
Ensure that BUFFER variables are initialized to prevent later attempts
to traverse an uninitialized pointer.

11 years agoConsistently use mutt_buffer_init function
Aaron Schrab [Sat, 5 Oct 2013 19:25:00 +0000 (19:25 +0000)]
Consistently use mutt_buffer_init function

Despite the existence of the mutt_buffer_init function, most
initializations were instead done with memset.  Use the specific
function instead to make it easier if later changes are made to how the
initialization should be done.

11 years agoWhen recalling a postponed message that does not have a x-mutt-fcc header
Michael Elkins [Fri, 4 Oct 2013 18:22:15 +0000 (18:22 +0000)]
When recalling a postponed message that does not have a x-mutt-fcc header
field, generate a default FCC just as we do for new messages.  If x-mutt-fcc is
present but empty, we assume that means the user does not want a copy.

closes #3653

11 years agoEnsure that at least one signature was generated to catch the case where $pgp_sign_as...
Michael Elkins [Wed, 23 Oct 2013 18:11:25 +0000 (11:11 -0700)]
Ensure that at least one signature was generated to catch the case where $pgp_sign_as is unset and no default key is specified in ~/.gnupg/gpg.conf

closes #3658

11 years agouse LOFF_T as the type for variables used in fseeko()
Michael Elkins [Sun, 6 Oct 2013 16:15:57 +0000 (09:15 -0700)]
use LOFF_T as the type for variables used in fseeko()

closes #3487

11 years agoDisplay the KeyID when the pubkey is not found in the user's keyring during signature...
Michael Elkins [Fri, 4 Oct 2013 18:04:02 +0000 (18:04 +0000)]
Display the KeyID when the pubkey is not found in the user's keyring during signature verification.

closes #3654

11 years agoreturn 0 if import of cert failed to match other error conditions.
Michael Elkins [Wed, 23 Oct 2013 18:11:23 +0000 (11:11 -0700)]
return 0 if import of cert failed to match other error conditions.

11 years agoonly terminate the write-half of the TLS connection to avoid hanging if the remote...
Michael Elkins [Wed, 23 Oct 2013 18:11:23 +0000 (11:11 -0700)]
only terminate the write-half of the TLS connection to avoid hanging if the remote doesn't respond.

RFC5246 section 7.2.4 states that the initiator of the closure need not wait for the remote to response before closing the read-half.

closes #3633

11 years agofix more comment typos
Michael Elkins [Fri, 4 Oct 2013 16:47:59 +0000 (16:47 +0000)]
fix more comment typos

11 years agofix typos in comments
Ondřej Bílka [Tue, 23 Jul 2013 12:07:04 +0000 (14:07 +0200)]
fix typos in comments

11 years agoFix postpone/resume to not remove a Mail-Followup-To header (closes #3070)
Kevin McCarthy [Fri, 26 Apr 2013 19:10:46 +0000 (12:10 -0700)]
Fix postpone/resume to not remove a Mail-Followup-To header  (closes #3070)

This solution changes mutt_prepare_template() to check whether the
message_id field is NULL to decide whether to wipe the message-id and
mail-followup-to headers when instantiating the message.

If we are resending a message, we don't want the previous message-id
and mail-followup-to headers.  If we are resuming a postponed message,
however, we want to keep the mail-followup-to header if any was set
before the postpone.
(grafted from d7d83298011a6e7aa31bde49e0b6b21209a85fd2)

11 years agoversion.sh: step back from $() to ``. closes #3661
Aaron Schrab [Tue, 22 Oct 2013 20:12:31 +0000 (15:12 -0500)]
version.sh: step back from $() to ``.  closes #3661
(grafted from 01cf5814dfe5e79b65b1d950aab1276d19a9f031)

11 years agoAllow filename prompt when saving multiple attachments to a directory. (closes #3083)
Kevin McCarthy [Mon, 15 Jul 2013 02:48:44 +0000 (19:48 -0700)]
Allow filename prompt when saving multiple attachments to a directory. (closes #3083)

Currently, if you specify a directory when saving multiple attachments
and choose (a)ll, the first attachment is saved without confirming the
filename.  Subsequent attachments prompt for the filename.

11 years agoFix postpone/resume to not remove a Mail-Followup-To header (closes #3070)
Kevin McCarthy [Fri, 26 Apr 2013 19:10:46 +0000 (12:10 -0700)]
Fix postpone/resume to not remove a Mail-Followup-To header  (closes #3070)

This solution changes mutt_prepare_template() to check whether the
message_id field is NULL to decide whether to wipe the message-id and
mail-followup-to headers when instantiating the message.

If we are resending a message, we don't want the previous message-id
and mail-followup-to headers.  If we are resuming a postponed message,
however, we want to keep the mail-followup-to header if any was set
before the postpone.

11 years agoUPDATING blurb for terminal status features
David Champion [Tue, 22 Oct 2013 21:24:08 +0000 (16:24 -0500)]
UPDATING blurb for terminal status features

11 years agoversion.sh: step back from $() to ``. closes #3661
Aaron Schrab [Tue, 22 Oct 2013 20:12:31 +0000 (15:12 -0500)]
version.sh: step back from $() to ``.  closes #3661

11 years agoTerminal status line support, based on the xterm title patch.
David Champion [Tue, 22 Oct 2013 19:15:01 +0000 (14:15 -0500)]
Terminal status line support, based on the xterm title patch.

Christoph Berg took the xterm title patch from the mutt mailing list and
maintained it for Debian:
* Changes made:
  - 2007-01-27 myon: using %P caused a segfault, updated status.c to catch
    menu==NULL.
  - 2007-02-20 myon: make the note about the xterm_set_titles defaults a
    comment.
  - 2008-08-02 myon: move set_xterm_* prototypes into the proper header file
    (cleaner code, no functional change, evades conflict with sidebar patch)

This update reworks the Debian version as generic support for tsl/fsl
terminfo capability.  It no longer depends on a static list of supported
terminal types, although it will use default support for these terminal
types *if* they do not advertise tsl/fsl or XT in terminfo.

The generic terminal status line can be implemented in any fashion, and
on hardware terminals it can be a special out-of-screen region of the
display.  Most modern terminal emulators appear to emulate the status
line in the window title; thus the notion of the tsl escape as an xterm
window title escape.

Configuration variables have been renamed:
$ts_status_format
    format string (using $status_format codes) for the terminal status line
$ts_icon_format
    format string (using $status_format codes) for the xterm icon name
$ts_enabled
    toggle for whether to issue status updates

The old configuration names exist as synonyms.

Logic flow:
* If tsl (string) is set in terminfo, mutt will use that escape to switch
  to the status area, and will use fsl to switch back to the regular
  display area.
* Otherwise, if XT (boolean) is set in terminfo, mutt will use the
  standard xterm-compatible escapes.
* Otherwise, if $TERM matches a known terminal type, mutt will use the
  standard xterm-compatible escapes.
* Otherwise, this feature is disabled.

= NOTE =

The XTerm icon escape sequence is not formalized in terminfo, so the
egregious kludge of hardcoding the escape is necessary in this case.
However, some terminal emulators (e.g. MacOS X Terminal.app) will set
the status line (window title) when the icon sequence is received.
Since there is no way to detect this behavior, the only solution is to
write your configuration to take it into account.  Rather than add a
variable to control icon escapes separately, we just provide the advice:
if you use such a terminal, you may wish to set ts_icon_format to an
empty string.  This will cause it not to be used.

11 years agoDon't exit pager if quit=ask is answered "no".
Kevin McCarthy [Wed, 17 Apr 2013 03:12:25 +0000 (20:12 -0700)]
Don't exit pager if quit=ask is answered "no".

This patch addresses ticket 2788.

Currently if you quit ('Q') from inside the pager, with quit=ask-yes
or quit=ask-no, and you respond "no", mutt leaves you back in the index
menu.

This patch changes it so that mutt does not exit the pager.

11 years agobackout c1371176ea45
Michael Elkins [Thu, 11 Apr 2013 02:17:41 +0000 (02:17 +0000)]
backout c1371176ea45

11 years agoBacked out changeset 1142ed8974fa
Michael Elkins [Thu, 11 Apr 2013 01:59:26 +0000 (01:59 +0000)]
Backed out changeset 1142ed8974fa

11 years agouse gethostname() to determine the system host name
Michael Elkins [Wed, 10 Apr 2013 23:40:18 +0000 (23:40 +0000)]
use gethostname() to determine the system host name

use getaddrinfo() to look up canonical DNS name, and fall back to hinting from /etc/resolv.conf

see #3298

11 years agofix various compiler warnings; most were due to unchecked return values from system...
Michael Elkins [Wed, 10 Apr 2013 22:38:47 +0000 (22:38 +0000)]
fix various compiler warnings; most were due to unchecked return values from system calls.

11 years agouse mkdtemp() to create temporary directory rather than mktemp() followed by mkdir()
is [Mon, 4 Mar 2013 04:14:43 +0000 (04:14 +0000)]
use mkdtemp() to create temporary directory rather than mktemp() followed by mkdir()

closes #3637

11 years agouse of sscanf() had undefined behavior, replace with simple parsing instead
Michael Elkins [Sat, 23 Feb 2013 03:12:43 +0000 (03:12 +0000)]
use of sscanf() had undefined behavior, replace with simple parsing instead

see #3636

11 years agoincrease string size by one byte to accomodate the terminating null character in...
Michael Elkins [Fri, 22 Feb 2013 18:31:31 +0000 (18:31 +0000)]
increase string size by one byte to accomodate the terminating null character in fscanf() since the maximum field width does not include it

closes #3636

hat tip: Will Fiveash

11 years agofix potential buffer overflow in off-by-one bounds checking error
john beck [Fri, 22 Feb 2013 16:30:40 +0000 (16:30 +0000)]
fix potential buffer overflow in off-by-one bounds checking error

closes #3635

11 years agoexplicitly call mutt_refresh() prior to endwin() to force a screen redraw.
Michael Elkins [Fri, 8 Feb 2013 17:06:31 +0000 (17:06 +0000)]
explicitly call mutt_refresh() prior to endwin() to force a screen redraw.

[4903e80356d3] removed the call, but some environments (screen+xterm under
SuSE11/12) don't properly flush without it prior to the endwin() call

11 years agodo not use mutt_message() to display prompt in mutt_yesorno().
Michael Elkins [Thu, 31 Jan 2013 05:06:56 +0000 (05:06 +0000)]
do not use mutt_message() to display prompt in mutt_yesorno().

properly calculate screen width of prompt string by using mutt_strwidth() rather than strlen()

use safe_asprintf() return the formatted yes/no string since specifying COLS+1 is wrong when dealing with multibyte characters

closes #3412
closes #3352

11 years agoadd support for $mail_check_recent to mh mailbox driver
Michael Elkins [Wed, 23 Jan 2013 21:52:31 +0000 (21:52 +0000)]
add support for $mail_check_recent to mh mailbox driver

closes #3629

11 years agodo not explicitly reset the terminal attributes and move the cursor in mutt_endwin...
Michael Elkins [Wed, 23 Jan 2013 19:52:28 +0000 (19:52 +0000)]
do not explicitly reset the terminal attributes and move the cursor in mutt_endwin().  endwin() itself should handle this.

closes #3627

11 years agoremove PKG_CHECK_MODULE() check and always use AC_CHECK_HEADERS()
Michael Elkins [Tue, 22 Jan 2013 02:02:00 +0000 (02:02 +0000)]
remove PKG_CHECK_MODULE() check and always use AC_CHECK_HEADERS()

only check for <idn/idna.h> when <idna.h> isn't found

closes #3626