]> code.citadel.org Git - citadel.git/commitdiff
* Fun stuff with addressing and trying to save messages from smtp mode
authorArt Cancro <ajc@citadel.org>
Wed, 22 Dec 1999 04:11:33 +0000 (04:11 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 22 Dec 1999 04:11:33 +0000 (04:11 +0000)
citadel/serv_smtp.c

index ec7b9ae2e0a5aae699b98e7f1be3dd34a7727a23..434e23c0a4584749b282d0d61c361f36af2d273f 100644 (file)
@@ -59,6 +59,8 @@ long SYM_SMTP;
 void smtp_greeting(void) {
 
        strcpy(CC->cs_clientname, "Citadel SMTP");
+       CC->internal_pgm = 1;
+       CC->cs_flags |= CS_STEALTH;
        CtdlAllocUserData(SYM_SMTP, sizeof(struct citsmtp));
 
        cprintf("220 Welcome to the Citadel/UX ESMTP server at %s\n",
@@ -135,6 +137,8 @@ void smtp_get_pass(char *argbuf) {
        if (CtdlTryPassword(password) == pass_ok) {
                cprintf("235 Authentication successful.\n");
                lprintf(9, "SMTP auth login successful\n");
+               CC->internal_pgm = 0;
+               CC->cs_flags &= ~CS_STEALTH;
        }
        else {
                cprintf("500 Authentication failed.\n");