Changeset 358:19c7526b4ac9 for attach.c

Show
Ignore:
Timestamp:
1998-08-20 01:39:57 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
mutt-0-94
Message:

Try this: set $mime_forward, forward a PGP-encrypted
message, then in the "compose" menu try to view the
forwarded message. If you didn't enter a passphrase
before, Mutt won't ask for it either. (From: Liviu Daia)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • attach.c

    r356 r358  
    2727#include "copy.h" 
    2828#include "mx.h" 
     29 
     30#ifdef _PGPPATH 
     31#include "pgp.h" 
     32#endif 
    2933 
    3034#include <ctype.h> 
     
    252256 
    253257  is_message = mutt_is_message_type(a->type, a->subtype); 
     258#ifdef _PGPPATH 
     259  if (is_message && (a->hdr->pgp & PGPENCRYPT) && !pgp_valid_passphrase()) 
     260    return (rc); 
     261#endif /* _PGPPATH */ 
    254262  use_mailcap = (flag == M_MAILCAP || 
    255263                (flag == M_REGULAR && mutt_needs_mailcap (a)));