summaryrefslogtreecommitdiffstats
path: root/libmail/mboxexpunge.H
blob: 0343923e718cc5aae5aae3311151b1abf761b716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
** Copyright 2002, Double Precision Inc.
**
** See COPYING for distribution information.
*/
#ifndef libmail_mboxexpunge_H

#include "mbox.H"
#include "mboxlock.H"

#include <set>
#include <string>

LIBMAIL_START

class file;

////////////////////////////////////////////////////////////////////////////
//
// Expunge messages now.

class mbox::ExpungeTask : public mbox::LockTask {

	file *saveFile;
	bool *ok;

	bool purgeDeleted;

	std::set<std::string> deleteList;

public:
	ExpungeTask(mbox &mboxAccount, mail::callback &callback,
		    bool purgeDeletedArg,
		    const std::vector<size_t> *deleteList);
	~ExpungeTask();

	bool locked(mbox::lock &mlock, std::string path);
	bool locked(file &file);
};

LIBMAIL_END

#endif