summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-11-20 14:50:54 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-11-20 14:50:54 +0200
commit18aff26c654c04f7ca3ffa33f997305e3942706d (patch)
treeb12e21d2f281270ac0d44e23f807adfe4e49061d /include
parent249bf7eb77d97029ec3b87ad5269aec869c06c51 (diff)
downloadmailutils-18aff26c654c04f7ca3ffa33f997305e3942706d.tar.gz
mailutils-18aff26c654c04f7ca3ffa33f997305e3942706d.tar.bz2
dotmail: optimize appends
* include/mailutils/sys/dotmail.h (mu_dotmail_mailbox): New members: x_imapbase_off and x_imapbase_len. * libproto/dotmail/dotmail.c: Format X-IMAPbase header with fixed width to avoid rewriting entire mailbox only to make the new header fit to its place in the first message.
Diffstat (limited to 'include')
-rw-r--r--include/mailutils/sys/dotmail.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mailutils/sys/dotmail.h b/include/mailutils/sys/dotmail.h
index d6c65953d..9510ab1bf 100644
--- a/include/mailutils/sys/dotmail.h
+++ b/include/mailutils/sys/dotmail.h
@@ -69,6 +69,9 @@ struct mu_dotmail_mailbox
unsigned uidvalidity_scanned:1; /* True if uidvalidity is initialized */
unsigned uidvalidity_changed:1; /* True if uidvalidity or uidnext has changed */
+ size_t x_imapbase_off; /* Offset of the X-IMAPbase header */
+ size_t x_imapbase_len; /* Length if the header without trailing \n */
+
struct mu_dotmail_message **mesg; /* Array of messages */
size_t mesg_count; /* Number of messages in mesgv */
size_t mesg_max; /* Actual capacity of mesg */

Return to:

Send suggestions and report system problems to the System administrator.