$Log$
+ Revision 573.57 2000/12/26 03:46:50 ajc
+ * More IMAP tweaks
+
Revision 573.56 2000/12/25 22:50:43 ajc
* Added an API function to extract and unfold specific RFC822 fields.
* imap-->fetch-->envelope-->in-reply-to now works
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
CtdlRedirectOutput(tmp, -1);
CtdlOutputPreLoadedMsg(msg, msgnum, MT_RFC822, 0, 0, 1);
CtdlRedirectOutput(NULL, -1);
+ if (!is_valid_message(msg)) {
+ lprintf(1, "WARNING: output clobbered the message!\n");
+ }
/*
* Now figure out where the headers/text break is. IMAP considers the
sprintf(mid, "%ld", msg_num);
nl = (crlf ? "\r\n" : "\n");
+ if (!is_valid_message(TheMessage)) {
+ lprintf(1, "ERROR: invalid preloaded message for output\n");
+ return(om_no_such_msg);
+ }
+
/* Are we downloading a MIME component? */
if (mode == MT_DOWNLOAD) {
if (TheMessage->cm_format_type != FMT_RFC822) {
desired_section);
}
}
- CtdlFreeMessage(TheMessage);
return((CC->download_fp != NULL) ? om_ok : om_mime_error);
}
else if (mode == MT_MIME) { /* list parts only */
mime_parser(mptr, NULL, *list_this_part, NULL, 0);
if (do_proto) cprintf("000\n");
- CtdlFreeMessage(TheMessage);
return(om_ok);
}
else if (mode == MT_RFC822) { /* unparsed RFC822 dump */
else cprintf("%c", ch);
}
if (do_proto) cprintf("000\n");
- CtdlFreeMessage(TheMessage);
return(om_ok);
}
}
if (headers_only) {
if (do_proto) cprintf("000\n");
- CtdlFreeMessage(TheMessage);
return(om_ok);
}
message should be deleted. If there exist any messages
with the same Extended ID that are *newer*, then this
message should be dropped.
-F rFc821 address For Internet mail, this is the delivery address of the
+F rFc822 address For Internet mail, this is the delivery address of the
message author.
G Gateway domain This field is provided solely for the implementation
of C86Net gateways, and holds the C86Net domain of