The option for removing the duplicate mails through mail.server.default.dup_action doesn't remove the duplicates from the pop server

NEW
Unassigned

Status

11 years ago
3 years ago

People

(Reporter: md, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [patchlove] [has draft patch])

Attachments

(1 attachment)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
Build Identifier: version 2.0.0.16 (20080708)

The thunderbird has an option for removing the duplicate mails as explained below. Taken from 
http://www.ghacks.net/2007/05/18/automatically-remove-duplicate-mails-in-thunderbird/	
“ It happens sometimes that you find duplicate mails in your inbox in Thunderbird. This could happen for instance when you pull new emails from the mail server and get disconnected during that process. It could happen then that those emails will be retrieved again when you check for mails. Thunderbird has a nice hidden variable that defines how it should treat duplicate mails and I’m going to tell you how to set it correctly so that duplicate mails are removed automatically.
You have to click on Tools > Options to open the options in Thunderbird. Click on the Advanced tab there and select Config Editor under Advanced Configuration. This looks similar to the about:config shortcut in Firefox then. Enter mail.server.default.dup_action in the filter and the entry should be shown alone in the main window. Now right-click that entry and select modify from the menu. You can change the parameter to the following values:
•	0 - this is the default value. It retrieves duplicate mails like normal mails.
•	1 - if you set the value to 1 duplicate mails will be deleted automatically once retrieved
•	2 - if you set the value to 2 duplicated mails will be moved right into the trash
•	3 - the value 3 finally marks duplicate mails as read
If you want to delete duplicate mails automatically in Thunderbird you select the value 1. 
Bug:
The problem is that if you select option 1 and also set that delete it from server when deleted from client then also the these duplicate mails do not get automatically deleted from server.
Suppose we chose option 2 then duplicate mails go into trash. If I remove from trash then also they do not get removed from server. If I first move these duplicate mails from trash to some temp folder and then permanently delete either directly or after moving to trash it gets deleted from server!!!!
Ideally if we select option 1 it should get automatically removed from server. I feel it is a bug and request it to be fixed.


Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Actual Results:  
You have to click on Tools > Options to open the options in Thunderbird. Click on the Advanced tab there and select Config Editor under Advanced Configuration. This looks similar to the about:config shortcut in Firefox then. Enter mail.server.default.dup_action in the filter and the entry should be shown alone in the main window. Now right-click that entry and select modify from the menu. You can change the parameter to the following values:
•	0 - this is the default value. It retrieves duplicate mails like normal mails.
•	1 - if you set the value to 1 duplicate mails will be deleted automatically once retrieved
•	2 - if you set the value to 2 duplicated mails will be moved right into the trash
•	3 - the value 3 finally marks duplicate mails as read
If you want to delete duplicate mails automatically in Thunderbird you select the value 1. 


Expected Results:  
The duplicate mails should be deleted from the server if we select the option of removing the mails from server once deleted from client.

Bug:
The problem is that if you select option 1 and also set that delete it from server when deleted from client then also the these duplicate mails do not get automatically deleted from server.
Summary: The option for removing the duplicate mails through mail.server.default.dup_action not working properly → The option for removing the duplicate mails through mail.server.default.dup_action doesn't remove the duplicates from the pop server

Updated

10 years ago
Component: General → Networking: POP
Product: Thunderbird → Core
QA Contact: general → networking.pop
(Assignee)

Updated

10 years ago
Product: Core → MailNews Core
Created attachment 391026 [details] [diff] [review]
proposed fix (WIP)

Something like this. 

Only, the dup actions aren't getting hit- i think dup_actions aren't working at all atm on nightlies. In nsParseNewMailState::PublishMsgHeader m_newMsgHdr isn't set so they aren't even checked.
Assignee: nobody → mkmelin+mozilla
Status: UNCONFIRMED → NEW
Ever confirmed: true

Updated

7 years ago
Whiteboard: [patchlove] [has draft patch]
Assignee: mkmelin+mozilla → nobody

Updated

3 years ago
Duplicate of this bug: 513667
You need to log in before you can comment on or make changes to this bug.