2 * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
3 * Copyright (C) 2000-4,2006 Thomas Roessler <roessler@does-not-exist.org>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 #include "mutt_curses.h"
26 #include "mutt_menu.h"
33 #include "mutt_crypt.h"
34 #include "mutt_idna.h"
35 #include <sys/types.h>
51 #include <sys/types.h>
54 static const char *ExtPagerProgress = "all";
56 /* The folder the user last saved to. Used by ci_save_message() */
57 static char LastSaveFolder[_POSIX_PATH_MAX] = "";
59 int mutt_display_message (HEADER *cur)
61 char tempfile[_POSIX_PATH_MAX], buf[LONG_STRING];
62 int rc = 0, builtin = 0;
63 int cmflags = M_CM_DECODE | M_CM_DISPLAY | M_CM_CHARCONV;
65 FILE *fpfilterout = NULL;
69 snprintf (buf, sizeof (buf), "%s/%s", TYPE (cur->content),
70 cur->content->subtype);
72 mutt_parse_mime_message (Context, cur);
73 mutt_message_hook (Context, cur, M_MESSAGEHOOK);
75 /* see if crytpo is needed for this message. if so, we should exit curses */
76 if (WithCrypto && cur->security)
78 if (cur->security & ENCRYPT)
80 if (cur->security & APPLICATION_SMIME)
81 crypt_smime_getkeys (cur->env);
82 if(!crypt_valid_passphrase(cur->security))
85 cmflags |= M_CM_VERIFY;
87 else if (cur->security & SIGN)
89 /* find out whether or not the verify signature */
90 if (query_quadoption (OPT_VERIFYSIG, _("Verify PGP signature?")) == M_YES)
92 cmflags |= M_CM_VERIFY;
97 if (cmflags & M_CM_VERIFY || cur->security & ENCRYPT)
99 if (cur->security & APPLICATION_PGP)
102 crypt_pgp_invoke_getkeys (cur->env->from);
104 crypt_invoke_message (APPLICATION_PGP);
107 if (cur->security & APPLICATION_SMIME)
108 crypt_invoke_message (APPLICATION_SMIME);
112 mutt_mktemp (tempfile);
113 if ((fpout = safe_fopen (tempfile, "w")) == NULL)
115 mutt_error _("Could not create temporary file!");
119 if (DisplayFilter && *DisplayFilter)
123 /* mutt_endwin (NULL); */
124 filterpid = mutt_create_filter_fd (DisplayFilter, &fpout, NULL, NULL,
125 -1, fileno(fpfilterout), -1);
128 mutt_error (_("Cannot create display filter"));
129 safe_fclose (&fpfilterout);
135 if (!Pager || mutt_strcmp (Pager, "builtin") == 0)
139 struct hdr_format_info hfi;
141 hfi.pager_progress = ExtPagerProgress;
143 mutt_make_string_info (buf, sizeof (buf), NONULL(PagerFmt), &hfi, M_FORMAT_MAKEPRINT);
145 fputs ("\n\n", fpout);
148 res = mutt_copy_message (fpout, Context, cur, cmflags,
149 (option (OPTWEED) ? (CH_WEED | CH_REORDER) : 0) | CH_DECODE | CH_FROM | CH_DISPLAY);
150 if ((safe_fclose (&fpout) != 0 && errno != EPIPE) || res < 0)
152 mutt_error (_("Could not copy message"));
153 if (fpfilterout != NULL)
155 mutt_wait_filter (filterpid);
156 safe_fclose (&fpfilterout);
158 mutt_unlink (tempfile);
162 if (fpfilterout != NULL && mutt_wait_filter (filterpid) != 0)
163 mutt_any_key_to_continue (NULL);
165 safe_fclose (&fpfilterout); /* XXX - check result? */
170 /* update crypto information for this message */
171 cur->security &= ~(GOODSIGN|BADSIGN);
172 cur->security |= crypt_query (cur->content);
174 /* Remove color cache for this message, in case there
175 are color patterns for both ~g and ~V */
184 && (cur->security & APPLICATION_SMIME) && (cmflags & M_CM_VERIFY))
186 if (cur->security & GOODSIGN)
188 if (!crypt_smime_verify_sender(cur))
189 mutt_message ( _("S/MIME signature successfully verified."));
191 mutt_error ( _("S/MIME certificate owner does not match sender."));
193 else if (cur->security & PARTSIGN)
194 mutt_message (_("Warning: Part of this message has not been signed."));
195 else if (cur->security & SIGN || cur->security & BADSIGN)
196 mutt_error ( _("S/MIME signature could NOT be verified."));
200 && (cur->security & APPLICATION_PGP) && (cmflags & M_CM_VERIFY))
202 if (cur->security & GOODSIGN)
203 mutt_message (_("PGP signature successfully verified."));
204 else if (cur->security & PARTSIGN)
205 mutt_message (_("Warning: Part of this message has not been signed."));
206 else if (cur->security & SIGN)
207 mutt_message (_("PGP signature could NOT be verified."));
210 /* Invoke the builtin pager */
211 memset (&info, 0, sizeof (pager_t));
214 rc = mutt_pager (NULL, tempfile, M_PAGER_MESSAGE, &info);
221 snprintf (buf, sizeof (buf), "%s %s", NONULL(Pager), tempfile);
222 if ((r = mutt_system (buf)) == -1)
223 mutt_error (_("Error running \"%s\"!"), buf);
225 keypad (stdscr, TRUE);
227 mutt_set_flag (Context, cur, M_READ, 1);
228 if (r != -1 && option (OPTPROMPTAFTER))
230 mutt_ungetch (mutt_any_key_to_continue _("Command: "), 0);
231 rc = km_dokey (MENU_PAGER);
240 void ci_bounce_message (HEADER *h, int *redraw)
242 char prompt[SHORT_STRING];
243 char scratch[SHORT_STRING];
244 char buf[HUGE_STRING] = { 0 };
249 /* RfC 5322 mandates a From: header, so warn before bouncing
250 * messages without one */
255 mutt_error _("Warning: message has no From: header");
261 for (rc = 0; rc < Context->msgcount; rc++)
263 if (Context->hdrs[rc]->tagged && !Context->hdrs[rc]->env->from)
265 mutt_error ("Warning: message has no From: header");
273 strfcpy(prompt, _("Bounce message to: "), sizeof(prompt));
275 strfcpy(prompt, _("Bounce tagged messages to: "), sizeof(prompt));
277 rc = mutt_get_field (prompt, buf, sizeof (buf), M_ALIAS);
279 if (option (OPTNEEDREDRAW))
281 unset_option (OPTNEEDREDRAW);
282 *redraw = REDRAW_FULL;
288 if (!(adr = rfc822_parse_adrlist (adr, buf)))
290 mutt_error _("Error parsing address!");
294 adr = mutt_expand_aliases (adr);
296 if (mutt_addrlist_to_idna (adr, &err) < 0)
298 mutt_error (_("Bad IDN: '%s'"), err);
300 rfc822_free_address (&adr);
305 rfc822_write_address (buf, sizeof (buf), adr, 1);
307 #define extra_space (15 + 7 + 2)
308 snprintf (scratch, sizeof (scratch),
309 (h ? _("Bounce message to %s") : _("Bounce messages to %s")), buf);
311 if (mutt_strwidth (prompt) > COLS - extra_space)
313 mutt_format_string (prompt, sizeof (prompt),
314 0, COLS-extra_space, FMT_LEFT, 0,
315 scratch, sizeof (scratch), 0);
316 safe_strcat (prompt, sizeof (prompt), "...?");
319 snprintf (prompt, sizeof (prompt), "%s?", scratch);
321 if (query_quadoption (OPT_BOUNCE, prompt) != M_YES)
323 rfc822_free_address (&adr);
324 CLEARLINE (LINES - 1);
325 mutt_message (h ? _("Message not bounced.") : _("Messages not bounced."));
329 CLEARLINE (LINES - 1);
331 rc = mutt_bounce_message (NULL, h, adr);
332 rfc822_free_address (&adr);
333 /* If no error, or background, display message. */
334 if ((rc == 0) || (rc == S_BKG))
335 mutt_message (h ? _("Message bounced.") : _("Messages bounced."));
338 static void pipe_set_flags (int decode, int print, int *cmflags, int *chflags)
342 *cmflags |= M_CM_DECODE | M_CM_CHARCONV;
343 *chflags |= CH_DECODE | CH_REORDER;
345 if (option (OPTWEED))
348 *cmflags |= M_CM_WEED;
353 *cmflags |= M_CM_PRINTING;
357 static void pipe_msg (HEADER *h, FILE *fp, int decode, int print)
360 int chflags = CH_FROM;
362 pipe_set_flags (decode, print, &cmflags, &chflags);
364 if (WithCrypto && decode && h->security & ENCRYPT)
366 if(!crypt_valid_passphrase(h->security))
372 mutt_parse_mime_message (Context, h);
374 mutt_copy_message (fp, Context, h, cmflags, chflags);
378 /* the following code is shared between printing and piping */
380 static int _mutt_pipe_message (HEADER *h, char *cmd,
391 /* mutt_endwin (NULL);
393 is this really needed here ?
394 it makes the screen flicker on pgp and s/mime messages,
395 before asking for a passphrase...
400 mutt_message_hook (Context, h, M_MESSAGEHOOK);
402 if (WithCrypto && decode)
404 mutt_parse_mime_message (Context, h);
405 if(h->security & ENCRYPT && !crypt_valid_passphrase(h->security))
410 if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0)
412 mutt_perror _("Can't create filter process");
416 pipe_msg (h, fpout, decode, print);
417 safe_fclose (&fpout);
418 rc = mutt_wait_filter (thepid);
421 { /* handle tagged messages */
423 if (WithCrypto && decode)
425 for (i = 0; i < Context->vcount; i++)
426 if(Context->hdrs[Context->v2r[i]]->tagged)
428 mutt_message_hook (Context, Context->hdrs[Context->v2r[i]], M_MESSAGEHOOK);
429 mutt_parse_mime_message(Context, Context->hdrs[Context->v2r[i]]);
430 if (Context->hdrs[Context->v2r[i]]->security & ENCRYPT &&
431 !crypt_valid_passphrase(Context->hdrs[Context->v2r[i]]->security))
438 for (i = 0; i < Context->vcount; i++)
440 if (Context->hdrs[Context->v2r[i]]->tagged)
442 mutt_message_hook (Context, Context->hdrs[Context->v2r[i]], M_MESSAGEHOOK);
444 if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0)
446 mutt_perror _("Can't create filter process");
449 pipe_msg (Context->hdrs[Context->v2r[i]], fpout, decode, print);
450 /* add the message separator */
451 if (sep) fputs (sep, fpout);
452 safe_fclose (&fpout);
453 if (mutt_wait_filter (thepid) != 0)
461 if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0)
463 mutt_perror _("Can't create filter process");
466 for (i = 0; i < Context->vcount; i++)
468 if (Context->hdrs[Context->v2r[i]]->tagged)
470 mutt_message_hook (Context, Context->hdrs[Context->v2r[i]], M_MESSAGEHOOK);
471 pipe_msg (Context->hdrs[Context->v2r[i]], fpout, decode, print);
472 /* add the message separator */
473 if (sep) fputs (sep, fpout);
476 safe_fclose (&fpout);
477 if (mutt_wait_filter (thepid) != 0)
482 if (rc || option (OPTWAITKEY))
483 mutt_any_key_to_continue (NULL);
487 void mutt_pipe_message (HEADER *h)
489 char buffer[LONG_STRING];
492 if (mutt_get_field (_("Pipe to command: "), buffer, sizeof (buffer), M_CMD)
496 mutt_expand_path (buffer, sizeof (buffer));
497 _mutt_pipe_message (h, buffer,
498 option (OPTPIPEDECODE),
500 option (OPTPIPESPLIT),
504 void mutt_print_message (HEADER *h)
507 if (quadoption (OPT_PRINT) && (!PrintCmd || !*PrintCmd))
509 mutt_message (_("No printing command has been defined."));
513 if (query_quadoption (OPT_PRINT,
514 h ? _("Print message?") : _("Print tagged messages?"))
518 if (_mutt_pipe_message (h, PrintCmd,
519 option (OPTPRINTDECODE),
521 option (OPTPRINTSPLIT),
523 mutt_message (h ? _("Message printed") : _("Messages printed"));
525 mutt_message (h ? _("Message could not be printed") :
526 _("Messages could not be printed"));
530 int mutt_select_sort (int reverse)
532 int method = Sort; /* save the current method in case of abort */
534 switch (mutt_multi_choice (reverse ?
535 _("Rev-Sort (d)ate/(f)rm/(r)ecv/(s)ubj/t(o)/(t)hread/(u)nsort/si(z)e/s(c)ore/s(p)am?: ") :
536 _("Sort (d)ate/(f)rm/(r)ecv/(s)ubj/t(o)/(t)hread/(u)nsort/si(z)e/s(c)ore/s(p)am?: "),
539 case -1: /* abort - don't resort */
551 Sort = SORT_RECEIVED;
562 case 6: /* (t)hread */
566 case 7: /* (u)nsort */
574 case 9: /* s(c)ore */
578 case 10: /* s(p)am */
583 Sort |= SORT_REVERSE;
585 return (Sort != method ? 0 : -1); /* no need to resort if it's the same */
588 /* invoke a command in a subshell */
589 void mutt_shell_escape (void)
591 char buf[LONG_STRING];
594 if (mutt_get_field (_("Shell command: "), buf, sizeof (buf), M_CMD) == 0)
596 if (!buf[0] && Shell)
597 strfcpy (buf, Shell, sizeof (buf));
603 if (mutt_system (buf) != 0 || option (OPTWAITKEY))
604 mutt_any_key_to_continue (NULL);
609 /* enter a mutt command */
610 void mutt_enter_command (void)
613 char buffer[LONG_STRING], errbuf[LONG_STRING];
617 if (mutt_get_field (":", buffer, sizeof (buffer), M_COMMAND) != 0 || !buffer[0])
620 err.dsize = sizeof (errbuf);
621 memset (&token, 0, sizeof (token));
622 r = mutt_parse_rc_line (buffer, &token, &err);
626 /* since errbuf could potentially contain printf() sequences in it,
627 we must call mutt_error() in this fashion so that vsprintf()
628 doesn't expect more arguments that we passed */
630 mutt_message ("%s", errbuf);
632 mutt_error ("%s", errbuf);
636 void mutt_display_address (ENVELOPE *env)
639 char buf[SHORT_STRING];
642 adr = mutt_get_address (env, &pfx);
647 * Note: We don't convert IDNA to local representation this time.
648 * That is intentional, so the user has an opportunity to copy &
649 * paste the on-the-wire form of the address to other, IDN-unable
654 rfc822_write_address (buf, sizeof (buf), adr, 0);
655 mutt_message ("%s: %s", pfx, buf);
658 static void set_copy_flags (HEADER *hdr, int decode, int decrypt, int *cmflags, int *chflags)
661 *chflags = CH_UPDATE_LEN;
663 if (WithCrypto && !decode && decrypt && (hdr->security & ENCRYPT))
665 if ((WithCrypto & APPLICATION_PGP)
666 && mutt_is_multipart_encrypted(hdr->content))
668 *chflags = CH_NONEWLINE | CH_XMIT | CH_MIME;
669 *cmflags = M_CM_DECODE_PGP;
671 else if ((WithCrypto & APPLICATION_PGP)
672 && mutt_is_application_pgp (hdr->content) & ENCRYPT)
674 else if ((WithCrypto & APPLICATION_SMIME)
675 && mutt_is_application_smime(hdr->content) & ENCRYPT)
677 *chflags = CH_NONEWLINE | CH_XMIT | CH_MIME;
678 *cmflags = M_CM_DECODE_SMIME;
684 *chflags = CH_XMIT | CH_MIME | CH_TXTPLAIN;
685 *cmflags = M_CM_DECODE | M_CM_CHARCONV;
687 if (!decrypt) /* If decode doesn't kick in for decrypt, */
689 *chflags |= CH_DECODE; /* then decode RFC 2047 headers, */
691 if (option (OPTWEED))
693 *chflags |= CH_WEED; /* and respect $weed. */
694 *cmflags |= M_CM_WEED;
700 int _mutt_save_message (HEADER *h, CONTEXT *ctx, int delete, int decode, int decrypt)
702 int cmflags, chflags;
705 set_copy_flags (h, decode, decrypt, &cmflags, &chflags);
707 if (decode || decrypt)
708 mutt_parse_mime_message (Context, h);
710 if ((rc = mutt_append_message (ctx, Context, h, cmflags, chflags)) != 0)
715 mutt_set_flag (Context, h, M_DELETE, 1);
716 if (option (OPTDELETEUNTAG))
717 mutt_set_flag (Context, h, M_TAG, 0);
723 /* returns 0 if the copy/save was successful, or -1 on error/abort */
724 int mutt_save_message (HEADER *h, int delete,
725 int decode, int decrypt, int *redraw)
727 int i, need_buffy_cleanup;
728 int need_passphrase = 0, app=0;
729 char prompt[SHORT_STRING], buf[_POSIX_PATH_MAX];
736 snprintf (prompt, sizeof (prompt),
737 decode ? (delete ? _("Decode-save%s to mailbox") :
738 _("Decode-copy%s to mailbox")) :
739 (decrypt ? (delete ? _("Decrypt-save%s to mailbox") :
740 _("Decrypt-copy%s to mailbox")) :
741 (delete ? _("Save%s to mailbox") : _("Copy%s to mailbox"))),
742 h ? "" : _(" tagged"));
749 need_passphrase = h->security & ENCRYPT;
752 mutt_message_hook (Context, h, M_MESSAGEHOOK);
753 mutt_default_save (buf, sizeof (buf), h);
757 /* look for the first tagged message */
759 for (i = 0; i < Context->vcount; i++)
761 if (Context->hdrs[Context->v2r[i]]->tagged)
763 h = Context->hdrs[Context->v2r[i]];
771 mutt_message_hook (Context, h, M_MESSAGEHOOK);
772 mutt_default_save (buf, sizeof (buf), h);
775 need_passphrase = h->security & ENCRYPT;
782 mutt_pretty_mailbox (buf, sizeof (buf));
783 if (mutt_enter_fname (prompt, buf, sizeof (buf), redraw, 0) == -1)
786 if (*redraw != REDRAW_FULL)
789 *redraw = REDRAW_INDEX | REDRAW_STATUS;
791 *redraw = REDRAW_STATUS;
797 /* This is an undocumented feature of ELM pointed out to me by Felix von
798 * Leitner <leitner@prz.fu-berlin.de>
800 if (mutt_strcmp (buf, ".") == 0)
801 strfcpy (buf, LastSaveFolder, sizeof (buf));
803 strfcpy (LastSaveFolder, buf, sizeof (LastSaveFolder));
805 mutt_expand_path (buf, sizeof (buf));
807 /* check to make sure that this file is really the one the user wants */
808 if (mutt_save_confirm (buf, &st) != 0)
811 if (WithCrypto && need_passphrase && (decode || decrypt)
812 && !crypt_valid_passphrase(app))
815 mutt_message (_("Copying to %s..."), buf);
818 if (Context->magic == M_IMAP &&
819 !(decode || decrypt) && mx_is_imap (buf))
821 switch (imap_copy_messages (Context, h, buf, delete))
824 case 0: mutt_clear_error (); return 0;
825 /* non-fatal error: fall through to fetch/append */
827 /* fatal error, abort */
833 if (mx_open_mailbox (buf, M_APPEND, &ctx) != NULL)
837 if (_mutt_save_message(h, &ctx, delete, decode, decrypt) != 0)
839 mx_close_mailbox (&ctx, NULL);
845 for (i = 0; i < Context->vcount; i++)
847 if (Context->hdrs[Context->v2r[i]]->tagged)
849 mutt_message_hook (Context, Context->hdrs[Context->v2r[i]], M_MESSAGEHOOK);
850 if (_mutt_save_message(Context->hdrs[Context->v2r[i]],
851 &ctx, delete, decode, decrypt) != 0)
853 mx_close_mailbox (&ctx, NULL);
860 need_buffy_cleanup = (ctx.magic == M_MBOX || ctx.magic == M_MMDF);
862 mx_close_mailbox (&ctx, NULL);
864 if (need_buffy_cleanup)
865 mutt_buffy_cleanup (ctx.path, &st);
875 void mutt_version (void)
877 mutt_message ("Mutt %s (%s)", MUTT_VERSION, ReleaseDate);
880 void mutt_edit_content_type (HEADER *h, BODY *b, FILE *fp)
882 char buf[LONG_STRING];
883 char obuf[LONG_STRING];
887 char charset[STRING];
890 short charset_changed = 0;
891 short type_changed = 0;
893 cp = mutt_get_parameter ("charset", b->parameter);
894 strfcpy (charset, NONULL (cp), sizeof (charset));
896 snprintf (buf, sizeof (buf), "%s/%s", TYPE (b), b->subtype);
897 strfcpy (obuf, buf, sizeof (obuf));
902 for (p = b->parameter; p; p = p->next)
906 rfc822_cat (tmp, sizeof (tmp), p->value, MimeSpecials);
907 snprintf (buf + l, sizeof (buf) - l, "; %s=%s", p->attribute, tmp);
911 if (mutt_get_field ("Content-Type: ", buf, sizeof (buf), 0) != 0 ||
915 /* clean up previous junk */
916 mutt_free_parameter (&b->parameter);
919 mutt_parse_content_type (buf, b);
922 snprintf (tmp, sizeof (tmp), "%s/%s", TYPE (b), NONULL (b->subtype));
923 type_changed = ascii_strcasecmp (tmp, obuf);
924 charset_changed = ascii_strcasecmp (charset, mutt_get_parameter ("charset", b->parameter));
926 /* if in send mode, check for conversion - current setting is default. */
928 if (!h && b->type == TYPETEXT && charset_changed)
931 snprintf (tmp, sizeof (tmp), _("Convert to %s upon sending?"),
932 mutt_get_parameter ("charset", b->parameter));
933 if ((r = mutt_yesorno (tmp, !b->noconv)) != -1)
934 b->noconv = (r == M_NO);
937 /* inform the user */
939 snprintf (tmp, sizeof (tmp), "%s/%s", TYPE (b), NONULL (b->subtype));
941 mutt_message (_("Content-Type changed to %s."), tmp);
942 if (b->type == TYPETEXT && charset_changed)
946 mutt_message (_("Character set changed to %s; %s."),
947 mutt_get_parameter ("charset", b->parameter),
948 b->noconv ? _("not converting") : _("converting"));
951 b->force_charset |= charset_changed ? 1 : 0;
953 if (!is_multipart (b) && b->parts)
954 mutt_free_body (&b->parts);
955 if (!mutt_is_message_type (b->type, b->subtype) && b->hdr)
957 b->hdr->content = NULL;
958 mutt_free_header (&b->hdr);
961 if (fp && (is_multipart (b) || mutt_is_message_type (b->type, b->subtype)))
962 mutt_parse_part (fp, b);
969 h->security |= crypt_query (b);
974 static int _mutt_check_traditional_pgp (HEADER *h, int *redraw)
979 h->security |= PGP_TRADITIONAL_CHECKED;
981 mutt_parse_mime_message (Context, h);
982 if ((msg = mx_open_message (Context, h->msgno)) == NULL)
984 if (crypt_pgp_check_traditional (msg->fp, h->content, 0))
986 h->security = crypt_query (h->content);
987 *redraw |= REDRAW_FULL;
991 h->security |= PGP_TRADITIONAL_CHECKED;
992 mx_close_message (&msg);
996 int mutt_check_traditional_pgp (HEADER *h, int *redraw)
1000 if (h && !(h->security & PGP_TRADITIONAL_CHECKED))
1001 rv = _mutt_check_traditional_pgp (h, redraw);
1004 for (i = 0; i < Context->vcount; i++)
1005 if (Context->hdrs[Context->v2r[i]]->tagged &&
1006 !(Context->hdrs[Context->v2r[i]]->security & PGP_TRADITIONAL_CHECKED))
1007 rv = _mutt_check_traditional_pgp (Context->hdrs[Context->v2r[i]], redraw)