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)
Thunderbird
Account Manager
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird2.0
People
(Reporter: y.rouillard, Assigned: mscott)
Details
(Keywords: fixed1.8.1)
Attachments
(2 files, 2 obsolete files)
2.62 KB,
application/rdf+xml
|
Details | |
3.38 KB,
patch
|
Bienvenu
:
review+
mscott
:
approval-branch-1.8.1+
|
Details | Diff | Splinter Review |
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
Reporter | ||
Comment 1•19 years ago
|
||
This bug is part of a serie of bug I filled about bugs/feature in isp rdf files,
see:
https://bugzilla.mozilla.org/show_bug.cgi?id=328174
https://bugzilla.mozilla.org/show_bug.cgi?id=328175
https://bugzilla.mozilla.org/show_bug.cgi?id=328178
https://bugzilla.mozilla.org/show_bug.cgi?id=328180
Comment 2•19 years ago
|
||
Can you give more detail about what you tried? I would think something like setPageData(pageData, "identity", "fcc_folder", string) would do the trick.
Reporter | ||
Comment 3•19 years ago
|
||
I tried again and here is the best solution I found.
Reporter | ||
Updated•19 years ago
|
Attachment #214862 -
Flags: review?(bienvenu)
Reporter | ||
Comment 4•19 years ago
|
||
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)
Comment 5•19 years ago
|
||
that looks reasonable - do you have sample rdf file I can test quickly with?
Reporter | ||
Comment 6•19 years ago
|
||
Reporter | ||
Comment 7•19 years ago
|
||
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.
Comment 8•19 years ago
|
||
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...
Reporter | ||
Comment 9•19 years ago
|
||
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 10•19 years ago
|
||
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-
Reporter | ||
Comment 11•19 years ago
|
||
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?
Reporter | ||
Updated•19 years ago
|
Attachment #217843 -
Flags: review? → review?(bienvenu)
Comment 12•19 years ago
|
||
tools | js console will show you the js console. I'll try this patch now.
Comment 13•19 years ago
|
||
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+
Comment 14•19 years ago
|
||
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
Assignee | ||
Comment 15•19 years ago
|
||
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?
Assignee | ||
Comment 16•19 years ago
|
||
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+
Assignee | ||
Updated•19 years ago
|
Keywords: fixed1.8.1
Target Milestone: --- → Thunderbird2.0
Assignee | ||
Updated•19 years ago
|
Flags: blocking-thunderbird2? → blocking-thunderbird2+
You need to log in
before you can comment on or make changes to this bug.
Description
•