[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    [Bug 31114] When deleting mail locally, delete on POP3 server,
From:       Richy Kim <richy () fatkid ! org>
Date:       2005-06-30 6:26:37
Message-ID: 20050630062637.31351.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=31114         




------- Additional Comments From richy fatkid org  2005-06-30 08:26 -------
Created an attachment (id=11629)
 --> (http://bugs.kde.org/attachment.cgi?id=11629&action=view)
PATCH: Leave message on server until moved from inbox

Hi folks,

I would like to submit this PROPOSED PATCH for testing and review. 
(Diff'ed againt kmail -current 06/29/05 [svn revision 430106])

It's a first pass attempt at providing a feature that is akin to "delete on
server when deleted locally". It's not quite 'exactly' this option, but more
akin to the way OS X's Mail.app delays removal of messages on the server with
what could be described as "delete on server when moved from 'inbox'".

After an initial cursory attempt, I see how difficult such a 'simple' feature
within the kmail architecture would be to fully implement with the way
accounts, messages, folders, etc. are decoupled.

A quick patch summary:
For all messages remaining on the server, the account retains a
mMsgIdForUidMap, a persistent map that ties server specified uids' to
message-id's (MD5).

As messages are (re)moved from the account's destinatin folder ('inbox'), a
signal is emitted from the account's 'inbox'. The account's receiving slot
function slotMsgRemoved in turn removes the msg's entry from the
mMsgIdForUidMap.

On the next hit on the server (RETR state), the idsToSave list is iterated and
compared against the mMsgIdForUidMap to test existence at which a decision to
keep the msg in the save list or not can be made.

Hope someone finds this useful -- thanks...

-r.
_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic