diff options
author | Sunil Shetye <sunilshetye@rocketmail.com> | 2011-05-03 01:06:34 +0530 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2011-05-04 01:11:30 +0200 |
commit | 6fdb9350ecdfd0dc7f65975ac9b4d6ba00161b19 (patch) | |
tree | 6b7d2c8cfc792b8c04f84c1e3060d0878b984d20 /fetchmail.h | |
parent | 6f1c728fcc99e9745b7a5bbb46a9c6f82ce56d33 (diff) | |
download | fetchmail-6fdb9350ecdfd0dc7f65975ac9b4d6ba00161b19.tar.gz fetchmail-6fdb9350ecdfd0dc7f65975ac9b4d6ba00161b19.tar.bz2 fetchmail-6fdb9350ecdfd0dc7f65975ac9b4d6ba00161b19.zip |
Do not search for UNSEEN messages in ranges.
Add gen_recv_split() to split long protocol messages when the message prefix matches
Order of search commands:
IMAP> A010 SEARCH UNSEEN UNDELETED (IMAP4 or higher)
IMAP> A011 SEARCH UNSEEN
IMAP> A012 FETCH 1:n FLAGS
Diffstat (limited to 'fetchmail.h')
-rw-r--r-- | fetchmail.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fetchmail.h b/fetchmail.h index f6c6a4ec..fcab0e59 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -517,6 +517,13 @@ void resetidletimeout(void); int do_protocol(struct query *, const struct method *); /* transact.c: transaction support */ +struct RecvSplit +{ + char prefix[100]; + int cached; + char buf[MSGBUFSIZE]; +}; + void init_transact(const struct method *); int readheaders(int sock, long fetchlen, @@ -530,12 +537,16 @@ void gen_send(int sock, const char *, ... ) __attribute__ ((format (printf, 2, 3))) ; int gen_recv(int sock, char *buf, int size); +void gen_recv_split_init(const char *prefix, struct RecvSplit *rs); +int gen_recv_split(int sock, char *buf, int size, struct RecvSplit *rs); int gen_transact(int sock, const char *, ... ) __attribute__ ((format (printf, 2, 3))) ; #else void gen_send(); int gen_recv(); +void gen_recv_split_init(); +int gen_recv_split(); int gen_transact(); #endif extern struct msgblk msgblk; |