mailbox-list-delete.h revision e0aff4c7e3336ec4b5edbcfc3a72e1e118603ee2
a8c5a86d183db25a57bf193c06b41e092ec2e151Timo Sirainen#ifndef MAILBOX_LIST_DELETE_H
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch#define MAILBOX_LIST_DELETE_H
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch#include "mailbox-list.h"
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch
7384b4e78eaab44693c985192276e31322155e32Stephan Boschint mailbox_list_delete_maildir_via_trash(struct mailbox_list *list,
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch const char *name,
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch const char *trash_dir);
7384b4e78eaab44693c985192276e31322155e32Stephan Boschint mailbox_list_delete_mailbox_file(struct mailbox_list *list,
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch const char *name, const char *path);
fb025942616dfec7770455a7092d01f2e516314dTimo Sirainenint mailbox_list_delete_mailbox_nonrecursive(struct mailbox_list *list,
fb025942616dfec7770455a7092d01f2e516314dTimo Sirainen const char *name, const char *path,
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch bool rmdir_path);
7384b4e78eaab44693c985192276e31322155e32Stephan Boschvoid mailbox_list_delete_finish(struct mailbox_list *list, const char *name);
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch
7384b4e78eaab44693c985192276e31322155e32Stephan Boschvoid mailbox_list_delete_until_root(struct mailbox_list *list, const char *path,
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch enum mailbox_list_path_type type);
7384b4e78eaab44693c985192276e31322155e32Stephan Boschint mailbox_list_delete_trash(const char *path);
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch
7384b4e78eaab44693c985192276e31322155e32Stephan Boschint mailbox_list_delete_symlink_default(struct mailbox_list *list,
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch const char *name);
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch#endif
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch