1 |
douglas |
104 |
// Windows XP FAQ Poll |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// Poller.cpp |
6 |
|
|
|
7 |
|
|
#include "Poller.h" |
8 |
|
|
|
9 |
|
|
Poller::Poller() |
10 |
|
|
{ |
11 |
douglas |
118 |
string mailbox = session->list("\"\" \"" + account.getMailbox() + "\""); |
12 |
|
|
|
13 |
|
|
if (mailbox.find(account.getMailbox()) == string::npos) |
14 |
|
|
{ |
15 |
|
|
cerr << program << ": Mailbox does not exist: " << account.getMailbox() |
16 |
|
|
<< "\n"; |
17 |
|
|
|
18 |
|
|
exit(1); |
19 |
|
|
} |
20 |
douglas |
104 |
} |
21 |
|
|
|
22 |
douglas |
118 |
void Poller::poll(bool nodelete, const string& file) |
23 |
douglas |
104 |
{ |
24 |
douglas |
118 |
this->nodelete = nodelete; |
25 |
douglas |
104 |
} |