Mercurial > dovecot > original-hg > dovecot-1.2
view src/imap/cmd-rename.c @ 296:d66aa1f1fb2d HEAD
Added fast-flag for mailbox opening, which doesn't do any index compressing
or cache updating. This flag is set when mailbox is opened by APPEND, COPY
or STATUS (ie. not SELECT/EXAMINE).
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 23 Sep 2002 13:42:20 +0300 |
parents | 3b1985cbc908 |
children | 20769b7516a2 |
line wrap: on
line source
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "commands.h" int cmd_rename(Client *client) { const char *oldname, *newname; /* <old name> <new name> */ if (!client_read_string_args(client, 2, &oldname, &newname)) return FALSE; if (!client_verify_mailbox_name(client, newname, FALSE)) return TRUE; if (client->storage->rename_mailbox(client->storage, oldname, newname)) client_send_tagline(client, "OK Rename completed."); else client_send_storage_error(client); return TRUE; }