Bug 71664 - sent mails get marked as "new" when sent-mail folder is on imap server
Summary: sent mails get marked as "new" when sent-mail folder is on imap server
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.5.94
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-02 12:43 UTC by Thomas Reitelbach
Modified: 2021-02-18 12:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Reitelbach 2004-01-02 12:43:24 UTC
Version:           1.5.94 (using KDE 3.1.94 (CVS >= 20031206), compiled sources)
Compiler:          gcc version 3.3.1
OS:          Linux (i686) release 2.6.0

Kmail treats messages in my sent-mail folder as "new".
This is what happens here:

I've configured my identity to store sent mail into an imap folder.
Now when i send a new mail (to myself for testing purposes for example), the message gets copied into my sent-mail folder.
On next mail check KMail reports one "new" mail in that sent-mail folder.
Now i open this folder and see my just sent mail with the usual 2 question marks (signature/encryption etc.). I click on the mail to view it in the preview pane, which loads the message from the server. Now i change back to my inbox and check for new mail, the unread-count disappears.
This does not happen when using a local folder for my sent mail.

BTW: This configuration has been running here since ages without any problem and with different imap servers, this bug must have been introduced in the recent past.

Greetings and a happy new year :-)
Thomas
Comment 1 Till Adam 2004-01-02 18:45:26 UTC
Subject: kdepim/kmail

CVS commit by tilladam: 

Explicitely set sent mails to read, they default to new on imap sent mail
folders otherwise.

CCMAIL: 71664-done@bugs.kde.org


  M +1 -0      kmsender.cpp   1.196


--- kdepim/kmail/kmsender.cpp  #1.195:1.196
@@ -263,4 +263,5 @@ kdDebug(5006) << "KMSender::doSendMsg() 
     }
     mCurrentMsg->setStatus(KMMsgStatusSent);
+    mCurrentMsg->setStatus(KMMsgStatusRead); // otherwise it defaults to new on imap
 
     const KMIdentity & id = kmkernel->identityManager()