fd9247dda1d4c2665a9893b1b1100df2ef43516b |
|
18-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
zlib: Contexts are now required or checked
Satisfies static analyzers |
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. |
7f8033ffe13c1e89d734beca6d8fbb5f15dbff8b |
|
05-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
zlib: zlib_mailbox_open_input() can't fail - remove dead code |
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); |
0d1b8b6bec79746c5d89d57dd8c1688946bd9237 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on timeout_remove(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- timeout_remove(&E);
- }
+ timeout_remove(&E); |
880f7a015f7dc2df2a06cec91dcecbbbe7e8dce3 |
|
14-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
plugins: 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". |
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 |
741287129c22cadc14c05584704685b31169dbce |
|
06-Sep-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
zlib-plugin: Check that UID is assigned
When caching, code has to check whether UID is
assigned to avoid reusing cache for different
email since they all have UID = 0 before they
are actually committed. |
d5cfdf518b03c92ac96871b029be2a45be68b007 |
|
20-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
zlib: Compiling fix to a1630a3b3 - don't return a void function |
a1630a3b3fa995fd68370de4054e5c04024b1c91 |
|
20-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
zlib plugin: Make sure we don't keep mail istream referenced after mail is closed. |
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/' |
ac99facd4975eb62d36636f346bec9f9cad16445 |
|
27-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
zlib: Fixed copying causing cache corruption when zlib_save wasn't set.
dovecot.index.cache entries were broken/missing if:
- The zlib plugin is enabled;
- The zlib_save/zlib_save_level options are NOT enabled;
- The source message being copied is compressed;
- The mail_log plugin is logging "copy" events;
- The mail_log_fields setting includes at least one message header;
- The destination mailbox folder has an index file that is recording the
logged headers;
- The source mailbox folder does NOT have an index file recording the
logged headers.
Found by Robert L Mathews. |
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> |
bace943c67e6cd14ce6c994f533d82a3caad5bf1 |
|
13-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
Use the new [io]_stream_create_fd_*autoclose() functions wherever possible. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
b8545883e3fe466d42dbb1fdc6330754c43af09e |
|
08-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
zlib: Give a name to zlib istreams |
af8b1248fed8529d26985460acdc4b1e4b7de675 |
|
04-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
Fixed file descriptor leaks in rather unimportant places.
Found by Coverity scan. |
70b67fc19de667a939fe4b7e54de8604a3f370b7 |
|
12-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
zlib: Enable only for storages that support MAIL_STORAGE_CLASS_FLAG_BINARY_DATA |
fa2ac469f59e5841203cb9921fc74baa69e58cc4 |
|
12-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
zlib plugin: Removed explicit checks for maildir/sdbox/mdbox. |
0c991793912b5bf230b7f6a25492510fccef8230 |
|
22-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
zlib: Keep the last read mail cached uncompressed in a temp file.
This fixes performance problems with partial IMAP FETCH commands. |
96c1fc9f653f32ac4537d770651d7543e71d2e8a |
|
15-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
zlib: Don't crash when trying to use zlib_save for handler that isn't compiled in. |
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. |
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. |
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. |
f052a448696b1246ee9fc36b7c727237aed56058 |
|
01-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Moved zlib/bzlib code to lib-compression library. |
4307c886579381dbb1897ea1388ae6978c96f560 |
|
27-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Changed i_close_fd() API to set the fd to -1 after closing. |
cb78bd2ad54e402c1f53930b41e2295683bda90b |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Replaced (void)close(fd) and close_keep_errno() with i_close_fd().
i_close_fd() preserves the errno and logs an error if the close() fails. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
162dfa2d7b9ab4d9f6e017f339706b6d87fdcec4 |
|
28-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
zlib+mbox: Fixed error handling when opening nonexistent/directory mailbox. |
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. |
ca98892a6b8a30ffc1fe26fcf02c7d59e3204e7e |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Lazily look up mailbox path and permissions. Added functions to get them. |
d4f72116b9f30a0fe135fd8d598dbb0025dfecbc |
|
20-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
zlib: Hook into mail.istream_opened() method rather than mail.get_stream()
This fixes zlib plugin to work with mail attachments. |
0b69aadbda25d9b8a81797280f26e206e8ea5875 |
|
27-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
zlib: Avoid using hardcoded storage name strings. |
03a2840ef60a8dc98d380f70d1c198cce8096da1 |
|
27-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
zlib: dbox storage is now called sdbox. |
3eb63515855f386449c22233d1f1baf1ddfe8a2d |
|
28-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Use mail->saving, not mail->uid==0 to check if mail is being saved.
The uid may be non-zero when saving with dsync.
--HG--
branch : HEAD |
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 |
5d202fa7788e500f5b2bab2aa6f6327c8c7461dc |
|
26-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed unnecessary struct mail_save_context.saved_physical_size
--HG--
branch : HEAD |
9261dbf0675204898c6557591c7aa376e23a52b2 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Started using str_to_*() functions instead of libc's ones.
--HG--
branch : HEAD |
f50a2f5518099ba8989748a0dfc2d8446aefda0f |
|
27-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
zlib: Fixed compiling if both zlib and bzlib weren't used.
--HG--
branch : HEAD |
f0a2d04321ba456e5c5ba821c0d1ed9e8e0e2e08 |
|
06-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Set input stream names for mail file streams.
--HG--
branch : HEAD |
ee818732611d9a7cf91e0c2dce2a636e0dcfac08 |
|
06-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
zlib: If reading corrupted compressed mail files, log an error.
--HG--
branch : HEAD |
8a1bdf1f3c817d3ebf768aa27af7ff951eba672d |
|
19-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
zlib: Fixed the check to disallow saving messages that look compressed.
--HG--
branch : HEAD |
b9efa6340aade86385e40b446cbdc306c64dec6d |
|
19-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
zlib: Added support for dbox and mdbox.
--HG--
branch : HEAD |
383395aee82283b15d9ea8ea0ad55d1d8c988b60 |
|
13-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Added imap-zlib plugin for enabling COMPRESS=DEFLATE extension.
--HG--
branch : HEAD |
0c799f899bbbb08315f1fe9df5e12a948c72aeba |
|
13-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
zlib: Reimplemented gz/bz2 input streams by using the uncompression functions directly.
--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 |
4462bd7b4c7ef3de006f060e155a90e5de7cae21 |
|
06-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
plugins: Use DOVECOT_VERSION instead of PACKAGE_VERSION.
--HG--
branch : HEAD |
51f55b85e9079b77b8bcfcaa71d63d293cc11728 |
|
06-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
zlib plugin: Added support for compressing Maildir mails while saving.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--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 |
d6ab3a985fcd314f29346c99e2ba5f3a46f3ca32 |
|
09-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
zlib: Don't allow clients to save compressed data directly.
This way clients can't try to exploit uncompression bugs in zlib/bzlib.
--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 |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
96f2533c48ce5def0004931606a2fdf275578880 |
|
30-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Created mail_user_[try_]home_expand(). Used them for expanding mail directories.
--HG--
branch : HEAD |
25bbf2d5056faba8b785d21352467aa9353f1590 |
|
11-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
zlib plugin: Added bzip2 support also for mboxes.
--HG--
branch : HEAD |
8544eb9cecbcb685f454b6a33db1e982ff824016 |
|
10-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
zlib: If gz/bz2 support isn't compiled in but we detect a mail with gz/bz2
compression, log an error and fail to read the mail.
--HG--
branch : HEAD |
5e04de9e3fcd596c02021034cc887b2dd589594d |
|
08-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
zlib plugin supports now bzip2 also.
--HG--
branch : HEAD |
8b2bf21c1f902bfd81b528dfea8102c9a7604d16 |
|
24-May-2008 |
Timo Sirainen <tss@iki.fi> |
zlib plugin: Uncompress if the message begins with zlib header instead of
looking at the 'Z' flag. This fixes copying with hard links. Based on a
patch by Richard Platel.
--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 |
1ac6c77d62ad6d42513bd550a696113397ea57f7 |
|
06-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Assert-crashfix when using a specific plugin combination.
--HG--
branch : HEAD |
bbd322591bc21fc5f1064fdf63e16d4492c58507 |
|
19-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir: Don't crash if mailbox couldn't be opened. Patch by Richard Platel.
--HG--
branch : HEAD |
29f263f0b8228d996f59728fcad2dc673f9d891e |
|
11-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed assert-crash when trying to open compressed maildir files.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
cc41d2a8d8eb9e9724f1cac0f00b029bbc902b69 |
|
25-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Error handling fix.
--HG--
branch : HEAD |
0a9c10fb4e6914969d60212296da925c148338b8 |
|
25-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
If maildir file has a "Z" flag, open it with zlib.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
fe363b433b8038a69b55169da9dca27892ad7d18 |
|
24-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Removed memory pool parameter from iostreams. Default pool was almost always
used, and the stream usually required destroying anyway so it didn't even
make freeing memory easier.
--HG--
branch : HEAD |
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 |
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 |
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 |
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 |
e07f219bac8d0ff9dff9132bc9c033a43b788aa8 |
|
31-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Added zlib plugin
--HG--
branch : HEAD |