libev migration: reinstantiate MX-Relay; unfinished.
[citadel.git] / citadel / modules / smtp / smtpqueue.h
index 023b479caf285c2c2d2f3796acc58c48675771ee..d0543518925f4c5c0be4eda17118ae3aebef4efa 100644 (file)
@@ -2,6 +2,21 @@
 /*               SMTP CLIENT (Queue Management) STUFF                        */
 /*****************************************************************************/
 
+typedef struct ParsedURL ParsedURL;
+struct ParsedURL {
+       StrBuf *URL;
+       unsigned Port;
+       const char *User;
+       const char *Pass;
+       const char *LocalPart;
+       int IsIP;
+       int af;
+       struct hostent *HEnt;
+       struct in6_addr Addr;
+       ParsedURL *Next;
+};
+
+
 #define MaxAttempts 15
 typedef struct _delivery_attempt {
        time_t when;
@@ -38,6 +53,7 @@ typedef struct queueitem {
        long ActiveDeliveries;
        StrBuf *EnvelopeFrom;
        StrBuf *BounceTo;
+       ParsedURL *URL;
 } OneQueItem;
 typedef void (*QItemHandler)(OneQueItem *Item, StrBuf *Line, const char **Pos);