* Changed '3' delivery code to '4' to make it more like SMTP
authorArt Cancro <ajc@citadel.org>
Wed, 26 Jan 2000 03:46:50 +0000 (03:46 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 26 Jan 2000 03:46:50 +0000 (03:46 +0000)
citadel/serv_smtp.c
citadel/techdoc/delivery-list.txt

index 849e4a2fe3468fcb38abfc6a1610691e56ca5ed3..91812f4a6afb02649a76e57ec536e5084abe7c50 100644 (file)
@@ -710,13 +710,13 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
        }
 
        if (sock < 0) {
-               *status = 3;    /* dsn is already filled in */
+               *status = 4;    /* dsn is already filled in */
                return;
        }
 
        /* Process the SMTP greeting from the server */
        if (sock_gets(sock, buf) < 0) {
-               *status = 3;
+               *status = 4;
                strcpy(dsn, "Connection broken during SMTP conversation");
                sock_close(sock);
                return;
@@ -724,7 +724,7 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
        lprintf(9, "%s\n", buf);
        if (buf[0] != '2') {
                if (buf[0] == '4') {
-                       *status = 3;
+                       *status = 4;
                        strcpy(dsn, &buf[4]);
                        sock_close(sock);
                        return;
@@ -743,7 +743,7 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
        sprintf(buf, "HELO %s", config.c_fqdn);
        sock_puts(sock, buf);
        if (sock_gets(sock, buf) < 0) {
-               *status = 3;
+               *status = 4;
                strcpy(dsn, "Connection broken during SMTP conversation");
                sock_close(sock);
                return;
@@ -751,7 +751,7 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
        lprintf(9, "%s\n", buf);
        if (buf[0] != '2') {
                if (buf[0] == '4') {
-                       *status = 3;
+                       *status = 4;
                        strcpy(dsn, &buf[4]);
                        sock_close(sock);
                        return;
@@ -766,10 +766,10 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
 
 
        /* HELO succeeded, now try the MAIL From: command */
-       sprintf(buf, "MAIL From: ajc@uncnsrd.mt-kisco.ny.us"); /* FIX */
+       sprintf(buf, "MAIL From: FIX@uncnsrd.mt-kisco.ny.us"); /* FIX */
        sock_puts(sock, buf);
        if (sock_gets(sock, buf) < 0) {
-               *status = 3;
+               *status = 4;
                strcpy(dsn, "Connection broken during SMTP conversation");
                sock_close(sock);
                return;
@@ -777,7 +777,7 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
        lprintf(9, "%s\n", buf);
        if (buf[0] != '2') {
                if (buf[0] == '4') {
-                       *status = 3;
+                       *status = 4;
                        strcpy(dsn, &buf[4]);
                        sock_close(sock);
                        return;
@@ -795,7 +795,7 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
        sprintf(buf, "RCPT To: %s", addr);
        sock_puts(sock, buf);
        if (sock_gets(sock, buf) < 0) {
-               *status = 3;
+               *status = 4;
                strcpy(dsn, "Connection broken during SMTP conversation");
                sock_close(sock);
                return;
@@ -803,7 +803,7 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
        lprintf(9, "%s\n", buf);
        if (buf[0] != '2') {
                if (buf[0] == '4') {
-                       *status = 3;
+                       *status = 4;
                        strcpy(dsn, &buf[4]);
                        sock_close(sock);
                        return;
@@ -820,7 +820,7 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
        /* RCPT succeeded, now try the DATA command */
        sock_puts(sock, "DATA");
        if (sock_gets(sock, buf) < 0) {
-               *status = 3;
+               *status = 4;
                strcpy(dsn, "Connection broken during SMTP conversation");
                sock_close(sock);
                return;
@@ -845,7 +845,7 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
        CtdlOutputMsg(msgnum, MT_RFC822, 0, 0, NULL, sock, 1);
        sock_puts(sock, ".");
        if (sock_gets(sock, buf) < 0) {
-               *status = 3;
+               *status = 4;
                strcpy(dsn, "Connection broken during SMTP conversation");
                sock_close(sock);
                return;
@@ -853,7 +853,7 @@ void smtp_try(char *key, char *addr, int *status, char *dsn, long msgnum)
        lprintf(9, "%s\n", buf);
        if (buf[0] != '2') {
                if (buf[0] == '4') {
-                       *status = 3;
+                       *status = 4;
                        strcpy(dsn, &buf[4]);
                        sock_close(sock);
                        return;
index 25d36531108ceed0eb4bb8a2d571064021c8ea70..799c2155078ef0df57784db546b60377948ece51 100644 (file)
@@ -62,7 +62,7 @@ each line.
     delivered.  The third parameter may contain any of the following values:
        0 = No delivery has yet been attempted
        2 = Delivery was successful
-       3 = A transient error was experienced ... try again later
+       4 = A transient error was experienced ... try again later
        5 = Delivery to this address failed permanently.  The error message
            should be placed in the fourth field so that a bounce message may
            be generated.