bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
c147bff818798a979d93537f72f5c1f68f5d5ba8 |
|
24-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Use t_buffer_create
sed -i -e 's/buffer_create_dynamic(pool_datastack_create(), */t_buffer_create(/g' |
872c2b1209f4df7d6b9576fd5b93449344f7f80d |
|
05-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
mbox: Add assert to make static analyzer happier |
d1ba8ecbb936ace90179d2292952546708d68f71 |
|
30-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Replace o_stream_nfinish() with o_stream_flush() |
be5773cb4d6edae8a5d9f300c3c7375cdd33826e |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on [io]_stream_destroy(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- i_stream_destroy(&E);
- }
+ i_stream_destroy(&E);
@@
expression E;
@@
- if (E != NULL) {
- o_stream_destroy(&E);
- }
+ o_stream_destroy(&E); |
ac254f652b11e9d14b636a3966184e8aee963f99 |
|
18-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib-storage: convert missed mbox casts to container_of |
2a628a8c90839439baff5b45116f89f2b3cd9e37 |
|
07-Sep-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Replace random_fill_weak with random_fill
They are now the same thing |
c150beda11da6fbbb1a936829550945d5e884f68 |
|
07-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib-storage: convert mbox to use container_of |
f776b9a125c59a96de6807e9558942cf7b7ab079 |
|
28-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Move backend code to a common index_storage_save_abort_last() |
a825281071af96cc148e49c64ac36d8c5cf26f71 |
|
14-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Remove unnecessary mail_save_context.dest_mail==NULL checks
It can never be NULL after the previous change: "lib-storage: Always create
mail_save_context.dest_mail".
The code removal in maildir_transaction_save_commit_pre() seemed
potentially dangerous, but I don't think such code path is possible
anymore. Also even if it is, it's probably fine since the mail_free()
is called even earlier than before (although that itself might have
been a problem).
This also removes last traces of code that made it possible to save mails to
mbox without assigning UID to the mail. The previous commit already caused
this, so this is just removing dead code. |
adea69875046ece77dc36abd3f88a241a3f17ad9 |
|
10-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Add asserts to make static analyzer happier. |
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 |
7f74811b78f8915e73dffc88bb49009e98b6846d |
|
09-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Make sure i_stream_read() calls handle 0 and -2 return values correctly. |
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. |
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] |
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/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
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> |
b5351cfc57c3698a3b9e8ff252ecb34a462e818c |
|
24-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
Use i_stream_get_error() wherever possible instead of %m |
11f743d846c6b4fe9258e48b4d9c3dc2349c5890 |
|
19-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
mbox: istream-tee wasn't being used as expected with the new changes, causing crashes/hangs.
After wondering about this for a while I decided this was the only fully
reliable way of doing this. Although it would have been possible to change
the istream-tee code to support this:
child1 and child2 are tee-istream children:
- i_stream_read(child1)
- i_stream_read(child2)
- i_stream_get_data(child1)
Because reading from the parent istream-tee updates all of its childrens'
buffer, there's no big problem (other than access_counter currently messing
up). But if one of the children weren't a direct child of tee-istream, but
there was a wrapper istream, the wrapper's buffer wouldn't have been updated
by the istream-tee read. So rather than spending time figuring out to fix
the access_counter it's probably better to have it clearly fail as the use
case can't be fully safe anyway. |
48325adac125d7ff275ec69b05b7a92be9637630 |
|
13-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
Added various asserts to try to silence Coverity false positives. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
aeab2134d21723e782b788616b83b4f4e17626ef |
|
19-May-2013 |
Timo Sirainen <tss@iki.fi> |
mbox: Previous change broke index updates to successful saves. |
c42c256499dbf959b538175fe04b0f303707fd9b |
|
15-May-2013 |
Timo Sirainen <tss@iki.fi> |
mbox: Fixed committing transaction after a previous save had failed. |
d6a8078c2e024acecc69e8d8d5d4ae9ec89d29af |
|
15-May-2013 |
Timo Sirainen <tss@iki.fi> |
mbox: If save's input stream fails, fail saving instead of ignoring the 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. |
86c6b2546b0bbfce326583f14d05f59674a6d861 |
|
02-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
mbox: Added support for copy/move/catenate within same mailbox. |
99695d99930b35c2bac85d52e976b44cf8485d83 |
|
23-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved per-mail data in struct mail_save_context to separate struct.
This fixes previous save leaking metadata to the next save. |
f7ec15aefabeb0a17d1f262bc5e9a15e43dfc5ad |
|
11-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
istream-header-filter: Added i_stream_header_filter_add() to add extra headers. |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
e34d170f8f0e084bd94bfbc1a7085ece67e508df |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes. |
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. |
7bd301fdbfefe7cef3576d19ece29c75ebe53baf |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make static analyzer happier. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
9743e5ac5bf6391157a4d1ab7119872b0979f8b7 |
|
09-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
mbox: Added mbox_md5 setting to select headers for MD5 generation. |
7631f16156aca373004953fe6b01a7f343fb47e0 |
|
28-Jul-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail->saving was set too late, which could have caused crashes. |
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. |
c000c8eca8f24b2a0c76393ec4bbf76a505a4983 |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed mailbox.backend_readonly. Backends set it internally lazily now. |
ca98892a6b8a30ffc1fe26fcf02c7d59e3204e7e |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Lazily look up mailbox path and permissions. Added functions to get them. |
c04f9a724a7b3cc649485a61b0a540868d25d71b |
|
05-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed struct index_transaction_context.
All of its contents are now in struct mailbox_transaction_context. |
205debb6e5882687f43a98fec7bb577173b2fe28 |
|
16-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
mbox: Ignore utime()=EPERM failures when trying to set atime back.
This happens with shared mboxes when file's owner isn't the process's euid. |
0fc0ad48c01112a6941ba9270a42c4d6da7123ab |
|
30-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
mbox: Use HEADER_FILTER_END_BODY_WITH_LF flag with input stream filter.
This fixes a bug where wrong message size was cached while saving messages
that didn't end with LF. |
3c029c5fa2a62d1c4f337d540eaa6cd1f5fb6c38 |
|
30-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
mbox: Fields weren't being added to cache file during message saving. |
569ace80c4114ed646cec9aa743b162c309fc736 |
|
14-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
mbox: Write empty From_-line envelope as MAILER-DAEMON |
85afe3e73724f50f0063622648d288ac2d0184a2 |
|
14-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
mbox: When generating envelope to From_-line, don't append a second @owndomain if username already has one. |
b780aa272b742a43579cdb523cc79cc8d4521306 |
|
25-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Renamed fsync_disable to mail_fsync=optimized|always|never.
--HG--
branch : HEAD |
fc40a9a002458e372ff4b9f6f4e15239520c0bcd |
|
04-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed accessing uncommitted saved mails with dsync
dsync preserves uids, so uid==0 check won't work for detecting such mails.
--HG--
branch : HEAD |
7a7d2aa11e46195e2d92d6c337d7e78052a5ce67 |
|
04-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Avoid including mailbox-list-private.h everywhere.
--HG--
branch : HEAD |
8bb360f9e5de1c25e4f875205bb06e8bf15dae14 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Removed dead code.
--HG--
branch : HEAD |
cd83124e5d070a016c590bb0b1096d7828c7b6ad |
|
19-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved index transaction/view from index_transaction to mailbox_transaction.
--HG--
branch : HEAD |
099a6b509dc3fc68e662b6736f03b73eb575c527 |
|
15-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed some code duplication.
--HG--
branch : HEAD |
d22301419109ed4a38351715e6760011421dadec |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: *_mailboxes don't descend from index_mailbox anymore, it's now a context.
--HG--
branch : HEAD |
ca98d6a1bbe73499da758a36bfab2963375c8d06 |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved struct mail_index_* from index_mailbox to mailbox.
We're relying more and more of all mailboxes being used via lib-index, and
this change makes accessing the indexes easier.
--HG--
branch : HEAD |
651fc0f1e43fef3e02e0e7b5f498973b05f641d7 |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Added support for marking mailbox index deleted. Don't allow any changes after that.
This is going to help with race conditions when deleting mailboxes.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
9f19a50d5966643c4d1c5ca06868ac2ad31bc4d5 |
|
19-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Transaction commits can now track how many uid/modseq updates were ignored.
--HG--
branch : HEAD |
bf356133efdfa8c49cbbac143d5157daa725de5d |
|
03-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Added support for saving messages with wanted UIDs.
--HG--
branch : HEAD |
6bb96a93f263b2be43f322b0b7024ab6d8746c42 |
|
16-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Write the last LF before fdatasync().
--HG--
branch : HEAD |
75b15d874cb202a03d7197f75c056afb68221a90 |
|
16-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Make sure failed saves get rolled back with NFS.
--HG--
branch : HEAD |
eb0816090cf5a549280ad783b9aa6fec199d36ba |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
index-storage: Simplified the way transactions are are created/finished.
Removed also mail_storage.class_init/deinit since they're no longer used
for anything.
--HG--
branch : HEAD |
88f56040cebb5d272b658b8e00f02434b9dca200 |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
index-storage: Code cleanups.
--HG--
branch : HEAD |
ea5f188fc29dfaa0c4071e6413e16e1d04263722 |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
index-storage: Moved mail MD5 calculation code to mbox-specific code.
Nothing else used it.
--HG--
branch : HEAD |
d59f44917f9862d3f95d7c95885b6f50e802ae38 |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Removed duplicated flags from struct index_transaction_context.
--HG--
branch : HEAD |
ad48319996942463675b53877092ab7e13a7a75a |
|
29-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Added ability to specify message's minimum modseq value.
--HG--
branch : HEAD |
48b58156ae1927fd557f1e9d9689faa9f2578956 |
|
28-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Allow setting \Recent flag when also specifying message's UID.
--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 |
b23f806af18906299a6b9d28ae6b16d8d2842c85 |
|
24-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Don't write garbage to mbox if message doesn't have a body.
--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 |
a64adf62fa33f2463a86f990217b0c9078531a40 |
|
28-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for config rewrite.
--HG--
branch : HEAD |
42456ec33fe65feb411890f99d436071e0185ee3 |
|
14-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Cleaned up read-only mailbox handling. Fixes a bug with Maildir syncing.
If Maildir was opened read-only (STATUS, EXAMINE) then all flag changes were
saved to index as dirty.
--HG--
branch : HEAD |
ed9782b21a020daad7fed0b765e9a39a691e7e05 |
|
07-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Added my_hostdomain() function which mbox code now uses instead of doing that internally.
Based on patch by Apple.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
690bafa70767e3f6e98bbfd62ad4a26be2387ea9 |
|
13-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: Added a new index header where dirtyness state is stored.
This also fixes a bug where sync_size wasn't updated in header when mbox was
marked dirty, causing other parts of code to assume wrong file size and
return wrong size for the last message and/or cause "Next message
unexpectedly lost" errors.
--HG--
branch : HEAD |
d0f823494ebb38ac132bc9ed3d46377c05299bfe |
|
05-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: Don't crash if saving fails because of write error (out of disk space).
--HG--
branch : HEAD |
d23c747de9d33966483fbdd41f08ad7766da7c5c |
|
12-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Added struct mail_user and fixed the code to support multiple users per process.
--HG--
branch : HEAD |
b19a1420da0618a10edf67c2cfd13c8c8633057a |
|
07-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Added the concept of Global UIDs that are preserved across copies.
They can be fetched, searched and specified for the save API. dbox format
supports them correctly, but with maildir the base filename is used so
maildir_copy_preserve_filename=yes is required to preserve GUIDs when copying.
--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 |
c1ce4a44f63dcf0a3d3f8a3a0a46c3a6de1655f3 |
|
04-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: Saving may have truncated the mail being saved.
save_continue() must not return if there's still data to be saved and
index_mail_cache_parse_continue() may read more of it, so make sure after
calling that the save input is handled.
--HG--
branch : HEAD |
cf942dce0253075911a96cff323b5f30eb654ae0 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
mailbox.save_init() API now takes ** pointer to dest_mail, so multiple
plugins can safely specify it. ctx->dest_mail also gets updated then.
--HG--
branch : HEAD |
ae0bc7d4a55ba2614d886c134015abb7e7f0adca |
|
19-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: Don't crash if saving is aborted early.
--HG--
branch : HEAD |
c9bad2e72f2d4319d0717fb67883a29105e1ddb5 |
|
02-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: We always add end-of-headers line while saving the message, so make
sure the parsing code also sees it and updates cache correctly.
--HG--
branch : HEAD |
122038d3a99ddaacc14593aa5d57c4b19a2be62b |
|
26-May-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: Be sure to flush output when writing to non-seekable "mboxes" (pipes).
--HG--
branch : HEAD |
b643f5f3369eb7db818bbef5df635d642d4f3606 |
|
26-May-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: When saving messages buffer the output until it's full, so if we die
at the beginning we don't just leave a single From_-line.
--HG--
branch : HEAD |
edccc249ebaf311e26863f65f867573682574de1 |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: Always update sync_size when saving mails. We rely on sync_size for
getting the last message's physical size.
--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 |
2d1663351e67fd778ed34df09b8ad5fe29da23d9 |
|
25-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
If mail saving fails, don't try to update cache file (only to have the
changes rollbacked).
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
87d6276b690dd4557a433bffdf00184bf969db66 |
|
22-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Refresh index when we want to know the next_uid, otherwise we might have
used too low value.
--HG--
branch : HEAD |
f65c449565b3b674c07226f7e7a3cbc9e12c13c9 |
|
21-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
When saving mail, it wasn't set \Recent when \Seen flag was also set.
--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 |
32d9a75612a5df455e4169b56538bb31dfe359e4 |
|
21-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
When saving to empty mbox files, sync them first since it doesn't take
hardly any time anyway.
--HG--
branch : HEAD |
049ce7461e5a6315bd4bc5eb8bdafc3fc0c99bda |
|
20-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
More fixes to handling mail saving.
--HG--
branch : HEAD |
88f523482f73d83c66fd2ef083de5de5d80ef7c1 |
|
20-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Fixed saving messages
--HG--
branch : HEAD |
5ef7efd45b1adf3a09cf9c229cf0a3d3d54405a2 |
|
06-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Use crlf input streams instead of output streams so message parser doesn't
end up saving broken offsets.
--HG--
branch : HEAD |
8ef44bc339434cbc94a8e9383b2badf6a3ff4757 |
|
30-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Sync mbox when committing transaction only when saving messages to update
last-uid.
--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 |
042a07daa4a5614159532a2a3878e76e3f176965 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed strocpy() to i_strocpy().
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--HG--
branch : HEAD |
d6df93f6429b8ee8542d1b853d6c4efdea7fff92 |
|
01-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to saving mails
--HG--
branch : HEAD |
b7eb9083814a99309fb3d11c7b8221da64b08024 |
|
31-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to saving messages.
--HG--
branch : HEAD |
61993365dd2edd896a7aa728044d9f18a21ddfeb |
|
16-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Call mail_alloc/mail_free, not index_mail_alloc/index_mail/free directly.
--HG--
branch : HEAD |
73b50eecfc31750a312e2f940023f522eb07178c |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_lookup*() can't fail anymore. Changed several APIs not to return
failure anymore.
--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 |
7a54d58280aad8a64f266c61273ea1e8dff511a3 |
|
11-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Cache received date, sent date, save date and physical size when saving
mails if they're wanted.
--HG--
branch : HEAD |
93fa87cf1a96c4f279ec4f5c311820313ba12c34 |
|
02-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Split o_stream_create_file() to _create_fd() and _create_fd_file().
--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 |
e795b986828e4df206dd874be6ab46746f0cdd4d |
|
19-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Cache everything interesting while saving a message.
--HG--
branch : HEAD |
9d0e1fa945103f2875cdf6d18b2013809f566ea7 |
|
14-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Preserve mbox files' atime when saving/syncing.
--HG--
branch : HEAD |
ff7056842f14fd3b30a2d327dfab165b9d15dd30 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Error handling rewrite.
--HG--
branch : HEAD |
487df7c0afcd15de4dda21b1f24b69ce1fbf7741 |
|
11-May-2007 |
Timo Sirainen <tss@iki.fi> |
Crashfix when saving mails
--HG--
branch : HEAD |
91c6f30b7cf62c7e0349a861657c6f8627e18256 |
|
26-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
If we synced the mbox while saving the message (happens only with quota
plugin loaded), we could have used a wrong append offset (calculated before
sync) which caused "Unexpectedly lost From-line" errors, and depending on
the sync either extra NUL lines or Content-Length header written over
existing mails (quite unlikely).
--HG--
branch : HEAD |
298bfeeb546adde6416253adc5324a16312e4c01 |
|
26-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
If pop3_uidl_format=%m, it wasn't cached correctly when saving new messages
(eg. with deliver). X-Delivery-ID wasn't used in the MD5 sum, causing
duplicates when POP3 recalculated the MD5 sum later.
--HG--
branch : HEAD |
cb5ff22eba16bc08b3fa2fc34bfc0f02d387b436 |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Fixed mailbox_transaction_commit_get_uids() to actually work and not just
crash.
--HG--
branch : HEAD |
4d2211dac61c615c5bdfd501ea54d46c89d41b0f |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Added mailbox_transaction_commit_get_uids() which returns the UID range for
saved/copied messages.
--HG--
branch : HEAD |
ccc895c0358108d2304239063e940b7d75f364ab |
|
30-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Removed struct index_storage abstraction. It's pointless.
--HG--
branch : HEAD |
311aa9e80600c2ef1dbf2e437426fb1d654eaf04 |
|
11-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
o_stream_seek() may do buffer flushing internally and cause errors. Do
flushing manually before seeking so that we don't confuse the errors. Also
did some code cleanups.
--HG--
branch : HEAD |
e05ea8311ae16687295048e88ca205dfe29fbcbf |
|
07-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Keep track of the mbox dirty state better. Also when moving mails inside
an mbox without changing the file's size, make sure the file's
mtime changes even if it means sleeping for a second.
--HG--
branch : HEAD |
a8a89d6265c9bbaf814d8146c93e39609d6e4da2 |
|
19-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Drop X-Delivery-ID header when saving the message.
--HG--
branch : HEAD |
a485d6b39bcdc27af6856b34bef465c312bbb66f |
|
19-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
If pop3_uidl_format=%m, add a unique X-Delivery-ID header to all saved
mails. Without it it's possible to get duplicate UIDLs which some clients
don't handle all that well. (eg. mail sent to two accounts where one is
alias to another will get the exact same Received/Delivered-To headers with
Postfix)
--HG--
branch : HEAD |
b3eb57e22ad9cf3780626b4d930702f30d5adc01 |
|
14-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
When saving a message to an empty mbox file, write X-IMAPbase header so the
UID doesn't change.
--HG--
branch : HEAD |
369a1084c500a9df7448ffa9409ce32e42060bc2 |
|
17-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added fsync_disable setting. Also added missing fsync()ing to dbox when
saving mails.
--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 |
d4ac107a5a6a52f186c898baa662ac40749409e0 |
|
15-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
Filter out "From " lines from headers. There's no reason they should exist
in there and they'll cause problems.
--HG--
branch : HEAD |
ea1855a902bffb210347f211bbbf902c26c14285 |
|
10-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
After saving a mail with index being in synced state, update the sync_stamp
and sync_size fields in the index so that it actually stays synced.
--HG--
branch : HEAD |
cf2be039642eedc157c92ffad0f46835d99c1507 |
|
02-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
We wrote mail bodies through raw output stream, instead of the one that made
sure that CR+LF linefeeds were as configured.
--HG--
branch : HEAD |
8d80659e504ffb34bb0c6a633184fece35751b18 |
|
28-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Array API redesigned to work using unions. It now provides type safety
without having to enable DEBUG, as long as the compiler supports typeof().
Its API changed a bit. It now allows directly accessing the array contents,
although that's not necessarily recommended. Changed existing array usage to
be type safe in a bit more places. Removed array_t completely. Also did
s/modifyable/modifiable/.
--HG--
branch : HEAD |
d7ad17ffb85e16f0fb6fe06b5c131cf53ab6d210 |
|
17-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
If saved mail's body doesn't end with LF, add it ourself.
--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 |
7c6ad06e2bed011e3c0425bf1ceb5df3dc33b638 |
|
14-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
If mailbox was opened with readonly-flag, don't really force it. Fixes
EXAMINE box + APPEND box.
--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 |
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 |
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 |
a40ba2fbafe4b2d0a96e5561067680291a707a67 |
|
16-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Instead of crashing when trying to copy mails within same mailbox, give an
error message to user.
--HG--
branch : HEAD |
baa724f9d04272a8abea7db1cec4e7905d482080 |
|
28-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
assert fix
--HG--
branch : HEAD |
d6e2b2761c8e0b6923c883fb2ead2665ee954be5 |
|
28-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
Try harder to notice bugs
--HG--
branch : HEAD |
2d23beeff60058ff85f0a15e7c27588ab62a1593 |
|
12-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Keywords weren't saved to index while saving.
--HG--
branch : HEAD |
16f816d3f3c32ae3351834253f52ddd0212bcbf3 |
|
04-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Moved array declaration to array-decl.h and include it in lib.h. So array.h
needs to be now included to use any array_*() functions.
--HG--
branch : HEAD |
fbf932d840a191ebb9ac566bfdf73032317b55a2 |
|
03-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Cache mail headers when saving mails to mbox. We should cache everything,
but this is a start..
--HG--
branch : HEAD |
a29e10fdb50767665ea967a1777692c8c4952778 |
|
29-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Crashfix for some failure handling.
--HG--
branch : HEAD |
aa38d1a0945f0bc13a225d043f53fad2eec666b1 |
|
23-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
If UIDVALIDITY changes, don't invalidate the whole index. Just expunge all
existing messages and update uidvalidity/nextuid fields. Now we don't have
to re-login when this happens.
--HG--
branch : HEAD |
8153fdec343e40e2a78f5c12353e89b994b28f74 |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Created mbox_storage and maildir_storage.
--HG--
branch : HEAD |
b5e6f6f27c1461f0f9f202615eeb738a645188c3 |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Moved mbox/maildir-specific variables from struct index_mailbox to
mbox_mailbox and maildir_mailbox.
--HG--
branch : HEAD |
e9e79b1f364e5c83d516b27652dbe2ac9f476659 |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash while saving message if keywords aren't given..
--HG--
branch : HEAD |
bf661a542d17273066e720b4f75868a1ff975a4c |
|
03-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Moved several getenv()s from lib-storage to main code. deliver binary was
missing several getenvs..
--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 |
d0d7fcf3ce44f26fdf34c1542a25cec644c5c4c7 |
|
29-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Recent flag handling cleanups. Added some comments.
--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 |
31e35dc1fade84df6e283ce19b3959727d2966e9 |
|
24-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
If want_mail = TRUE for mbox_save_init() and we sync the mbox, we'll have to
open a new view to get the next_uid or it might not be updated.
--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 |
41e1c7380edda701719d8ce1fb4d465d2ec4c84d |
|
10-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Keyword fixes.
--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 |
709aa305126c32b49657e53d04826087b6838c16 |
|
17-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Named pipes are now treated as write-only mboxes.
--HG--
branch : HEAD |
a25166debda7e661e4c8414ce91891cff016d7c9 |
|
15-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
If mbox isn't synced, don't try to set message's md5sum because it just
crashes..
--HG--
branch : HEAD |
1acab09e1993fa6207d988037662447e697be5f4 |
|
15-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
If we want MD5 sums in indexes, mail saving should also add them.
--HG--
branch : HEAD |
b20fb5b1df9d604a7541f5118fc5b4b466d211ef |
|
24-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Changed mail_index_get_header() to return the header as return value because
it can't fail anymore.
--HG--
branch : HEAD |
7c95b03620a03a43dd72d39608cea5fc77393ad6 |
|
11-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Allow specifying to transaction if it's external. Make mail saving
transactions external to avoid problems with uids.
--HG--
branch : HEAD |
6a19e109ee8c5a6f688da83a86a7f6abeb71abdd |
|
06-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Removed cache_offset from mail_index_record and changed it to use extension
instead. Added possibility to register sync and expunge handlers for
extensions. Changed the way extension resets work: all extension updates
which were committed without having seen the reset are ignored.
--HG--
branch : HEAD |
7797aa2479e99aeb71057b7a2584b2cb72e4d3f8 |
|
26-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Renamed "extra record info" and variations of it to "extension" or "ext" in
short.
--HG--
branch : HEAD |
f1901fd21906911f7be075c965ac882f6a87b4c3 |
|
28-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Added mbox_dirty_syncs setting which delays re-reading the whole mbox when
it's changed.
--HG--
branch : HEAD |
72defb917358704067b738d5ebb052378e065f3c |
|
23-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Use correct error messages.
--HG--
branch : HEAD |
6c56667dd909ff2ddb60b09b4c27c9a7808da1c5 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Saving fix.
--HG--
branch : HEAD |
c100ae972db3680f22c54d4cb0ea613e550fffe2 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
saving was broken
--HG--
branch : HEAD |
185ed0142fbbfb86e7a98519e7c6f11ec00723cd |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Changed istream-header-filter API a bit. Added HIDE_BODY option. Fixed
mail.get_headers().
--HG--
branch : HEAD |
a423d985ba7261661475811c22b21b80ec765a71 |
|
21-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Changed mail saving API to be nonblocking.
--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 |
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 |
f16c114c20bbd7d292d93415d1e56c8dd6abd3e7 |
|
03-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Updated comment about how syncing is done, and s/extra space/padding/
--HG--
branch : HEAD |
467e49007b75d3e3bce0e0e9c78ba89800086605 |
|
02-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
saving messages to empty mbox was buggy
--HG--
branch : HEAD |
24fc71a693331ffe77e2b6d81c70aca6fa055e47 |
|
22-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_transaction_get_updated_view() which can be used to access
uncommitted messages.
--HG--
branch : HEAD |
b44a50ea4123f21dfc8e1b6c602f690fd9721b67 |
|
21-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Cache doesn't crash anymore if we're asking it about messages that exist
only in uncommitted transactions.
--HG--
branch : HEAD |
18565c69efcd7db003dbf27cf625ed822e889fb1 |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Filter internal headers from user visible input stream. Make mailbox_save()
use the same header list.
--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 |
b3febb0933fdce10394d25093e23ce0a5aadddd3 |
|
15-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
fixes
--HG--
branch : HEAD |
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbe |
|
06-May-2004 |
Timo Sirainen <tss@iki.fi> |
mbox code compiles again, but syncing is only partially implemented so
accessing mboxes fails..
Also some cleanups to index-storage and maildir code.
--HG--
branch : HEAD |
d8b77aef97e89f1ccc5cbdaef77be9052279e35f |
|
02-May-2004 |
Timo Sirainen <tss@iki.fi> |
s/custom flags/keywords/
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |
d70df82a5aec273a6196ae35ca89069b1cc31400 |
|
29-Sep-2003 |
Timo Sirainen <tss@iki.fi> |
\Draft and \Deleted flags used opposite flag chars in X-Status header. We
were incompatible with other mbox accessing software.
--HG--
branch : HEAD |
ff1c87522054d080d68b0123373d989a8991aa2a |
|
26-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
API changes: Don't keep variables in mailbox class.
--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 |
007d354a674fb3ddf49db160cf050cf61270a1a0 |
|
23-May-2003 |
Timo Sirainen <tss@iki.fi> |
Removed I/O priorities. They were pretty much useless and were just getting
in way.
--HG--
branch : HEAD |
0376ad840fce4b7cef75a5a73f8fb527258a7ca8 |
|
07-May-2003 |
Timo Sirainen <tss@iki.fi> |
cleanup: message saving code isn't index-specific
--HG--
branch : HEAD |
ad8a4ef24dee1b716179fd92af5a62d30680b0dd |
|
21-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
fsync() saved mails
--HG--
branch : HEAD |
0ffdbd0c6da308c91b76c1166b0af5cdb6a8ea92 |
|
13-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
More optimized mbox rewriting. It now tries to shrink/extend the filler in
x-keywords header.
--HG--
branch : HEAD |
742111fa99a5b852c9645080573d5853be3907a7 |
|
30-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Handle EDQUOT errno as "not enough disk space" like ENOSPC.
--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 |
915670e66a43b4396cc8fc9b3f586015a443bf4e |
|
21-Mar-2003 |
Timo Sirainen <tss@iki.fi> |
Call the hostpid_init() always at startup. Easier than doing it all around.
--HG--
branch : HEAD |
087e7957fb95f619d86db2d3d8c0664937cea419 |
|
20-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
mbox: strip some headers when saving message. also always set Content-Length
header so message may safely contain lines beginning with "From ".
--HG--
branch : HEAD |
6a23f65e314ee81050a6077e46dfc956aafb09c7 |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
signed/unsigned/const pointer fixes
--HG--
branch : HEAD |
24b473bedf8362bf6a8d87ab11b137f35fda457a |
|
24-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Memory usage tweaks
--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 |
a8767e3a8dd08bb782f05dacf2c8877f3cba644e |
|
20-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Added :INDEX=<dir> for both Maildir and mbox to specify different location
where to store index files. This would allow keeping mailboxes accessible
through NFS but still keep the indexes in fast local disk.
Did also some other related cleanups and minor fixes.
--HG--
branch : HEAD |
18d06b7e210b3855420f41144ea36f332c480af8 |
|
19-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Limit the mailbox path. A few cleanups.
--HG--
branch : HEAD |
555ebb032f9b8f0cdb66f27ce7374734833e7cac |
|
19-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Buffer related cleanups. Use PATH_MAX instead of hardcoded 1024 for paths.
Added str_path() and str_ppath() functions. i_snprintf() now returns only -1
or 0 depending on if buffer got full. dec2str() returns the string allocated
from data stack. Instead of just casting to (long) or (int), we now use
dec2str() with printf-like functions. Added o_stream_send_str(). Added
strocpy() and replaced all strcpy()s and strncpy()s with it.
Pretty much untested, hope it doesn't break too badly :)
--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 |
c2bb1764c359ce85a7f7f789ead11dd613ff9769 |
|
25-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Locking changes triggered a bit larger cleanup :) If we have to wait for a
lock longer, the client is now notified about it every 30 seconds. Also if
mailbox opening fails because of lock timeout, we won't overwrite the index
anymore. Finally user gets a clear error message about lock timeout instead
of "internal error".
--HG--
branch : HEAD |
8bd7404367404f38cc36c1edb0872915c4d06bf1 |
|
20-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
COPYing inside same mailbox works now with mbox. Also fixed SAVE leaving
From-line written to mbox file if it was aborted.
--HG--
branch : HEAD |
fddb56b3956545011dafec8d20b1222002a9df00 |
|
13-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
Use blocking output buffers when writing to files.
--HG--
branch : HEAD |
af3b53652d4e3e1952254c15cdcf4a413f8e2a12 |
|
03-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
APPEND fixed for mbox
--HG--
branch : HEAD |
283230fafb40e39adb0ab9d8b62539cfeae76509 |
|
28-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
I/O buffers now use real blocking instead of setting up a sub-ioloop to
poll(). alarm() is called every 30 secs to send SIGHUP and break out of the
read/write calls, so the given timeout values aren't exact.
Also some other cleanups, like not including ioloop.h in [io]buffer.h which
broke several other files which hadn't included it itself..
--HG--
branch : HEAD |
29c8f5c5f7d659cc96f3c45aaf80b113f4ac2315 |
|
26-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
mbox locking fixes / changes. we now read-lock the mbox file before syncing
so we can be sure no-one corrupts our reads by expunging mailbox. mbox file
is kept open all the time, but re-opened when device/inode for file has
changed (ie. someone overwrote it). File is also kept mmap()ed until lock is
dropped.
we currently create .lock file even when reading the file (ie. being
effectively write-lock), but that'll be made configurable later.
--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 |
1138ef5e898296a167d1904e825ee654ee421591 |
|
21-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Added setting mail_save_crlf. Few other settings cleanups.
--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 |
20a03ce664138ba52e2b533eea79d94e3e1030cc |
|
06-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
mbox locking cleanups
--HG--
branch : HEAD |
41d1dec1f5b357a02a053ebb83fc34d623efab4a |
|
06-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Added io_buffer_set_start_offset() and io_buffer_ref() and replaced
io_buffer_destroy() with io_buffer_unref().
mbox file is now kept open all the time.
--HG--
branch : HEAD |
c21747303bfb01e6b1f1e9f81988a17ce329296b |
|
24-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
custom flags weren't saved properly.
--HG--
branch : HEAD |
8f3bd370094ea99ad559be6aecd5ed130025a01f |
|
24-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
mbox ignored message flags for APPEND.
--HG--
branch : HEAD |
e07e9e786ea841f14a140316994850449406687d |
|
23-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
CREATE and DELETE fixes for mbox (last changes for .98 :)
--HG--
branch : HEAD |
a9a1257263df42c61458bd2d9dad9fe13ef4af82 |
|
23-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
mbox locking changes. support read-locking now. there's still problems
though..
--HG--
branch : HEAD |
404125991db8222708106957ed46d4ba5ed79a99 |
|
17-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
expunging last message from mbox duplicated the whole file. appending mail
to mbox works now too.
--HG--
branch : HEAD |
6141d8c6260c3dfaeb9dd4ed09197e4122fd017e |
|
15-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
More cleanups. lib-storage should handle "out of disk space" conditions
properly.
--HG--
branch : HEAD |
6697a923d6768bf8d71f87f80b90747cf6870753 |
|
08-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
move size_t fixes
--HG--
branch : HEAD |
d60705bcd8e777fa90f6d0daa615c4207592c80b |
|
08-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Moved custom flags handling into lib-index.
--HG--
branch : HEAD |
d16c62b4d0f25f45202649386d9881f3d8e376ef |
|
26-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Make sure mbox file ends with \n when appending new mail to it
--HG--
branch : HEAD |
c27c55fe2c083c7573cde51e366ef689c1a69708 |
|
26-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Added write_full() which is a simple wrapper around write() meant for
writing into files.
When there's too much deleted data in index files, they're now compressed
when the index is being opened.
--HG--
branch : HEAD |
468bb8fbe53f28a18a47b8dc6761171d5d8ce706 |
|
24-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
mbox fixes, not fully working yet but almost :)
--HG--
branch : HEAD |
4027c1f2c7a848dfe657d7cf8771a3067003c903 |
|
22-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
"Critical errors" aren't displayed to users anymore, ie. anything that is
not a predefined human readable error message is written into log file and
user gets only "Internal error [timestamp]".
--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 |