[Desktop-packages] [Bug 214366] Re: Can't delete a folder if Trash already contains a folder of the same name

2014-10-23 Thread Douglas Royds
@Acelists
This Launchpad defect was raised on IMAP in the first place. Bugzilla 66763 is 
a different thing.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Fix Released
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-10-23 Thread Tero-t-nieminen
(In reply to :aceman from comment #144)
> See comment 142. If you see the problem on IMAP, please open a new bug. We
> knowingly fixed it only for POP3/Local accounts in this bug.

Ok, will do...

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Fix Released
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-10-22 Thread Tero-t-nieminen
I Don't know if this is the same old bug again (or something completely
new), but today I noticed that my TB 31.2.0 under RHEL6.6 (64-bit)
didn't delete an IMAP folder (In Exchange) if a folder with the same
name already existed in the Trash. It just silently didn't delete it,
until I renamed the same name folder in Trash to something else. In this
case the folder to be deleted was in "IMAP:/.../Archive/", as if that
should make any difference.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Fix Released
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-10-22 Thread Acelists
See comment 142. If you see the problem on IMAP, please open a new bug.
We knowingly fixed it only for POP3/Local accounts in this bug.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Fix Released
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366] Re: Can't delete a folder if Trash already contains a folder of the same name

2014-09-02 Thread Bug Watch Updater
** Changed in: thunderbird
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Fix Released
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-09-02 Thread Acelists
Other types of accounts (other than "local" ones), e.g. IMAP need
testing and if they don't work then they need a bug.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Fix Released
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-09-02 Thread Vseerror
Bug 125864 is open, Trash does not maintain deleted folder's hierarchy
location

Is anything else left that needs a new bug report?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Fix Released
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-09-01 Thread Acelists
Yes, I am currently not working on the remaining parts. You can close
this for ease of tracking in which TB version this went.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-08-27 Thread Vseerror
should we not do the rest in a followup bug?  ref: [leave open after
checkin]

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-07-06 Thread Euryalus-0
*** Bug 998862 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-03-25 Thread Alexandrevicenzi
*** Bug 987608 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-03-25 Thread Ryanvm
https://hg.mozilla.org/comm-central/rev/3320c766cf5b

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-03-17 Thread L-bernh5rd-s
Why don't You allow double/multiple entries, may be 
- add the delete timestamp
- add the different parent folders

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-03-14 Thread Acelists
Created attachment 8390810
patch v7 - local folders

Thanks, converted the function to bool.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-03-14 Thread Standard8
Comment on attachment 8390075
patch v6 - local folders

Review of attachment 8390075:
-

::: mailnews/base/util/nsMsgDBFolder.cpp
@@ +3843,5 @@
>  
> +nsresult
> +nsMsgDBFolder::ConfirmAutoFolderRename(nsIMsgWindow *msgWindow,
> +   const nsString aOldName,
> +   const nsString aNewName,

These should be const nsString &... to avoid unnecessary string copies.

@@ +3846,5 @@
> +   const nsString aOldName,
> +   const nsString aNewName,
> +   bool *confirmed)
> +{
> +  NS_ENSURE_ARG_POINTER(confirmed);

It is possible that confirmed never gets set, so you might then end up
with a bad value.

Additionally I don't really see the point of returning nsresult here,
when you're already warning for errors, and you treat a failure as not
confirmed anyway.

So I think it would be simpler just to change this function to return
the bool.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-03-13 Thread Acelists
Created attachment 8390075
patch v6 - local folders

Oh, looks like this got all the reviews. Marking for superreview if one
is needed for the changed idl.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-25 Thread Josiah-l
Comment on attachment 8377817
patch v5

Review of attachment 8377817:
-

I'm good with:

A subfolder with the name '%$1S' already exists in the folder '%2$S'.
Would you like to move this folder using the new name '%3$S'?

(So sans the 'of' part of Neil's suggestion)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-25 Thread Standard8
(In reply to :aceman from comment #100)
> (In reply to :Irving Reid from comment #90)
> > (In reply to :aceman from comment #89)
> > > Can't bug 765926 cover maildir by itself?
> > As far as I know, maildir is mostly untested aside from what's discussed in
> > bug 765926. I don't know whether the long term plan is to run the entire
> > suite twice, once for mbox and once for maildir - if so then yes, we'd be
> > covered. That's a huge waste of testing run time, but might be easier than
> > refactoring our test suite into separate tests for the higher level and the
> > store.
> I am sure we or somebody else will run the whole testsuite under maildir in
> the future. I understood bug 765926 as a metabug to fix found issues. If we
> do not have any other individual tests running both store versions NOW, I do
> not see a reason implementing it in this test (it would be an anomaly). But
> it would probably not be hard to add, so please decide :)

I know David implemented some maildir tests. I can't remember if they
ran both twice or not, or if it was just some additional tests in
places.

I believe the intent was to do a complete switch over at some stage, and
hence this wouldn't have been running the suites twice (although there
would likely be something vague in the middle where both existed, and we
probably would need the tests).

I would suggest having a quick look around. For now, mbox should be
enough I think.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-23 Thread Neil-httl
(In reply to aceman from comment #125)
> I knew octal literals are deprecated so somehow I extended that to hex too.
> Thanks.

The only reason old-style octal literals are deprecated is because it's
too easy to confuse them with decimal literals e.g. 160 - 060 != 100.
Hex literals and new-style octal literals (0o60) are fine, of course.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-23 Thread Neil-httl
Comment on attachment 8377817
patch v5

>+  rv = bundle->FormatStringFromName(MOZ_UTF16("confirmDuplicateFolderRename"),
>+formatStrings, 3, 
>getter_Copies(confirmString));
If you'd used MOZ_ARRAY_LENGTH(formatStrings) it would have saved you the 
trouble of changing it each time ;-)

>+  } catch (e if e.result == 0x8055001a) {
>+// catch only the expected error, otherwise fail the test.
Nice!

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-21 Thread Acelists
Comment on attachment 8377817
patch v5

Review of attachment 8377817:
-

Josiah, please see the discussion about the wording of the message and
decide on ui-r :)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-20 Thread Irving
Comment on attachment 8377817
patch v5

Review of attachment 8377817:
-

(In reply to n...@parkwaycc.co.uk from comment #124)
> (In reply to aceman from comment #123)
> > (In reply to comment #122)
> > > (From update of attachment 8374439)
> > Is this issue really that important that we make tens of comments in such a
> > long thread? It is not a perf critical path.
> 
> I'm after readability here, not perf, in particular I don't like breaking at
> the end of a for loop, because it's easy to miss that this skips the
> increment.
> 
> > > >+  try {
> > > >+root.copyFolderLocal(folderDeleted3, true, null, null);
> > > >+do_throw("copyFolderLocal() should have failed here due to user 
> > > >prompt!");
> > > I'm not sure why you're trying to throw from inside this try block, but I
> > > don't know enough about writing tests to know whether there's a better 
> > > way.
> > I expect .copyFolderLocal to throw and be catched by my catch. But if it
> > does not throw (wrong behaviour), the next throw is not catched and fails
> > the test.
> Sure, but my question is is it safe to put do_throw in a try block?

You can call do_throw() inside a try; whether you catch it or not it
still registers as a test failure (see https://developer.mozilla.org/en-
US/docs/Mozilla/QA/Writing_xpcshell-
based_unit_tests#XPCShell_test_utility_functions)

> Sorry, I hadn't seen his wording. How about:
> A subfolder with the name '%$1S' already exists in the folder '%2$S'. Would
> you like to move this folder using the new name of '%3$S'?
> (I don't really want to use a / because that's an implementation detail.)

This is OK with me; whoever has ui-r? gets final say. r+ aside from that
wording change.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-18 Thread Neil-httl
(In reply to aceman from comment #123)
> (In reply to comment #122)
> > (From update of attachment 8374439)
> Is this issue really that important that we make tens of comments in such a
> long thread? It is not a perf critical path.

I'm after readability here, not perf, in particular I don't like
breaking at the end of a for loop, because it's easy to miss that this
skips the increment.

> > >+  try {
> > >+root.copyFolderLocal(folderDeleted3, true, null, null);
> > >+do_throw("copyFolderLocal() should have failed here due to user 
> > >prompt!");
> > I'm not sure why you're trying to throw from inside this try block, but I
> > don't know enough about writing tests to know whether there's a better way.
> I expect .copyFolderLocal to throw and be catched by my catch. But if it
> does not throw (wrong behaviour), the next throw is not catched and fails
> the test.
Sure, but my question is is it safe to put do_throw in a try block?

> > >+  } catch (e) {
> > >+do_check_eq(e.result, parseInt("0x8055001a", 16));
> > Why not just write 0x8055001a?
> Because e.result returns the code in decimal. Is there other method of 'e' I
> can use?

nsIException.idl (if that's the right one) says that result is an
unsigned long, not a decimal. So I don't see why you can't compare it to
any other integer.

> > >+confirmDuplicateFolderRename=A folder with that name already exists under 
> > >folder '%1$S'. Would you like to copy the folder under a new name of 
> > >'%2$S'?
> > A subfolder with that name already exists in the folder '%1$S'. Would you
> > like to move the folder using the new name of '%2$S'?
> 
> Irving proposed some other wording with more arguments. So what should I do
> now?

Sorry, I hadn't seen his wording. How about:
A subfolder with the name '%$1S' already exists in the folder '%2$S'. Would you 
like to move this folder using the new name of '%3$S'?
(I don't really want to use a / because that's an implementation detail.)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-18 Thread Acelists
Created attachment 8377817
patch v5

> > > >+  try {
> > > >+root.copyFolderLocal(folderDeleted3, true, null, null);
> > > >+do_throw("copyFolderLocal() should have failed here due to user 
> > > >prompt!");
> > > I'm not sure why you're trying to throw from inside this try block, but I
> > > don't know enough about writing tests to know whether there's a better 
> > > way.
> > I expect .copyFolderLocal to throw and be catched by my catch. But if it
> > does not throw (wrong behaviour), the next throw is not catched and fails
> > the test.
> Sure, but my question is is it safe to put do_throw in a try block?
I use the same pattern in test_fileName.js. I don't know if it is safe enough. 
I now changed the catch a bit to only catch the specific exception. Is is safer 
now?

> > > >+  } catch (e) {
> > > >+do_check_eq(e.result, parseInt("0x8055001a", 16));
> > > Why not just write 0x8055001a?
> > Because e.result returns the code in decimal. Is there other method of 'e' I
> > can use?
> nsIException.idl (if that's the right one) says that result is an unsigned
> long, not a decimal. So I don't see why you can't compare it to any other
> integer.
I knew octal literals are deprecated so somehow I extended that to hex too. 
Thanks.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-16 Thread Acelists
(In reply to n...@parkwaycc.co.uk from comment #122)
> Comment on attachment 8374439
> WIP patch 4
> 
> >+bool containsChild = true;
> >+uint32_t i;
> >+for (i = 1; ; i++) {
> >+  newFolderName.Assign(folderName);
> >+  if (i > 1) {
> >+// This could be localizable but Toolkit is fine without it, see
> >+// mozilla/toolkit/content/contentAreaUtils.js::uniqueFile()
> >+newFolderName.Append('(');
> >+newFolderName.AppendInt(i);
> >+newFolderName.Append(')');
> >+  }
> >+  rv = ContainsChildNamed(newFolderName, &containsChild);
> >+  if (NS_WARN_IF(NS_FAILED(rv))) {
> >+return rv;
> >+  }
> >+  if (!containsChild)
> >+break;
> >+}
> Did you mean for (i = 1; containsChild; i++) ? Note that if you do this then
> i ends the loop being at least 2, so you'd need to change the subsequent
> check. Alternatively, you would have to rewrite the loop something like this
> (sorry if this is what the code did in one of the earlier patches):
> 
> uint32_t i = 1;
> newFolderName.Assign(folderName);
> for (;;) {
>   bool containsChild;
>   rv = ContainsChildNamed(newFolderName, &containsChild);
>   NS_ENSURE_SUCCESS(rv, rv);
>   if (!containsChild)
> break;
> 
>   i++;
>   newFolderName.Assign(folderName);
>   newFolderName.Append('(');
>   newFolderName.AppendInt(i);
>   newFolderName.Append(')');
> }
Yes, this is what the previous version did, just with a 'while'.
Is this issue really that important that we make tens of comments in such a 
long thread? It is not a perf critical path.

> >+  try {
> >+root.copyFolderLocal(folderDeleted3, true, null, null);
> >+do_throw("copyFolderLocal() should have failed here due to user 
> >prompt!");
> I'm not sure why you're trying to throw from inside this try block, but I
> don't know enough about writing tests to know whether there's a better way.
I expect .copyFolderLocal to throw and be catched by my catch. But if it does 
not throw (wrong behaviour), the next throw is not catched and fails the test.

> 
> >+  } catch (e) {
> >+do_check_eq(e.result, parseInt("0x8055001a", 16));
> Why not just write 0x8055001a?
Because e.result returns the code in decimal. Is there other method of 'e' I 
can use?

> >+confirmDuplicateFolderRename=A folder with that name already exists under 
> >folder '%1$S'. Would you like to copy the folder under a new name of '%2$S'?
> A subfolder with that name already exists in the folder '%1$S'. Would you
> like to move the folder using the new name of '%2$S'?

Irving proposed some other wording with more arguments. So what should I
do now?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-15 Thread Neil-httl
Comment on attachment 8374439
WIP patch 4

>+bool containsChild = true;
>+uint32_t i;
>+for (i = 1; ; i++) {
>+  newFolderName.Assign(folderName);
>+  if (i > 1) {
>+// This could be localizable but Toolkit is fine without it, see
>+// mozilla/toolkit/content/contentAreaUtils.js::uniqueFile()
>+newFolderName.Append('(');
>+newFolderName.AppendInt(i);
>+newFolderName.Append(')');
>+  }
>+  rv = ContainsChildNamed(newFolderName, &containsChild);
>+  if (NS_WARN_IF(NS_FAILED(rv))) {
>+return rv;
>+  }
>+  if (!containsChild)
>+break;
>+}
Did you mean for (i = 1; containsChild; i++) ? Note that if you do this then i 
ends the loop being at least 2, so you'd need to change the subsequent check. 
Alternatively, you would have to rewrite the loop something like this (sorry if 
this is what the code did in one of the earlier patches):

uint32_t i = 1;
newFolderName.Assign(folderName);
for (;;) {
  bool containsChild;
  rv = ContainsChildNamed(newFolderName, &containsChild);
  NS_ENSURE_SUCCESS(rv, rv);
  if (!containsChild)
break;

  i++;
  newFolderName.Assign(folderName);
  newFolderName.Append('(');
  newFolderName.AppendInt(i);
  newFolderName.Append(')');
}

>+  try {
>+root.copyFolderLocal(folderDeleted3, true, null, null);
>+do_throw("copyFolderLocal() should have failed here due to user prompt!");
I'm not sure why you're trying to throw from inside this try block, but I don't 
know enough about writing tests to know whether there's a better way.

>+  } catch (e) {
>+do_check_eq(e.result, parseInt("0x8055001a", 16));
Why not just write 0x8055001a?

>+confirmDuplicateFolderRename=A folder with that name already exists under 
>folder '%1$S'. Would you like to copy the folder under a new name of '%2$S'?
A subfolder with that name already exists in the folder '%1$S'. Would you like 
to move the folder using the new name of '%2$S'?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-13 Thread Acelists
(In reply to :Irving Reid from comment #120)
> Does this message come up with folder copies and moves, or only with moves?
> If it's only move, I suggest changing the wording to:
> 
> A folder named %1%S already exists in %2$S. Do you wish to move the folder
> to %2$S / %3$S?

In the change to nsLocalMailFolder.cpp it can be seen I try to do rename
only on move (we should not do a copy in CopyFolderLocal() as said
earlier, but I put an if there to be sure).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-13 Thread Irving
Comment on attachment 8374439
WIP patch 4

Review of attachment 8374439:
-

::: mail/locales/en-US/chrome/messenger/messenger.properties
@@ +58,5 @@
>  sendingUnsent=Sending Unsent Messages
>  
>  folderExists=A folder with that name already exists. Please enter a 
> different name.
> +# LOCALIZATION NOTE(confirmDuplicateFolderRename): %1$S is parent folder 
> name, %2$S is proposed child folder name
> +confirmDuplicateFolderRename=A folder with that name already exists under 
> folder '%1$S'. Would you like to copy the folder under a new name of '%2$S'?

Does this message come up with folder copies and moves, or only with
moves? If it's only move, I suggest changing the wording to:

A folder named %1%S already exists in %2$S. Do you wish to move the
folder to %2$S / %3$S?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-12 Thread Acelists
Created attachment 8374439
WIP patch 4

Thanks, addressed all comments and added a new test segment to check for
the prompt when moving duplicate folder outside Trash.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-11 Thread M-wada-7
*** Bug 305728 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-11 Thread Irving
Comment on attachment 8371072
WIP patch 3

Review of attachment 8371072:
-

Nice test.

::: mailnews/local/src/nsLocalMailFolder.cpp
@@ +1723,5 @@
>  return NS_MSG_ERROR_COPY_FOLDER_ABORTED;
>  }
>}
> +
> +  nsAutoString newFolderName(EmptyString());

Shouldn't need the EmptyString() initializer; the constructor makes an
empty string by default.

@@ +1726,5 @@
> +
> +  nsAutoString newFolderName(EmptyString());
> +  nsAutoString folderName;
> +  rv = srcFolder->GetName(folderName);
> +  NS_ENSURE_SUCCESS(rv, rv);

Mozilla core code is deprecating NS_ENSURE_SUCCESS, because the macro
hides control flow - see
https://groups.google.com/d/topic/mozilla.dev.platform/1clMLuuhtWQ/discussion
. Use

if (NS_WARN_IF(NS_FAILED(rv))) {
  return rv;
}

if the condition deserves a warning message (as this one does)

::: mailnews/local/test/unit/test_nsIMsgLocalMailFolder.js
@@ +50,5 @@
> +  do_check_eq(trash.numSubFolders, 3);
> +  // The folder should be automatically renamed as the same name already is 
> in Trash
> +  // but the subfolder should be untouched.
> +  let folderDeleted3 = trash.getChildNamed("folder(3)");
> +  let subfolderDeleted = folderDeleted3.getChildNamed("subfolder");

do_check_true(trash.containsChildNamed("folder(3)");
do_check_true(trash.getChildNamed("folder(3)").containsChildNamed("subfolder"));

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-10 Thread Acelists
(In reply to Ulf Zibis from comment #114)
> (In reply to Josiah Bruner [:JosiahOne] from comment #111)
> > No. The idea here is very similar to the common "priming read" concept
> > taught in introductory CS courses.
> In advanced CS practice I learned: No code duplicates, because if there
> comes a change along, one of the duplicates could be overseen.
Exactly.

> 
> > newFolderName.Assign(folderName);
> > bool containsChild = true;  // no need to preset it to true
> > int counter = 2;// yes, better than starting with 1 as before

But later below the loop I check whether i (counter) > 1 so the variable
exists outside the loop and value of 1 is also significant to the code.

So what about this:
uint32_t i;
for (i=1;;i++)) {
  newFolderName.Assign(folderName);
  if (i>1) {
newFolderName.AppendLiteral("(");
newFolderName.AppendInt(i);
newFolderName.AppendLiteral(")");
  }
  rv = ContainsChildNamed(newFolderName, &containsChild);
  NS_ENSURE_SUCCESS(rv, rv);
  if (!containsChild)
break;
}

Of course, instead of (i>1) test later on we could do
!newFolderName.Equals(folderName) but that is probably much more
expensive.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-10 Thread Acelists
(In reply to n...@parkwaycc.co.uk from comment #107)
> Comment on attachment 8371072
> WIP patch 3
> 
> >+newFolderName.Assign(folderName);
> >+bool containsChild = true;
> >+uint32_t i = 1;
> >+while (containsChild) {
> >+  rv = ContainsChildNamed(newFolderName, &containsChild);
> >+  NS_ENSURE_SUCCESS(rv, rv);
> >+  if (!containsChild)
> >+break;
> >+  // This could be localizable but Toolkit is fine without it, see
> >+  // mozilla/toolkit/content/contentAreaUtils.js::uniqueFile()
> >+  i++;
> >+  newFolderName.Assign(folderName);
> >+  newFolderName.AppendLiteral("(");
> >+  newFolderName.AppendInt(i);
> >+  newFolderName.AppendLiteral(")");
> >+}
> bool containsChild;
> rv = ContainsChildNamed(folderName, &containsChild);
> NS_ENSURE_SUCCESS(rv, rv);
> while (containsChild) {
>   i++;
>   newFolderName.Assign(folderName);
>   newFolderName.AppendLiteral("(");
>   newFolderName.AppendInt(i);
>   newFolderName.AppendLiteral(")");
>   rv = ContainsChildNamed(newFolderName, &containsChild);
>   NS_ENSURE_SUCCESS(rv, rv);
> }

Well, I always try to avoid the duplication of the main logic (rv =
ContainsChildNamed(folderName, &containsChild);) that is why I did not
write it this way :)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-09 Thread Josiah-l
(In reply to Ulf Zibis from comment #108)
> (In reply to n...@parkwaycc.co.uk from comment #107)
> 
> Hi, why not using for statements:
> 
> > >+newFolderName.Assign(folderName);
> > >+bool containsChild = true;
> > >+for (uint32_t i=2; ; i++) {
> > >+  rv = ContainsChildNamed(newFolderName, &containsChild);
> > >+  NS_ENSURE_SUCCESS(rv, rv);
> > >+  if (!containsChild)
> > >+break;
> > >+  // This could be localizable but Toolkit is fine without it, see
> > >+  // mozilla/toolkit/content/contentAreaUtils.js::uniqueFile()
> > >+  newFolderName.Assign(folderName);
> > >+  newFolderName.AppendLiteral("(");
> > >+  newFolderName.AppendInt(i);
> > >+  newFolderName.AppendLiteral(")");
> > >+}

For is never used for such a purpose. That's the point of a
while(condition).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-09 Thread Josiah-l
No. The idea here is very similar to the common "priming read" concept
taught in introductory CS courses. Following such a pattern the code
here should be:

newFolderName.Assign(folderName);
bool containsChild = true;
int counter = 2;

//Priming Read
rv = ContainsChildNamed(newFolderName, &containsChild);
NS_ENSURE_SUCCESS(rv, rv);

while (containsChild) {
  // This could be localizable but Toolkit is fine without it, see
  // mozilla/toolkit/content/contentAreaUtils.js::uniqueFile()
  newFolderName.Assign(folderName);
  newFolderName.AppendLiteral("(");
  newFolderName.AppendInt(i);
  newFolderName.AppendLiteral(")");

  //Read new data
  rv = ContainsChildNamed(newFolderName, &containsChild);
  NS_ENSURE_SUCCESS(rv, rv);
}

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-09 Thread UlfZibis
(In reply to n...@parkwaycc.co.uk from comment #107)

Hi, why not using for statements:

> >+newFolderName.Assign(folderName);
> >+bool containsChild = true;
> >+for (uint32_t i=2; ; i++) {
> >+  rv = ContainsChildNamed(newFolderName, &containsChild);
> >+  NS_ENSURE_SUCCESS(rv, rv);
> >+  if (!containsChild)
> >+break;
> >+  // This could be localizable but Toolkit is fine without it, see
> >+  // mozilla/toolkit/content/contentAreaUtils.js::uniqueFile()
> >+  newFolderName.Assign(folderName);
> >+  newFolderName.AppendLiteral("(");
> >+  newFolderName.AppendInt(i);
> >+  newFolderName.AppendLiteral(")");
> >+}

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-09 Thread UlfZibis
Little sophisticated:

>+newFolderName.Assign(folderName);
>+for (uint32_t i=2, containsChild; ; i++) {
>+  rv = ContainsChildNamed(newFolderName, &containsChild);
>+  NS_ENSURE_SUCCESS(rv, rv);
>+  if (!containsChild)
>+break;
>+  // This could be localizable but Toolkit is fine without it, see
>+  // mozilla/toolkit/content/contentAreaUtils.js::uniqueFile()
>+  newFolderName.Assign(folderName);
>+  newFolderName.AppendLiteral("(");
>+  newFolderName.AppendInt(i);
>+  newFolderName.AppendLiteral(")");
>+}

Or really type clean:
>+for (uint32_t i=2; ; i++) {
>+  bool containsChild;
>+  rv = ContainsChildNamed(newFolderName, &containsChild);
...

I'm not sure, if newFolderName and rv also could be drawn into the loop,
are they used outside?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-09 Thread UlfZibis
IMHO:
1. while(condition) is only appropriate, if the condition is determined outside 
the loop.
2. define variables only in the scope, where they are used.
3. for(...) is appropriate if there is a counting variable, which is only used 
inside the loop
4. If you look closer, in your code snippet you could fairly use while(true) 
and define containsChild inside the loop.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-09 Thread Neil-httl
Comment on attachment 8371072
WIP patch 3

>+  nsAutoString newFolderName(EmptyString());
[Strings default to empty...]

>+while (containsChild) {
>+  rv = ContainsChildNamed(newFolderName, &containsChild);
>+  NS_ENSURE_SUCCESS(rv, rv);
>+  if (!containsChild)
>+break;
[Weird use of loop condition.]

>+  newFolderName.AppendLiteral("(");
[Could use Append('(');]

>+confirmDuplicateFolderRename=A folder with that name already exists. Would 
>you like to copy the folder under a different name?
You should include the suggested new folder name in the message, otherwise the 
user will expect to choose the new name.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-09 Thread Neil-httl
Comment on attachment 8371072
WIP patch 3

>+newFolderName.Assign(folderName);
>+bool containsChild = true;
>+uint32_t i = 1;
>+while (containsChild) {
>+  rv = ContainsChildNamed(newFolderName, &containsChild);
>+  NS_ENSURE_SUCCESS(rv, rv);
>+  if (!containsChild)
>+break;
>+  // This could be localizable but Toolkit is fine without it, see
>+  // mozilla/toolkit/content/contentAreaUtils.js::uniqueFile()
>+  i++;
>+  newFolderName.Assign(folderName);
>+  newFolderName.AppendLiteral("(");
>+  newFolderName.AppendInt(i);
>+  newFolderName.AppendLiteral(")");
>+}
bool containsChild;
rv = ContainsChildNamed(folderName, &containsChild);
NS_ENSURE_SUCCESS(rv, rv);
while (containsChild) {
  i++;
  newFolderName.Assign(folderName);
  newFolderName.AppendLiteral("(");
  newFolderName.AppendInt(i);
  newFolderName.AppendLiteral(")");
  rv = ContainsChildNamed(newFolderName, &containsChild);
  NS_ENSURE_SUCCESS(rv, rv);
}

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-09 Thread Josiah-l
Err. Except in that while statement there should be a:
  "counter++"
line right before we read new data.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-09 Thread UlfZibis
(In reply to Josiah Bruner [:JosiahOne] from comment #111)
> No. The idea here is very similar to the common "priming read" concept
> taught in introductory CS courses.
In advanced CS practice I learned: No code duplicates, because if there comes a 
change along, one of the duplicates could be overseen.

> Following such a pattern the code here should be:
If there is no other pattern with higher priority ;-)

> newFolderName.Assign(folderName);
> bool containsChild = true;  // no need to preset it to true
> int counter = 2;// yes, better than starting with 1 as before

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-08 Thread Acelists
(In reply to Mark Banner (:standard8) from comment #102)
> Quick Q: Has someone tested what happens in the undo case? Does the folder
> get named to what it was previously.
Not sure what I am doing wrong but I get no option to Undo after 
drag-and-dropping a folder. Undo is disabled in Edit menu. If I copy a message 
(using the context menu and Copy to, I get Undo possibility).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Acelists
(In reply to Mark Banner (:standard8) from comment #102)
> Quick Q: Has someone tested what happens in the undo case? Does the folder
> get named to what it was previously.

I'll check that :)

We'd like to know from you if you have any idea about comment 88, 90 and
100.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Acelists
(In reply to :Irving Reid from comment #90)
> (In reply to :aceman from comment #89)
> > Can't bug 765926 cover maildir by itself?
> As far as I know, maildir is mostly untested aside from what's discussed in
> bug 765926. I don't know whether the long term plan is to run the entire
> suite twice, once for mbox and once for maildir - if so then yes, we'd be
> covered. That's a huge waste of testing run time, but might be easier than
> refactoring our test suite into separate tests for the higher level and the
> store.
I am sure we or somebody else will run the whole testsuite under maildir in the 
future. I understood bug 765926 as a metabug to fix found issues. If we do not 
have any other individual tests running both store versions NOW, I do not see a 
reason implementing it in this test (it would be an anomaly). But it would 
probably not be hard to add, so please decide :)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Irving
Comment on attachment 8370331
WIP patch 2

Review of attachment 8370331:
-

I'm OK with this approach. I'd like to see test cases for both a single
folder and a nested folder - for example:

make folder A
move A to trash
make new A
move A to trash
make new A
make new A/B
move A to trash
make sure trash has A and A-1 and A-2 and A-2/B

We don't need to test all those combinations for every message store
type, but we should at least test the copyFolder(...aNewName) parameter
works once on each store type.

::: mailnews/local/src/nsLocalMailFolder.cpp
@@ +1732,5 @@
> +  while (1) {
> +rv = CheckIfFolderExists(newFolderNameUnderTrash, this, NULL);
> +if (rv == NS_MSG_FOLDER_EXISTS) {
> +  newFolderNameUnderTrash.Assign(folderName);
> +  newFolderNameUnderTrash.AppendLiteral("-"); // do we want this 
> localizable? "-"

I don't think this needs to be localizable.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Neil-httl
(In reply to aceman from comment #81)
> Neil is this still a wrong place to do it and can you propose a better one
> that David Bienvenu was talking about?
Well, as I see it there are two options:
1. Make moving a folder automatically rename if the destination already exists, 
but allow copies to continue to merge the folders. (This was a lifesaver for me 
when I was moving mail between two accounts and hadn't provided sufficient 
quota on the destination account first.) Also make this work for IMAP.
2. Propagate the optional destination folder name throughout the mailnews 
codebase, including the copy service and the imap service. Then you would 
update the two implementations of DeleteSubFolders to handle the duplicate 
folder name case.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Acelists
(In reply to :aceman from comment #93)
> (In reply to n...@parkwaycc.co.uk from comment #92)
> > Well, as I see it there are two options:
> > 1. Make moving a folder automatically rename if the destination already
> > exists, but allow copies to continue to merge the folders. (This was a
> > lifesaver for me when I was moving mail between two accounts and hadn't
> > provided sufficient quota on the destination account first.) Also make this
> > work for IMAP.
> In which case does copy merge folders already?
> 
In nsMsgLocalMailFolder::CopyFolder it seems when we are moving folder then it 
calls CopyFolderLocal (which I am touching). If we are copying then it calls 
CopyFolderAcrossServer (which I do not touch). So if CopyFolderAcrossServer 
merges, then all is fine. Is that what you meant?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Acelists
(In reply to n...@parkwaycc.co.uk from comment #92)
> Well, as I see it there are two options:
> 1. Make moving a folder automatically rename if the destination already
> exists, but allow copies to continue to merge the folders. (This was a
> lifesaver for me when I was moving mail between two accounts and hadn't
> provided sufficient quota on the destination account first.) Also make this
> work for IMAP.
In which case does copy merge folders already?

> 2. Propagate the optional destination folder name throughout the mailnews
> codebase, including the copy service and the imap service. Then you would
> update the two implementations of DeleteSubFolders to handle the duplicate
> folder name case.
If I did it in DeleteSubFolders we would probably loose the automatic renaming 
when a normal copy occurs outside of Trash, which was of interest to users in 
the previous comments.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Acelists
Created attachment 8371072
WIP patch 3

This adds the requested test (as xpcshell so Seamonkey gets it too).
Also covers all the feedback from Neil, Irving, Josiah and Ulf.
When moving a folder outside Trash, it asks about the rename. It does not ask 
when moving to Trash = deleting. I can't distinguish between clicking Delete 
and manually dragging to Trash. That would need sending the distinguishing flag 
through all the layers of functions from UI to backend and I'd not want to do 
that in this bug.

Josiah, decide if we want to note the proposed final folder name in the
renaming question as Ulf proposes.

I'll look at IMAP after we settle on what layer this needs to be. Seems
the patch here does option 1. from Neil's comment.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Mbanner
Comment on attachment 8371072
WIP patch 3

Quick Q: Has someone tested what happens in the undo case? Does the
folder get named to what it was previously.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Acelists
(In reply to :Irving Reid from comment #88)
> I'm OK with this approach. I'd like to see test cases for both a single
> folder and a nested folder - for example:
> 
I'll try.

> We don't need to test all those combinations for every message store type,
> but we should at least test the copyFolder(...aNewName) parameter works once
> on each store type.
Store type as in mbox and maildir? Do we actually have tests differentiating 
the stores?
Can't bug 765926 cover maildir by itself?

> ::: mailnews/local/src/nsLocalMailFolder.cpp
> @@ +1732,5 @@
> > +  while (1) {
> > +rv = CheckIfFolderExists(newFolderNameUnderTrash, this, NULL);
> > +if (rv == NS_MSG_FOLDER_EXISTS) {
> > +  newFolderNameUnderTrash.Assign(folderName);
> > +  newFolderNameUnderTrash.AppendLiteral("-"); // do we want this 
> > localizable? "-"
> 
> I don't think this needs to be localizable.
I think it should be localizable if it is not complicated.

And I agree with comment 87.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread UlfZibis
(In reply to Josiah Bruner [:JosiahOne] from comment #82)
> So this seems like a fine approach to me. I think that we should call each
> folder "folder(x)" instead of "folder-x", as it more clearly indicates
> duplicates though. People may already have folders called Name-Subname or
> the like, so another reason to use parenthesis.
+1
The "(x)" pattern is well known from file managers, so why differ here?
There is already another mechanism using the "-x" pattern e.g. in case of lost 
synchronisation via IMAP where panacea.dat resolves the redirection. Using the 
same pattern for different reasons could raise ambiguity problems.

> I also definitely think we should expand this to other folders, not just 
> trash.
(In reply to :aceman from comment #84)
> But I think I could make that dialog with Yes/Cancel options meaning
> Rename/Cancel. For Trash, the rename would happen without question.
(In reply to Josiah Bruner [:JosiahOne] from comment #85)
> Yeah, for trash moving automatically is fine.
I think, the decision if a dialogue is shown should not be upon destination 
folder Trash, but upon the involved action:
Delete action ->  automatically rename to Folder(x)
Move/Copy action  ->  ask user for renaming or cancel
Reasons:
- If user uses Move/Copy instead of the easier Delete he may have some special 
reason e.g. using the Trash as temporary location, so user should be warned as 
for any other Move/Copy.
- If we later extend with merge functionality, user is guaranteed to have the 
merge functionality even for Trash when using the Move/Copy actions.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Neil-httl
Comment on attachment 8370331
WIP patch 2

>+  PRUint32 i = 2;
>+  nsAutoString newFolderNameUnderTrash(folderName);
>+  while (1) {
>+rv = CheckIfFolderExists(newFolderNameUnderTrash, this, NULL);
>+if (rv == NS_MSG_FOLDER_EXISTS) {
>+  newFolderNameUnderTrash.Assign(folderName);
>+  newFolderNameUnderTrash.AppendLiteral("-"); // do we want this 
>localizable? "-"
>+  newFolderNameUnderTrash.AppendInt(i);
>+  i++;
>+} else if (NS_SUCCEEDED(rv)) {
>+  // NS_OK so the tried folder name doesn't exist
>+  break;
>+} else {
>+  return rv;
>+}
>+  }
CheckIfFolderExists is overkill if you don't want to alert, use 
ContainsChildNamed instead. Also, the loop is horribly written, though maybe 
you might think my version is going too far the other way:
bool containsChild;
for (int32_t i = 2; ContainsChildNamed(destFolderName, &containsChild), 
containsChild; i++) {
  // compute new folder name
}

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread UlfZibis
(In reply to Mark Banner (:standard8) from comment #102)
> Quick Q: Has someone tested what happens in the undo case? Does the folder
> get named to what it was previously.

Great Q !
I too had this Q in my synapses last night before falling into dreams.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Neil-httl
(In reply to aceman from comment #89)
> (In reply to Irving Reid from comment #88)
> > I don't think this needs to be localizable.
> I think it should be localizable if it is not complicated.
It doesn't need to be localisable (compare uniqueFile from contentAreaUtils.js).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread UlfZibis
(In reply to :aceman from comment #99)
> Josiah does not propose to differ. The last patch does rename to (x).
Great!

> I think user should never move to Trash as temporary measure.
Well, You'll never know, what user does, ...and there is the other reason 
mentioned above. Additionally it looks more clean to me, if the user is warned 
upon normal Move/Copy action.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Neil-httl
(In reply to aceman from comment #95)
> In nsMsgLocalMailFolder::CopyFolder it seems when we are moving folder then
> it calls CopyFolderLocal (which I am touching). If we are copying then it
> calls CopyFolderAcrossServer (which I do not touch). So if
> CopyFolderAcrossServer merges, then all is fine. Is that what you meant?

Technically yes, but that's more by luck than design.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Irving
(In reply to :aceman from comment #89)

> > We don't need to test all those combinations for every message store type,
> > but we should at least test the copyFolder(...aNewName) parameter works once
> > on each store type.
> Store type as in mbox and maildir? Do we actually have tests differentiating
> the stores?
> Can't bug 765926 cover maildir by itself?

As far as I know, maildir is mostly untested aside from what's discussed
in bug 765926. I don't know whether the long term plan is to run the
entire suite twice, once for mbox and once for maildir - if so then yes,
we'd be covered. That's a huge waste of testing run time, but might be
easier than refactoring our test suite into separate tests for the
higher level and the store.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-06 Thread Acelists
(In reply to Ulf Zibis from comment #97)
> (In reply to Josiah Bruner [:JosiahOne] from comment #82)
> > So this seems like a fine approach to me. I think that we should call each
> > folder "folder(x)" instead of "folder-x", as it more clearly indicates
> > duplicates though. People may already have folders called Name-Subname or
> > the like, so another reason to use parenthesis.
> +1
> The "(x)" pattern is well known from file managers, so why differ here?
Josiah does not propose to differ. The last patch does rename to (x).

> > I also definitely think we should expand this to other folders, not just 
> > trash.
> (In reply to :aceman from comment #84)
> > But I think I could make that dialog with Yes/Cancel options meaning
> > Rename/Cancel. For Trash, the rename would happen without question.
> (In reply to Josiah Bruner [:JosiahOne] from comment #85)
> > Yeah, for trash moving automatically is fine.
> I think, the decision if a dialogue is shown should not be upon destination
> folder Trash, but upon the involved action:
> Delete action ->  automatically rename to Folder(x)
> Move/Copy action  ->  ask user for renaming or cancel
> Reasons:
> - If user uses Move/Copy instead of the easier Delete he may have some
> special reason e.g. using the Trash as temporary location, so user should be
> warned as for any other Move/Copy.
I think user should never move to Trash as temporary measure. Notice may have 
the automatic mechanisms enabled that remove messages from trash (retention 
settings e.g. old messages, only x last messages, etc.) so he may easily loose 
those temporarily moved messages. He gets the warning about "Really delete" in 
both of the cases you describe. That should be a clue for him.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-05 Thread Schierlm
(In reply to Ulf Zibis from comment #86)
> (In reply to :aceman from comment #84)
> > I wouldn't try to implement merging in this bug (it is much harder).
> 
> What's the problem, moving a (bunch of) message(s) to another folder is
> already implemented and the suggested dialogue is well known from file
> managers. I just mean adding, not merging with existing messages.

You seem to ignore that folders can (and will) not only contain
messages, but subfolders as well (where we will run into the same
problem again if the subfolder has the same name as an existing folder
in the destination folder). Certainly doable, but way out of scope of
this bug in my opinion.

My opinion: Can we please fix this bug quickly (I regularly rename
folders just to be able to delete them...) instead of building the ideal
bike shed for everybody? Auto-renaming folders when moved elsewhere is
fine for me, asking the user about it is fine too, but if we try to add
merging functionality (with its own problems) this bug will not be fixed
within the next 10 years, I suppose.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-05 Thread Josiah-l
Yeah, for trash moving automatically is fine.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-05 Thread UlfZibis
(In reply to :aceman from comment #84)
> I wouldn't try to implement merging in this bug (it is much harder).

What's the problem, moving a (bunch of) message(s) to another folder is
already implemented and the suggested dialogue is well known from file
managers. I just mean adding, not merging with existing messages.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-05 Thread UlfZibis
To avoid future bug reports I would suggest changing the existing Dialogue to:
A folder with name "Child" is already existing in folder "Parent". Do you want 
to rename it to "Child(2)" or fill it's content into existing folder "Child"?
[Yes] [No] [Cancel]

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-05 Thread Acelists
I wouldn't try to implement merging in this bug (it is much harder). But
I think I could make that dialog with Yes/Cancel options meaning
Rename/Cancel. For Trash, the rename would happen without question. If
UI guys like that :)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-05 Thread Acelists
Created attachment 8370331
WIP patch 2

This is an updated version that implements the atomic move of the folder
to the final destination, as requested.

The search for a new free folder name is not inside the block where we
check if this move is to the Trash folder. That means this automatic
renaming works also when copying/moving/dragging to any other folder.
That could be a nice feature. Do we want it? Or do we only want this
when moving a folder to Trash?

Neil is this still a wrong place to do it and can you propose a better
one that David Bienvenu was talking about?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-05 Thread Josiah-l
Comment on attachment 8370331
WIP patch 2

Review of attachment 8370331:
-

So this seems like a fine approach to me. I think that we should call
each folder "folder(x)" instead of "folder-x", as it more clearly
indicates duplicates though. People may already have folders called
Name-Subname or the like, so another reason to use parenthesis.

I also definitely think we should expand this to other folders, not just
trash.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-04 Thread Archaeopteryx
*** Bug 967521 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2014-02-04 Thread mmxbass
The fact that this still hasn't been resolved in the public release
after almost 15 years is, quite frankly, disgusting.

These kind of amateurish bugs and the utter inability of anyone to fix
them years, or in this case, DECADES later is exactly why nobody takes
open-source software seriously.

Rename either folder in some way and be done with it. This does not need
to be debated until our eyes and ears bleed. Make a command decision and
fix it one way or the other. Delete should just work.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2013-04-02 Thread Irving
I agree with David's remark in comment 70, that we should not rename the
folder before copying - we should just copy it directly into the new
name. I don't think we need to do anything complicated to deal with
duplicate names; appending a number is probably enough.

I don't have any insight into where would be the best place to implement
this; if David doesn't know off the top of his head, somebody's going to
have to do the hard work of reverse engineering what's already there.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2013-03-26 Thread Vseerror
(In reply to :aceman from comment #71)
> Thanks David. If you find the right place I can look at it again. Otherwise
> it is again beyond me.

ref comment 70

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-07-27 Thread Acelists
The folder name is not a problem. There are technical issues with the
implementation so we are waiting on David Bienvenu.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-07-26 Thread I-vitaly-s
It might be better use aliases for folders (and files) in the trash I think.
And add a file with pair of data: alias:real_name.

I meen like this:
In the TB window:
Trash
  Folder
  Folder
  File1
  Folder
  File2
  File1

On the FS:
Trash
  UfatVuHy
  tynkEejRyp
  3jofmamOo
  HajbymFo
  faydfehacs
  RureegojDa

In the additional file:
UfatVuHy:Folder
tynkEejRyp:Folder
3jofmamOo:File1
HajbymFo:Folder
faydfehacs:File2
RureegojDa:File1

Something like this.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-07-26 Thread UlfZibis
Maybe you could rename Folder-1 back to Folder, if Folder would be
deleted from trash.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-07-26 Thread L-bernh5rd-s
can You please fix it with Your favorite solution !

this issue is already very very old without any progress.
reported Jan-2001

and if there is time it can be udated later ?


: if already exists in trash it could also be moved to
- trash/1/foldername
- trash/2/foldername
so name must not be touch for move.


but no matter how,
please help with Your favorite solution/fix

thanks, Bernhard

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-04-03 Thread Bwinton-a
Comment on attachment 609152
proof of concept patch

This seems like reasonable behaviour to me.  I agree with Magnus that
I'ld prefer it to end in "-1", "-2", etc…  (Sorry, Ulf. :)

(As a side note, OS X, when you delete the same thing twice, names the
second "filename.txt" as "filename 14:59:27 .txt" (if you deleted it at
2:59pm ;).)

Later,
Blake.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-03-29 Thread Acelists
Thanks David. If you find the right place I can look at it again.
Otherwise it is again beyond me.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-03-29 Thread Dbienvenu
Comment on attachment 609152
proof of concept patch

thx for the patch - I think we really want to do this, but there are
issues with the patch.

I don't like the rename of the src folder before the move - that might
fail as well, if the name exists in the source folder's directory. I'd
prefer to move to the right name initially. And I don't think
CopyFolderLocal is the right place for this either - I suspect it wants
to be at a higher level, though I'd need to poke around to find the
right place.

I'd also like to fix this for imap, which has the same issue.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366] Re: Can't delete a folder if Trash already contains a folder of the same name

2012-03-27 Thread Bug Watch Updater
** Changed in: thunderbird
   Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-03-27 Thread UlfZibis
(In reply to :aceman from comment #67)
> For those interested, Outlook 2007 renames the folder to 'Folder1' (no
> space) if 'Folder' is already existing. At least in the SK language version.

I would say: "Bug" in MS's corporate Identity ;-)
Imagine, someone just has Folder1. It would result in Folder11. Do you want 
this?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-03-27 Thread Acelists
Yes, that does really happen :) Delete 'Folder', 'Folder', and
'Folder1'.

I do not want that but I do not care much. I implement whatever the UI
guys decide. I just provide options :)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-03-27 Thread Acelists
For those interested, Outlook 2007 renames the folder to 'Folder1' (no
space) if 'Folder' is already existing. At least in the SK language
version.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-03-27 Thread UlfZibis
(In reply to :aceman from comment #65)
> (In reply to Magnus Melin from comment #64)
> > I'd too (like comment 8) prefer a folder-N, not folderN naming scheme.
> 
> The dash in comment 8 can be probably added trivially if we decide on it.
> The main point from comment 8 is that the original patch tried folder names
> like this: Folder0, Folder01, Folder012, etc... My patch tries Folder2,
> Folder3, Folder4, etc...

I would prefer a space before the number:
My Folder 1
Or better (like in Windows Explorer):
My Folder (1)
Copy(1) of My Folder
Duplicate(1) of My Folder

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-03-27 Thread Mkmelin+mozilla
> - it doesn't have the alert dialog informing the user the folder was
renamed.

That doesn't sound to me like something we'd want.

I'd too (like comment 8) prefer a folder-N, not folderN naming scheme.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-03-27 Thread Acelists
(In reply to Magnus Melin from comment #64)
> > - it doesn't have the alert dialog informing the user the folder was 
> > renamed.
> That doesn't sound to me like something we'd want.
It would be easier without it, but let's ask bwinton too.
 
> I'd too (like comment 8) prefer a folder-N, not folderN naming scheme.

The dash in comment 8 can be probably added trivially if we decide on
it. The main point from comment 8 is that the original patch tried
folder names like this: Folder0, Folder01, Folder012, etc... My patch
tries Folder2, Folder3, Folder4, etc...

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2012-03-27 Thread Acelists
Created attachment 609152
proof of concept patch

I managed to strip the patch down and update it for the current architecture.
I need feedback from David Bienvenu if this is a good direction and reaction to 
the points below.

What it does:
- it does work to fix the problem as reported.
- if the folder 'Folder' is already existing in Trash, this will try to move it 
as 'Folder2', 'Folder3' (to fix comment 8).

What it is missing for now:
- if CopyFolderLocal is used not only for moving to trash then this renaming 
functionality must be done only if isChildOfTrash is true.
- it doesn't have the alert dialog informing the user the folder was renamed.

Problems:
- for some reason when a folder is deleted and then a new folder with the same 
name is created in its place, then it can't be deleted, without any error. It 
that is some other known bug or a bug in this code? After TB restart that same 
folder can be deleted fine.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  In Progress
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2011-12-24 Thread Acelists
It seems the file has changed too much. I have no idea where to put this
code. The flow is too different now.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Confirmed
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2011-12-24 Thread M-wada
*** Bug 712912 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Confirmed
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2011-12-10 Thread Acelists
Would comment 52 be an acceptable solution for everyone?
It seems the old patch is attempting to do that.
I could try to pick it up.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Confirmed
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2011-12-10 Thread Dbienvenu
(In reply to :aceman from comment #59)
> Would comment 52 be an acceptable solution for everyone?
> It seems the old patch is attempting to do that.
> I could try to pick it up.

Yes, that's fine, similar to what windows file system explorer does.
That would be great if you could fix this!

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Confirmed
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 214366]

2011-12-10 Thread Acelists
*** Bug 708625 has been marked as a duplicate of this bug. ***

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/214366

Title:
  Can't delete a folder if Trash already contains a folder of the same
  name

Status in Mozilla Thunderbird Mail and News:
  Confirmed
Status in “thunderbird” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mozilla-thunderbird

  1. Create a new folder, eg. "Temp"
  2. Delete it, OK
  3. Create the same folder again
  4. Delete it, OK

  I expect it to be moved to my Trash folder, perhaps with a suffix
  appended (it being the second instance of that folder in the trash).

  Thunderbird popped up an error message. On an imap host:
 The current command did not succeed. The mail server responded: Mailbox 
already exists.
  In the local folders:
 A folder with that name already exists. Please enter a different name (!)

  Workarounds:
  1. Empty the trash
  2. Rename the folder before deletion
  3. Rename the folder already in the trash
  4. Delete (permanently) the folder that is already in the trash

  Ubuntu 7.10 Gutsy
  thunderbird 2.0.0.12+nobinonly-0ubuntu0.7.10.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/214366/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp