dprint (2, (debugfile, "Getting mailbox UIDNEXT\n"));
pc += 3;
pc = imap_next_word (pc);
- sscanf (pc, "%lu", &status->uidnext);
+ sscanf (pc, "%u", &status->uidnext);
}
else
{
if (subscribe)
mutt_message (_("Subscribing to %s..."), buf);
else
- mutt_message (_("Unsubscribing to %s..."), buf);
+ mutt_message (_("Unsubscribing from %s..."), buf);
imap_munge_mbox_name (mbox, sizeof(mbox), buf);
snprintf (buf, sizeof (buf), "%sSUBSCRIBE %s", subscribe ? "" : "UN", mbox);
if (imap_exec (idata, buf, 0) < 0)
goto fail;
+ imap_unmunge_mbox_name(mx.mbox);
+ if (subscribe)
+ mutt_message (_("Subscribed to %s"), mx.mbox);
+ else
+ mutt_message (_("Unsubscribed from %s"), mx.mbox);
FREE (&mx.mbox);
return 0;
/*
* Copyright (C) 1996-9 Brandon Long <blong@fiction.net>
- * Copyright (C) 1999-2001 Brendan Cully <brendan@kublai.com>
+ * Copyright (C) 1999-2005 Brendan Cully <brendan@kublai.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by