08495095af85423369e1419dc1a4bd8299a4022c |
|
13-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Remove mailbox_transaction_context.nontransactional_changes
Nothing cares about them. It was only set for POP3 UIDL change with
Maildir. In theory dsync replication would want to replicate such a change,
but it doesn't actually support changing UIDLs for existing mails. Other
mailbox formats don't support it anyway. |
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. |
87490012895b4f371635ded00add04c9107dcfef |
|
18-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib-storage: convert index to use container_of |
77f8c49beac69a8f5d5d41239528474ee1b877ea |
|
07-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib-storage: convert maildir to use container_of |
7522446d6514e5593c9d4d7e4beacd328301cb23 |
|
11-May-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-storage: Use new mail_cache_set_seq_corrupted_reason |
fdb838ec8774e41004461b7f76ab409774af06c4 |
|
22-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
maildir: Fix checking vsize caching decision in "is this pop3 user?"
If vsize extension is used, it's practically the same as if vsize's caching
decision was YES. |
7204b8112e005ff81dcf628f7880ef1feed1effe |
|
19-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mail.mail_stream_opened and .mail_metadata_accessed
These allow determining after mail_*() calls how efficiently they were
performed. |
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 |
21aaa6affb9f134112b75b5db737309fc35ef1cf |
|
27-Oct-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: rename get_real_mail to get_backend_mail
Also change the function signature so that it returns an int to indicate
success or failure. |
0206dc57f2c04da69599dea5816235cfeb2b897a |
|
13-Aug-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: remove set_cache_corrupted_reason from mail_vfuncs
Change set_cache_corrupted signature to what set_cache_corrupted_reason
used to be. |
6de6ec228a41275ddda972d4a554699ea75cd06d |
|
28-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Added mail_set_cache_corrupted_reason() |
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/' |
5eb85ec9546bac4eea7d78de8997920ba3debd30 |
|
30-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Renamed MAIL_FETCH_UIDL_FILE_NAME to MAIL_FETCH_STORAGE_ID.
Keep MAIL_FETCH_UIDL_FILE_NAME for backwards compatibility for now. |
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. |
aac02871f096a42d4146dd7d104a7302a570b2b5 |
|
08-May-2014 |
Phil Carmody <phil@dovecot.fi> |
lib-storage: maildir - don't use a bool to store a char |
9559586a78b7b21e0b74748c427e0a252242be40 |
|
02-May-2014 |
Timo Sirainen <tss@iki.fi> |
maildir: Maildir S=size fixing now works also with zlib etc. plugins that modify the files. |
fe0d19245382de9d4710d6ed0f7977ff5be4b3b2 |
|
02-May-2014 |
Timo Sirainen <tss@iki.fi> |
maildir: Returning mail's received/saved date or refcount was sometimes broken with zlib plugin.
If the value wasn't already cached and the same transaction also accessed
the message body, i_stream_stat() was used, which ended up to
i_stream_seekable_stat() due to caching the file, which didn't again fstat()
the actual maildir file but just used some internal values. |
6d9ce72cef0963ac414353dc4dfb3a51f62fa542 |
|
04-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
maildir: If istream_opened is set by a plugin, don't try to fix S=size by renaming.
Although this could be fixed in a nicer way by actually calculating the
correct S=size and using that for renaming. |
7e6522921c81999ec389dab54b338a6fb0f193aa |
|
03-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
maildir: If istream_opened hook is set, don't return stat()ed file size as physical size.
That's pretty much always wrong. The hook is set with e.g. zlib and
mail-filter and similar plugins that modify the mail stream. |
f567e9ad51a3b4f61580299f12b67e070fb16c5c |
|
18-Mar-2014 |
Timo Sirainen <tss@iki.fi> |
maildir: Fixed looking up physical size for a mail while it's being saved.
Based on patch by Teemu Huovila. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
0fa25bd866479a9aac973e716ba04dd8be8c2814 |
|
27-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
maildir: If maildir_broken_filename_sizes=yes, don't try to fix sizes in filenames. |
03de962febfc2ac572f9e4029463c16d29c1ed55 |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added MAIL_FETCH_REFCOUNT for getting mail's reference count.
This is useful only for backends where mailbox_copy() increases the
refcount. With maildir&sdbox it can be looked up from the file's link count.
With mdbox the refcount is stored in the map index. Other formats don't
currently implement this. |
a4d796994ba01c207f1d3e373f58f06c6779af53 |
|
05-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
cydir, dbox, maildir: Don't leak the stream if mail.istream_opened() fails |
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. |
f46885a5b78b15a8d2419f6e5d13b643bd85e41f |
|
04-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added support for "private modseqs" for INDEXPVT index.
Used by dsync (next commit). |
5f44975ec6c5755dd74bcd4c47a123a7242ecab3 |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved index_mail.data_pool to mail_private.data_pool |
01f4ee4a0243f3fe9af763e1a540cd5cff0d63f5 |
|
28-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
i_stream_stat() API changed.
This fixes also one missing error check. |
27a44fcfd8d19bffe0f267f20a2b5d3fe7600fdd |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Removed CONTEXT_TYPE_SAFETY macro and reimplemented its functionality better.
gcc/clang now gives a compiler error in many places if callback isn't
exactly what was expected. It's also now much easier to add more of these
checks. |
306b3f41b05da642d87e7ca7a1496efce9f5902f |
|
11-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
IMAP BINARY extension supports now FETCH BINARY command. |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
46c903eac3abcc7d32780da76ee6a79c26d185b6 |
|
04-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
maildir: Remember the mail's GUID/filename in memory once it's fetched once.
This allows retrieving it later even if the message gets expunged. |
35283613d4c04ce18836e9fc431582c87b3710a0 |
|
26-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
Changes to make static analyzer happier. |
900bb5e316d030cdebff7ee128ce65881dfb27f7 |
|
02-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail_transaction_commit_changes.changed=TRUE only when something actually changed. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
80bcc6caa317a52bddcafe74fede886247dbba5b |
|
14-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
maildir: Added maildir_broken_filename_sizes setting. |
3ec3632e12638396944e854a8f7a2bc6c67b981d |
|
14-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
maildir: When noticing invalid 'S' in filename, replace it with the correct one instead of removing it. |
b12b6da6f084212d42421a28ae329eae79751c42 |
|
09-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
maildir: When fixing broken size in filename, try harder to find the latest filename. |
876a944ce642255e4de67a7721dde0150ae5ebf2 |
|
08-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
maildir: When renaming filename due to broken size, don't forget message flags. |
45799f8340fdcddfb077c1d44ad1d2014d7db31c |
|
08-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
maildir: Log less lines when removing broken sizes from filenames. |
de4e3a2e1e8f82b2d3226c090b71b518b43bf9cf |
|
18-Oct-2011 |
Timo Sirainen <tss@iki.fi> |
maildir: If maildir filename has broken W/S size, rename the file to drop them. |
ecd69c4e8371853667e01b0c16d436ef7f7393e2 |
|
12-Oct-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_log_update_wanted_fields() |
6df0ab0c1ab91f06b6418cb30eff44405a1b8f02 |
|
04-Oct-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_get_hdr_stream() and use it where possible.
This makes it clearer for backends when it needs a message body instead of
only message header. |
8363f50d7b5d605912e55c34f7f28e9f4ce01341 |
|
30-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
maildir: Handle open() failing with ESTALE. |
421d30619384e72a27e2a5d13ff6525aff4d17fe |
|
31-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
Redesigned mail precaching APIs.
There's no longer a one monolithic mailbox_sync(MAILBOX_SYNC_FLAG_PRECACHE)
call, but rather one mail_precache() call for each mail to be precached.
This allows the callers to show the progress and in general is cleaner. |
2d01cc1880cf2afd4fb1c8ad7fa6ce78e562e71e |
|
25-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved all transaction stats_* to struct mailbox_transaction_stats. |
1eaaa2c9003cf3fbf672d597473e3f84e70d2ee6 |
|
16-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved stats_* from mail to transaction.
With the API changes to search, having them in mail doesn't make sense
anymore, since mailbox_search_next() can return multiple different mails
with different stats. |
c7e14824e4e1ca9dc5d48d1eddc4a38d3041218f |
|
05-May-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_parse(). |
e1eeb3be29afde2830c2b7ed594c6f1fef2f69dc |
|
04-May-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added MAIL_FETCH_POP3_ORDER special field and implemented for Maildir.
The idea is that this specifies the order of messages when accessing via
POP3. This is useful when migrating both POP3 and IMAP users from servers
where their message ordering differes and they still want to be preserved. |
ed34a210eff7707787ee154e5581528b8f4b2daa |
|
20-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
maildir: If uidlist has an empty GUID entry, log an error and remove it.
This fixes an assert-crash in dsync. |
e15b305e90c9834734ccf35ed78f0ad29d570ee9 |
|
31-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Search supports now prefetching data for returned mails. Dropped imapc's own prefetching.
mail_prefetch_count specifies how many mails can be kept open and issue a
prefetch.
This works using posix_fadvise(POSIX_FADV_WILLNEED) for maildir, sdbox and
cydir backends. Apparently only Linux supports this.
imapc backend also implements this internally by sending wanted IMAP
commands to remote server. The command pipelining helps with latency. This
change also makes it actually possible for imapc backend to first check if
wanted data is already cached in local index and avoid sending unnecessary
IMAP commands to remote server. |
bc6ef0b01b99c43ee46aa796420516e89a744c30 |
|
29-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Small optimizations to setting mail's access_parts. |
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. |
c991c182b019bd85427a4ace2485683b50ea1b83 |
|
08-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
maildir: p_strdup() GUID and UIDL_BACKEND to make sure they don't change unexpectedly. |
6564208826b0f46a00f010d1b5711d85944c3c88 |
|
20-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added istream_opened() method to struct mail.
This can be hooked into by plugins that want to do something with the
message's stream in the message file, rather than the virtual resulting
stream visible to client. For example when using dbox attachments, this stream
contains only the data in the dbox files without any external attachments. |
6d50c4d875bb05f9076e9e0ecbacb8beb2e9ae42 |
|
29-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
maildir: Avoid opening cache file when getting physical message size. |
a0aedab7cd06125e4d73638b1bd0c01c7caa2626 |
|
29-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
Maildir: If mail's virtual size can be found from filename/uidlist, do it instead of using cache.
This is especially useful with POP3 to avoid opening cache file. |
f6f021c133f680cf3d559187524fd9abcbaae9b9 |
|
28-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
maildir: If we see unwanted non-empty directories in new/ or cur/, move them to ../extra-* |
24cd47a2c8f7507e555459b7e841de771ba3c318 |
|
23-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
maildir: Fixed a race condition in getting a new message's GUID. |
e4e7475f646d66a257d682738fbff1f206ce4924 |
|
16-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
maildir: uidlist can now override message's GUID |
6013fbad6638795a00e6c2a2dd2cdbee19612494 |
|
05-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
maildir: maildir_uidlist_lookup() -> maildir_sync_lookup() refactoring. |
c60d1eda4df179d83d531647732d5e3e45064219 |
|
12-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
Maildir: If trying to open a directory as message, try to rmdir it. |
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 |
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 |
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 |
61e27995aadbc2f97927d3635f98d1d4ac4751e0 |
|
13-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed struct mail.get_index_mail(). get_real_mail() is basically the same.
--HG--
branch : HEAD |
9af6cc9ebc9986c1275ebdfa29c39e152af1557e |
|
12-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_get_real_mail() that returns physical mail in a virtual mailbox.
--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 |
51078c3413b7ed4811bc725acbb1289723361ba9 |
|
22-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
maildir: get_save_date() should return 0, not the timestamp.
Patch by Rainer Weikusat
--HG--
branch : HEAD |
f0a2d04321ba456e5c5ba821c0d1ed9e8e0e2e08 |
|
06-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Set input stream names for mail file streams.
--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 |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
225e82df5dd1e765f4e52b80c954558f00e5a7df |
|
01-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
Added pop3_save_uidl setting.
When UIDLs are sent to client, save them to dovecot-uidlist. This allows
changing pop3_uidl_format without messages getting re-downloaded. It's also
useful with virtual POP3 INBOX when UIDLs are based on IMAP UIDs that may
not be as stable as in non-virtual INBOX.
--HG--
branch : HEAD |
98922c5675bbbfadc84d58768bef867fe82256c2 |
|
17-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
maildir: If opening a mail fails with EACCES, log a better error message.
--HG--
branch : HEAD |
573f0491a5733fe21fa062a455acb4790b4e0499 |
|
13-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Use separate read block sizes when reading only message header vs. full message.
--HG--
branch : HEAD |
d42eb03b3a4e79a2da22a1be2de59b95660af2be |
|
13-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Actually use MAIL_READ_BLOCK_SIZE sized blocks when reading mails.
--HG--
branch : HEAD |
66db1770a4316a53ac6881069c739900925b4ee2 |
|
06-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
maildir: mail_update_uid() now updates uidlist also.
--HG--
branch : HEAD |
129cc29ae6d8ad64d6d2b72f18da18fa134d0f3e |
|
03-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Use less memory from data stack.
--HG--
branch : HEAD |
ad48319996942463675b53877092ab7e13a7a75a |
|
29-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Added ability to specify message's minimum modseq value.
--HG--
branch : HEAD |
bddd52cb7f3e5a894c080f60750aa76b5aeaf103 |
|
28-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Added ability to change existing messages' UIDs with mail_[index_]update_uid().
--HG--
branch : HEAD |
1d2b188f0eedc3cab6e27ceac5425a037f38042e |
|
15-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Mailbox opening and closing APIs changed.
--HG--
branch : HEAD |
ee1a3e217279dcd0f1cccbd3442e481b7dc90f05 |
|
01-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Maildir: Use i_stream_stat() instead of i_stream_get_fd()+fstat(). Fixes zlib plugin.
--HG--
branch : HEAD |
7ede6554e451ec039a67beec7d6ee4aff61d386e |
|
04-May-2009 |
Timo Sirainen <tss@iki.fi> |
Maildir: Handle uidlist errors better.
--HG--
branch : HEAD |
1eb17e61d3d38372674aa0c55caedb0185a985f5 |
|
29-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Split struct mail_private.stats_dentry_lookup_count to open/stat counts.
--HG--
branch : HEAD |
b0a901f1dbe9e05ac1c92a0974af6bce0274f31a |
|
29-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
struct mail_private now contains all kinds of statistics about file accesses.
--HG--
branch : HEAD |
ebe6df72f1309135f02b6a4d2aef1e81a073f91c |
|
29-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Added struct mail.lookup_abort, which can be used to abort lookups that can't be done using cache.
--HG--
branch : HEAD |
aa247243412a49f9bdebf7255e131dc6ece4ed46 |
|
25-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Mail copying: Avoid updating cache file because of copying.
The mail is being opened in any case, so it's unlikely to help anything.
--HG--
branch : HEAD |
e0645d5232900a5c574780ef0c0362a5b7581aba |
|
13-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
"Maildir filename has wrong W value" error was missing new/cur directory in the middle.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
89fb98e9eb7e95255a579c8e9d865383c2334a74 |
|
18-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir: If POP3 UIDL field is empty in dovecot-uidlist, use base filename as UIDL.
--HG--
branch : HEAD |
04870054863757edf048c81dcce3c5e7dec453cd |
|
16-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
ACLs: Initial support for "post" right.
--HG--
branch : HEAD |
0d16525a729011f4fced989a3da74d755ea49e6d |
|
01-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Use mail_storage_set_critical() instead of i_error() directly.
--HG--
branch : HEAD |
236bedf76e31651ea9fca63fbdc25be673819526 |
|
10-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
pop3+maildir: Make sure virtual sizes always get written to dovecot-uidlist file.
--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 |
0d73d91d1a1809f173d433023ccf97e6ec5ba629 |
|
31-May-2008 |
Timo Sirainen <tss@iki.fi> |
MAIL_FETCH_UIDL_BACKEND crashed with non-maildir backends. Changed the API a
bit and fixed/cleaned/optimized POP3 UIDL listing a bit.
--HG--
branch : HEAD |
e76c494ad6535d3de314cc0d3ac7a44b06e53c4b |
|
29-May-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir: If POP3 UIDL extra field is found from dovecot-uidlist, it's used
instead of the default UIDL format (or X-UIDL: header).
Patch by Nicholas Von Hollen @ Mailtrust.
--HG--
branch : HEAD |
c8b9d99ba6bf13504d1943b7a650d2844d7f7b11 |
|
25-May-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir: Moved uidlist refreshing to maildir_uidlist_lookup() where it
benefits all callers.
--HG--
branch : HEAD |
8c9e48cd6de80da0fa32b9c0dee003472c9a7c0d |
|
25-May-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir: If dovecot-uidlist has wrong cached virtual size, remove it when we
detect it. If maildir filename has wrong W value, log a clear error about it.
--HG--
branch : HEAD |
f57b231d8f0985154d5021054a3847f3f55a070f |
|
15-May-2008 |
Timo Sirainen <tss@iki.fi> |
If file isn't found from uidlist, refresh the file and look again in case it
was added after the previous mailbox sync (but after the previous view sync
that found new messages).
--HG--
branch : HEAD |
9334fbad0aabb2fed88f40b2205d0d6f80bdffa2 |
|
06-May-2008 |
Timo Sirainen <tss@iki.fi> |
If we lose a maildir filename, make sure the message gets marked as expunged
in index.
--HG--
branch : HEAD |
63aaafe7e6b201d6633f8c25610ecd30c9cda99c |
|
20-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
"Corrupted physical/virtual size" shows now also the UID of the message.
--HG--
branch : HEAD |
ea4f28398a0e4fb46be074307d512925c1fe7fc1 |
|
14-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
struct mail can't necessarily be casted to struct index_mail. Added a new
get_index_mail() method to return it.
--HG--
branch : HEAD |
01404d41657a104c5ea1c12bb87f9c321e9c1ac4 |
|
14-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
struct mail can't necessarily be casted to struct index_mail. Added a new
get_index_mail() method to return it.
--HG--
branch : HEAD |
a2f250a332dfc1e6cd4ffd196c621eb9dbf7b8a1 |
|
15-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Initial CONDSTORE support.
--HG--
branch : HEAD |
ee41401bfcd3c224dd3603684370c5a4201b5e72 |
|
11-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Typofix in error message
--HG--
branch : HEAD |
2ff23d6fb7e2ff85aa23b7f4769aeac1d0316a1b |
|
10-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
If we caught broken cached virtual/physical size, change the value to the
one in filename/uidlist.
--HG--
branch : HEAD |
cf49fc07f541c0f74578ac6c3b334ddade143aa1 |
|
10-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
If physical/virtual size is in both cache and in filename/uidlist, mark the
cache corrupted if they don't match.
--HG--
branch : HEAD |
55b6e3105184ad6a2f987346380966f556300055 |
|
10-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
uidlist size caching check was wrong for physical sizes.
--HG--
branch : HEAD |
838e367716bbd5e44b4a1691db9cbf72af53e9f0 |
|
14-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Added mail_set_cache_corrupted() to rebuild the cache file and force
recalculating the given field.
--HG--
branch : HEAD |
277506e6e05cdac79bacfb57e629e2fa0aa1ffdc |
|
14-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Added mail_set_cache_corrupted() to rebuild the cache file and force
recalculating the given field.
--HG--
branch : HEAD |
9fdd27b307347a06871ddab74b165122c878553c |
|
26-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Last change caused mail_get_physical_size() to assert-crash sometimes.
--HG--
branch : HEAD |
97eb53ade9057e6966dbb77289ad0204c7e1657b |
|
25-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Store physical message sizes also to dovecot-uidlist if needed.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
a757f31393b9d6fc7760a9dec8363404ab3ae576 |
|
09-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_get_keyword_indexes()
--HG--
branch : HEAD |
7aeaf23f760d86aad525d831efcac9f860a55a39 |
|
22-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Don't add virtual size to uidlist if it's already in filename.
--HG--
branch : HEAD |
18065635d4e79dd96eb3b3215718abd12f6a6808 |
|
22-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Don't try to set virtual size to uidlist for newly saved mails. They already
have the size in their filename.
--HG--
branch : HEAD |
8b58939517a381db55670089c0984da39fc0f099 |
|
22-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
POP3 state checking wasn't done right.
--HG--
branch : HEAD |
ae1b268ffff743ad9927c304a1344c5cbd7f909d |
|
22-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Cleanups/rewrites to how/when date/size caching is done.
--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 |
0d86aa0d47f7393c669c084b34c0537b193688ad |
|
13-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail.close() virtual function.
--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 |
e9d29ae46d435aee85514decfe6ee27399ebf794 |
|
10-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
If received date or physical size fetching fails because mail was expunged,
mark the mail expunged instead of failing with unknown error.
--HG--
branch : HEAD |
2526d52441ef368215ab6bf04fd0356d3b09d235 |
|
02-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed i_stream_create_file() to i_stream_create_fd().
--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 |
c36ec256c1bd1abe1c12e792cf64f0b7e3b3135a |
|
12-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Store virtual sizes to dovecot-uidlist if we want to use them all the time.
If nothing else than virtual size is wanted to be known (ie. POP3 or
POP3-like IMAP client), don't bother updating cache file at all.
--HG--
branch : HEAD |
3ec2c1f31631bb5ff86f5fc93a563c33e5cae90d |
|
08-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Code cleanup
--HG--
branch : HEAD |
e8bdf1be00aec45d0c6dd72ad9c8be02a3dfc778 |
|
08-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Moved maildir filename related functions to maildir-filename.c
--HG--
branch : HEAD |
910fa4e4204a73d3d24c03f3059dd24e727ca057 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Added MAIL_ERROR_EXPUNGED. Set the error whenever expunged message is tried
to be accessed.
--HG--
branch : HEAD |
ccc895c0358108d2304239063e940b7d75f364ab |
|
30-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Removed struct index_storage abstraction. It's pointless.
--HG--
branch : HEAD |
a63bc30f167a221691ad0a3fe5cd45c57444411e |
|
29-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Fix for 64bit systems
--HG--
branch : HEAD |
8cab30d26412f21e814dba57814fa4b57b1d36e7 |
|
18-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Removed mail_read_mmaped setting. It's a pretty useless setting and
apparently it can also be buggy.
--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 |
c11155a446dbdc9f6cd5b954f09073a9019e27b2 |
|
15-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
Compile fix
--HG--
branch : HEAD |
8000c86be02008b74acc71fa422444dc432e2c01 |
|
15-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
We added received date as time_t instead of uint32_t which crashed with
64bit systems.
--HG--
branch : HEAD |
944d096df698dd2b476e376277e9afd634b53270 |
|
01-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
mail_get_physical_size() was broken with non-committed mails, which broke
quota plugin.
--HG--
branch : HEAD |
90adcaa0a00eba29b7fbd50ca66be11c8d086d6a |
|
29-Jun-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added mail_get_save_date() and some cleanups.
--HG--
branch : HEAD |
b142deb9a831c89b1bb9129ada655f3e56b9d4cc |
|
28-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Don't break if mailbox path contains ':' characters.
--HG--
branch : HEAD |
683253c6f556b71d7946452644fc3d633f47153c |
|
18-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
If requested mail isn't found from uidlist, mark the mail as expunged.
--HG--
branch : HEAD |
677e22747b82bf15b339e31d1d0106d62bf806da |
|
15-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Add ",S=size" to maildir filenames when quota plugin is loaded with
Maildir++ backend.
--HG--
branch : HEAD |
a12399903f415a7e14c2816cffa2f7a09dcbb097 |
|
15-May-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added mail_set_uid() to select a mail by UID.
--HG--
branch : HEAD |
b6a7e0a7899e7f5d60c23cdaa50e025e4c67d05f |
|
06-Mar-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Support accessing saved mails that haven't been committed yet (fixes quota for maildir).
--HG--
branch : HEAD |
d9e5b8e97506db35c357684eec08306c8464a55a |
|
06-Mar-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Cleanup
--HG--
branch : HEAD |
97511ac4d7607e1ba64ce151eda3d9b5f9775519 |
|
18-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added mail_cache_min_mail_count setting.
--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 |
55773f17bccf6361d6599ffcbe072d7c9fe205bf |
|
03-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Try to be a bit smarter about when to parse header/body.
--HG--
branch : HEAD |
052e0c9dc04dcdc74e136d12c6d7dea2c635bf51 |
|
09-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Use macros when using W and S extras too.
--HG--
branch : HEAD |
8754bb7a1f24705ffa5434f9e10d57e0b3b88d6e |
|
09-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Replaced ':' and ',' character usages with #defines, so they can be changed
easily if needed.
--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 |
87460b08cb97b31cde640d4975a6aa2c1d0e7226 |
|
29-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Renamed mail_get_header() to mail_get_first_header() and mail_gets_headers()
to mail_get_header_stream(). Added new mail_get_headers() which returns
NULL-terminated string list of all found headers.
--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 |
e9a655e36757b0acf550ec5914559d111036decb |
|
15-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Include transaction pointer in struct mail.
--HG--
branch : HEAD |
b093b87c303d420bd14aeb53498f881ef2944aa0 |
|
07-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
mail->expunged field wasn't actually set. Now it's always set if
wanted_fields contains message header or body.
--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 |
366d6311c9d5bac6613e3cd64619eb878adce9ec |
|
19-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Added %f pop3_uidl_format for maildir. Patch by Andrey Panin.
--HG--
branch : HEAD |
d67fde1a8ebc1d85704c5986d8f93aae97eccef3 |
|
28-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Added mail.get_physical_size().
--HG--
branch : HEAD |
439980f88f421039dea8335e92d3fa82b3f470a1 |
|
11-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Recent flags should be fully working now with maildir.
--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 |
f5672f838a62a3ae6cdf41641abecdddf1340f83 |
|
25-May-2004 |
Timo Sirainen <tss@iki.fi> |
,W= fix
--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 |
641f0c0900ee6e7cf9667f4b40ed95cec7d0cdca |
|
01-May-2004 |
Timo Sirainen <tss@iki.fi> |
Recent-flag should work now
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |