$Log$
+ Revision 600.1 2002/09/07 03:24:23 ajc
+ * When displaying messages using MSG4, enumerate the attachments on the
+ client side, because the server won't add their descriptions to the
+ message text.
+
Revision 600.0 2002/09/04 03:06:58 ajc
* Committing the current code base as version 6.00
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
++lines_printed;
lines_printed = checkpagin(lines_printed, pagin, screenheight);
}
+
+ /* Enumerate any attachments */
+ if ( (pagin == 1) && (can_do_msg4) && (message->attachments) ) {
+ struct parts *ptr;
+
+ for (ptr = message->attachments; ptr; ptr = ptr->next) {
+ if ( (!strcasecmp(ptr->disposition, "attachment"))
+ || (!strcasecmp(ptr->disposition, "inline"))) {
+ color(DIM_WHITE);
+ scr_printf("Part ");
+ color(BRIGHT_MAGENTA);
+ scr_printf("%s", ptr->number);
+ color(DIM_WHITE);
+ scr_printf(": ");
+ color(BRIGHT_CYAN);
+ scr_printf("%s", ptr->filename);
+ color(DIM_WHITE);
+ scr_printf(" (%s, %ld bytes)\n", ptr->mimetype, ptr->length);
+ }
+ }
+ }
+
+ /* Now we're done */
free(message->text);
free(message);