X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fimap_fetch.c;h=5bfc50520eaa31101c884c8d98a108456466a49c;hb=2ab4879d9f52f888a48885bc01979dcf1ac264cf;hp=563984112e7ed99705bea4063651eea9d0286808;hpb=3b29294c143f8413659bb27a4f2d241bc26eba3d;p=citadel.git diff --git a/citadel/imap_fetch.c b/citadel/imap_fetch.c index 563984112..5bfc50520 100644 --- a/citadel/imap_fetch.c +++ b/citadel/imap_fetch.c @@ -108,6 +108,9 @@ void imap_fetch_rfc822(int msgnum, char *whichfmt, struct CtdlMessage *msg) { 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