Show
Ignore:
Timestamp:
2004-04-12 13:33:33 (5 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

A belated fix for #1808 (Debian #233106): Make sure
check-traditional-pgp doesn't leave the pager context unnecessarily.
This makes message-hooks like this one safe:

message-hook '!(~g|~G) ~b"-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' \

"exec check-traditional-pgp"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • commands.c

    r3549 r3646  
    942942  int rv = 0; 
    943943   
     944  h->security |= PGP_TRADITIONAL_CHECKED; 
     945   
    944946  mutt_parse_mime_message (Context, h); 
    945947  if ((msg = mx_open_message (Context, h->msgno)) == NULL) 
     
    960962  int i; 
    961963  int rv = 0; 
    962   if (h) 
     964  if (h && !(h->security & PGP_TRADITIONAL_CHECKED)) 
    963965    rv = _mutt_check_traditional_pgp (h, redraw); 
    964966  else 
    965967  { 
    966968    for (i = 0; i < Context->vcount; i++) 
    967       if (Context->hdrs[Context->v2r[i]]->tagged) 
     969      if (Context->hdrs[Context->v2r[i]]->tagged && !(h->security & PGP_TRADITIONAL_CHECKED)) 
    968970        rv = _mutt_check_traditional_pgp (Context->hdrs[Context->v2r[i]], redraw) 
    969971          || rv;