- if (!h)
- {
- for (i = 0; i < Context->vcount; i++)
- {
- if (Context->hdrs[Context->v2r[i]]->tagged)
- {
- mutt_parse_mime_message (Context, Context->hdrs[Context->v2r[i]]);
- if (Context->hdrs[Context->v2r[i]]->security & ENCRYPT &&
- !crypt_valid_passphrase (Context->hdrs[Context->v2r[i]]->security))
- {
- fclose (fpout);
- break;
- }
-
- if ((WithCrypto & APPLICATION_PGP)
- && (Context->hdrs[Context->v2r[i]]->security & APPLICATION_PGP))
- {
- mutt_copy_message (fpout, Context, Context->hdrs[Context->v2r[i]],
- M_CM_DECODE|M_CM_CHARCONV, 0);
- fflush(fpout);
-
- mutt_endwin (_("Trying to extract PGP keys...\n"));
- crypt_pgp_invoke_import (tempfname);
- }
-
- if ((WithCrypto & APPLICATION_SMIME)
- && (Context->hdrs[Context->v2r[i]]->security & APPLICATION_SMIME))
- {
- if (Context->hdrs[Context->v2r[i]]->security & ENCRYPT)
- mutt_copy_message (fpout, Context, Context->hdrs[Context->v2r[i]],
- M_CM_NOHEADER|M_CM_DECODE_CRYPT
- |M_CM_DECODE_SMIME, 0);
- else
- mutt_copy_message (fpout, Context,
- Context->hdrs[Context->v2r[i]], 0, 0);
- fflush(fpout);
+ if (!h) {
+ for (i = 0; i < Context->vcount; i++) {
+ if (Context->hdrs[Context->v2r[i]]->tagged) {
+ mutt_parse_mime_message (Context, Context->hdrs[Context->v2r[i]]);
+ if (Context->hdrs[Context->v2r[i]]->security & ENCRYPT &&
+ !crypt_valid_passphrase (Context->hdrs[Context->v2r[i]]->
+ security)) {
+ fclose (fpout);
+ break;
+ }
+
+ if ((WithCrypto & APPLICATION_PGP)
+ && (Context->hdrs[Context->v2r[i]]->security & APPLICATION_PGP)) {
+ mutt_copy_message (fpout, Context, Context->hdrs[Context->v2r[i]],
+ M_CM_DECODE | M_CM_CHARCONV, 0);
+ fflush (fpout);
+
+ mutt_endwin (_("Trying to extract PGP keys...\n"));
+ crypt_pgp_invoke_import (tempfname);
+ }
+
+ if ((WithCrypto & APPLICATION_SMIME)
+ && (Context->hdrs[Context->v2r[i]]->security & APPLICATION_SMIME)) {
+ if (Context->hdrs[Context->v2r[i]]->security & ENCRYPT)
+ mutt_copy_message (fpout, Context, Context->hdrs[Context->v2r[i]],
+ M_CM_NOHEADER | M_CM_DECODE_CRYPT
+ | M_CM_DECODE_SMIME, 0);
+ else
+ mutt_copy_message (fpout, Context,
+ Context->hdrs[Context->v2r[i]], 0, 0);
+ fflush (fpout);