New SMTP client implementation makes libcurl do all the work.
[citadel.git] / citadel / modules / smtp / smtp_util.h
index 7666a34dfc3980abe56ca9ce833867faaf493c80..4f9b1d01194b832bb1f7babc04f37023925e8462 100644 (file)
@@ -1,26 +1,5 @@
 /*
- * This module is an SMTP and ESMTP implementation for the Citadel system.
- * It is compliant with all of the following:
- *
- * RFC  821 - Simple Mail Transfer Protocol
- * RFC  876 - Survey of SMTP Implementations
- * RFC 1047 - Duplicate messages and SMTP
- * RFC 1652 - 8 bit MIME
- * RFC 1869 - Extended Simple Mail Transfer Protocol
- * RFC 1870 - SMTP Service Extension for Message Size Declaration
- * RFC 2033 - Local Mail Transfer Protocol
- * RFC 2197 - SMTP Service Extension for Command Pipelining
- * RFC 2476 - Message Submission
- * RFC 2487 - SMTP Service Extension for Secure SMTP over TLS
- * RFC 2554 - SMTP Service Extension for Authentication
- * RFC 2821 - Simple Mail Transfer Protocol
- * RFC 2822 - Internet Message Format
- * RFC 2920 - SMTP Service Extension for Command Pipelining
- *  
- * The VRFY and EXPN commands have been removed from this implementation
- * because nobody uses these commands anymore, except for spammers.
- *
- * Copyright (c) 1998-2013 by the citadel.org team
+ * Copyright (c) 1998-2017 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 3.
@@ -53,4 +32,12 @@ typedef struct _citsmtp {            /* Information about the current session */
 
 #define SMTP           ((citsmtp *)CC->session_specific_data)
 
-void smtp_do_bounce(char *instr, StrBuf *OMsgTxt);
+// These are all the values that can be passed to the is_final parameter of smtp_do_bounce()
+enum {
+       SDB_BOUNCE_FATALS,
+       SDB_BOUNCE_ALL,
+       SDB_WARN
+};
+
+void smtp_do_bounce(const char *instr, int is_final);
+char *smtpstatus(int code);