bincimap

Log | Files | Refs | LICENSE

commit c1c4fe17b56cb2c6165bbb010c9b371c3c7d7dbb
parent 21209d7ea26baa236dd8e514d5426ce89ccfae5f
Author: andreaha <andreaha@b31fe1f4-c0d1-0310-8000-a34f4ae90293>
Date:   Mon, 26 Jan 2004 18:39:42 +0000

- Handle the case where the pending updates check in the
  APPEND operator fails.


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

Diffstat:
Msrc/operator-append.cc | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/operator-append.cc b/src/operator-append.cc @@ -238,9 +238,13 @@ Operator::ProcessResult AppendOperator::process(Depot &depot, return NO; } - if (mailbox == depot.getSelected()) - pendingUpdates(mailbox, PendingUpdates::EXISTS - | PendingUpdates::RECENT, true); + if (mailbox == depot.getSelected()) { + if(!pendingUpdates(mailbox, PendingUpdates::EXISTS + | PendingUpdates::RECENT, true)) { + session.setLastError("Pending Updates failed"); + return NO; + } + } return OK; }