imap_munge_mbox_name (idata, oldmbox, sizeof (oldmbox), mx->mbox);
imap_munge_mbox_name (idata, newmbox, sizeof (newmbox), newname);
- b = mutt_buffer_new ();
- mutt_buffer_increase_size (b, LONG_STRING);
+ b = mutt_buffer_pool_get ();
mutt_buffer_printf (b, "RENAME %s %s", oldmbox, newmbox);
- if (imap_exec (idata, b->data, 0) != 0)
+ if (imap_exec (idata, mutt_b2s (b), 0) != 0)
rc = -1;
- mutt_buffer_free (&b);
+ mutt_buffer_pool_release (&b);
return rc;
}
char quoted[HUGE_STRING];
pid_t rc;
- uids = mutt_buffer_new ();
- mutt_buffer_increase_size (uids, HUGE_STRING);
+ uids = mutt_buffer_pool_get ();
for (; hints; hints = hints->next)
{
}
rc = pgp_invoke (pgpin, pgpout, pgperr, pgpinfd, pgpoutfd, pgperrfd,
- 0, NULL, NULL, uids->data,
+ 0, NULL, NULL, mutt_b2s (uids),
keyring == PGP_SECRING ? PgpListSecringCommand :
PgpListPubringCommand);
- mutt_buffer_free (&uids);
+ mutt_buffer_pool_release (&uids);
return rc;
}