summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-30 06:40:30 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-30 06:40:30 +0000
commit27c8f6346b722ae7bef32769c015af0db305f8ef (patch)
treed90c39bf5015ffd9324c04c8d3719619c6311902
parentbdf259032f56ba4a4a91db67fe937744bdf28a56 (diff)
Don't generate a NULL micalg parameter when getting postponed
messages.
-rw-r--r--headers.c31
-rw-r--r--postpone.c3
2 files changed, 2 insertions, 32 deletions
diff --git a/headers.c b/headers.c
index c9bc49b2..69c65e90 100644
--- a/headers.c
+++ b/headers.c
@@ -206,31 +206,6 @@ void mutt_edit_headers (const char *editor,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
#ifdef _PGPPATH
else if (strncasecmp ("pgp:", cur->data, 4) == 0)
{
@@ -240,12 +215,6 @@ void mutt_edit_headers (const char *editor,
#endif
-
-
-
-
-
-
if (keep)
{
last = cur;
diff --git a/postpone.c b/postpone.c
index 193beaa1..5f35ff85 100644
--- a/postpone.c
+++ b/postpone.c
@@ -357,7 +357,8 @@ int mutt_parse_pgp_hdr (char *p, int set_signas)
PgpSignAs = safe_strdup(pgp_sign_as);
}
- if (set_signas || *pgp_sign_micalg)
+ /* the micalg field must not be empty */
+ if (set_signas && *pgp_sign_micalg)
{
safe_free((void **) &PgpSignMicalg);
PgpSignMicalg = safe_strdup(pgp_sign_micalg);