2 * Copyright notice from original mutt:
3 * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4 * Copyright (C) 2000 Thomas Roessler <roessler@does-not-exist.org>
6 * This file is part of mutt-ng, see http://www.muttng.org/.
7 * It's licensed under the GNU General Public License,
8 * please see the file GPL in the top level source directory.
15 #include <lib-lib/mem.h>
16 #include <lib-lib/file.h>
17 #include <lib-lib/macros.h>
18 #include <lib-lib/ascii.h>
20 #include <lib-mime/mime.h>
24 #include "recvattach.h"
25 #include "mutt_curses.h"
26 #include "mutt_menu.h"
31 #include "mutt_crypt.h"
32 #include "mutt_idna.h"
34 #include <sys/types.h>
46 #include "lib/debug.h"
54 #include <sys/types.h>
57 /* The folder the user last saved to. Used by ci_save_message() */
58 static char LastSaveFolder[_POSIX_PATH_MAX] = "";
60 int mutt_display_message (HEADER * cur)
62 char tempfile[_POSIX_PATH_MAX], buf[LONG_STRING];
63 int rc = 0, builtin = 0;
64 int cmflags = M_CM_DECODE | M_CM_DISPLAY | M_CM_CHARCONV;
66 FILE *fpfilterout = NULL;
71 snprintf (buf, sizeof (buf), "%s/%s", TYPE (cur->content),
72 cur->content->subtype);
74 mutt_parse_mime_message (Context, cur);
75 mutt_message_hook (Context, cur, M_MESSAGEHOOK);
77 mutt_mktemp (tempfile);
78 if ((fpout = safe_fopen (tempfile, "w")) == NULL) {
79 mutt_error _("Could not create temporary file!");
84 if (DisplayFilter && *DisplayFilter) {
87 /* mutt_endwin (NULL); */
88 filterpid = mutt_create_filter_fd (DisplayFilter, &fpout, NULL, NULL,
89 -1, fileno (fpfilterout), -1);
91 mutt_error (_("Cannot create display filter"));
92 safe_fclose (&fpfilterout);
98 if (!Pager || m_strcmp(Pager, "builtin") == 0)
101 mutt_make_string (buf, sizeof (buf), NONULL (PagerFmt), Context, cur);
103 fputs ("\n\n", fpout);
106 msg = mx_open_message (Context, cur->msgno);
107 if (msg == NULL) res = -1;
110 /* see if crytpo is needed for this message. if so, we should exit curses */
111 if (WithCrypto && cur->security) {
112 if (cur->security & ENCRYPT) {
113 if (cur->security & APPLICATION_SMIME)
114 crypt_smime_getkeys (cur->env);
115 if (!crypt_valid_passphrase (cur->security))
118 cmflags |= M_CM_VERIFY;
120 else if (cur->security & SIGN) {
121 /* find out whether or not the verify signature */
122 if (query_quadoption (OPT_VERIFYSIG, _("Verify PGP signature?")) ==
124 cmflags |= M_CM_VERIFY;
129 if (cmflags & M_CM_VERIFY || cur->security & ENCRYPT) {
130 if (cur->security & APPLICATION_PGP) {
132 crypt_pgp_invoke_getkeys (cur->env->from);
134 crypt_invoke_message (APPLICATION_PGP);
137 if (cur->security & APPLICATION_SMIME)
138 crypt_invoke_message (APPLICATION_SMIME);
141 res = _mutt_copy_message (fpout, msg->fp, cur, cur->content, cmflags,
142 (option (OPTWEED) ? (CH_WEED | CH_REORDER) : 0) |
143 CH_DECODE | CH_FROM);
144 if (res == 0 && (ferror(fpout) || feof(fpout))) {
145 debug_print (1, ("_mutt_copy_message failed to detect EOF!\n"));
149 mx_close_message (&msg);
152 if ((safe_fclose (&fpout) != 0 && errno != EPIPE) || res == -1) {
153 mutt_error (_("Could not copy message"));
154 if (fpfilterout != NULL) {
155 mutt_wait_filter (filterpid);
156 safe_fclose (&fpfilterout);
159 /* this is maybe just plain wrong but it makes the pager display
160 * what we have; i.e. for the crypto stuff we only get
161 * 'Could not copy message' for invalid passphrases, no PGP output
162 * not nothing; so just display what we have...
165 mutt_unlink (tempfile);
170 if (fpfilterout != NULL && mutt_wait_filter (filterpid) != 0)
171 mutt_any_key_to_continue (NULL);
173 safe_fclose (&fpfilterout); /* XXX - check result? */
177 /* update crypto information for this message */
178 cur->security &= ~(GOODSIGN|BADSIGN);
179 cur->security |= crypt_query (cur->content);
181 /* Remove color cache for this message, in case there
182 are color patterns for both ~g and ~V */
190 && (cur->security & APPLICATION_SMIME) && (cmflags & M_CM_VERIFY)) {
191 if (cur->security & GOODSIGN) {
192 if (!crypt_smime_verify_sender (cur))
193 mutt_message (_("S/MIME signature successfully verified."));
195 mutt_error (_("S/MIME certificate owner does not match sender."));
197 else if (cur->security & PARTSIGN)
199 ("Warning: Part of this message has not been signed."));
200 else if (cur->security & SIGN || cur->security & BADSIGN)
201 mutt_error (_("S/MIME signature could NOT be verified."));
205 && (cur->security & APPLICATION_PGP) && (cmflags & M_CM_VERIFY)) {
206 if (cur->security & GOODSIGN)
207 mutt_message (_("PGP signature successfully verified."));
208 else if (cur->security & PARTSIGN)
210 ("Warning: Part of this message has not been signed."));
211 else if (cur->security & SIGN)
212 mutt_message (_("PGP signature could NOT be verified."));
215 /* Invoke the builtin pager */
219 rc = mutt_pager (NULL, tempfile, M_PAGER_MESSAGE, &info);
225 snprintf (buf, sizeof (buf), "%s %s", NONULL (Pager), tempfile);
226 if ((r = mutt_system (buf)) == -1)
227 mutt_error (_("Error running \"%s\"!"), buf);
229 keypad (stdscr, TRUE);
231 mutt_set_flag (Context, cur, M_READ, 1);
232 if (r != -1 && option (OPTPROMPTAFTER)) {
233 mutt_ungetch (mutt_any_key_to_continue _("Command: "), 0);
234 rc = km_dokey (MENU_PAGER);
243 void ci_bounce_message (HEADER * h, int *redraw)
245 char prompt[SHORT_STRING];
246 char buf[HUGE_STRING] = { 0 };
247 address_t *adr = NULL;
252 m_strcpy(prompt, sizeof(prompt), _("Bounce message to: "));
254 m_strcpy(prompt, sizeof(prompt), _("Bounce tagged messages to: "));
256 rc = mutt_get_field (prompt, buf, sizeof (buf), M_ALIAS);
258 if (option (OPTNEEDREDRAW)) {
259 unset_option (OPTNEEDREDRAW);
260 *redraw = REDRAW_FULL;
266 if (!(adr = rfc822_parse_adrlist (adr, buf))) {
267 mutt_error _("Error parsing address!");
272 adr = mutt_expand_aliases (adr);
274 if (mutt_addrlist_to_idna (adr, &err) < 0) {
275 mutt_error (_("Bad IDN: '%s'"), err);
277 address_delete (&adr);
282 rfc822_write_address (buf, sizeof (buf), adr, 1);
284 #define extra_space (15 + 7 + 2)
285 snprintf (prompt, sizeof (prompt),
286 (h ? _("Bounce message to %s") : _("Bounce messages to %s")),
289 if (mutt_strwidth (prompt) > COLS - extra_space) {
290 mutt_format_string(prompt, sizeof(prompt), 0, COLS - extra_space, 0, 0,
291 prompt, sizeof(prompt), 0);
292 m_strcat(prompt, sizeof(prompt), "...?");
294 m_strcat(prompt, sizeof(prompt), "?");
297 if (query_quadoption (OPT_BOUNCE, prompt) != M_YES) {
298 address_delete (&adr);
299 CLEARLINE (LINES - 1);
300 mutt_message (h ? _("Message not bounced.") : _("Messages not bounced."));
304 CLEARLINE (LINES - 1);
306 rc = mutt_bounce_message (NULL, h, adr);
307 address_delete (&adr);
308 /* If no error, or background, display message. */
309 if ((rc == 0) || (rc == S_BKG))
310 mutt_message (h ? _("Message bounced.") : _("Messages bounced."));
313 static void pipe_set_flags (int decode, int print, int *cmflags, int *chflags)
316 *cmflags |= M_CM_DECODE | M_CM_CHARCONV;
317 *chflags |= CH_DECODE | CH_REORDER;
319 if (option (OPTWEED)) {
321 *cmflags |= M_CM_WEED;
326 *cmflags |= M_CM_PRINTING;
330 static void pipe_msg (HEADER * h, FILE * fp, int decode, int print)
333 int chflags = CH_FROM;
335 pipe_set_flags (decode, print, &cmflags, &chflags);
337 if (WithCrypto && decode && h->security & ENCRYPT) {
338 if (!crypt_valid_passphrase (h->security))
344 mutt_parse_mime_message (Context, h);
346 mutt_copy_message (fp, Context, h, cmflags, chflags);
350 /* the following code is shared between printing and piping */
352 static int _mutt_pipe_message(HEADER * h, char *cmd, int decode, int print,
353 int split, const char *sep)
360 /* mutt_endwin (NULL);
362 is this really needed here ?
363 it makes the screen flicker on pgp and s/mime messages,
364 before asking for a passphrase...
368 mutt_message_hook (Context, h, M_MESSAGEHOOK);
370 if (WithCrypto && decode) {
371 mutt_parse_mime_message (Context, h);
372 if (h->security & ENCRYPT && !crypt_valid_passphrase (h->security))
377 if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0) {
378 mutt_perror (_("Can't create filter process"));
383 pipe_msg (h, fpout, decode, print);
385 rc = mutt_wait_filter (thepid);
387 else { /* handle tagged messages */
389 if (WithCrypto && decode) {
390 for (i = 0; i < Context->vcount; i++)
391 if (Context->hdrs[Context->v2r[i]]->tagged) {
392 mutt_message_hook (Context, Context->hdrs[Context->v2r[i]],
394 mutt_parse_mime_message (Context, Context->hdrs[Context->v2r[i]]);
395 if (Context->hdrs[Context->v2r[i]]->security & ENCRYPT &&
396 !crypt_valid_passphrase (Context->hdrs[Context->v2r[i]]->
403 for (i = 0; i < Context->vcount; i++) {
404 if (Context->hdrs[Context->v2r[i]]->tagged) {
405 mutt_message_hook (Context, Context->hdrs[Context->v2r[i]],
408 if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0) {
409 mutt_perror (_("Can't create filter process"));
413 pipe_msg (Context->hdrs[Context->v2r[i]], fpout, decode, print);
414 /* add the message separator */
417 safe_fclose (&fpout);
418 if (mutt_wait_filter (thepid) != 0)
425 if ((thepid = mutt_create_filter (cmd, &fpout, NULL, NULL)) < 0) {
426 mutt_perror (_("Can't create filter process"));
430 for (i = 0; i < Context->vcount; i++) {
431 if (Context->hdrs[Context->v2r[i]]->tagged) {
432 mutt_message_hook (Context, Context->hdrs[Context->v2r[i]],
434 pipe_msg (Context->hdrs[Context->v2r[i]], fpout, decode, print);
435 /* add the message separator */
440 safe_fclose (&fpout);
441 if (mutt_wait_filter (thepid) != 0)
446 if (rc || option (OPTWAITKEY))
447 mutt_any_key_to_continue (NULL);
451 void mutt_pipe_message (HEADER * h)
453 char buffer[LONG_STRING];
456 if (mutt_get_field (_("Pipe to command: "), buffer, sizeof (buffer), M_CMD)
460 mutt_expand_path (buffer, sizeof (buffer));
461 _mutt_pipe_message (h, buffer,
462 option (OPTPIPEDECODE),
463 0, option (OPTPIPESPLIT), PipeSep);
466 void mutt_print_message (HEADER * h)
469 if (quadoption (OPT_PRINT) && (!PrintCmd || !*PrintCmd)) {
470 mutt_message (_("No printing command has been defined."));
474 if (query_quadoption (OPT_PRINT,
475 h ? _("Print message?") : _("Print tagged messages?"))
479 if (_mutt_pipe_message (h, PrintCmd,
480 option (OPTPRINTDECODE),
481 1, option (OPTPRINTSPLIT), "\f") == 0)
482 mutt_message (h ? _("Message printed") : _("Messages printed"));
484 mutt_message (h ? _("Message could not be printed") :
485 _("Messages could not be printed"));
489 int mutt_select_sort (int reverse)
491 int method = Sort; /* save the current method in case of abort */
493 switch (mutt_multi_choice (reverse ?
495 ("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?: ")
498 ("Sort (d)ate/(f)rm/(r)ecv/(s)ubj/t(o)/(t)hread/(u)nsort/si(z)e/s(c)ore/s(p)am?: "),
500 case -1: /* abort - don't resort */
512 Sort = SORT_RECEIVED;
523 case 6: /* (t)hread */
527 case 7: /* (u)nsort */
535 case 9: /* s(c)ore */
539 case 10: /* s(p)am */
544 Sort |= SORT_REVERSE;
546 return (Sort != method ? 0 : -1); /* no need to resort if it's the same */
549 /* invoke a command in a subshell */
550 void mutt_shell_escape (void)
552 char buf[LONG_STRING];
555 if (mutt_get_field (_("Shell command: "), buf, sizeof (buf), M_CMD) == 0) {
556 if (!buf[0] && Shell)
557 m_strcpy(buf, sizeof(buf), Shell);
559 CLEARLINE (LINES - 1);
562 if (mutt_system (buf) != 0 || option (OPTWAITKEY))
563 mutt_any_key_to_continue (NULL);
568 /* enter a mutt command */
569 void mutt_enter_command (void)
572 char buffer[LONG_STRING], errbuf[SHORT_STRING];
576 if (mutt_get_field (":", buffer, sizeof (buffer), M_COMMAND) != 0
580 err.dsize = sizeof (errbuf);
582 r = mutt_parse_rc_line (buffer, &token, &err);
583 p_delete(&token.data);
585 /* since errbuf could potentially contain printf() sequences in it,
586 we must call mutt_error() in this fashion so that vsprintf()
587 doesn't expect more arguments that we passed */
589 mutt_message ("%s", errbuf);
591 mutt_error ("%s", errbuf);
595 void mutt_display_address (ENVELOPE * env)
597 const char *pfx = NULL;
598 char buf[SHORT_STRING];
599 address_t *adr = NULL;
601 adr = mutt_get_address(env, &pfx);
607 * Note: We don't convert IDNA to local representation this time.
608 * That is intentional, so the user has an opportunity to copy &
609 * paste the on-the-wire form of the address to other, IDN-unable
614 rfc822_write_address (buf, sizeof (buf), adr, 0);
615 mutt_message ("%s: %s", pfx, buf);
618 static void set_copy_flags (HEADER * hdr, int decode, int decrypt,
619 int *cmflags, int *chflags)
622 *chflags = CH_UPDATE_LEN;
624 if (WithCrypto && !decode && decrypt && (hdr->security & ENCRYPT)) {
625 if ((WithCrypto & APPLICATION_PGP)
626 && mutt_is_multipart_encrypted (hdr->content)) {
627 *chflags = CH_NONEWLINE | CH_XMIT | CH_MIME;
628 *cmflags = M_CM_DECODE_PGP;
630 else if ((WithCrypto & APPLICATION_PGP)
631 && mutt_is_application_pgp (hdr->content) & ENCRYPT)
633 else if ((WithCrypto & APPLICATION_SMIME)
634 && mutt_is_application_smime (hdr->content) & ENCRYPT) {
635 *chflags = CH_NONEWLINE | CH_XMIT | CH_MIME;
636 *cmflags = M_CM_DECODE_SMIME;
641 *chflags = CH_XMIT | CH_MIME | CH_TXTPLAIN;
642 *cmflags = M_CM_DECODE | M_CM_CHARCONV;
644 if (!decrypt) { /* If decode doesn't kick in for decrypt, */
645 *chflags |= CH_DECODE; /* then decode RFC 2047 headers, */
647 if (option (OPTWEED)) {
648 *chflags |= CH_WEED; /* and respect $weed. */
649 *cmflags |= M_CM_WEED;
655 int _mutt_save_message (HEADER * h, CONTEXT * ctx, int delete, int decode,
657 int cmflags, chflags;
660 set_copy_flags (h, decode, decrypt, &cmflags, &chflags);
662 if (decode || decrypt)
663 mutt_parse_mime_message (Context, h);
665 if ((rc = mutt_append_message (ctx, Context, h, cmflags, chflags)) != 0)
669 mutt_set_flag (Context, h, M_DELETE, 1);
670 if (option (OPTDELETEUNTAG))
671 mutt_set_flag (Context, h, M_TAG, 0);
672 mutt_set_flag (Context, h, M_APPENDED, 1);
677 /* returns 0 if the copy/save was successful, or -1 on error/abort */
678 int mutt_save_message (HEADER * h, int delete,
679 int decode, int decrypt, int *redraw) {
680 int i, need_buffy_cleanup;
681 int need_passphrase = 0, app = 0;
682 char prompt[SHORT_STRING], buf[_POSIX_PATH_MAX];
695 snprintf (prompt, sizeof (prompt),
696 decode ? (delete ? _("Decode-save%s to mailbox") :
697 _("Decode-copy%s to mailbox")) :
698 (decrypt ? (delete ? _("Decrypt-save%s to mailbox") :
699 _("Decrypt-copy%s to mailbox")) :
700 (delete ? _("Save%s to mailbox") : _("Copy%s to mailbox"))),
701 h ? "" : _(" tagged"));
706 need_passphrase = h->security & ENCRYPT;
709 mutt_message_hook (Context, h, M_MESSAGEHOOK);
710 mutt_default_save (buf, sizeof (buf), h);
713 /* look for the first tagged message */
715 for (i = 0; i < Context->vcount; i++) {
716 if (Context->hdrs[Context->v2r[i]]->tagged) {
717 h = Context->hdrs[Context->v2r[i]];
724 mutt_message_hook (Context, h, M_MESSAGEHOOK);
725 mutt_default_save (buf, sizeof (buf), h);
727 need_passphrase = h->security & ENCRYPT;
734 mutt_pretty_mailbox (buf);
735 if (mutt_enter_fname (prompt, buf, sizeof (buf), redraw, 0) == -1)
738 if (*redraw != REDRAW_FULL) {
740 *redraw = REDRAW_INDEX | REDRAW_STATUS;
742 *redraw = REDRAW_STATUS;
748 /* This is an undocumented feature of ELM pointed out to me by Felix von
749 * Leitner <leitner@prz.fu-berlin.de>
751 if (m_strcmp(buf, ".") == 0)
752 m_strcpy(buf, sizeof(buf), LastSaveFolder);
754 m_strcpy(LastSaveFolder, sizeof(LastSaveFolder), buf);
756 mutt_expand_path (buf, sizeof (buf));
758 /* check to make sure that this file is really the one the user wants */
759 if (mutt_save_confirm (buf, &st) != 0)
762 if (WithCrypto && need_passphrase && (decode || decrypt)
763 && !crypt_valid_passphrase (app))
766 mutt_message (_("Copying to %s..."), buf);
769 if (Context->magic == M_IMAP && !(decode || decrypt) && mx_get_magic (buf) == M_IMAP) {
770 switch (imap_copy_messages (Context, h, buf, delete)) {
775 /* non-fatal error: fall through to fetch/append */
778 /* fatal error, abort */
785 if (mx_open_mailbox (buf, M_APPEND, &ctx) != NULL) {
787 if (_mutt_save_message (h, &ctx, delete, decode, decrypt) != 0) {
788 mx_close_mailbox (&ctx, NULL);
792 for (i = 0; i < Context->vcount; i++) {
793 if (Context->hdrs[Context->v2r[i]]->tagged) {
794 mutt_message_hook (Context, Context->hdrs[Context->v2r[i]],
796 if (_mutt_save_message (Context->hdrs[Context->v2r[i]], &ctx, delete,
797 decode, decrypt) != 0) {
798 mx_close_mailbox (&ctx, NULL);
805 need_buffy_cleanup = (ctx.magic == M_MBOX || ctx.magic == M_MMDF);
807 mx_close_mailbox (&ctx, NULL);
809 if (need_buffy_cleanup) {
811 tmp = buffy_find_mailbox (buf);
812 if (tmp && tmp->new <= 0)
813 buffy_update_mailbox (tmp);
815 /* fix up the times so buffy won't get confused */
816 if (st.st_mtime > st.st_atime) {
817 ut.actime = st.st_atime;
818 ut.modtime = time (NULL);
833 void mutt_version (void)
835 mutt_message (mutt_make_version (1));
838 void mutt_edit_content_type (HEADER * h, BODY * b, FILE * fp)
840 char buf[LONG_STRING];
841 char obuf[LONG_STRING];
845 char charset[STRING];
848 short charset_changed = 0;
849 short type_changed = 0;
851 cp = mutt_get_parameter ("charset", b->parameter);
852 m_strcpy(charset, sizeof(charset), NONULL(cp));
854 snprintf (buf, sizeof (buf), "%s/%s", TYPE (b), b->subtype);
855 m_strcpy(obuf, sizeof(obuf), buf);
859 for (p = b->parameter; p; p = p->next) {
862 rfc822_cat (tmp, sizeof (tmp), p->value, MimeSpecials);
863 snprintf (buf + l, sizeof (buf) - l, "; %s=%s", p->attribute, tmp);
867 if (mutt_get_field ("Content-Type: ", buf, sizeof (buf), 0) != 0 ||
871 /* clean up previous junk */
872 mutt_free_parameter (&b->parameter);
873 p_delete(&b->subtype);
875 mutt_parse_content_type (buf, b);
878 snprintf (tmp, sizeof (tmp), "%s/%s", TYPE (b), NONULL (b->subtype));
879 type_changed = ascii_strcasecmp (tmp, obuf);
881 ascii_strcasecmp (charset, mutt_get_parameter ("charset", b->parameter));
883 /* if in send mode, check for conversion - current setting is default. */
885 if (!h && b->type == TYPETEXT && charset_changed) {
888 snprintf (tmp, sizeof (tmp), _("Convert to %s upon sending?"),
889 mutt_get_parameter ("charset", b->parameter));
890 if ((r = mutt_yesorno (tmp, !b->noconv)) != -1)
891 b->noconv = (r == M_NO);
894 /* inform the user */
896 snprintf (tmp, sizeof (tmp), "%s/%s", TYPE (b), NONULL (b->subtype));
898 mutt_message (_("Content-Type changed to %s."), tmp);
899 if (b->type == TYPETEXT && charset_changed) {
902 mutt_message (_("Character set changed to %s; %s."),
903 mutt_get_parameter ("charset", b->parameter),
904 b->noconv ? _("not converting") : _("converting"));
907 b->force_charset |= charset_changed ? 1 : 0;
909 if (!is_multipart (b) && b->parts)
910 mutt_free_body (&b->parts);
911 if (!mutt_is_message_type (b->type, b->subtype) && b->hdr) {
912 b->hdr->content = NULL;
913 mutt_free_header (&b->hdr);
916 if (fp && (is_multipart (b) || mutt_is_message_type (b->type, b->subtype)))
917 mutt_parse_part (fp, b);
919 if (WithCrypto && h) {
923 h->security |= crypt_query (b);
928 static int _mutt_check_traditional_pgp (HEADER * h, int *redraw)
933 h->security |= PGP_TRADITIONAL_CHECKED;
935 mutt_parse_mime_message (Context, h);
936 if ((msg = mx_open_message (Context, h->msgno)) == NULL)
938 if (crypt_pgp_check_traditional (msg->fp, h->content, 0)) {
939 h->security = crypt_query (h->content);
940 *redraw |= REDRAW_FULL;
944 h->security |= PGP_TRADITIONAL_CHECKED;
945 mx_close_message (&msg);
949 int mutt_check_traditional_pgp (HEADER * h, int *redraw)
954 if (h && !(h->security & PGP_TRADITIONAL_CHECKED))
955 rv = _mutt_check_traditional_pgp (h, redraw);
957 for (i = 0; i < Context->vcount; i++)
958 if (Context->hdrs[Context->v2r[i]]->tagged &&
959 !(Context->hdrs[Context->v2r[i]]->
960 security & PGP_TRADITIONAL_CHECKED))
962 _mutt_check_traditional_pgp (Context->hdrs[Context->v2r[i]], redraw)