From: Matthias A. <mat...@gm...> - 2009-07-23 16:05:24
|
Am 23.07.2009, 12:36 Uhr, schrieb Sunil Shetye <sh...@bo...>: > I mean, please merge my UID parser code patch in fetchmail, if it is > still suitable. >> > the UID parser also had an option to mark bad mails. This would be >> > used in such cases where there is a repeated delivery failure on the >> > same mail. Once a certain bad count is reached, fetchmail will stop >> > attempting to download the mail. >> >> I don't think fetchmail has such a feature in the baseline code. The >> internal uid data structure is: > >> From my UID parser code patch: Is http://funknet.net/fetchmail/patches/2003-11-27-6.2.5-shetye-splituid.diff the patch you're talking of? > struct uidlist > { > union > { > unsigned char *id; > long int nid; /* IMAP ids are integers! */ > }; > int num; > int mark; /* UID-index information */ > #define UID_UNSEEN 0 /* hasn't been seen */ > #define UID_SEEN 1 /* seen, but not deleted */ > #define UID_DELETED 2 /* this message has been deleted > */ > #define UID_EXPUNGED 3 /* this message has been expunged > */ > #define UID_OVERSIZED 4 /* this message is oversized */ > #define UID_SKIPPED 5 /* this message has been skipped > */ > #define UID_OLD_DELETED 6 /* this message was deleted but > not expunged! */ > #define UID_ERROR 99 /* processing error */ > time_t dltime; /* time of delivery */ > int errcount; /* count of errors while > downloading this mail */ > int size; /* size of the mail */ > struct uidlist *next; > }; -- Matthias Andree |