diff options
-rw-r--r-- | alpine/mailpart.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/alpine/mailpart.c b/alpine/mailpart.c index 74f84adb..c1c8101b 100644 --- a/alpine/mailpart.c +++ b/alpine/mailpart.c @@ -2726,8 +2726,12 @@ format_msg_att(long int msgno, ATTACH_S **a, HANDLE_S **handlesp, gf_io_t pc, in if(((*a)+1)->description) ++(*a); - else + else{ + if(!(gf_puts("[Can't display missing text segment]", pc) + && gf_puts(NEWLINE, pc))) + rv = 0; return rv; + } #ifdef SMIME if((*a)->body && (*a)->body->subtype && (strucmp((*a)->body->subtype, OUR_PKCS7_ENCLOSURE_SUBTYPE)==0)){ @@ -2741,8 +2745,12 @@ format_msg_att(long int msgno, ATTACH_S **a, HANDLE_S **handlesp, gf_io_t pc, in if(((*a)+1)->description) ++(*a); - else + else{ + if(!(gf_puts("[Can't display missing text segment]", pc) + && gf_puts(NEWLINE, pc))) + rv = 0; return rv; + } } #endif /* SMIME */ @@ -2760,8 +2768,12 @@ format_msg_att(long int msgno, ATTACH_S **a, HANDLE_S **handlesp, gf_io_t pc, in if(((*a)+1)->description) ++(*a); - else + else{ + if(!(gf_puts("[Can't display missing text segment]", pc) + && gf_puts(NEWLINE, pc))) + rv = 0; return rv; + } } else if((*a)->body->subtype |