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. |
b67974c4b89ab6950c2694cce8dfb1b6561cc084 |
|
07-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib-storage: convert dbox-multi to use container_of |
804fa3f03bd9170272168a5ad214053bbe3160c7 |
|
07-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib-storage: convert dbox-common 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. |
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 |
3aae8844765b1d74d847e8e37daa135ac7035e6b |
|
11-Jul-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
mdbox: Fixed crash when saving POP3 UIDLs to a non-empty mailbox.
Fixes assert:
Panic: file mdbox-save.c: line 337: unreached |
2b9dbb270ad82e58d5f3581436e6f143176d5819 |
|
21-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
dbox: Optimize POP3 MAIL_FETCH_UIDL_BACKEND.
We keep track of the highest UID known to have POP3 UIDL in index's header.
If saving adds a newer message, it'll also update the header. When fetching
UIDL_BACKEND, we can need to check only mails with lower UIDs. There are
some race conditions here, but normally UIDLs are set only once during
migration so it shouldn't matter. |
c866a0378c3ecaa30610373e75dc3118bad5b232 |
|
27-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
dbox: Revert cache changes if some save/copy fails but transaction is committed. |
62958c5eefcd7dd84717b487ca36ec3a86949eb9 |
|
21-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
mdbox: Use mail_index_sync_set_reason() to give better reason messages for lock wait warnings. |
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. |
cc0a651962a3e54d5a62231ac5847ae7f9f7de7f |
|
19-Jan-2015 |
Timo Sirainen <tss@iki.fi> |
dbox: Added asserts to make sure the mail body isn't tried to be read too early while saving.
If the mail headers are still being written, the opening will just fail
thinking the mail is corrupted. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
9865d9e7c5713e41db939222ed9c0225a11fb99e |
|
27-May-2013 |
Timo Sirainen <tss@iki.fi> |
dbox: Don't cache pop3.uidl|order unless index header indicates there are those.
They exist only when doing a migration, so it's pretty wasteful storing
"doesn't exist" for all other installations. |
03010dbaa74ec70f062994dfe3cd39bedc99a28b |
|
16-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
mdbox, mbox, virtual: Avoid getting expunged-status in index lookups when not necessary.
This especially improves dsync performance with mdbox. |
385b27ed5f4b0b015e89af0a0b21e45f65a37e18 |
|
16-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
mdbox: mailbox_copy() didn't properly free the save context. |
08df28a63b3efb0f0ee30c3e7ef44c0a1e7bb459 |
|
16-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
mdbox: mailbox_copy() didn't properly free the save context. |
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. |
553cf4f8a8850efffdc714ec1d1ae45a5fc7905d |
|
09-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
mdbox: Allow reflink-copying a mail when wanted GUID matches the current GUID. |
0001f76bf725c5cf403bade8556f142dd43144ee |
|
26-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Code cleanup: dbox_save_context.cur_file doesn't need to be in dbox-common. |
3c40cf45bb10548bf434aea0fca32b99acc99a35 |
|
07-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
mdbox: Don't leave extra records to dovecot.map.index if mailbox index locking fails.
Fixes errors such as:
Corrupted dbox file /mdbox/storage/m.1 (around offset=2652): EOF reading msg header (got 0/30 bytes) |
c3d9da3955043aef88c17b71f2081e894186aa6b |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
dbox: Small code cleanup. |
46908da82cd45dd90ca7e438c8453bc9669868ec |
|
28-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
mdbox: Replaced non-error-checking i_stream_stat() with potentially faster i_stream_get_size(). |
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. |
4ee00532a265bdfb38539d811fcd12d51210ac35 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch] |
ddedc8b77c5bccc8d224ab5f8716d9874f5d8512 |
|
04-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
mdbox: Flush/fsync newly saved mail data before locking map.
This reduced the amount of time the map needs to be locked. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
9047d770bfbb93ab6af5363dedb2d01363877243 |
|
09-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
dbox: If saving is aborted, don't add a broken record about it to index. |
f71c2d4e6b802bf8e622bcd5df29286262d05d5a |
|
28-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
mdbox: Check that m.X file doesn't have garbage at end of file when saving new data to it. |
714c6a150480112eb1a5f309d0cc39b60613a719 |
|
21-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
mdbox: Don't assert-crash when having to open mail file during specific copying situations. |
de62ce819d59a529530da4b57be1b8d6dad13d6b |
|
25-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
Moved GUID code to liblib. Use guid_128_t type consistently everywhere. |
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. |
90e39174d397567c101dbf694761371af3682928 |
|
03-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
dbox: If mail GUID is changed for copied mail, create a new copy of it so it changes. |
ca98892a6b8a30ffc1fe26fcf02c7d59e3204e7e |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Lazily look up mailbox path and permissions. Added functions to get them. |
7f735cb86b2d8abd8f230089065eacfc24e9e5d6 |
|
23-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: If disable_reflink_copy_to=TRUE, disable hardlink/refcount copying. |
1554bed8d2b4e4286c10f7d6bcf716b246bd5baf |
|
20-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
dbox, maildir: When copying messages, copy the cached fields also.
Copy only fields whose caching decision is not "no" in the destination mailbox. |
56aa9083e1742d0083885aaf0c5b8581577731ae |
|
02-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: If save fails due to lock failure, don't assert-crash |
f1612f8421207632e1dc9addd6c23e7f7098a54c |
|
19-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Copying wasn't locking map index early enough. |
5833a4972491fdb7b78eac2280f31dc4b9fa2bb7 |
|
19-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Small code cleanup. |
836e57b1e7817d008f8ae05cd4b506f420fed80d |
|
01-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: If one save fails, but others succeed, don't assert-crash at commit.
--HG--
branch : HEAD |
e2bdacc34dde56aa664059ab56e8b77e82bd1805 |
|
01-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: More error handling fixing.
--HG--
branch : HEAD |
452b838c1b483c7663fd9ef2e4578ff76758a426 |
|
01-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Error handling fixes.
--HG--
branch : HEAD |
de9d79337eca11a7f9c1cd476c74dfe4f09a4bd7 |
|
30-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Removed mail_update_uid() / mail_index_update_uid().
It was working properly only with mdbox and there wasn't really a need for it.
--HG--
branch : HEAD |
08a8b3de61139ba02371afc8240ac85be0e8b17c |
|
28-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Modified map locking behavior to avoid deadlocks when rebuilding storage.
If both mailbox and map index need to be locked, the map index must now be
locked first. Mailbox syncing optimistically tries to first sync without
map locking, but if it sees expunges, it restarts with the map lock.
The map lock is held now slightly longer during sync than before, but it
shouldn't be noticeable.
--HG--
branch : HEAD |
b780aa272b742a43579cdb523cc79cc8d4521306 |
|
25-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Renamed fsync_disable to mail_fsync=optimized|always|never.
--HG--
branch : HEAD |
06eb8c1371aa06478d8840b1373cab7c2752d5ed |
|
15-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Flush dbox file's input buffer after writing to the file.
--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 |
e2eac5bb5637c2d4aaf453389750740931822b92 |
|
27-May-2010 |
Timo Sirainen <tss@iki.fi> |
dbox, mdbox, maildir: If saving one mail fails in transaction, don't fail subsequent saves.
--HG--
branch : HEAD |
1f19649986397419d014febd1337c6eb7b530f26 |
|
26-May-2010 |
Timo Sirainen <tss@iki.fi> |
dbox: Figure out internally when message's "physical size" doesn't match "written size".
--HG--
branch : HEAD |
c18ff860dc22960fd37c272d929f889c7939a2c8 |
|
29-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Renamed dbox_map* to mdbox_map*.
--HG--
branch : HEAD |
5fb3f13537dffd15a31e997da133a721c0728af8 |
|
20-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Moving messages to alt storage is done done with doveadm altmove command.
The command can take an arbitrary search query listing what messages should
exist in alt storage. If the message has been copied to multiple mailboxes,
the search query must match all the instances of the message.
Since the search query can now be specified in command line, mdbox_altmove
setting was also removed.
--HG--
branch : HEAD |
fb5efc6ed69da679d9da31ef62daa7024de18212 |
|
19-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Comment update
--HG--
branch : HEAD |
767ff4367960efd5fa868f3b56f850fd4c205c8b |
|
19-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
dbox: Use mail's transaction view instead of mailbox's view whenever possible.
This fixes crash when saving/copying fails.
--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 |
e237ebeb97f42950eef3efd0d3db85590160d5fb |
|
16-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Don't crash when accessing a copied mail that hasn't been committed yet.
--HG--
branch : HEAD |
e6440616c02bb1404dc35debf45d9741260c7831 |
|
19-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
dbox: Allow plugins to change output stream while saving messages.
--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 |
5e702db5540b2303e25554dee21bbf35a4813381 |
|
06-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox saving: Fallback to using non-exact mail size if exact isn't available.
The size is used only to check if it would make mdbox file become too large.
--HG--
branch : HEAD |
9955f6cba7652469b1d600a3674e8d27dd4e61bd |
|
02-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
mdbox: Purging now also moves mails to alt storage (if it's used).
mdbox_altmove setting specifies how old files should be moved.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
ac2dc6ef8db5f5fedbed94c5ff7261025657b5af |
|
31-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
mdbox: Removed broken assert.
--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 |
9a02317c852face76737763fa6ec43b444688de5 |
|
07-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
dbox: Getting dbox file for non-first unsaved mail crashed.
--HG--
branch : HEAD |
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9 |
|
07-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Split dbox (single-dbox) and mdbox (multi-dbox) into separate storage backends.
This cleans up the code, makes it faster and also fixes some bugs.
Super-fast maildir migration code was also dropped, at least for now.
--HG--
branch : HEAD |