Mercurial > dovecot > original-hg > dovecot-1.2
view src/imap/mail-storage-callbacks.c @ 2322:aae574ed7f4c HEAD
Broke mailbox_sync() into iterator.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 12 Jul 2004 14:35:50 +0300 |
parents | 397ce1dbc593 |
children | d141e1bfdd63 |
line wrap: on
line source
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "ostream.h" #include "imap-util.h" #include "mail-storage.h" #include "commands-util.h" static void alert_no_diskspace(struct mailbox *mailbox __attr_unused__, void *context) { struct client *client = context; client_send_line(client, "* NO [ALERT] " "Disk space is full, delete some messages."); } static void notify_ok(struct mailbox *mailbox __attr_unused__, const char *text, void *context) { struct client *client = context; client_send_line(client, t_strconcat("* OK ", text, NULL)); o_stream_flush(client->output); } static void notify_no(struct mailbox *mailbox __attr_unused__, const char *text, void *context) { struct client *client = context; client_send_line(client, t_strconcat("* NO ", text, NULL)); o_stream_flush(client->output); } struct mail_storage_callbacks mail_storage_callbacks = { alert_no_diskspace, notify_ok, notify_no };