author | alwin <alwin> | 2003-12-23 01:58:59 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-23 01:58:59 (UTC) |
commit | 127c50cc446de489c702400ebc5fc4874f6311b2 (patch) (unidiff) | |
tree | 86ba684107eb2258e22b613c8c0dfa1a0c8a1bda /noncore/net/mail/opiemail.cpp | |
parent | 04a7006c0392c02941e263d4d35edeeb2f98223d (diff) | |
download | opie-127c50cc446de489c702400ebc5fc4874f6311b2.zip opie-127c50cc446de489c702400ebc5fc4874f6311b2.tar.gz opie-127c50cc446de489c702400ebc5fc4874f6311b2.tar.bz2 |
UFFFFFFF
flushing send queue mostly finished.
Attention: To get it work you must apply the patches from the libetpan/
directory!
ToDo:
- when flush then select a smtp-account to use for when there are more
than one smtp accounts. (opiemail.cpp) This moment I just use the first one.
- the special funs in mboxwrapper (deleting range of mail, storing a message
to a folder) should go to all mailbox wrappers, means into the global interface
of them.
- cleanup/review the code of the smtp-wrapper.
Diffstat (limited to 'noncore/net/mail/opiemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp index 7ab4e0d..9257866 100644 --- a/noncore/net/mail/opiemail.cpp +++ b/noncore/net/mail/opiemail.cpp | |||
@@ -1,6 +1,8 @@ | |||
1 | #include <qmessagebox.h> | ||
1 | #include "opiemail.h" | 2 | #include "opiemail.h" |
2 | #include "editaccounts.h" | 3 | #include "editaccounts.h" |
3 | #include "composemail.h" | 4 | #include "composemail.h" |
5 | #include "smtpwrapper.h" | ||
4 | 6 | ||
5 | OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) | 7 | OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) |
6 | : MainWindow( parent, name, flags ) | 8 | : MainWindow( parent, name, flags ) |
@@ -28,6 +30,23 @@ void OpieMail::slotComposeMail() | |||
28 | void OpieMail::slotSendQueued() | 30 | void OpieMail::slotSendQueued() |
29 | { | 31 | { |
30 | qDebug( "Send Queued" ); | 32 | qDebug( "Send Queued" ); |
33 | SMTPaccount *smtp = 0; | ||
34 | |||
35 | QList<Account> list = settings->getAccounts(); | ||
36 | Account *it; | ||
37 | // if (list.count()==1) { | ||
38 | for ( it = list.first(); it; it = list.next() ) { | ||
39 | if ( it->getType().compare( "SMTP" ) == 0 ) { | ||
40 | smtp = static_cast<SMTPaccount *>(it); | ||
41 | break; | ||
42 | } | ||
43 | } | ||
44 | // } | ||
45 | if (smtp) { | ||
46 | SMTPwrapper * wrap = new SMTPwrapper(settings); | ||
47 | wrap->flushOutbox(smtp); | ||
48 | QMessageBox::information(0,tr("Info"),tr("Mail queue flushed")); | ||
49 | } | ||
31 | } | 50 | } |
32 | 51 | ||
33 | void OpieMail::slotSearchMails() | 52 | void OpieMail::slotSearchMails() |