Bug 214648

Summary: kmail better support for gmail labels - do not duplicate messages
Product: [Applications] kmail Reporter: Mark <markotahal>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: abhishekisnot, dirk.kde, loic.grobol, oleg.atamanenko+kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mark 2009-11-15 14:11:06 UTC
Version:            (using KDE 4.3.3)
OS:                Linux
Installed from:    Archlinux Packages

I've recently started using gmail via disconnected imap on kmail. 

It works mostly great, only flaw i've found is..when you set up labels in gmail, kmail doesn't support them as links instead it duplicates the messages. 

i think that's not optimal, as having set up a label 'work' - i now get 3 unread messages for gmail account in kmail - in inbox, All mail and work(label). I have to see them all to mark them read and more over, it takes 3times more space on hdd. 

What i propose would be to implement labels like links or views(in sql) so they would take up space just for one! message and clicking any of them would mark other also read(or whatever the action would be). 

what do you think about this? have you found a solution? 

thank you and have a nice day , Mark :)
Comment 1 Christophe Marin 2009-11-15 16:16:02 UTC
There's no way to add that in KMail: it downloads whatever GMail has to offer and there's no information about the labels in the email source.
Comment 2 Oleg Atamanenko 2010-09-19 18:40:22 UTC
Actually, it seems that almost every message contains Message-Id header. It would be great, if KMail would be aware of it and when I mark as read mail it will mark as read all messages with the given Message Id. At least for gmail accounts.
Comment 3 Abhishek 2012-05-27 15:13:32 UTC
+1 for this bug. Great if message duplication can be avoided based on header, or at least mark all the messages with same as as read when I read one.
Comment 4 Loïc Grobol 2012-08-31 12:55:32 UTC
The labels are in the IMAP X-GM-LABELS attribute, which can be used in FETCH, STORE… This may be complicated/painful to implement since that would mean a special case for GMail's IMAP but it is feasible.