de9dea4ff806dcdd471fb340c41b0eb57a6b56de |
|
18-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
expire: Contexts are now required or checked
Satisfied static analyzers |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
c6ce2e251ac75fa650c7fbfa52150eae69386293 |
|
22-Sep-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: Add reason to mailbox.transaction_begin() |
0dab9cb35a976c49b28a11e28d5570f5191f1a7a |
|
22-Sep-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: Add reason to mailbox_transaction_begin()
Remove mailbox_transaction_set_reason(). |
17ac264fe7efd383f10c67548cadcc5aca505b92 |
|
22-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
expire plugin: Use correct hook for overriding mail_user vfuncs
This was always wrong to do, and it crashes after
f32382d2da479a4371e08c443679528db37ea988 |
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 |
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] |
661998e2ccd772ad92a9d4a75cb712692a8c94b3 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: dict_transaction_commit*() returns now error string |
b5052fbfdbc2678cc8f12899afe55c998f43b740 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: dict_lookup() returns now error string |
20e04227229970d148801c507946666e2a9bd838 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: Renamed dict_init_full() to dict_init() |
71748cca1bacd74451fd228db5536828bdfeb190 |
|
03-May-2016 |
Baofeng Wang <baofeng.wang@dovecot.fi> |
global: Use mail_user_plugin_getenv_bool() wherever possible
New API is used to check boolean setting OR exsitence of an env variable. |
d34a07d36865fa4438d6c6af8408376188343eb9 |
|
20-Apr-2016 |
Baofeng <baofeng.wang@dovecot.com> |
expire-plugin: code cleanup
expire_mail_namespaces_created() will check dict_uri after namespace
validation check. |
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. |
b78bed724fad909bf84008a3eb0f35b5a4379c39 |
|
24-Feb-2015 |
Timo Sirainen <tss@iki.fi> |
expire plugin: If expire_cache=yes, cache the dict db value in dovecot.index file.
This avoids all of the dict lookups when mails are being saved to a mailbox
that is tracked for expiring. The only downside is that if the dict is
externally modified, the changes won't reflect the cached value. This isn't
normally a problem (except maybe in initial testing stages). |
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> |
877912710a33c5645c85d6902a0ec6c79fcd0649 |
|
04-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
expire plugin: Fixed crash at deinit if expire_dict initialization failed. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
eca38954bcf972618f6b85932a3690acbd2b673a |
|
13-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-dict: dict_init() now returns error string instead of logging it |
bd63b5b860658b01b1f46f26d406e1e4a9dc019a |
|
11-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Plugin ABI version checking improvements.
Previously the plugin version was checked against the version string
returned by the currently running Dovecot master process, not necessarily
the same as the binary. Also version_ignore=yes setting skipped the version
check entirely.
Now there's a new DOVECOT_ABI_VERSION macro that can (at least in theory) be
updated only when the ABI actually changes. The version is in format
"2.2.ABIv1(2.2.15)", where the (2.2.15) would be the actual Dovecot version
number that gets ignored when comparing the strings.
Also now the plugin version is compared to the actually running binary's
ABI, not the master's version, and it can't be ignored with a setting. |
10399559650f552a23949772be79eb6a80198c5a |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
dict_init() API changed to return int. |
31a574fda352ef4f71dbff9c30e15e4744e132c0 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added array_append_zero() to write a zero-filled record to an array.
Replaced (void)array_append_space() calls with it. |
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. |
3e7565a7b39694bcdf448d8eb2a7f0774733297b |
|
19-May-2012 |
Timo Sirainen <tss@iki.fi> |
expire: Handle dict errors. Don't crash if lookup fails.
Based on patch by Michal Grzedzicki |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
fd35227c47190afc832579ca5c76524792701bf7 |
|
07-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
expire: Fixed mail_debug logging when same transaction expunged all messages and saved new. |
2e263a9d901483a902720a30c474761bd3324fe8 |
|
06-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
expire: Added more debugging with mail_debug=yes |
bbd4c4cf902539c25c471157eb9849459734759c |
|
06-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
expire: When saving first message to expire mailbox, use the oldest message's save-time.
This makes it easier to enable and test expire plugin. This also changes how
expire dict is used: previously when all messages were expunged in a
mailbox its entry was deleted in dict, but now its value is set to 0. |
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. |
539977f9257bd8985be5a8093658da266ae9cd19 |
|
07-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Plugin API changed to run plugin functions in correct order.
Previously the hooks were run in correct order, but the functions they
overrode were run in reverse order. This caused problems when multiple
plugins were used.
--HG--
branch : HEAD |
f6d57a2c182f63cd52819f0abb3c3d9f828afe19 |
|
27-May-2010 |
Timo Sirainen <tss@iki.fi> |
expire: Rewrote expire-tool as a plugin for doveadm.
Whenever using some doveadm mail command with -A parameter, the plugin checks
if it can get the list of potentially matching users from the expire database.
Currently only the list of users is filtered based on expire database, list of
mailboxes could also be filtered but this isn't supported (yet).
--HG--
branch : HEAD |
e376e08040b5f21ff79a15ae728d2532a34207f6 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Small code changes to make static analyzer happier.
--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 |
4462bd7b4c7ef3de006f060e155a90e5de7cae21 |
|
06-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
plugins: Use DOVECOT_VERSION instead of PACKAGE_VERSION.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
b87daa509bf5b306189282a9df795d094a6d7150 |
|
14-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
expire plugin: Changed configuration.
Instead of:
expire = box1 7 box2 14
expire_altmove = box3 4
use now:
expire = box1 7d
expire2 = box2 14d
expire3 = box3 4d altmove
Instead of 7d and 14d it's also possible to use 1w and 2w. All the regular
"time" setting values work actually, minimum expire time is 1sec.
--HG--
branch : HEAD |
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388 |
|
04-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Plugin hook API changed to support per-user plugins within a process.
--HG--
branch : HEAD |
e5acc283bf030b0b5c79ca4e52d315c516a299fa |
|
16-Oct-2009 |
Pascal Volk <user@localhost.localdomain.org> |
Log debug-level messages with i_debug().
--HG--
branch : HEAD |
5d49cbcf87354f0ddf3b71bc5f0cefdc02b14f68 |
|
16-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
expire: Mailbox names should be written to dict using their virtual name.
--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 |
56963ffad65b860c827553dfaf09fb766cb7e20e |
|
08-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
expire plugin: If mail_debug=yes, log more debug information.
--HG--
branch : HEAD |
ce3faaaaab3e2d45b023396287e02f88e5c76e74 |
|
08-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
expire plugin: If a transaction expunges all messages and saves a new one, don't delete expire row.
--HG--
branch : HEAD |
d18744aa03cdb3d50965cc06d314f6b4e4cdfccc |
|
07-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
expire code cleanup: Use mailbox_get_vname().
--HG--
branch : HEAD |
9514dbd41faad453406fc3a10aca791417a9ce75 |
|
07-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
expire: Support per-user expire configuration.
--HG--
branch : HEAD |
4073f0dbf3277f981a8fcee3b89ea15aaf380a7f |
|
28-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
dict proxy: Use base_dir as the default dict-server location.
--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 |
a1607f6001a9949e1cf9d49eb0aa936dbb4c77ff |
|
01-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
expire-tool: Make sure expire plugin won't get used.
--HG--
branch : HEAD |
bd4d0a1a7c0626452b8d82f37e3ec07267ac9896 |
|
06-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Mail copying API changed to be based on save API. This allows extending it easily in future.
--HG--
branch : HEAD |
0df9428baed48afaff90b4d4f03792d2fd756a43 |
|
02-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed plugins to work with config rewrite.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
783278c012551bc2f25f065a8d3ec1a3cfc0d296 |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Expire plugin works now with multiple struct mail_users.
--HG--
branch : HEAD |
77c0730f0ef7c5de3ab1490874fdcc336b942de7 |
|
15-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Plugins: If mail_debug=yes, log "plugin disabled" if plugin's required setting isn't set.
--HG--
branch : HEAD |
d66be2bebfa96e7d3d20e2153f60e6e25dcc9a18 |
|
06-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Expire plugin was crashing because of previous change.
--HG--
branch : HEAD |
af847e72564a35f75171b69d291375fdb4846673 |
|
05-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
expire plugin: Fixes for using namespace prefixes.
--HG--
branch : HEAD |
796363ab199a7e728ef334ba1fed69da2d97c0d7 |
|
26-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Expire plugin: Include expire/ in the dictionary path.
--HG--
branch : HEAD |
1dc6f277f5ac6a3dd5cd6aa75a7ef691de9acb7a |
|
27-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
dict API: deinit functions now take pointer-to-pointer parameter which gets NULLed.
--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 |
853296af01638aff8842b569022c69566f1fafa7 |
|
02-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
expire plugin: Pass username to dict_init().
--HG--
branch : HEAD |
d3ba2af6def6f42a9e2dd78ee03b97b5dff84e73 |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
Handle dict_init() and dict_lookup() failures without crashing.
--HG--
branch : HEAD |
e726bf74fcc8d24f4c9d0d83217b3db4314d9d1f |
|
25-Apr-2008 |
Timo Sirainen <tss@iki.fi> |
next_hook should be called after our hook is finished with its doings, that
way they get executed in the intended order. This should fix some problems
when multiple plugins are used.
--HG--
branch : HEAD |
e07bf3772a2bc075de4915ad0961beb8d083c22d |
|
15-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
If first message is expunged from expire_altmove mailbox, don't update dict.
--HG--
branch : HEAD |
cbc61fcb33b370d049c16a3c44568b4deb4e2b33 |
|
04-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Added wildcard support to expire plugin. Added a new expire_altmove setting
which moves mails to alt directory with dbox instead of expunging them. Both
settings can be used simultaneously. Added --test parameter to expire-tool.
Fixed several bugs and did some optimizations.
--HG--
branch : HEAD |
ff3e079cdcd74e64eb35af0bc361e75d2ea03822 |
|
04-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Moved fdatasync_path() to a global function.
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--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 |
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 |
83bb013a99f0936995f9c7a1077822662d8fefdb |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mail_*() APIs changed to return int and return the actual data as pointer.
Changed some code to do error handling a bit better.
--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 |
b04e691711fd026fc82ba3e0b411420e7da4ec7e |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Compile fix
--HG--
branch : HEAD |
00d58fcfe8191d6ce7efa801d289a5c0fe88d1ae |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Updated to support namespaces
--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 |
8e371a3ce32bd64288786855b8ce0cb63f19f7d1 |
|
29-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Better type safety to module_contexts arrays. Already fixed some bugs.
--HG--
branch : HEAD |
4d9c5b872a985e9ff028dae97e6996c67116298b |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Remove redundant "extern" declarations. Patch by Max Kellermann
--HG--
branch : HEAD |
f6c1297c26b355c4aec2a08978f51ec3efecb351 |
|
22-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Added <plugin_name>_version string.
--HG--
branch : HEAD |
cf7164ece50797a67fc4bfb5889022ac93a36a8a |
|
31-Jul-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Initial import of expire plugin code. Seems to work with at least one user. :)
--HG--
branch : HEAD |