]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/smtp/smtpqueue.h
move URL parsing / struct over into libcitadel
[citadel.git] / citadel / modules / smtp / smtpqueue.h
index d0543518925f4c5c0be4eda17118ae3aebef4efa..2b252899a5ba28911ec5c77bcbd1ffe15abc3609 100644 (file)
@@ -2,19 +2,6 @@
 /*               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
@@ -54,6 +41,7 @@ typedef struct queueitem {
        StrBuf *EnvelopeFrom;
        StrBuf *BounceTo;
        ParsedURL *URL;
+       ParsedURL *FallBackHost;
 } OneQueItem;
 typedef void (*QItemHandler)(OneQueItem *Item, StrBuf *Line, const char **Pos);