Updated copyright notices to include the year 2018.
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);
lib-storage: convert dbox-common to use container_of
Updated copyright notices to include the year 2017.
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.
dbox: Fixed pop3.order caching for mails without no specified order.
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/'
Remove now-unnecessary direct stdlib.h #includes.
Removed all invocations of strtoll() and friends.
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>
dbox: mail_get_special() may have returned MAIL_FETCH_POP3_ORDER allocated from data stack. Although this seems to have worked for now, it shouldn't have been done.
Updated copyright notices to include year 2014.
dbox: Return cached pop3.order=0 as empty string instead to fix sorting problems.
dbox: Added support for POP3 message order.
cydir, dbox, maildir: Don't leak the stream if mail.istream_opened() fails
Oops :) Update copyrights to 2013 without breaking all .c files.
Updated copyright notices to include year 2013.
lib-storage: Moved index_mail.data_pool to mail_private.data_pool
Updated copyright notices to include year 2012.
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.
lib-storage: Moved all transaction stats_* to struct mailbox_transaction_stats.
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.
Updated copyright notices to include year 2011.
lib-storage: Removed struct index_transaction_context. All of its contents are now in struct mailbox_transaction_context.
dbox: Added dbox_file_get_plaintext_size() for easily getting it.
dbox: dbox file could have been closed too early in some situations, causing EBADF errors.
dbox: mail_get_special() for POP3 UIDL or GUID return value wasn't permanent enough. Another call to mail_get_*() could have caused the string to point to some garbage.
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.
dbox: Don't allow unlimited buffer size when reading message body.
dbox: Split dbox_file_seek() from dbox_file_get_mail_stream()
dbox_mail_get_save_date(): Last change was broken. --HG-- branch : HEAD
dbox: Don't write save-date to metadata, use file's ctime as fallback. Copying must change the save-date, so it couldn't work well in metadata. --HG-- branch : HEAD
dbox: Fixed looking up physical size when it wasn't in metadata. --HG-- branch : HEAD
lib-storage: Added support for plugins to specify message's physical size when saving. Changed dbox to save this value to metadata, and use when present. --HG-- branch : HEAD
Increased initial memory pool sizes. --HG-- branch : HEAD
lib-storage: *_mailboxes don't descend from index_mailbox anymore, it's now a context. --HG-- branch : HEAD
Updated copyright notices to include year 2010. --HG-- branch : HEAD
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