diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-11-24 21:41:27 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-11-25 14:25:09 +0200 |
commit | a3bd653315227a7cfb0a855acfa5bbe13c8f2645 (patch) | |
tree | d8dd520c39db21c1cbd6cbcb50166844657a1bb6 /include | |
parent | c004169d5bd1a93270b5fb195d0c737b1c76af0e (diff) | |
download | mailutils-a3bd653315227a7cfb0a855acfa5bbe13c8f2645.tar.gz mailutils-a3bd653315227a7cfb0a855acfa5bbe13c8f2645.tar.bz2 |
Replace mbox format driver with mboxrb
* NEWS: update
* configure.ac: Revert 9763fd4a.
* include/mailutils/registrar.h: Likewise.
* libproto/Makefile.am: Likewise.
* libmailutils/stream/stream.c (mu_stream_size): Fix size calculation
in case of line and full buffering scheme.
* libmailutils/stream/streamcpy.c (mu_stream_copy_nl): Change semantics.
Ensure that the copied data ends with two newline characters. Append
them if necessary.
* testsuite/mbop.c: New commands: message_lines and message_size.
* libproto/mbox/mboxrb.c (mboxrb_mailbox_init_stream): Always add
MU_STREAM_READ permission.
Use the same flags for mu_mapfile_stream_create and
mu_file_stream_create.
(mboxrb_rescan_unlocked): Count terminating newline as part of the
message.
(mailbox_append_message): Make sure each message ends with an empty
line.
(mboxrb_tracker_sync): Update mailbox mesg_count.
(mboxrb_flush_temp): Truncate the temporary stream to the new size.
(mboxrb_flush_unlocked): Clear all modifications only in FLUSH_UIDVALIDITY
mode.
(mboxrb_message_copy_with_uid): Fix message_end computation. Use
mu_stream_copy_nl to copy message body.
(mu_mboxrb_message_reconstruct): Update ref on return.
* po/POTFILES.in: Update.
* mail/copy.c (append_to_file): Use mu_stream_stat_buffer to compute
statistics.
* mail/mail.c: Allow for opening read-only mailboxes.
* libproto/mbox/tests/body.at: Fix the expected byte count.
* libproto/mbox/tests/qget.at: Likewise.
* libproto/mbox/tests/delete.at: Add more tests.
* mail/tests/align.at: Fix the expected byte and line count.
* mail/tests/hold.at: Likewise.
* mail/testsuite/mail/read.exp: Likewise.
* mail/testsuite/mail/tag.exp: Likewise.
* mail/testsuite/mail/z.exp: Likewise.
* mail/tests/copy04.at: Don't use line count and size in comparison.
* mail/testsuite/mail/write.exp: Use regexps instead of exact strings
for the same reason.
* pop3d/testsuite/pop3d/read.exp: Fix the expected byte count.
* readmsg/tests/all.at: Expect extra newline in output.
* readmsg/tests/hdr.at: Likewise.
* readmsg/tests/nohdr.at: Likewise.
* readmsg/tests/twomsg.at: Likewise.
* readmsg/tests/weed.at: Likewise.
* sieve/tests/redirect.at: Fix the expected byte count.
* sieve/tests/reject.at: Expect extra newline in output.
* mh/inc.c (incmbx): Parse truncate and nomoveto URL parameters prior
to opening the mailbox. If notruncate is requested, open the mailbox
read-only.
* mh/mh_format.c (str_compress_ws): Fix copying between overlapping
memory regions.
* libtests/Makefile.am: Remove lstuid tests.
* libtests/testsuite.at: Likewise.
* libtests/lstuid.c: Remove.
* libtests/lstuid00.at: Remove.
* libtests/lstuid01.at: Remove.
* libtests/lstuid02.at: Remove.
* libtests/mime.at: Fix the expected byte count.
* imap4d/tests/IDEF0956.at: Fix the expected byte count.
* map4d/tests/fetch.at: Likewise.
* imap4d/tests/append00.at: Remove X-* headers and Status from the mbox
prior to comparison.
* imap4d/tests/append01.at: Likewise.
* libproto/mbox: Remove old code. Replace it with mboxrb.
* mail/tests/nohome.at: Update lines/sizes.
* mail/testsuite/mail/folder.exp: Likewise.
* mail/testsuite/mail/tag.exp: Likewise.
* mail/testsuite/mail/z.exp: Likewise.
* mda/mda/tests/mda.at: Fix shell quoting.
* mda/putmail/tests/putmail.at: Remove extra newline from the expectation.
Eliminate X-IMAPbase and X-UID from the resulting mailbox.
* mda/tests/mda.sh: Eliminate X-IMAPbase and X-UID from the output.
* pop3d/testsuite/pop3d/read.exp: Fix expected lines/sizes
* readmsg/tests/hdr.at: Fix extra whitespace.
* sieve/tests/action.at: Eliminate X-IMAPbase and X-UID. Fix extra
whitespace in the expected From_ line.
* sieve/tests/addheader.at: Likewise.
* sieve/tests/pipeact.at: Likewise.
Diffstat (limited to 'include')
-rw-r--r-- | include/mailutils/registrar.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/mailutils/registrar.h b/include/mailutils/registrar.h index 3c252fcaf..f66edbd91 100644 --- a/include/mailutils/registrar.h +++ b/include/mailutils/registrar.h @@ -114,7 +114,6 @@ extern mu_record_t mu_pops_record; /* Local Mailbox Unix Mailbox, "mbox:" */ extern mu_record_t mu_mbox_record; -extern mu_record_t mu_mboxrb_record; /* Local MH, "mh:" */ extern mu_record_t mu_mh_record; @@ -144,7 +143,6 @@ extern mu_record_t mu_dotmail_record; #define mu_register_all_mbox_formats() do {\ mu_registrar_record (mu_mbox_record);\ - mu_registrar_record (mu_mboxrb_record);\ mu_registrar_record (mu_dotmail_record);\ mu_registrar_record (mu_pop_record);\ mu_registrar_record (mu_pops_record);\ @@ -157,7 +155,6 @@ extern mu_record_t mu_dotmail_record; #define mu_register_local_mbox_formats() do {\ mu_registrar_record (mu_mbox_record);\ - mu_registrar_record (mu_mboxrb_record);\ mu_registrar_record (mu_dotmail_record);\ mu_registrar_record (mu_mh_record);\ mu_registrar_record (mu_maildir_record);\ |