$Log$
+ Revision 610.15 2003/09/12 15:48:55 ajc
+ * serv_smtp.c: remember whether we're SMTP or LMTP across a RSET command.
+
Revision 610.14 2003/09/09 02:42:28 ajc
* Documentation update for LMTP
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
* be sure to phree() them first!
*/
void smtp_rset(void) {
+ int is_lmtp;
+
+ /*
+ * Our entire SMTP state is discarded when a RSET command is issued,
+ * but we need to preserve this one little piece of information, so
+ * we save it for later.
+ */
+ is_lmtp = SMTP->is_lmtp;
+
memset(SMTP, 0, sizeof(struct citsmtp));
/*
* }
*/
+ /*
+ * Reinstate this little piece of information we saved (see above).
+ */
+ SMTP->is_lmtp = is_lmtp;
+
cprintf("250 2.0.0 Zap!\r\n");
}