bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
d4002fe1f64d25a792f76fb102ef7dc519cd4e24 |
|
11-Dec-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Use mail_set_critical() and mailbox_set_critical() if possible
Replace calls to mail_storage_set_critical() with mail_set_critical()
or mailbox_set_critical() in places where mailbox or mail are easily
available. |
a6657bc038805b573bd1fac568b8eb0fae673847 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap: Set max buffer size for CATENATE istream-chain
This fixes a crash with mbox when nonexistent CATENATE URL is attempted to
be used. The istream doesn't get any size, and istream-header-filter panics
due to having reached the maximum buffer size (0), even though the stream is
empty and there's nothing to read. |
f81141f5ade2c5c946852efbb4ec6412bf074949 |
|
30-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Remove unnecessary o_stream_nflush() calls
The following o_stream_nfinish() or o_stream_uncork() calls it anyway. |
0dab9cb35a976c49b28a11e28d5570f5191f1a7a |
|
22-Sep-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: Add reason to mailbox_transaction_begin()
Remove mailbox_transaction_set_reason(). |
204ee6ed414f5e4eeb6f6c10763b55daf56f11ac |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on [io]_stream_unref(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- i_stream_unref(&E);
- }
+ i_stream_unref(&E);
@@
expression E;
@@
- if (E != NULL) {
- o_stream_unref(&E);
- }
+ o_stream_unref(&E); |
5f1d689131a75c39f064cbd4202373e7edf78f18 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on io_remove{,_closed}(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- io_remove(&E);
- }
+ io_remove(&E);
@@
expression E;
@@
- if (E != NULL) {
- io_remove_closed(&E);
- }
+ io_remove_closed(&E); |
0c803d52adebb6b67e785380f88275f7daa325be |
|
19-Jul-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
imap: Add %{appended} to imap_logout_format |
cddfd1355db6b60c71d7ee3c0b4f23b3efcc9ad1 |
|
03-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Add mailbox_transaction_set_reason() calls
Added to the most important places. |
211c638d81d382517d196ad47565e0d85012c927 |
|
19-Feb-2017 |
klemens <ka7@github.com> |
spelling fixes |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
7f74811b78f8915e73dffc88bb49009e98b6846d |
|
09-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Make sure i_stream_read() calls handle 0 and -2 return values correctly. |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
d8aa10df6d1dae56d3aa485708a34d74e9e31e79 |
|
29-May-2016 |
Stephan Bosch <stephan@dovecot.fi> |
imap: Implemented support for the LITERAL- capability.
This replaces the LITERAL+ capability when the imap_literal_minus setting is enabled. |
0adc24c0c534944b55a185795e09dfaea2ca3131 |
|
29-May-2016 |
Stephan Bosch <stephan@dovecot.fi> |
lib-imap: imap-parser: Turned the fatal error flag into a proper error code. |
43cc944340b6879ce2c6aeba048ceaf040bf0932 |
|
18-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Code cleanup - remove unnecessary errno changes.
These were left behind from changing %m to [io]_stream_get_error() |
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/' |
c24ef1e78c42bf90d56041a4dbd0689179ff4961 |
|
13-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
imap: APPEND crashed if invalid keyword was given as parameter. |
cbccc33187d4b80938942341cad5fa46fa67f1f4 |
|
09-May-2015 |
Timo Sirainen <tss@iki.fi> |
imap: Don't crash if APPEND command is given with invalid parameters.
Found by Coverity. |
900cbc1dc5b62363f26da3087551ce972188b744 |
|
21-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
imap: Small code cleanup.
Removed all the checks of CLIENT_COMMAND_STATE_DONE to command_exec()
itself. |
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> |
37703e8d00a3a486aafba6a276fef35b38eab948 |
|
03-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
Use io_add_istream() wherever possible.
This shouldn't fix anything, but might make some functionality easier to
implement in future. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
08837f59c1466ec0f533f120b167f2a3e87da738 |
|
03-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
imap: If SELECT fails with "mailbox is inconsistent", disconnect client. (Plus related cleanups.)
The inconsistency can also be used to indicate that something is badly wrong
and nothing useful can be done before client reconnects. |
7d85bf560c8b25cd8762207fce0f74e2f97013f0 |
|
05-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed potential crash if client disconnected during APPEND. |
b6540ed0dc3a4b9d43dc2e9e91971d27e1d0b384 |
|
11-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Improved "EOF while appending" disconnect log message. |
6a67bcb469c615bd750542439b3242112aa50412 |
|
19-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
imap: If FETCH fails, log the stream's error string instead of errno. |
96581b055307a30ffde0e272902c161e4ca96c40 |
|
21-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed potential assert crash in APPEND. |
a23cb9e67529802ee6163166f5e853ed945fa13a |
|
07-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed memory leak on APPEND error conditions. |
fd1317a6186c461c5037b95793a28ee623208ea7 |
|
04-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Various APPEND/CATENATE error handling bugfixes.
Found using Apple's catenate.pl test script. |
f036539f6a236d974fc04087e6fe36f8d299a496 |
|
06-May-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Don't eat away the next command if CATENATE fails. |
693e839fb958599263ccef4fc0e9b844fa49b993 |
|
06-May-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed assert-crash on invalid APPEND parameters. |
fa0e8ffddec87e87127abd3e7bac174a770f0415 |
|
06-May-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Don't hang in APPEND when giving it invalid parameters. |
047f63233003cadd909bbb751e9e417353060d9d |
|
02-May-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Don't allow empty CATENATE () list. |
6c3a5f03aa0331daa26085a678ef1c872e4078d5 |
|
02-May-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed using literals for URLs in CATENATE. |
8110bad16208840ed78ab1300f2f0eeecf592b84 |
|
17-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_save_finish() internally does one final mailbox_save_continue() |
4f993cf1cb425e97cee24bfe4f6b0137361e99c6 |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Don't leak mailboxes on CATENATE errors. |
a5799aa3f9d425da7a515be62296f43f176dace9 |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
imap: Added assert+comment to give easier to understand error. |
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. |
1973c7c4f46abec48e1015823a304f17da35b2f6 |
|
08-Dec-2012 |
Timo Sirainen <tss@iki.fi> |
imap: If mailbox doesn't have read ACL, hide APPENDUID/COPYUID resp-codes. |
a22f62ebb03080da4f5d42a551cef872e6fbc658 |
|
14-Sep-2012 |
Stephan Bosch <stephan@rename-it.nl> |
lib-imap-storage: Changed imap_msgpart_url API.
Adds enum mail_error return value to imap_msgpart_url_open_mailbox().
Now parses msgpart at the beginning and adds function to access underlying
imap_msgpart object directly. |
5d84dfbcfdd911b13c9bbb5c29848f34c9099252 |
|
30-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed MULTIAPPEND CATENATE that contained only URLs |
f16414db98febc5ffb6bdc98285978fbcfa4244e |
|
29-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Minor code cleanup |
82908dad4d96f1f9e8d5372347c801c03ce35b09 |
|
29-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Don't hang with zero size CATENATE TEXT parts. |
14195da06af9bec465c00695793567d6d190bfe4 |
|
29-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Allow very long MULTIAPPEND CATENATE lines that contain only URLs. |
7d3aac4c79a8d887e0b91e6d8b506ca29ecdea60 |
|
29-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: CATENATE fix |
59fde98aafd5a82704baa861ede154ad756c430b |
|
29-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: More APPEND error handling fixes. |
2db714ba6e76d204cc86f73e82a1c4194ff1cc18 |
|
29-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Various fixes to APPEND error handling. |
87b9e370cc89290f6abe7ee38695be33ee90b4b1 |
|
29-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap CATENATE: Do one more mailbox_save_continue() after adding EOF to stream.
Fixes a crash with external mail attachments (mail_attachment_dir). |
4351efdddced25735d629496f6c68c9d0cfb896a |
|
31-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
imap: CATENATE command fixes.
Patch by Stephan Bosch |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
3785910c303507db5f629684e6dde2cc7f83668e |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_get_data_size(). Used it where possible. |
e2a88d59c0d47d63ce1ad5b1fd95e487124a3fd4 |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added o_stream_nsend*() and related functions to make delayed error handling safer.
Once o_stream_nsend*() is called, o_stream_nfinish() must be called before
stream is destroyed to finish checking if there were any errors. If
something failed and the stream is just wanted to be closed,
o_stream_ignore_last_errors() can be called.
For streams where errors don't really make any difference (network sockets)
you can call o_stream_set_no_error_handling() immediately after creating the
stream. |
8a71f94b2a9c828f209a93b4ea6330f994f90c96 |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
imap: CATENATE error handling fix |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
5fdc11fc5133d3e7c34c091bb2fc4197b620e5c0 |
|
21-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Added IMAP_RESP_CODE_UNKNOWN_CTE |
5efe15330870350b9298034e1ea1813509601192 |
|
20-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Fixes to handling BINARY APPENDs. |
961850d5e196fdeca427a4241fe95aef0054576a |
|
20-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed CATENATE support to send "+ OK" for literals. |
f5c82a830d57484f0fdb67d963b5225341fce18d |
|
20-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Implemented BINARY extension support for APPEND/CATENATE. |
57b38969882b61538660652b70e213f64bf20cb7 |
|
02-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Code cleanup and error handling fixes for CATENATE |
639bb36b12b9f9bb54c8bb1be50eac623622f8a0 |
|
02-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Error handling API changes to previous IMAP URL related changes. |
9f9063b9b2fab36b616c0a4b6e80f23e4851b5c1 |
|
02-Jun-2012 |
Stephan Bosch <stephan@rename-it.nl> |
imap: Implemented CATENATE extension. |
db75f60fcefb2716fc028039765f785f6f113f98 |
|
03-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed error handling in APPEND parameters. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
aa038933820fb9356a4d9213632f54b8d9b91f87 |
|
09-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Handle invalid APPEND parameters a little nicer. |
428fb4dc39c6e9b2eb36216c396dad6096a65f8f |
|
09-Oct-2011 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Added reference counting to imap parser. |
b69f4d33ffd8a505e2e6472a395026dc43f538ee |
|
26-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
imap: Added hooks that can be run always before/after any command handler. |
d916e67d368fd486c8173ca31e479409a32976e3 |
|
16-May-2011 |
Timo Sirainen <tss@iki.fi> |
imap: If client disconnects in APPEND, log more about what it did before that. |
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. |
4182d8cd818e76856a5a1e25b343fe5ddf69fd8e |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Simplified mailbox_keyword*() APIs.
They are no longer struct mailbox methods, because they're always implemented
as being wrappers to lib-index APIs anyway.
Also mailbox_keywords_ref/unref() no longer take mailbox parameter. |
62f49ddfc6fddae2c512961e17d8c7b963108bb4 |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
imap: Avoid using mailbox_list_get_mailbox_name_status()
The validity checks should already be done by the actual commands in most
cases (if they didn't, there would be race condition bugs). The only
exception is SUBSCRIBE. It doesn't require that the mailbox exists, but
we want to enforce that anyway via IMAP. |
5be786ac7cafd3dcd8574edaec31eb414ae92b03 |
|
03-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Removed previous log prefix hack. |
0fb11b6350ecb430cd1888b662aac7624a26adad |
|
03-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Try to use the correct log prefix when service_count!=1. |
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 |
21bc882fa43631c2b73b52b821d94f67c659124d |
|
16-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
imap: Some mailbox accessing commands failed with wrong error message.
--HG--
branch : HEAD |
e5fd6dfd0a492e4708d4dbb7971d7fc5d7b8fd85 |
|
12-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed input parameter from mailbox_alloc(), added mailbox_open_stream()
--HG--
branch : HEAD |
e10d8b1291090c26b9ef499637e6e632485ca5be |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Split mailbox_close() and mailbox_free() functionality.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
7db6a43edd76269b5852cff0422a88779647f4a8 |
|
20-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap: If client disconnects while appending, don't treat the rest of the message as commands.
--HG--
branch : HEAD |
1c885b304f060e3ac4fe04195a2f53457d0ac99e |
|
03-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Allow namespace prefix to be opened as mailbox, if it already exists.
--HG--
branch : HEAD |
4f1a1352a83fbb376dbd21a357d4b970b449cf9f |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
imap: Support UID-less saves/copies after all. Virtual backend can't return them.
--HG--
branch : HEAD |
96308127e006bb3b1108093bcf4cc1fd9481cb7a |
|
24-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
mailbox_transaction_commit_get_uids() changed to _get_changes() with more generic API.
Saved UIDs are no longer necessarily in a simple x:y range.
--HG--
branch : HEAD |
84ed9f8f3d0e5ed47607ef417618e49e4f865557 |
|
22-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Added reference counting to struct mail_keywords and related APIs.
--HG--
branch : HEAD |
ff07f88f387fdd9e8663918cbec94593a17afc3c |
|
16-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
IMAP: Send [ALREADYEXISTS], [NONEXISTENT] and [TRYCREATE] resp-codes correctly.
--HG--
branch : HEAD |
1d2b188f0eedc3cab6e27ceac5425a037f38042e |
|
15-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Mailbox opening and closing APIs changed.
--HG--
branch : HEAD |
2615df45a8027948a474abe5e817b34b0499c171 |
|
03-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for making mail_storage:mailbox_list to be from 1:1 to n:n.
This will allow namespaces to share the same storage and a single namespace
to have multiple storages (multiple mailbox formats). Neither works
currently, and this commit probably breaks some things.
--HG--
branch : HEAD |
459f60325f94f486ef057241b42d8a9e9c376fb4 |
|
26-May-2009 |
Timo Sirainen <tss@iki.fi> |
imap: Cleaned up "command pending" handling code. Should fix hangs caused by recent changes.
--HG--
branch : HEAD |
0fbcc7b95f877f2db93530d7d5f0fd62e6377c08 |
|
15-May-2009 |
Timo Sirainen <tss@iki.fi> |
APPEND: Don't assert-crash if message size parameter isn't given.
--HG--
branch : HEAD |
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8 |
|
05-May-2009 |
Mark Washenberger <none@none> |
Renamed headers to prevent collision if they were flattened on an install.
--HG--
branch : HEAD |
a341c4cdbd4b93ba479f465ad3f569dc82f57312 |
|
14-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Changed MAILBOX_OPEN_FAST meaning a bit. Don't use it where it's unnecessary.
--HG--
branch : HEAD |
3b485e05b2a505b09c387a6f6505ea510e9018aa |
|
03-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
IMAP: Don't allow APPEND to specify INTERNALDATE more than 2 hours into future.
--HG--
branch : HEAD |
c6ca8191a40f8c3cbc63d49d398a14a898387e04 |
|
27-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
IMAP: Don't return APPENDUI/COPYUID if backend didn't provide them.
--HG--
branch : HEAD |
a64adf62fa33f2463a86f990217b0c9078531a40 |
|
28-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for config rewrite.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
63110c906fdb5b4e8c870e76fa3f244dac4b043d |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
mailbox_open() now takes struct mail_storage ** so it can be changed.
--HG--
branch : HEAD |
e3aeeb634245e80d4f643f8d2eea11d6b72336d8 |
|
07-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
mailbox_save_init() API was split to multiple functions.
This allows adding more parameters easily in future.
--HG--
branch : HEAD |
bda73a03c1d47689f9dbbab7cdaa862ae9a2337b |
|
13-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
APPEND: Uncork stream only after syncing and sending tagged reply.
--HG--
branch : HEAD |
2d340205d897e23fbecb40c8e63a4ca49bd6739b |
|
20-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
client_command_free()/cancel(): Take pointer-to-pointer parameter and set it
to NULL to make sure it's not accessed again.
--HG--
branch : HEAD |
a2f250a332dfc1e6cd4ffd196c621eb9dbf7b8a1 |
|
15-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Initial CONDSTORE support.
--HG--
branch : HEAD |
c5aa3656dd729b29e9a56c1a325a2d871814f5bb |
|
04-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed a potential hang after APPEND.
--HG--
branch : HEAD |
c96eb61168670cfdd7596baba18856d3f086a093 |
|
25-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
When pipelining commands, delay synchronizations so that only one combined
sync is performed for all the commands. This improves performance as well as
fixes some problems with the earlier method.
--HG--
branch : HEAD |
5ee58e8be70daf745534310298362fd4186d7db7 |
|
12-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Added "command state" for running commands. Use it instead of some bitfields
to test for the current state.
--HG--
branch : HEAD |
9e7de2ced0b9ece9d7ae454d06e4f96cbe27668b |
|
06-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Reset idle timeout also in APPEND/IDLE.
--HG--
branch : HEAD |
93f6275b3482ade88fc0fc8783bcf00c7ca528b7 |
|
03-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Use separate idle timeouts to avoid unneededly checking them every n seconds.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
b455e98fbf62de1915221b23aa89ca37a0fe4a06 |
|
29-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
client_parse_mail_flags() no longer does keyword verification, so there's no
need to change client->keywords.
--HG--
branch : HEAD |
10c96a244935de4add8213ba0b894178dfb889a5 |
|
22-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Removed v_start_offset parameter from i_stream_create_limit(). We'll always
use input->v_offset now.
--HG--
branch : HEAD |
9d44d654bd5d5eb1fa6f70875573a356e1f9394f |
|
22-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
If post-APPEND syncing sent a lot of data, connection could have hanged.
--HG--
branch : HEAD |
ede233cc579466dde77da4620b4abb2fbd909348 |
|
09-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
If APPEND updated keywords list in selected mailbox, send the list to client
as well.
--HG--
branch : HEAD |
b23e15088d591db7b38c60d96cac238abd2750f2 |
|
27-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Changed error message.
--HG--
branch : HEAD |
c77f7ab816abff17f0b1d0ef77566190611076f8 |
|
06-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Fixed process hanging sometimes when disconnecting.
--HG--
branch : HEAD |
63f36c2b47217fc2dc4ed49cfc1907311d5ed366 |
|
30-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_transaction_commit*() doesn't sync the mailbox anymore, so it
shouldn't take mailbox_sync_flags parameter either.
--HG--
branch : HEAD |
ca9b4bd99287f7aef3065c9973f8d440bf5bbbc5 |
|
22-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Make sure we do a mailbox sync after flag updates (STORE, FETCH). Also added
a new IMAP_SYNC_FLAG_SAFE which is used to figure out if appends and
expunges are safe to send to client when delay-newmail workaround is
enabled.
--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 |
648d24583c1574441c4fa0331a90bd4d6e7996c5 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
pool_unref() now takes ** pointer.
--HG--
branch : HEAD |
00395881d1dbbf37178d1efc193a7e9804aaff3b |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Removed _ prefix from all public APIs.
--HG--
branch : HEAD |
61f5256ef248d35459b53534ae428bf6d016e1c5 |
|
02-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed mail_keywords creation APIs to take mailbox/index instead of
transaction.
--HG--
branch : HEAD |
cb05ecbd96ddb5e53c1850d27434541138a3f284 |
|
02-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_keywords_create() checks keyword validity now and returns failure if
any of them are invalid. Added mailbox_keywords_create_valid() that only
drops invalid keywords. Removed mbox and IMAP-specific keyword checks, they
all use the same checking now.
--HG--
branch : HEAD |
3663e853af8acb579d7b59b75eba64be9a123344 |
|
31-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
If append fails because input EOF, disconnect the client with EOF reason.
--HG--
branch : HEAD |
88187ee880b4829443e0d55ea7d145d9d5880217 |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Removed explicit locking from views and maps. They were already locked all
the time when they were used. Because of this change several functions can
no longer fail, so they were changed to return void, and a lot of pointless
error handling was removed.
--HG--
branch : HEAD |
ccec5f82349eae44087900c0e64ed1fd5a1a6fca |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_transaction_commit_get_uids() now returns also UIDVALIDITY. It's the
only usable way to get it returned correctly. Removed maildir-specific
mailbox_get_status() handling, it's supposed to return the current state of
the mailbox, not the latest state. It was useful only for returning non-zero
UIDVALIDITY for newly created mailboxes, and that's no longer needed.
--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 |
770c017a5343732776ccd9d5ddb2c6ba8c4d4a2d |
|
17-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
If UIDVALIDITY lookup fails, don't show it as an error. It probably means
that ACL plugin prevented the lookup because user had no READ rights.
--HG--
branch : HEAD |
b391e68b2811fe20dfa2d047d53fc7af686b8283 |
|
17-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
If UIDVALIDITY lookup fails, don't return failure to whole APPEND, just
don't return APPENDUID.
--HG--
branch : HEAD |
1c10ea165c9ec4520a12b23d32e0ae000dc3aba9 |
|
16-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Get UIDVALIDITY after transaction has been commited. It may have changed.
--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 |
8558143faa58cc535997ecd2798756f2adca8c87 |
|
26-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
APPEND {0+} didn't eat the finishing CRLF.
--HG--
branch : HEAD |
ee8ce50fef2011ed8fff9d732fed7ad66d445299 |
|
30-May-2007 |
Timo Sirainen <tss@iki.fi> |
Use more corking
--HG--
branch : HEAD |
f8bf7526f2b60b736b0675445b2fb350fb8d7db8 |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Implemented UIDPLUS extension.
--HG--
branch : HEAD |
84be3030d82298b4a95c0f624e8d3ffb09d7f2a4 |
|
25-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
hang fix after appends
--HG--
branch : HEAD |
bf1ee9a88d9518a07c2cf86fd7fb56cd3ebbe38b |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Crashfix
--HG--
branch : HEAD |
caa97240fb00c583ffeefcecbb2bf159a61ad3a4 |
|
13-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Logout crashfix in some conditions.
--HG--
branch : HEAD |
5103f764c441e09f1dd84e57035428e72e4acf79 |
|
11-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Use a larger initial pool size for keywords.
--HG--
branch : HEAD |
ebcec53082eb6a36d18990398670b280f40e4a92 |
|
11-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Another failure handling fix
--HG--
branch : HEAD |
2800857184a6ecda6956c3ce939607e0ab1ca9d8 |
|
11-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
When using MULTIAPPEND and LITERAL+ and message saving failed, we stopped
parsing client input too early (for subsequent appends after the failure)
which caused BAD replies.
--HG--
branch : HEAD |
8ee17787a084230809b0faa5279cb1735cb4f904 |
|
01-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Don't crash if mail saving fails.
--HG--
branch : HEAD |
293704430db74082dea14677d31804b7135e5767 |
|
16-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
APPEND ate all CPU if client didn't send the message fast enough.
--HG--
branch : HEAD |
2f5b1bc6e344458575ea6f942216fe9fb74d3876 |
|
15-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
If we've a mailbox selected and we're appending to another mailbox, we got
extra FLAGS/PERMANENTFLAGS change notifications.
--HG--
branch : HEAD |
2f3d26e180a669116e1d456bd6dfdf5d0d3b0a40 |
|
06-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Command handling fixes.
--HG--
branch : HEAD |
39a54bbe07abdc0c22f94718f4df3c2604b491ed |
|
21-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Don't crash after append.
--HG--
branch : HEAD |
42507d758b053bb483de58fba55c73a9eb5d3fba |
|
20-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Dovecot is now able to execute multiple commands at the same time.
Practically this means commands: FETCH, LIST, SEARCH and syncing output for
all commands. For example it's possible that doing two FETCH commands at the
same time makes their output mixed together.
Non-blocking SEARCH is done by doing search for 20 mails at a time, and then
checking if another command is pending.
Also added X-CANCEL <tag> command to cancel running commands.
--HG--
branch : HEAD |
2cfe9983ce7a6280636ee12beccc2e865111967b |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Replaced void *context from a lot of callbacks with the actual context
type. Also added/fixed some context type checks.
--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 |
0d10e9000113207a4ce8ec0b7841c8390d9769b4 |
|
30-May-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Compile fix
--HG--
branch : HEAD |
de727040ab4bffaf79a27f5bd0749a149cdb7474 |
|
30-May-2006 |
Timo Sirainen <tss@iki.fi> |
If connection closes while appending, we crashed in some situations.
--HG--
branch : HEAD |
2ebeb22b9a8a8bb7fbe2f2e2908478a220792b87 |
|
09-May-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Changed mailbox_save_*() API a bit: Moved the struct mail *dest_mail to
save_init() instead of being in save_finish(). This way you can request
wanted fields from the mail while it's being saved.
With maildir the message is being parsed at the same time as it's being
saved, and the results are stored into cache file.
--HG--
branch : HEAD |
71141fdcea32816c36aee5bb11e462bbc8ba58f3 |
|
12-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Don't crash if client disconnects while appending message.
--HG--
branch : HEAD |
00f2137588f4f2093290680df6885255d01cf873 |
|
06-Mar-2006 |
Timo Sirainen <tss@iki.fi> |
Log a line when IMAP client disconnects with a reason why it happened.
Changed the reason strings also a bit with POP3.
--HG--
branch : HEAD |
4981827cb5e32cf767b7b0e3070137e6b36f42af |
|
22-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
mailbox_save_init() supports now returning failure. Quota plugin now checks
if mail is too large in mailbox_save_init() hook. APPEND fails before giving
"+ OK" reply if mailbox_save_init() failed.
Also fixed some APPEND failure cases where the next command was eaten away.
--HG--
branch : HEAD |
defb12ecd360df672ffb2f4dbf4d1218a0a9549c |
|
22-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Make life easier for plugins:
- Added MAILBOX_OPEN_SAVEONLY flag for mailbox_open(), which is set when mailbox is opened only for append/copy
- Added a couple of MAIL_STORAGE_ERR_* string defines that should be used when giving visible errors to clients
- Added failed-flag for mailbox_list_context, which plugins can directly set to make mail_storage_mailbox_list_deinit() return failure
- Added mail_storage_get_mailbox_path() and mail_storage_get_mailbox_control_dir() to return locations for mailbox directories
Also be more strict when validating mailbox names.
--HG--
branch : HEAD |
9aede51729f5804f7e88e071001b0d9063f61dd4 |
|
17-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
If client disconnected or gave too long APPEND command line, we didn't properly deinitialize saving, which could have caused partially written mails with mbox, or files left lying in tmp/ with maildir.
--HG--
branch : HEAD |
3290cc5e5c5d578241ba2290083dbc4a0fa98903 |
|
29-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
And the final fix for APPEND hangs ;)
--HG--
branch : HEAD |
c192dcde7262ebca106f7c2996be37b43baabc2a |
|
29-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
And one more fix for append hang..
--HG--
branch : HEAD |
133825d7503acabdea27d464c61e6b79de61dbaa |
|
28-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Last APPEND-fix left connection always stuck afterwards.
--HG--
branch : HEAD |
95ec2a977a122ad74efa745d896cf416b5c99dd9 |
|
26-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
If there had been enough sync changes while APPEND was being done, we never
reset flush callback to _client_output, which could have caused hangs later.
--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 |
a16886c9b11300f553012a4dc52246313d40b644 |
|
04-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
If append command failed because input line was too long (highly unlikely),
we didn't properly reset flush callback.
--HG--
branch : HEAD |
39e6fcc3e8b1ccb13087c232cb6bdea04d1a20a4 |
|
25-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
UID STORE command must return UID parameter in FETCH replies.
--HG--
branch : HEAD |
2ed8e0ea81cccaecb4ede38f3c4e499c725914cf |
|
24-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
IDLE: Sending "DONE" + next command in same TCP packet caused the next command not to be executed until yet another command came (which usually didn't happen).
--HG--
branch : HEAD |
0425d423607bb6e8d1d162dc8dbed92d862b8080 |
|
23-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Call o_stream_uncork() after sending "+ OK", so it gets to client more
quickly.
--HG--
branch : HEAD |
5eee1c504e8c55c753f0bd7beb22130cb6aa53aa |
|
18-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
If client input was closed unexpectedly, don't treat it as index error.
--HG--
branch : HEAD |
be00ab771b0d9f285624383768e97dba7c90b4a1 |
|
28-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
crashfix
--HG--
branch : HEAD |
a0dcb5554796f9c543c3cb27c3db3a389494fae2 |
|
28-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Yet another try at fixing APPEND.
--HG--
branch : HEAD |
cef0f935312c1235d05020c68de5d3107b30548c |
|
28-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Yet another APPEND fix.
--HG--
branch : HEAD |
65874533b0b0f352a2cf353b44dc1584c3c921d4 |
|
17-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
APPEND was broken because of recent eof-change in istream-limit.
--HG--
branch : HEAD |
bb10ebcf076c959c752f583746d83805d7686df8 |
|
02-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Keywords are now stored in X-Keywords headers in mbox. Did several related
API changes to get better performance.
--HG--
branch : HEAD |
04ab375449dd97eed50ada88dd0df2abab01cfee |
|
29-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Added input stream parameter to mailbox_open(). With mbox it now allows
opening a read-only mbox using a stream.
--HG--
branch : HEAD |
c95b77d6630a6bf2efa21e78343c8ddc01956d9c |
|
24-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Eat away the finishing empty line if APPEND failed so we don't send "* BAD"
error to client.
--HG--
branch : HEAD |
56614fe85c8963e9f8d69f015e48e81acf12455a |
|
15-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
mailbox_name_equals() renamed to mailbox_equals(), which also now checks
that mail storages match. Fixes problems with copying messages from one
namespace to another between identically named mailboxes.
--HG--
branch : HEAD |
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79 |
|
15-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Major mail-storage API changes. It's now a bit cleaner and much more plugin
friendly. Removed proxy_mailbox* stuff, they were difficult to use and
there's now much easier way to replace them.
--HG--
branch : HEAD |
70431b190cc68f05052b8c5df3d6a0df76dcc10b |
|
12-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash if client disconnects in the middle of APPEND. The last fix
was incorrect.
--HG--
branch : HEAD |
e60a349c641bb2f4723e4a395a25f55531682d2b |
|
05-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Moved command-specific variables from struct client to struct
client_command_context and changed code to use it.
--HG--
branch : HEAD |
faed8babca9914257f34fb2e603d74016d563b2d |
|
05-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Internal changes in how keywords are handled. struct mail_keywords isn't
automatically freed anymore, added *_keywords_free() for that.
--HG--
branch : HEAD |
144192059d609b3a535700cc231fbe21b66ae55c |
|
31-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
And a non-crashing fix.
--HG--
branch : HEAD |
84d938e770f7edc42f491d07519b3c25e2965257 |
|
31-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash if client disconnects in the middle of APPEND.
--HG--
branch : HEAD |
16c89b1260c9d07c01c83a9219424d3727069b2e |
|
26-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Initial support for keywords. Syncing to mbox/maildir doesn't work yet.
--HG--
branch : HEAD |
8e7123b5a7bc814b11ac4bcf3afd30ef8110a9be |
|
11-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
APPEND was using all CPU.
--HG--
branch : HEAD |
863a3a8d60e030422ce3eed1cfa1a06dc7708360 |
|
11-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Handle failures without crashing
--HG--
branch : HEAD |
4e48cede10b9d3d1904db7cac5ac1d9e972d7ca4 |
|
26-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
If message was APPENDed with LITERALPLUS and it failed for some reason (eg.
mailbox didn't exist), we didn't consume the following message but instead
treated it as commands.
--HG--
branch : HEAD |
b2c1349cf07410aefab0f5b17153af9e5cfcf48f |
|
29-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Added sync flags parameter to mailbox_transaction_commit(), so EXPUNGE can
do a full sync with dirty syncing enabled.
--HG--
branch : HEAD |
596f8869c2950aba8e818550aef3348069b43952 |
|
27-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Deinitialize command handlers always.
--HG--
branch : HEAD |
c07afc0d20c76d8cae7495dcadf4fc9ed8dded10 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
crashfixes
--HG--
branch : HEAD |
9907eaddc804e627325ffdac0389d8462b031142 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Forgot want_mail=TRUE parameter from debugging.
--HG--
branch : HEAD |
a423d985ba7261661475811c22b21b80ec765a71 |
|
21-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Changed mail saving API to be nonblocking.
--HG--
branch : HEAD |
c4267cf4c40fb1f866b5958ff122ef836b8c5dfb |
|
19-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Syncing works now too without buffering everything. Also fixed handling
input while command was being processed.
--HG--
branch : HEAD |
2767104d81e97a109f0aa9758792bfa1da325a97 |
|
15-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
We never do blocking reads/writes to network anymore. Changed imap and pop3
processes to use a single I/O loop.
Not much tested yet, and currently LIST/LSUB may eat too much memory and
APPEND eats all CPU.
--HG--
branch : HEAD |
84f80d9231b6ddc80ebfae425fd3674620fdf746 |
|
22-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Moved namespace and hierarchy separator handling to imap-specific code. LIST
now shows non-hidden namespaces in the LIST reply.
--HG--
branch : HEAD |
22984b0ebb3ed629b37ee558447e773b425dc297 |
|
21-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Removed UIDPLUS after all, it needs more thinking about with maildir.
--HG--
branch : HEAD |
142368d0010cbe5fa07a992750c3150d67e77b14 |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
APPEND/COPY in non-selected mailbox must not remove the Recent-flag
--HG--
branch : HEAD |
345212e8f61ebf14ff4f80df26df9e655eb5121e |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
mailbox_save() and mailbox_copy() functions can now return the saved mail so
it can be immediately queried. Implemented UIDPLUS extension using it.
Maildir implementation missing, so it crashes with it for now.. APPEND with
mbox now doesn't require resyncing the mailbox since it updates indexes
directly.
--HG--
branch : HEAD |
d8b77aef97e89f1ccc5cbdaef77be9052279e35f |
|
02-May-2004 |
Timo Sirainen <tss@iki.fi> |
s/custom flags/keywords/
--HG--
branch : HEAD |
31ddc75584c5cde53d2e78a737587f2e7fdcb0d2 |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
Forced locking to be right with mprotect()ing index file. Support for
disabling mmap for indexes, and disabling just mmap+write().
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |
dd62b77c932d1b518f2a3e4bf80e36542becc256 |
|
09-Nov-2003 |
Timo Sirainen <tss@iki.fi> |
istream rewrite. instead of directly setting any limits to stream, you now
have to use i_stream_create_limit() to existing stream. this should make the
istreams much easier to create and understand how they work.
--HG--
branch : HEAD |
7bcb060bf8591a4f50dafc77eb733f882920c0d0 |
|
16-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
cleanup
--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 |
60ac3b8975c9fcd8acfa2fbae6d8dff5e214aff9 |
|
27-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
Getting ready for namespaces. LIST is still broken with them.
--HG--
branch : HEAD |
290d0477ac0fed6e0c5faa17d55364a971696923 |
|
15-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
index_mmap_invalidate = yes now invalidate memory maps before accessing
them. Setting this on should fix some problems with OpenBSD. It should also
make it possible to use index files over NFS as long as lock daemon is used.
It might be such a good idea however.
--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 |
868772ffa3756090710d239f5a75cf20d3399760 |
|
15-Jun-2003 |
Timo Sirainen <tss@iki.fi> |
Only NOOP and CHECK will now always do a real mailbox sync. Other commands
will also do it but no often than once in 5 seconds. Also with maildir we
don't anymore try to sync it before running commands since syncing is now
done automatically whenever we try to access a file that doesn't exist.
--HG--
branch : HEAD |
f92221f3550b8a36b61dc9345a1313742baebc7e |
|
28-May-2003 |
Timo Sirainen <tss@iki.fi> |
Fixed memory leak.
--HG--
branch : HEAD |
799b32a1c5a51b2f534cd80d6c6a1c87b64d428e |
|
14-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Added setting to limit length of custom flag names.
--HG--
branch : HEAD |
fb8e400512210d49339775747a520411987d4353 |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
some header file cleanups
--HG--
branch : HEAD |
fbe2451122809f2b719316d0edd9d7e7c91c0d34 |
|
23-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Disconnect client if given non-sync literal size is too large. Better than
eating the input.
--HG--
branch : HEAD |
1879416e000b4509087e05098512b7af9a4cc5f6 |
|
23-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Support for LITERAL+ extension.
--HG--
branch : HEAD |
8ec4e32c9c886c777954c7b9d99fc5d9250b3805 |
|
22-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Support for MULTIAPPEND extension. COPY now behaves like spec says - if it
fails, none of the messages are copied. maildir_copy_with_hardlinks didn't
actually work.
--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 |
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 |
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 |
bb30dbdec689323ec145242403a11d54f8ff90b9 |
|
28-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Added --enable-asserts (default) and fixed some warnings when building
without. Added i_unreached() to indicate supposedly unreachable code block
and changed a existing i_assert(0) calls to it. Removed return_if_fail() and
return_val_if_fail() macros, they're not useful.
--HG--
branch : HEAD |
201108608e6686d3e9dce9b95678a814122b6471 |
|
24-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Fixes to timezone handling which were handling quite badly. added
ioloop_timezone which gets updated with ioloop_time. Changed some GMT
references to UTC. Timezone offsets are in minutes now everywhere instead of
seconds. Fixes for unsigned time_t.
--HG--
branch : HEAD |
10ffe25023df7de97803cd94cc3ad97ff1c986a7 |
|
19-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
MailStorage interface change. We now let storage call several sync-functions
whenever it wants instead of forcing it through sync() function.
This now allows us to send client FLAGS and PERMANENTFLAGS messages whenever
new custom flags are added. Also EXPUNGE command now goes nicely through
expunge() function (which CLOSE used) instead of through flag in sync().
"Out of disk space" alert is also sent now whenever it happens, before it
was sent only when opening mailbox.
Message set parser now complains when referencing mail sequences outside the
possible range. Modify log before sent flags/expunges changes to client even
if it didn't know about those messages yet. Also some other smaller
cleanups.
Beginnings of fixing APPEND and COPY when trying to store mails into
selected mailbox. Before this didn't work too well or simply broke things.
Still broken, needs a bit more changes..
--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 |
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 |
33a50beac50dd8919645682f1304b366fb72b302 |
|
29-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
cleanup
--HG--
branch : HEAD |
3d87bb18faf8bf1152d129288a4adb5a516d6afe |
|
24-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
We didn't allow saving messages longer than 8192 bytes. Now we also send the
"+ OK" only after other parameters have been verified to be ok.
--HG--
branch : HEAD |
30fdfb49c3c6bb58e9758260e0050dbc4c228e14 |
|
23-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
UNSUBSCRIBE wasn't working.
--HG--
branch : HEAD |
7913b62dac8e4928226bc5eba59b01675cdb0018 |
|
23-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Added fast-flag for mailbox opening, which doesn't do any index compressing
or cache updating. This flag is set when mailbox is opened by APPEND, COPY
or STATUS (ie. not SELECT/EXAMINE).
--HG--
branch : HEAD |
1178c88b06e442d2f5ba82157f8f89bcc018a50a |
|
16-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Fixes for no diskspace handling. seems to work now.
--HG--
branch : HEAD |
6697a923d6768bf8d71f87f80b90747cf6870753 |
|
08-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
move size_t fixes
--HG--
branch : HEAD |
b0f4d39e96eeaa00cde7525a9a5991feefa17a3a |
|
02-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Whops, we were using RFC822 dates everywhere instead of IMAP dates.
--HG--
branch : HEAD |
d942d54af6fecb4deba57f7777f5eecb4f1da379 |
|
02-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
APPEND was broken.
--HG--
branch : HEAD |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |