aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index f58779f5..c4c6c938 100644
--- a/driver.c
+++ b/driver.c
@@ -1297,6 +1297,7 @@ is restored."));
/* now iterate over each folder selected */
for (idp = ctl->mailboxes; idp; idp = idp->next)
{
+ ctl->folder = idp->id;
pass = 0;
do {
dispatches = 0;
@@ -1568,6 +1569,7 @@ is restored."));
closeUp:
xfree(msgsizes);
+ ctl->folder = NULL;
/* execute wrapup command, if any */
if (ctl->postconnect && (tmperr = system(ctl->postconnect)))