Closed Bug 49228 Opened 24 years ago Closed 23 years ago

Upgrading from 4.x IMAP filter with '&' folder name in name does not work

Categories

(MailNews Core :: Backend, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
Future

People

(Reporter: sfraser_bugs, Assigned: naving)

Details

(Whiteboard: [nsbeta1+ 2/13])

I have an IMAP folder called "Components & Tools" (no quotes) which works fine in 
4.x. Mozilla shows it correctly, but throws errors about 'the mailbox does not 
exist' when filters attempt to move mail to that folder.
QA Contact: lchiang → huang
This bug must log regrading to IMAP "filter" problem since I have no problem for 
creating the folder name with '&'.

I have created 'component&tools' & 'family & relative' both folders, they both 
work fine.
----------------------------------------------------------------
165[35a88b0]: nsmail-1:A:SendData: 4 create "component&-tools"
165[35a88b0]: nsmail-1:A:CreateNewLineFromSocket: 4 OK Completed
165[35a88b0]: nsmail-1:A:SendData: 5 subscribe "component&-tools"
165[35a88b0]: nsmail-1:A:CreateNewLineFromSocket: 5 OK Completed
165[35a88b0]: nsmail-1:A:SendData: 6 list "" "component&-tools"
165[35a88b0]: nsmail-1:A:CreateNewLineFromSocket: * LIST (\HasNoChildren) "/" 
component&-tools
165[35a88b0]: nsmail-1:A:CreateNewLineFromSocket: 6 OK Completed
------------------------------------------------------------------------------

------------------------------------------------------------------------
262[351e100]: nsmail-1:S-INBOX:SendData: 9 create "family &- relative"
262[351e100]: nsmail-1:S-INBOX:CreateNewLineFromSocket: 9 OK Completed
262[351e100]: nsmail-1:S-INBOX:SendData: 10 subscribe "family &- relative"
262[351e100]: nsmail-1:S-INBOX:CreateNewLineFromSocket: 10 OK Completed
262[351e100]: nsmail-1:S-INBOX:SendData: 11 list "" "family &- relative"
262[351e100]: nsmail-1:S-INBOX:CreateNewLineFromSocket: * LIST (\HasNoChildren) 
"/" "family &- relative"
262[351e100]: nsmail-1:S-INBOX:CreateNewLineFromSocket: 11 OK Completed
---------------------------------------------------------------------------

Changing the summary from "IMAP folder with '&' name in name does not work"
to "IMAP filter with '&' folder name in name does not work" and change QA 
contact to Laurel, ccing me.
QA Contact: huang → laurel
Summary: IMAP folder with '&' in name does not work → IMAP filter with '&' folder name in name does not work
Simon any chance you can generate an imap log file when you get some mail that
gets filtered to this folder?

The nspr_log_modules name is IMAP:5....
New filter created in 6.0 for IMAP filter to IMAP folder "This & That" works. 
Fails on migrated filter.

The filter I created in 6.0 shows the folder name as "This &- That" whereas the
migrated filter shows "This & That".
My IMAP filters were copied by hand from 4.x
sigh. some uri or utf8 escaping problem.
Assignee: mscott → bienvenu
copying by hand shouldn't matter - profile migration doesn't upgrade filters - 
loading/running them for the first time upgrades them. There was some bizarre 
case where it mattered, but I doubt this is one of them.
Keywords: nsbeta3
- per mail triage
Whiteboard: [nsbeta3-]
Status: NEW → ASSIGNED
adding mail3 keyword
Keywords: mail3
changing priorities
Priority: P3 → P2
marking nsbeta1+ and moving to mozilla0.8
Keywords: nsbeta3nsbeta1
Priority: P2 → P3
Whiteboard: [nsbeta3-] → [nsbeta1+]
Target Milestone: --- → mozilla0.8
moving to mozilla0.9
Target Milestone: mozilla0.8 → mozilla0.9
The fix is probably to change the code that upgrades old filters,
nsMsgFilter::ConvertMoveToFolderValue, to convert the target filter value to
modified utf7 before calling FindSubFolder.
Summary: IMAP filter with '&' folder name in name does not work → Upgrading from 4.x IMAP filter with '&' folder name in name does not work
marking nsbeta1- and moving to future milestone.
Keywords: nsbeta1nsbeta1-
Whiteboard: [nsbeta1+] → [nsbeta1+ 2/13]
Target Milestone: mozilla0.9 → Future
Changing platform
Hardware: All → Macintosh
OS: Mac System 8.5 → All
Hardware: Macintosh → All
Navin's been working in this area - he might have already fixed this, actually.
Assignee: bienvenu → naving
Status: ASSIGNED → NEW
This should have been fixed as a result of fixing bug 62437
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
OK using oct3 commerical 0.9.4. branch build: Mac OS 9.1, linux rh6.2, win98.
Since underlying bug was verified on both trunk and branch, I'm going to mark
this one verified.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.