-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 +1,2 @@ | |||
1 | #include <qmessagebox.h> | ||
1 | #include "opiemail.h" | 2 | #include "opiemail.h" |
@@ -3,2 +4,3 @@ | |||
3 | #include "composemail.h" | 4 | #include "composemail.h" |
5 | #include "smtpwrapper.h" | ||
4 | 6 | ||
@@ -30,2 +32,19 @@ void OpieMail::slotSendQueued() | |||
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 | } |