bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
777019a07132b40deb61e679bb039caf04f9c7e0 |
|
15-Jun-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
lib-imap: imap_bodystructure_write is changed to skip CRs and LFs. |
a8e6df07f5101f6f7467dbd861dbdddfb2759370 |
|
24-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-imap: Make imap_bodystructure_parse_args() public |
da269a5644e169bd8072c160ad9dac706f0206f2 |
|
12-Apr-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Fixed handling of a multipart part without children in imap_bodystructure_parse().
In imap_bodystructure_write(), an empty multipart part is addressed by generating an empty text/plain part.
However, when parsing that back with imap_bodystructure_parse() against a parsed message_part tree, this case needs to be considered explicitly.
Otherwise, it will not be able to match the message part hierarchies.
This adds a test suite item that tests both the write (previous commit) and parse functions. |
cc419b54f4580884a5ff19cdf2b0626201a5ae84 |
|
12-Apr-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Fixed handling of a multipart part without children in imap_bodystructure_write().
In that case it writes an empty text/plain part to prevent generating an invalid BODYSTRUCURE.
However, it always generated the basic BODY version without the extra fields for a full BODYSTRUCTURE. |
b02cd3fca17f636e73ee9e12be73734f74da6e4b |
|
30-Jan-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-imap: Fix another compiler warning
Unnecessary, but older gcc complains. |
62306adc17714cd36ab6ed6a89d0426049c1019f |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: Added more comments to imap-bodystructure and imap-envelope. |
26a2909cb5b201d0715f6ce3079374757fee8da3 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Added support for making imap_bodystructure_parse() work without a pre-existing message_part tree.
It can now create the tree from the BODYSTRUCTURE string itself. |
b674bd911aaab7e8b1a77c106a0b5bccb603439f |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-mail: message-part-data: Renamed struct message_part_envelope_data to message_part_envelope. |
57e3b63a75335f45cf6cf9cd89317e2e6cec249d |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Moved message_part_data header parsing and query functions to their own module in lib-mail.
Moved code from imap-bodystructure and imap-envelope. |
afd6338f1c0b6ffcd33b6fde9741b52002835ba3 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Renamed imap_bodystructure_is_plain_7bit() to message_part_data_is_plain_7bit(). |
946f22af116d5af80d5bbe1710ac121aa5acef71 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-envelope: Renamed imap_envelope_parse_header() to message_part_envelope_parse_from_header(). |
df459621b9124dfd88d56619ac84611f30fec854 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Renamed imap_bodystructure_parse_header() to message_part_data_parse_from_header(). |
341c6814c806db208bc4e35131c204b68122b447 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Grouped together functions relating to the conversion of BODYSTRUCTURE to BODY.
This only moves code. |
2483736d1ad6a680980dd58c616836837721a113 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Changed struct message_part_body to contain fully decoded data.
Contained unparsed IMAP string data before. |
9e6c6b34b68fdf81d240748f7c90e9156266dd74 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Renamed `d' parameter to `data' in parse_content_header() function. |
28dffd17cbc002c0b385f557dcfcaba7dbf44cac |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Removed useless pool field from struct message_part_data. |
c59d22d58cd0bbeeac4622b99088a1cb7d2fde20 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-mail: Gave message_part_data its own field in struct message_part. |
1eeb9f438092988c374e05c3e960edcccc63c2ae |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Renamed struct message_part_body_data to message_part_data. |
b9de83e56e15118bc558a213e256077e63d27541 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Allow alternative syntax and omitted optional elements in parser input.
This makes the parser accept any RFC-compliant BODYSTRUCTURE syntax, instead of only what Dovecot itself produces.
This way the parser could reliably be used in the lib-imap-client if ever needed. |
bf7aee059cd234dd5874dc196ff989f351d55705 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Fixed parse error message about invalid Content-M5 field. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
f549b400d50935754cbeb6ceabd922ab777b4d77 |
|
14-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-bodystructure: Prevent writing erroneous whitespace between items in an envelope address list.
Both imap_bodystructure_write() and imap_body_parse_from_bodystructure() produced such invalid output.
This caused an RFC 3501 violation in IMAP FETCH BODY and BODYSTRUCTURE responses.
Test suite is amended to test this situation. |
7f7f771254839e77ffaabbc7fa745a061cd55a9c |
|
18-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-imap: imap_bodystructure_parse() ignores text/plain flag mismatch for now.
Maybe we can enable it some day far into the future, but for now this just
causes unnecessary cache file rebuilds. |
85c1b6c22e6e7383b67947f6f633fc9f7bed9d19 |
|
18-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-imap: Don't write a broken Content-Type as text/plain to BODYSTRUCTURE
Mainly because it doesn't match with MESSAGE_PART_FLAG_TEXT in message_part. |
23bdbb7b1831785c6ba6df190f6369da882d2b9d |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Require comparisons to be strict boolean expressions
* No implicit integer -> boolean or pointer -> boolean conversions
* !expr can be used only if expr is boolean type
These were checked with a patched clang. It found various actual bugs,
which were fixed by the previous commits. |
7bb371485650002935888b2f9b72b23aba5a5d9a |
|
29-May-2016 |
Stephan Bosch <stephan@dovecot.fi> |
lib-imap: imap-parser: Made the fatal result parameter of imap_parser_get_error() optional. |
931bc104bcdbce7ed20bc4dd705dec086589bbfe |
|
29-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-imap: Write invalid Content-Transfer-Encoding value as "7bit" to BODY/BODYSTRUCTURE. |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
1a197a6f7bdc10a91cb4cf75610dce955ea7fdc4 |
|
24-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-imap: bodystructure parsing now uses imap_append_string() instead of imap_quote*()
Some of the fields are parsed through rfc822_*() which guarantees that they
contain proper clean input. Other fields are also machine-readable and don't
benefit from having whitespace compressed or of any other things that
imap_quote*(fix_text=TRUE) did.
None of the fields in |
0c6b5841935a4a13b8624b20b7f0fc49261b4aca |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Fixed Content-Language parsing from BODYSTRUCTURE |
405615248f5cb4a9c1a71448c80ddc87576b43be |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Added support for parsing IMAP BODYSTRUCTURE and writing out a modified version. |
0000bf8b0e0fa31e875ec55b585e9f7291d6f3d0 |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
imap_body_parse_from_bodystructure() now returns the error instead of logging it. |
4e8d6d03c2ff85448df79b181a2ea850fb5d4199 |
|
27-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Try to avoid (void) casts by adding more ATTR_NOWARN_UNUSED_RESULT. |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
428fb4dc39c6e9b2eb36216c396dad6096a65f8f |
|
09-Oct-2011 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Added reference counting to imap parser. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
65b15c350a5bcb5f927280481a1e73abb600efba |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
Moved a global NVL() macro to the few places in lib-imap where it was actually used. |
c2fbbf7515aa419dc8b2d62a3c2bb0471d51a391 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Changed imap_arg accessing APIs.
The new one is easier for both coders and static analyzers.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
7d5407d7d00ed9b602c2bfd168a364382e5211d7 |
|
28-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
imap_quote*() now have fix_text parameter. If it's not set, input isn't modified at all.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
dabb4cec4cf9bdb34013de682b08f1284cfb670f |
|
24-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Merge RFC 2231 header continuations in BODY/BODYSTRUCTURE replies. Also use
them internally while parsing messages.
--HG--
branch : HEAD |
e6293bb5df17f67b3f9c683f49f27c357506c329 |
|
24-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Added missing Content-Language: support for BODYSTRUCTURE.
--HG--
branch : HEAD |
68a4946b12583b88fa802e52ebee45cd96056772 |
|
20-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Added more consts, ATTR_CONSTs and ATTR_PUREs.
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
b63f27fbd90ec8178222ae060ee13c9ac03fe56d |
|
21-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Add a context structure to all message parts and remove the NULL checks.
That way instead of returning a broken reply, imap_bodystructure_write()
crashes if caller tries to give it non-parsed MIME parts.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
fe363b433b8038a69b55169da9dca27892ad7d18 |
|
24-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Removed memory pool parameter from iostreams. Default pool was almost always
used, and the stream usually required destroying anyway so it didn't even
make freeing memory easier.
--HG--
branch : HEAD |
687d1dee0e92229232aa8be416897b640df67d07 |
|
20-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Removed message-content-parser. Instead added rfc822_parse_content_type()
and rfc822_parse_content_param() to help parse such headers.
--HG--
branch : HEAD |
7c7a364a72d4edd1701df72fee835c09db19d933 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Changed imap-parser API to use standard arrays for lists instead of its own
imap_arg_list struct.
--HG--
branch : HEAD |
f1e9611e93dcb3b745c1904029084fa81644e1b3 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Added more consts to imap-parser API
--HG--
branch : HEAD |
15f2583bf1cbe5a18b3f5f38d2770e2bfa2d4b13 |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Make imap_bodystructure_write() parameter constant. Patch by Max Kellermann
--HG--
branch : HEAD |
59151b71059df1190acd75d8717ed04a7920c862 |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added context parameter type safety checks for most callback APIs.
--HG--
branch : HEAD |
73583cff4f0ca9ee87204256ca1994adf17cb94c |
|
18-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Cleanup: Don't put string literals into non-const pointers.
--HG--
branch : HEAD |
ea77e85e4ed260f3292329073342db28c29fbef3 |
|
30-May-2006 |
Timo Sirainen <tss@iki.fi> |
BODYSTRUCTURE -> BODY translation was missing CRLF after literal.
--HG--
branch : HEAD |
cd56a23e21f1df3f79648cf07e2f4385e2fadebb |
|
25-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_destroy() and o_stream_destroy() and used them instead of
*_stream_unref() where possible. Fixes at least one problem with io_remove()
being called after socket was closed, which caused problems with epoll.
--HG--
branch : HEAD |
a0358a4c031dc93149941c9a14451ea819022360 |
|
18-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
BODYSTRUCTURE -> BODY conversion was broken with mails containing
message/rfc822 parts.
--HG--
branch : HEAD |
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
deinit, unref, destroy, close, free, etc. functions now take a pointer to
their data pointer, and set it to NULL. This makes double-frees less likely
to cause security holes.
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
57a548cf864a971e834b01a2b35b2a3dd8403fca |
|
11-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fixes
--HG--
branch : HEAD |
6a856f9080a510aba6a247bf1f34a1baf77af13e |
|
11-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
"stack frame changed" crashfix
--HG--
branch : HEAD |
d05e841733a1632e62328fa7c343e1799ffa9505 |
|
03-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Added imap_bodystructure_is_plain_7bit()
--HG--
branch : HEAD |
f2a47e52f4f0e180da8a8d93b547af7061a6ee03 |
|
05-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Make Content-Language parser use rfc822-parser API.
--HG--
branch : HEAD |
e015e2f7e7f48874495f9df8b0dd192b7ffcb5cc |
|
18-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Header caching redesigned. New design allows caching decisions per field, so
they can be divided to temporary/permanent. Cached headers are now always
returned in original order, old code didn't guarantee it. Some other caching
changes. (still missing code to store changes in caching decisions)
--HG--
branch : HEAD |
992a13add4eea0810e4db0f042a595dddf85536a |
|
08-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Cache file fixes, API changes, etc. It's still in somewhat ugly state, but
getting better..
--HG--
branch : HEAD |
cd466fe7b84b0223735a6469c7f7bc225f65996d |
|
21-Sep-2003 |
Timo Sirainen <tss@iki.fi> |
data_stack_pool split into two: unsafe_data_stack_pool which works like
before, and a new one which verifies that stack frame stays the same
whenever the pool is accessed.
--HG--
branch : HEAD |
9d726f00a5e3dc8179c8c79a3907ef124f60e567 |
|
20-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
removed unneeded code
--HG--
branch : HEAD |
645f258ea29afaf09b673fc65d1bd788dfec8db8 |
|
20-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
If BODY/BODYSTRUCTURE is requested with some other headers, parse the
headers only once. If body contains multiple MIME parts, cache the internal
MIME structure so BODY[part] fetching doesn't need to parse it again.
--HG--
branch : HEAD |
6abe6b206a164fb362f9d7314cf14fb3f42d3509 |
|
06-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Some message/rfc822 mails were returned as text/plain
--HG--
branch : HEAD |
3ae6882f88eae047367eeb766c60108367d317c9 |
|
06-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
84b60fb7811f9321996adeee827e3f99eb7be8da |
|
06-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Don't write envelope as NIL into bodystructure even if it's broken.
--HG--
branch : HEAD |
de20c643fd37e6b592f69c22a926dd1b5a7edb76 |
|
06-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Fixes for parsing BODYSTRUCTURE
--HG--
branch : HEAD |
ba245ad828446ca587bcf4a98e9a770fa7ab54ed |
|
14-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
Fixes for handling missing Mime-Version
--HG--
branch : HEAD |
ccc1e87e2e5d951de7703aeef2bfc90fec9f467c |
|
13-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
Ignore Content-* headers if there's no MIME-Version header. Note that this
change breaks cached message parts in indexes.
--HG--
branch : HEAD |
1733dc0970314e157c001dd21c39b275d515c259 |
|
02-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
IMAP parser memory limits are now enforced by bytes per line rather than
limiting maximum amount of tokens per line. Default is 64k now, which should
help with the huge message sets generated by some clients.
--HG--
branch : HEAD |
4393e184152643728342c7f020dbb9779d30748a |
|
23-Jun-2003 |
Timo Sirainen <tss@iki.fi> |
LIST and STATUS replies shouldn't strip tabs and spaces from mailbox names.
--HG--
branch : HEAD |
ec802991695a5bbd7356402b9a337e8db49d771e |
|
04-Jun-2003 |
Timo Sirainen <tss@iki.fi> |
Add charset/us-ascii into body/bodystructure replies if no charset is given
for text/* body parts.
--HG--
branch : HEAD |
4b52b77056019c669002214248c840930d995d7f |
|
01-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
crashfix
--HG--
branch : HEAD |
5bc4a5fd9a421f4c5763e03c0449479cedcf9f06 |
|
26-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Better handling for multiline headers. Before we skipped headers larger than
input buffer size (8k with read (default), 256k with mmap). The skipping was
also a bit buggy.
Now we parse the lines one at a time. There's also a way to read the header
fully into memory before parsing it, if really needed.
--HG--
branch : HEAD |
230ae3c012fa9308ffbb40d2ef251e467e787bcc |
|
25-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
final fix: text-content subtype wasn't defaulted to plain
--HG--
branch : HEAD |
667df82e2bc0b7b5520159b64fe2377166c08fb5 |
|
25-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Default to 7bit instead of 8bit content-encoding-type.
--HG--
branch : HEAD |
385310979408010b6114e2ae8adf0df727e6e065 |
|
07-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Don't do x-unknown mime encoding. Correct way is to just send them as
literals to client. ENVELOPE, BODY and BODYSTRUCTURE replies are now always
sent as literals if they contain 8bit text, '"' or '\' characters.
Added option to IMAP parser to return literals with IMAP_ARG_LITERAL type.
--HG--
branch : HEAD |
d7b196510af9a8ff32543625ce655cfcc8a5300f |
|
06-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
minor cleanup
--HG--
branch : HEAD |
c0435c854a0e7246373b9752d163095cc4fbe985 |
|
05-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming style changes, finally got tired of most of the typedefs. Also the
previous enum -> macro change reverted so that we don't use the highest bit
anymore, that's incompatible with old indexes so they will be rebuilt.
--HG--
branch : HEAD |
a3ea111cfdbfd4f32baeb0bd7f1d72568c60a023 |
|
04-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Use unsigned char* when accessing non-NUL terminating strings. Compiler
warnings would then notify about accidentally passing them to functions which
require them NUL-terminated. Changed a few functions to use void* to avoid
unneeded casting.
--HG--
branch : HEAD |
0768959c7e9fc363a353ce45605e4dbd1f46f29e |
|
04-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Rfc822 tokenizer cleanups
--HG--
branch : HEAD |
4a6f9ed8e5412508dcba1eabb58a3680ad5e9b68 |
|
03-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Rewrote rfc822-tokenize.c to work one token at a time so it won't uselessly
take memory, maybe also a bit faster. This caused pretty large changes all
around.
Also moved all string (un)escaping code to lib/strescape.c.
--HG--
branch : HEAD |
4525c4a8f8d1a6365e4469c0c8f46575400a9a67 |
|
02-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Don't access ImapArg's union members directly - too easy to mess up. Fixes a
crash with feeding non-string parameters to SEARCH/SORT commands.
--HG--
branch : HEAD |
12f73f226ce94805b765b2458ead3d0669028543 |
|
27-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
BODYSTRUCTURE reply was incorrect. pine didn't like it.
--HG--
branch : HEAD |
33ca6b017b6ebbd048651b5e3d16915001dbc291 |
|
21-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Replaced TempString with a String which can use any memory pool and uses
Buffer internally.
--HG--
branch : HEAD |
9e0959adf671330f95ba941cff238ad5cd408fe1 |
|
09-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Limited max. command argument elements to 128. Added more verbose error
messages to IMAP parser.
--HG--
branch : HEAD |
ecc81625167ed96c04c02aa190a1ea5baa65b474 |
|
06-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Renamed IBuffer and OBuffer to IStream and OStream which describes their
functionality better. I tried to keep the variable names and comments also
sensible.
--HG--
branch : HEAD |
a35f1ac50fe466d52fe63e255861f1ec11a2c280 |
|
22-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
handle broken multipart messages without crashing
--HG--
branch : HEAD |
fc900bf6d2d476d2b073ca1aa377dd8d39e6c778 |
|
06-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
another buggy check
--HG--
branch : HEAD |
59f24c291bc61e98b3c77fc85854520dd3c72698 |
|
06-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
buggy check
--HG--
branch : HEAD |
470d47a15c02471da1e3799fac5e263d0e377bf2 |
|
06-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
A few extra checks to prevent memory eating by sending mails with multiple
header fields with same name.
--HG--
branch : HEAD |
448492d8317140da884089c1e1f54a004db80f77 |
|
17-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
If BODYSTRUCTURE is cached, we can use it to generate BODY reply. It takes
some CPU, but probably still faster than needing to open the file.
Also removed requirement of FIELD_TYPE_LOCATION to exist in .data file. This
will be useful when we don't need the location (eg. filename == uid).
--HG--
branch : HEAD |
b646fdb90f75ab80ea7feca42fa2e1f8e788b004 |
|
14-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Split IOBuffer into mmaped IBuffer, file IBuffer, memory data IBuffer and
file OBuffer.
--HG--
branch : HEAD |
c5d4136e739a8e706900b09fafafda8ae48535cc |
|
09-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Parse Content-Language correctly for BODYSTRUCTURE.
--HG--
branch : HEAD |
4833dcf7d75733d78a01bd940c1327a16a542cb3 |
|
01-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
() was missing around envelope in body/bodystructure.
--HG--
branch : HEAD |
f8b23df4e11e19ebe8a159c5e205c48e425200a5 |
|
30-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Several fields in BODY were unquoted.
--HG--
branch : HEAD |
e0b0f57f32f6aaee77c0dea3b98ee51f10c4bf9a |
|
24-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
BODY / BODYSTRUCTURE generator didn't like if message didn't start from zero
offset in inbuf.
--HG--
branch : HEAD |
8520b355cedfb8098f51ba3dfa29d7daa867a9df |
|
08-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
more size_t fixes.
--HG--
branch : HEAD |
d2f5aacd3d549c3d39dae41b6522d585244b016d |
|
08-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
C99-like.
--HG--
branch : HEAD |
53192182b8c5462c14941e563d6052ce2102eabf |
|
02-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Fixed rfc822_tokens_get_value(). It doesn't have "put spaces around all
tokens" option anymore, but instead spaces are always put between atoms.
This should fix address fields with non-7bit charset.
--HG--
branch : HEAD |
30e8beb5b2322d92093cbfbc8f47d227a185fcd5 |
|
02-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Added support for caching of MessagePart data. This is useful for fetching
body[part]s. Also BODY and BODYSTRUCTURE can be generated fast using it.
Also fixed index corruption in some situations when more cached data was
added to index.
--HG--
branch : HEAD |
da18528bccce3e1ba9c97c7bf06799b952d7bc3f |
|
01-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
there was no need for MessagePart->pos.virtual_pos, so removed it.
--HG--
branch : HEAD |
ec9d382ea6adbf2c8a0e5dd304acb629ebed3203 |
|
27-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
to be able to handle off_t overflows properly. Also changed a few unsigned
int fields into uoff_t so we should now support >2G mails if uoff_t is
64bit. Also fixed several potential integer overflows.
--HG--
branch : HEAD |
1215bc4d7e747846f282cf710e61f3768e69238d |
|
22-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
s/user_data/context/ and some s/Data/Context/
--HG--
branch : HEAD |
e403d34ae6904cd8d9f72345a2f2dc017d3b46aa |
|
22-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Message data is parsed in blocks (no longer entirely mmap()ed). Several
IOBuffer changes. All mixed signed/unsigned comparisions were fixed so code
can now be compiled with gcc's -W flag. mbox support is broken currently,
and there's most likely several other problems too.
--HG--
branch : HEAD |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |