[dovecot-cvs] dovecot/src/imap imap-expunge.c,NONE,1.1 imap-expunge.h,NONE,1.1

cras at procontrol.fi cras at procontrol.fi
Sat Jul 26 22:24:02 EEST 2003


Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv31178/imap

Added Files:
	imap-expunge.c imap-expunge.h 
Log Message:
forgot to add



--- NEW FILE: imap-expunge.c ---
/* Copyright (C) 2003 Timo Sirainen */

#include "common.h"
#include "mail-storage.h"
#include "imap-expunge.h"

int imap_expunge(struct mailbox *box, int notify)
{
	struct mail_expunge_context *ctx;
	struct mail *mail;
	int failed = FALSE;

	ctx = box->expunge_init(box, 0, FALSE);
	if (ctx == NULL)
		return FALSE;

	while ((mail = box->expunge_fetch_next(ctx)) != NULL) {
		if (!mail->expunge(mail, ctx, NULL, notify)) {
			failed = TRUE;
			break;
		}
	}

	if (!box->expunge_deinit(ctx))
		return FALSE;

	return !failed;
}


--- NEW FILE: imap-expunge.h ---
#ifndef __IMAP_EXPUNGE_H
#define __IMAP_EXPUNGE_H

int imap_expunge(struct mailbox *box, int notify);

#endif



More information about the dovecot-cvs mailing list