Open Bug 449521 Opened 16 years ago Updated 2 years ago

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

Categories

(MailNews Core :: Networking: POP, defect)

x86
Windows Vista
defect

Tracking

(Not tracked)

People

(Reporter: md, Unassigned)

References

Details

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

Attachments

(1 file)

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
Component: General → Networking: POP
Product: Thunderbird → Core
QA Contact: general → networking.pop
Product: Core → MailNews Core
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
Whiteboard: [patchlove] [has draft patch]
Assignee: mkmelin+mozilla → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: