]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_smtp.c
* Changed the comments at the beginning of each file to a consistent format
[citadel.git] / citadel / serv_smtp.c
index 3e8edcb342f878617eae034f49ca105461d72dee..75e9a4ef100e39aa13e8968ef0ace9f8518bcf3b 100644 (file)
@@ -1,4 +1,10 @@
-/* $Id$ */
+/*
+ * $Id$
+ *
+ * An implementation of RFC821 (Simple Mail Transfer Protocol) for the
+ * Citadel system.
+ *
+ */
 
 #include "sysdep.h"
 #include <stdlib.h>
@@ -384,7 +390,9 @@ void smtp_rcpt(char *argbuf) {
 
        strcpy(recp, &argbuf[3]);
        striplt(recp);
+       TRACE;
        alias(recp);
+       TRACE;
 
        cvt = convert_internet_address(user, node, recp);
        snprintf(recp, sizeof recp, "%s@%s", user, node);
@@ -1164,6 +1172,7 @@ void smtp_do_bounce(char *instr) {
 
                /* First try the user who sent the message */
                lprintf(9, "bounce to user? <%s>\n", bounceto);
+               TRACE;
                if (strlen(bounceto) == 0) {
                        lprintf(7, "No bounce address specified\n");
                        bounce_msgid = (-1L);
@@ -1177,6 +1186,7 @@ void smtp_do_bounce(char *instr) {
                                bounceto,
                                "", mes_type);
                }
+               TRACE;
 
                /* Otherwise, go to the Aide> room */
                lprintf(9, "bounce to room?\n");
@@ -1433,7 +1443,8 @@ void smtp_do_queue(void) {
                lprintf(3, "Cannot find room <%s>\n", SMTP_SPOOLOUT_ROOM);
                return;
        }
-       CtdlForEachMessage(MSGS_ALL, 0L, SPOOLMIME, NULL, smtp_do_procmsg);
+       CtdlForEachMessage(MSGS_ALL, 0L, (-127),
+               SPOOLMIME, NULL, smtp_do_procmsg);
 
        lprintf(7, "SMTP: queue run completed\n");
        doing_queue = 0;