summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/viewmail.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/mail/viewmail.cpp b/noncore/net/mail/viewmail.cpp
index 84f8a90..aa8f37a 100644
--- a/noncore/net/mail/viewmail.cpp
+++ b/noncore/net/mail/viewmail.cpp
@@ -409,17 +409,21 @@ void ViewMail::slotReply()
409 rtext += "\n"; 409 rtext += "\n";
410 410
411 QString prefix; 411 QString prefix;
412 if ( m_mail[1].find(QRegExp("^Re: .*$")) != -1) prefix = ""; 412 if ( m_mail[1].find(QRegExp("^Re: .*$")) != -1) prefix = "";
413 else prefix = "Re: "; // no i18n on purpose 413 else prefix = "Re: "; // no i18n on purpose
414 414
415 Settings *settings = new Settings(); 415 Settings *settings = new Settings();
416 ComposeMail composer( settings ,this, 0, true); 416 ComposeMail composer( settings ,this, 0, true);
417 composer.setTo( m_mail[0] ); 417 if (m_recMail.Replyto().isEmpty()) {
418 composer.setTo( m_recMail.getFrom());
419 } else {
420 composer.setTo( m_recMail.Replyto());
421 }
418 composer.setSubject( prefix + m_mail[1] ); 422 composer.setSubject( prefix + m_mail[1] );
419 composer.setMessage( rtext ); 423 composer.setMessage( rtext );
420 composer.setInReplyTo(m_recMail.Msgid()); 424 composer.setInReplyTo(m_recMail.Msgid());
421 425
422 if ( QDialog::Accepted == QPEApplication::execDialog( &composer ) ) 426 if ( QDialog::Accepted == QPEApplication::execDialog( &composer ) )
423 { 427 {
424 m_recMail.Wrapper()->answeredMail(m_recMail); 428 m_recMail.Wrapper()->answeredMail(m_recMail);
425 } 429 }