Move local folder containing tagged messages to IMAP account/folder, messages do not have (imap) labels/tags

NEW
Unassigned

Status

--
critical
7 years ago
7 months ago

People

(Reporter: Ulf.Zibis, Unassigned)

Tracking

(Blocks: 1 bug, {dataloss})

x86
Windows XP
dataloss
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0
Build ID: 20120420145725

Steps to reproduce:

Mark some mails in local folder with any of the 5 predefined tags.
Move the local folder to IMAP folder by mouse.



Actual results:

Colouring, indicating catchwords of contained mails, is lost.
This is reverse behaviour of already fixed bug 362989.


Expected results:

Catchwords should be conserved.
(Reporter)

Updated

7 years ago
Depends on: 362989

Comment 1

7 years ago
WADA, can you see this with IMAP?
Component: General → Networking: IMAP
Product: Thunderbird → MailNews Core
QA Contact: general → networking.imap
(In reply to Ulf Zibis from comment #0)
> Move the local folder to IMAP folder by mouse.

As for "Drag&Drop of folder between accounts", it's "folder copy" instead of "folder move".
What is your operation for "move folder by mouse"?

Tb's tag is defined in prefs.js.
  Example of Important : mailnews.tags.$label1.tag = Important
In local mail folder, tag($label1 if Important) set for a mail is saved in X-Mozilla-Keys: header.
  What is saved in X-Mozilla-Keys: header?
If IMAP folder, Tb's tag is saved as "keyword(user defined flag)" in Mbox at IMAP server via "store +Flag $label1" upon mail copy(==mail upload via append command), and is reflected to local mail's status via "fetch Flags" command. 
Can you get IMAP log? (see bug 402793 comment #28)
(Reporter)

Comment 3

7 years ago
(In reply to WADA from comment #2)
> (In reply to Ulf Zibis from comment #0)
> > Move the local folder to IMAP folder by mouse.
> As for "Drag&Drop of folder between accounts", it's "folder copy" instead of
> "folder move".
> What is your operation for "move folder by mouse"?
Yes, I "Drag&Drop"ed the folder. The folder was added to the destination IMAP folders and deleted from the source Local folders. In my understanding this is a "folder move".

> Tb's tag is defined in prefs.js.
>   Example of Important : mailnews.tags.$label1.tag = Important
red: user_pref("mailnews.tags.$label1.tag", "Wichtig");
blue: user_pref("mailnews.tags.$label4.tag", "Zu erledigen");

> In local mail folder, tag($label1 if Important) set for a mail is saved in
> X-Mozilla-Keys: header.
>   What is saved in X-Mozilla-Keys: header?
red: X-Mozilla-Keys: $label1
blue: X-Mozilla-Keys: $label4

> Can you get IMAP log? (see bug 402793 comment #28)
Should I use? :
> Win example : SET NSPR_LOG_MODULES=timestamp,nsHttp:5,nsSocketTransport:5,nsHostResolver:5
(Reporter)

Comment 4

7 years ago
For a new try, to save the flags, I have added 2 folders in Local + IMAP account:
- red
- blue
Then I have moved all red flagged mails to Local red folder and blue red flagged mails to Local blue folder.
After I have moved all mails from Local red folder to IMAP red folder and all mails from Local blue folder to IMAP blue folder.
Result: In IMAP red folder all mails are coloured red, but in IMAP blue folder all mails are coloured black --> strange!!
In IMAP red Mbox file: X-Mozilla-Keys: $label1
In IMAP blue Mbox file: X-Mozilla-Keys: $label4
No "keyword(user defined flag)" in Mbox
(In reply to Ulf Zibis from comment #4)
> After I have moved all mails from Local red folder to IMAP red folder and
> all mails from Local blue folder to IMAP blue folder.

It sounds "Drag&Drop of selected mails from a local mail folder to IMAP mail folder".
However, your following bug summary and answer is apparently for "Drag&Drop of mail folder".
(Your bug summary)
> After moving local folder (snip)
(Your Comment #3)
> > What is your operation for "move folder by mouse"?
> Yes, I "Drag&Drop"ed the folder. The folder was added to the destination IMAP > folders and deleted from the source Local folders. In my understanding this is > a "folder move".

Are you reporting funny phenomenon for you to this bug report at bugzilla.mozilla.org for which of next?
  "Drag&Drop of mail folder(s)", or "Drag&Drop of mails", or Both
(Reporter)

Comment 6

7 years ago
The bug report in general is about "Drag&Drop of mail folder(s)".
The funny phenomenon with "Drag&Drop of mails" is only mentioned as an aside observation, which may give additional information.

Anyway, as both actions are related, you could treat them in one bug report if you like.
Summary: After moving local folder coloured catchwords of contained mails have been lost → After moving local folder to IMAP folder, tags of contained mail messages are lost
Ulf, if you create your own custom tag (Tags > New Tag...) and apply it to some of the messages, then follow your steps for this bug, is the custom tag also lost?
Ulf ??
Severity: normal → critical
Keywords: dataloss
Whiteboard: [closeme 2012-09-15]
(Reporter)

Comment 9

7 years ago
Can do this next week.
(Reporter)

Comment 10

7 years ago
Now I have tested again with TB 15.
- I created a local folder and copied some mails into it.
- I created a new custom tag "Funny" in light blue.
- I tagged some mails with red, blue, violet and light blue and some with both.
- With mouse I dragged and dropped the whole folder into an IMAP folder.
I didn't hold Ctrl-key, no '+' was visible, so the folder should have been "moved", but to my surprise the origin was not "deleted" (When first testing with TB 12 I'm pretty sure that the origin was deleted, why I named the bug summary as such.
--> Result: In the destination IMAP folder none of the colours were visible, so the tags have been lost.

Then I deleted the destination folder + additionally from the trash, to try it once more with hold Shift-key to force the "move". This time the origin remained again. Bug?
--> Result: In the destination IMAP folder now all of the colours were visible, so the tags have been saved. Is this, because I did it 2nd time?

A 3rd try reproduced the 2nd result.
(Reporter)

Updated

7 years ago
Whiteboard: [closeme 2012-09-15]

Updated

6 years ago
Blocks: 432710
(Reporter)

Updated

5 years ago
Depends on: 543963
Does this happen with all ISPs, or only the gmx account?
Flags: needinfo?(Ulf.Zibis)
(Reporter)

Comment 12

8 months ago
I tried again with TB 52.8.0 on Ubuntu with 3 IMAP Providers:
- imap.gmx.net
- imap.1und1.de
- wp215.webpack.hosteurope.de
I always got the same result:
- "move" folder from local to IMAP
-> all mails in folder are black, but in header e.g.: X-Mozilla-Keys: $label1
- delete folder in IMAP
- delete folder in IMAP trash
- "move" same folder again from local to IMAP
-> all mails in folder are colored correctly.
Flags: needinfo?(Ulf.Zibis)
I can reproduce this - moving a FOLDER from local to imap does retain
 X-Mozilla-Keys: $labelN
but the messages in imap folder are not colored.

Moving individual messages works fine
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: After moving local folder to IMAP folder, tags of contained mail messages are lost → Move local folder containing tagged messages to IMAP account/folder, messages do not have (imap) labels/tags
You need to log in before you can comment on or make changes to this bug.