summaryrefslogtreecommitdiff
authortille <tille>2002-06-19 13:06:57 (UTC)
committer tille <tille>2002-06-19 13:06:57 (UTC)
commit8d6e1b42d3b5b8dc376f0979d9f4363d9a6c6970 (patch) (unidiff)
tree35b6166a07f887b262b784947caec9a0c2e4dabe
parent2bcd7302e4e156ad5f389b23c01a690917abee01 (diff)
downloadopie-8d6e1b42d3b5b8dc376f0979d9f4363d9a6c6970.zip
opie-8d6e1b42d3b5b8dc376f0979d9f4363d9a6c6970.tar.gz
opie-8d6e1b42d3b5b8dc376f0979d9f4363d9a6c6970.tar.bz2
fixed error while sending queue
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/composer.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/unsupported/mail2/composer.cpp b/noncore/unsupported/mail2/composer.cpp
index 03dacae..52ebbdd 100644
--- a/noncore/unsupported/mail2/composer.cpp
+++ b/noncore/unsupported/mail2/composer.cpp
@@ -164,7 +164,7 @@ void Composer::slotSendMail()
164 164
165void Composer::slotSendQueued() 165void Composer::slotSendQueued()
166{ 166{
167 167 int effSendCount = 0;
168 qDebug("Sending queued messages"); 168 qDebug("Sending queued messages");
169 Config cfg( "mailqueue", Config::User ); 169 Config cfg( "mailqueue", Config::User );
170 cfg.setGroup( "Settings" ); 170 cfg.setGroup( "Settings" );
@@ -245,12 +245,17 @@ void Composer::slotSendQueued()
245 245
246 qDebug("Sending to %s",toAdr.latin1()); 246 qDebug("Sending to %s",toAdr.latin1());
247 SmtpHandler *handler = new SmtpHandler(header, message, accnt ,toAdr); 247 SmtpHandler *handler = new SmtpHandler(header, message, accnt ,toAdr);
248 248 effSendCount++;
249 connect(handler, SIGNAL(finished()), SLOT(slotSendQueuedFinished())); 249 connect(handler, SIGNAL(finished()), SLOT(slotSendQueuedFinished()));
250 connect(handler, SIGNAL(error(const QString &)), SLOT(slotSendQueuedError(const QString &))); 250 connect(handler, SIGNAL(error(const QString &)), SLOT(slotSendQueuedError(const QString &)));
251 connect(handler, SIGNAL(status(const QString &)), status, SLOT(setText(const QString &))); 251 connect(handler, SIGNAL(status(const QString &)), status, SLOT(setText(const QString &)));
252 252
253 } 253 }
254 if (effSendCount < _toSend)
255 {
256 _toSend = effSendCount;
257 QMessageBox::information(this, tr("Error"), tr("<p>There was a problem sending some of the queued mails.</p>"), tr("Ok"));
258 }
254} 259}
255 260
256void Composer::slotQueueMail() 261void Composer::slotQueueMail()