X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fsmtp%2Fsmtpqueue.h;h=8efe13210834fa6afb59af300ccac9484eab8739;hb=ab5c8068bad6fe3134f11c4a930d75da3d26cbfe;hp=c6cd97f5810c25a0914f9023a2d231b732a9b126;hpb=5922d6ab5d9d36dafabcf0c5a01499be0f9d2f42;p=citadel.git diff --git a/citadel/modules/smtp/smtpqueue.h b/citadel/modules/smtp/smtpqueue.h index c6cd97f58..8efe13210 100644 --- a/citadel/modules/smtp/smtpqueue.h +++ b/citadel/modules/smtp/smtpqueue.h @@ -22,6 +22,7 @@ /*****************************************************************************/ #define MaxAttempts 15 +extern const unsigned short DefaultMXPort; typedef struct _mailq_entry { StrBuf *Recipient; @@ -39,6 +40,7 @@ typedef struct _mailq_entry { int n; int Active; + int StillActive; }MailQEntry; typedef struct queueitem { @@ -62,6 +64,7 @@ typedef struct queueitem { StrBuf *SenderRoom; ParsedURL *URL; ParsedURL *FallBackHost; + int HaveRelay; } OneQueItem; typedef void (*QItemHandler)(OneQueItem *Item, StrBuf *Line, const char **Pos); @@ -74,7 +77,7 @@ int DecreaseQReference(OneQueItem *MyQItem); void DecreaseShutdownDeliveries(OneQueItem *MyQItem); int GetShutdownDeliveries(OneQueItem *MyQItem); void RemoveQItem(OneQueItem *MyQItem); -int CountActiveQueueEntries(OneQueItem *MyQItem); +int CountActiveQueueEntries(OneQueItem *MyQItem, int before); StrBuf *SerializeQueueItem(OneQueItem *MyQItem); void smtpq_do_bounce(OneQueItem *MyQItem, StrBuf *OMsgTxt);