Show
Ignore:
Timestamp:
2008-06-25 22:43:32 (5 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Make mutt_copy_message distinguish between fatal and non-fatal errors.
Non-fatal errors should prevent moving messages, since they indicate
data loss. But mutt should still attempt to display them, since being
able to see some attachments is better than nothing.
Also stop printing out non-PGP material in application/pgp
attachments. Closes #2545, #2912.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • commands.c

    r5321 r5422  
    148148  res = mutt_copy_message (fpout, Context, cur, cmflags, 
    149149        (option (OPTWEED) ? (CH_WEED | CH_REORDER) : 0) | CH_DECODE | CH_FROM); 
    150   if ((safe_fclose (&fpout) != 0 && errno != EPIPE) || res == -1) 
     150  if ((safe_fclose (&fpout) != 0 && errno != EPIPE) || res < 0) 
    151151  { 
    152152    mutt_error (_("Could not copy message"));