bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
4c5c19b3b57c9edae9443c1796c875c4568ddf9d |
|
15-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-imap: imap_envelope_parse() - remove unnecessary data stack frame
imap_envelope_parse_args() isn't using data stack at all, so this
unnecessarily complicates the code. It also prevents using datastack-pool
as the pool parameter. |
0b9eda80cdbd516dbbfeae609efd4703e5ae4e41 |
|
15-Jun-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
lib-imap: imap_write_envelope changed to skip CRs and LFs. |
cbf6592b0d839a93d0e09a2018ba1d1a661b5c57 |
|
07-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Make sure all files end with newline
Fixes compiler warnings with Sun C. |
49d0f8cb2ee08083c1da6cea969f1390ba643a5a |
|
30-Jan-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-imap: Fix compiler warning
Unnecessary, but older gcc complains. |
3b17e4c33af5e8ffeb636dd853053e51cb28463b |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-envelope: Added function for parsing ENVELOPE from string. |
62306adc17714cd36ab6ed6a89d0426049c1019f |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: Added more comments to imap-bodystructure and imap-envelope. |
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. |
042a58438dc324c6d4de18e4c8a68044d6328e66 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-envelope: Moved imap_envelope_headers to lib-mail/message-part-data as message_part_envelope_headers. |
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. |
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(). |
535dbe3c376347b6c7a593dca70643ffdbba95f7 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-evenvelope: Changed imap_envelope_get_field() into a private equivalent. |
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. |
300daf3c174deeabc0b734b033d1f6ccb148671e |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-envelope: Added function to parse struct message_part_envelope_data from parsed imap args. |
03d429382952be3a30b527b0087c36a0b02f2bd8 |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: imap-envelope: Removed useless pool field from struct message_part_envelope_data. |
dc84547cb258ab5449c70c498cd4b8595ab6071a |
|
30-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib-imap: Removed existing envelope parsing function.
This is currently only used by imaptest. Alternative API is provided in later commit. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
d9a7e950a9cd21f2b4a90ec7759fca9e8fcc7995 |
|
05-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Fixed mismatched bool vs. int/pointer handling
I don't think these fix any actual bugs. |
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. |
5e22b513cd9d98d1c0cec2960423b908a3fd59bf |
|
03-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
lib-imap: imap_envelope_parse() added extra "," after address group.
This function wasn't actually used by Dovecot anywhere anymore.
Patch by Potapov Sergey. |
8ae72ad7d0c69e972cfa65d1e2ce4e3e9a8b765c |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Replaced all -1U and (unsigned int)-1 with UINT_MAX.
It's somewhat clearer this way. Also clang's -fsanitize=integer gives
runtime errors about -1U (but not about explicit casts, so no need to change
(type)-1 casts). |
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. |
eea128bec7b5af0ece444e0c3b35297cd1e2b31c |
|
24-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Replaced last traces of imap_quote*() with imap_append_string_for_humans()
Also the imap_append_*string() functions now decide whether to use
quoted-string or literal based on the output string length (if both would
work). |
2ef24f8d8293fc2fc60207b7be24154a0838d969 |
|
24-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-imap: ENVELOPE parsing/writing no longer strips whitespace from machine readable fields. |
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 |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--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 |
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 |
a155198cb8ceef89b64581cd231c883266a865fd |
|
18-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
const fixes
--HG--
branch : HEAD |
f40e6ef5190f68c2fd0e94c0b001bdf7d160236a |
|
08-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
Added fill_missing parameter to message_address_parse() which specifies if
missing mailbox and domain should be returned as MISSING_MAILBOX and
MISSING_DOMAIN or just as empty strings.
--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 |
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 |
a24665de9d5c773115a5918e60ed587aafe67d5c |
|
06-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Added rfc822 parser which will probably replace message_tokenizer at some
point. Rewrote address parsing with the new parser. This fixes various bugs
in it.
--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 |
6789ed17e7ca4021713507baf0dcf6979bb42e0c |
|
06-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Index cache file rewrite. It's not finished yet and mbox support is
completely broken. But it's getting difficult to maintain outside cvs :)
--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 |
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 |
2a01403695a7d0fd5c764ffe1517b119e10da786 |
|
03-May-2003 |
Timo Sirainen <tss@iki.fi> |
imap_envelope_parse() didn't parse literals correctly.
--HG--
branch : HEAD |
cc411c089502f30f762153e7fbdc3b59b4c6cd38 |
|
09-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
Don't crash if mail doesn't have any headers.
--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 |
c442a58347a55e069b64101905e0404258ca8211 |
|
26-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
memory usage fixes
--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 |
5ce2084ada06ade9f44fc2914c34658e9a842dc1 |
|
20-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
mail-storage.h interface changes, affects pretty much everything.
FETCH, SEARCH, SORT and THREAD handling were pretty much moved from
lib-storage/ to imap/ so adding non-index storages would be much easier now.
Also POP3 server can now be easily implemented with lib-storage.
Not too well tested, and at least one major problem: partial fetching is
_slow_.
--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 |
fa8845429ddd7e59e00dd22b723424666f8c6b0e |
|
02-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
SEARCHing headers with "" value should always match if the header is found.
Changed imap_envelope_parse() so that it's possible to differentiate NIL
from "".
--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 |
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 |
5254d77805cd35b9356d072ba325c356c43b0d51 |
|
18-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Marked all non-trivial buffer modifications with @UNSAFE tag. Several
cleanups and a couple of minor bugfixes.
--HG--
branch : HEAD |
556726d8187cf3e98876acce36b44be4bb9ef962 |
|
17-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Full not-too-well-tested support for SORT extension. Required a few
library interface changes.
--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 |
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 |
11a1cf93e400cd7d4de4e67193e8d0f9c4bc249c |
|
17-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
ImapArgList changed from linked list to array. easier to handle that way.
--HG--
branch : HEAD |
775af8dba7e27444ec00639bdea5efa688e80e4d |
|
14-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
imap_envelope_parse() wasn't working
--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 |
458de2c8c9f10038de964d789012e80a970b9c5c |
|
12-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Dropped sent_time and alignment from MailIndexRecord. SEARCH can now use
cached ENVELOPE data to search FROM, TO, CC, BCC, SUBJECT, HEADER MESSAGE-ID
and HEADER IN-REPLY-TO. They're never cached anymore now. Also SEARCH SENT*
had to be changed to use ENVELOPE (or fallback to Date-header parsing)
because sent_time was removed.
--HG--
branch : HEAD |
f8b23df4e11e19ebe8a159c5e205c48e425200a5 |
|
30-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Several fields in BODY were unquoted.
--HG--
branch : HEAD |
1c9d294aa1d6ae227dc19d15b0b88bfe2b72356c |
|
16-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
\r\n chars are now always stripped from headers before placing them in
envelope.
--HG--
branch : HEAD |
75f9691940f6dfa46fcbf7239392785767983896 |
|
09-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Highascii + space at end of some ENVELOPE header got into infinite loop.
--HG--
branch : HEAD |
6697a923d6768bf8d71f87f80b90747cf6870753 |
|
08-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
move size_t fixes
--HG--
branch : HEAD |
a674dc0eaa7e4983fcac302dee5c3ad9ab765b4c |
|
06-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Convert 8bit text in headers to quoted-printable in ENVELOPE.
--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 |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |