25 Commits (ed7203022cf816d6d4067403d05bb06426253304)

Author SHA1 Message Date
mscdex 1815f9d5f8 lint 11 years ago
mscdex 97a2fb06a4 Fix bracket parsing for FETCH responses 11 years ago
mscdex 78935f8a3c constant var names should be in caps 11 years ago
mscdex baf18ad2b8 fix header value parsing behavior for folded lines 11 years ago
mscdex 23dc0e9c80 be less strict in parsing folded header values 12 years ago
Brian White a9870dfce9 fix multiple header fetch parsing 12 years ago
Brian White 2d7d0a7207 fix syntax error 12 years ago
Brian White 9a0a42c50c remove support for partial body fetching
We have no way to match up a partial fetch response if less than the number of
octets we requested were returned, due to the way IMAP responds to partial fetches.

Example: We request BODY[TEXT]<0.32>, but BODY[TEXT] is only 16 bytes,
         then we get back: BODY[TEXT]<0> {16}
         This leaves us with no way to find out what the original
         length request was.

Because of this and the fact that the server can return requested
values in any order, I am disabling partial fetches entirely.
12 years ago
Brian White caff5aa764 fix BODY[] parsing 12 years ago
Brian White c6b1ffe7e7 even more fetch() fixes 12 years ago
Brian White 70251b00c3 more fetch() fixes 12 years ago
mscdex 2ae7371f22 fetch() rewrite 12 years ago
Brian White abc0c6bb21 Merge pull request #114 from wavify/message-size
Can request for message size when fetch
12 years ago
Brian White 7515fe99e2 Lint 12 years ago
Brian White 2268fa6004 Merge pull request #100 from wavify/rfc822-bodystructure
Fix invalid part id for message/rfc822 attachment
12 years ago
Chotiwat Chawannakul 8323a6f738 Remove block for single-statement if 12 years ago
Chotiwat Chawannakul 86b399238a Can request for message size when fetch. 12 years ago
Brian White 4960a8581a Remove unused function 12 years ago
Chotiwat Chawannakul 46c5dd5eef Fix invalid part id for message/rfc822 attachment 12 years ago
Brian White 647d562e2c More style changes 12 years ago
Chotiwat Chawannakul 23779f307f Fix typo. Update delim to delimiter in readme. 12 years ago
Brian White 4c03c7519c First go at parser and partial code rewrite 12 years ago
Brian White 27d2ae8c8d Save message part's disposition type where available
Closes #59

Thanks @asutherland
12 years ago
Brian White 0c9baf755d Use node's built-in HTTP parser for headers or headers and bodies 12 years ago
Brian White 5cd24335e4 First go at code reorganization. 12 years ago