Closed Bug 328180 Opened 19 years ago Closed 19 years ago

ISP files: can't modify IMAP special folders path (Sent, Drafts, ...) in isp rdf files

Categories

(Thunderbird :: Account Manager, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird2.0

People

(Reporter: y.rouillard, Assigned: mscott)

Details

(Keywords: fixed1.8.1)

Attachments

(2 files, 2 obsolete files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060210 Ubuntu/dapper Firefox/1.5.0.1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060210 Ubuntu/dapper Firefox/1.5.0.1 It would be nice to be able to change the values of the IMAP special folders path (Sent, Drafts, ...) in isp rdf files. I tried to play with stationeryFolder, draftFolder, fccFolder options but it never worked. Reproducible: Always
Can you give more detail about what you tried? I would think something like setPageData(pageData, "identity", "fcc_folder", string) would do the trick.
I tried again and here is the best solution I found.
Attachment #214862 - Flags: review?(bienvenu)
Oups last patch was created from an already modified original source file.
Attachment #214862 - Attachment is obsolete: true
Attachment #214863 - Flags: review?(bienvenu)
Attachment #214862 - Flags: review?(bienvenu)
that looks reasonable - do you have sample rdf file I can test quickly with?
Attached file sample rdf to test
I attached a sample rdf. Concerning the patch: strangely I was not able to use directly identity.fccFolder (same for draftFolder and stationeryFolder). I thought it should already be initialized with value from accountData.draftFolder, but each time I tried to use identity.draftFolder, for example: var fccFolder = (identity.fccFolder ? identity.fccFolder : "Sent"); it didn't work and even causes some bug which prevents the rest of the function to be properly executed. So I have to carry accountData in the setDefaultCopiesAndFoldersPrefs function.
sorry for the delay - I tried this patch, and it did set the folder prefs correctly, but the account settings UI doesn't reflect the prefs correctly. The fcc_folder_picker_mode is left at 0, even though the fcc folder set is not the "default". This would be confusing for the user; at least it was for me. If you set the fcc_folder_picker_mode to 1, it might do the right thing, as long as the folder you set does exist...does that make sense? This also goes for the template and drafts folder_picker_mode. Can you give it a try? something like: identity.fcc_folder_picker_mode = accountData.identity && accountData.identity.stationeryFolder ? "1" : "0"; But that might not work - when I tried it, I got some errors on the js console...
Ok I will try, I also noticed that but didn't think it was a problem, but you're right it would be better if the pickermode could be changed. I will work on this, I'll keep you updated.
Comment on attachment 214863 [details] [diff] [review] Allow special folders to be specified in isp rdf files minusing in favor of a patch that adjusts the folder picker mode appropriately.
Attachment #214863 - Flags: review?(bienvenu) → review-
Attached patch Updated patchSplinter Review
Updated patch as asked by David Bienvenu. I added the picker mode change, however I nearly did the modifications you gave in your comment. I tested it and it works, but I don't have js console to see the debug output. How do you enable it ?
Attachment #214863 - Attachment is obsolete: true
Attachment #217843 - Flags: review?
Attachment #217843 - Flags: review? → review?(bienvenu)
tools | js console will show you the js console. I'll try this patch now.
Comment on attachment 217843 [details] [diff] [review] Updated patch thx for the patch. It doesn't quite work if we don't know about the special folders yet, but if the user connects to the server and discovers the folder, it should work.
Attachment #217843 - Flags: review?(bienvenu) → review+
fixed on trunk, thanks, Yann! I'll put this in TB 2 soon.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Flags: blocking-thunderbird2?
Resolution: --- → FIXED
Comment on attachment 217843 [details] [diff] [review] Updated patch adding this flag so we don't lose track of this.
Attachment #217843 - Flags: approval-branch-1.8.1?
Comment on attachment 217843 [details] [diff] [review] Updated patch I think this has baked long enough that we can take it on the branch.
Attachment #217843 - Flags: approval-branch-1.8.1? → approval-branch-1.8.1+
Keywords: fixed1.8.1
Target Milestone: --- → Thunderbird2.0
Flags: blocking-thunderbird2? → blocking-thunderbird2+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: