bincimap

Log | Files | Refs | LICENSE

commit 1c1b9e9a594725bad3fa4374bc55824bccdbbeb6
parent cf6ccd90f9a09193ab5c2ca434b62e1294cc68ef
Author: andreaha <andreaha@b31fe1f4-c0d1-0310-8000-a34f4ae90293>
Date:   Tue,  2 Mar 2004 20:09:23 +0000

- COPY now uses the canonical form of the destination mailbox, so copying
  to "Inbox/go" is interpreted as "INBOX/go".


git-svn-id: file:///home/cwright/convert/bincimap/trunk@49 b31fe1f4-c0d1-0310-8000-a34f4ae90293

Diffstat:
MChangeLog | 22++++++++++++++++++++++
Mbincimap.spec.in | 7+++++++
Msrc/operator-copy.cc | 8++++----
3 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,25 @@ +* Tue Mar 02 2004 Andreas Aardal Hanssen <andreas-binc@bincimap.org> +- COPY now uses the canonical form of the destination mailbox, so copying + to "Inbox/go" is interpreted as "INBOX/go". +- Released 1.2.7beta2-1 + +* Sun Feb 21 2004 Andreas Aardal Hanssen <andreas-binc@bincimap.org> +- SELECT also reports RECENT and EXISTS on empty mailboxes. +- Fixes to the prioritization of default args over command line options. +- Fixes to configure.in allow correct handling of --with-openssl-libs + option. +- The magic "." mailbox with IMAPdir is now skipped. +- Added configure.in autocheck for -lsocket. +- Default values of --localstatedir, --sysconfdir and --datadir fixed. +- Fixed errors in README and README.SSL. +- Released 1.2.7beta1-1 +- Fixed more errors in configure.in with detection of SSL libs. + +* Tue Feb 10 2004 Andreas Aardal Hanssen <andreas-binc@bincimap.org> +- Replaced command line parser, as a first step towards completely + eliminating all mysterious problems related to the ordering of + command line arguments. + * Thu Feb 05 2004 Andreas Aardal Hanssen <andreas-binc at bincimap.org> - Released 1.2.6-1 diff --git a/bincimap.spec.in b/bincimap.spec.in @@ -189,6 +189,11 @@ install man/bincimap.conf.5 $MAN/man5 #----------------------------------------------------------------------- %changelog +* Tue Mar 02 2004 Andreas Aardal Hanssen <andreas-binc@bincimap.org> +- COPY now uses the canonical form of the destination mailbox, so copying + to "Inbox/go" is interpreted as "INBOX/go". +- Released 1.2.7beta2-1 + * Sun Feb 21 2004 Andreas Aardal Hanssen <andreas-binc@bincimap.org> - SELECT also reports RECENT and EXISTS on empty mailboxes. - Fixes to the prioritization of default args over command line options. @@ -198,6 +203,8 @@ install man/bincimap.conf.5 $MAN/man5 - Added configure.in autocheck for -lsocket. - Default values of --localstatedir, --sysconfdir and --datadir fixed. - Fixed errors in README and README.SSL. +- Released 1.2.7beta1-1 +- Fixed more errors in configure.in with detection of SSL libs. * Tue Feb 10 2004 Andreas Aardal Hanssen <andreas-binc@bincimap.org> - Replaced command line parser, as a first step towards completely diff --git a/src/operator-copy.cc b/src/operator-copy.cc @@ -82,7 +82,7 @@ Operator::ProcessResult CopyOperator::process(Depot &depot, // Get the destination mailbox string dmailbox = command.getMailbox(); - Mailbox *destMailbox = depot.get(dmailbox); + Mailbox *destMailbox = depot.get(toCanonMailbox(dmailbox)); if (destMailbox == 0) { session.setResponseCode("TRYCREATE"); session.setLastError("invalid mailbox " + toImapString(dmailbox)); @@ -99,12 +99,12 @@ Operator::ProcessResult CopyOperator::process(Depot &depot, Message &source = *i; if (srcMailbox->fastCopy(source, *destMailbox, - depot.mailboxToFilename(dmailbox))) + depot.mailboxToFilename(toCanonMailbox(dmailbox)))) continue; // Have the destination mailbox create a message for us. Message *dest - = destMailbox->createMessage(depot.mailboxToFilename(dmailbox), + = destMailbox->createMessage(depot.mailboxToFilename(toCanonMailbox(dmailbox)), source.getInternalDate()); if (!dest) { session.setLastError(destMailbox->getLastError()); @@ -148,7 +148,7 @@ Operator::ProcessResult CopyOperator::process(Depot &depot, } if (success) - if (!destMailbox->commitNewMessages(depot.mailboxToFilename(dmailbox))) { + if (!destMailbox->commitNewMessages(depot.mailboxToFilename(toCanonMailbox(dmailbox)))) { session.setLastError("Failed to commit after successful copy: " + destMailbox->getLastError()); return NO;