* sysdep.c: added new event hook type EVT_TIMER. Timer event hooks are called
[citadel.git] / citadel / serv_pop3.c
index e9d42b9b51b758162ac00db1e30cf662c46bdbf4..dd193b7bf98965ca02c7a0e10488992261e818bd 100644 (file)
@@ -131,7 +131,11 @@ void pop3_add_message(long msgnum) {
        POP3->msgs[POP3->num_msgs-1].deleted = 0;
        fp = tmpfile();
        POP3->msgs[POP3->num_msgs-1].temp = fp;
-       CtdlOutputMsg(msgnum, MT_RFC822, 0, 0, fp, 0, 1);
+
+       CtdlRedirectOutput(fp, -1);
+       CtdlOutputMsg(msgnum, MT_RFC822, 0, 0, 1);
+       CtdlRedirectOutput(NULL, -1);
+
        POP3->msgs[POP3->num_msgs-1].rfc822_length = ftell(fp);
 }