GNU bug report logs - #53250
icedove clears user data on upgrade

Previous Next

Package: guix;

Reported by: Nicholas von Klitzing <nicholas <at> nvk.pm>

Date: Fri, 14 Jan 2022 11:48:02 UTC

Severity: normal

Merged with 58762, 58763

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53250 in the body.
You can then email your comments to 53250 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Fri, 14 Jan 2022 11:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicholas von Klitzing <nicholas <at> nvk.pm>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 14 Jan 2022 11:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicholas von Klitzing <nicholas <at> nvk.pm>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: icedove clears user data on upgrade
Date: Fri, 14 Jan 2022 11:47:29 +0000
Hello Guix,

Every time I upgrade icedove (via guix pull && guix system reconfigure), all of my user data is cleared from icedove.

All of my mail settings, accounts, etc. are just gone and I need to manually set them all up again.

When I check ~/.icedove, my profile and settings are still there after the upgrades, but they're not loaded by icedove.

```
nicholas <at> guix14 ~$ ls .icedove/
dz83arz0.default/  profiles.ini
nicholas <at> guix14 ~$ cat .icedove/profiles.ini
[Profile0]
Name=default
IsRelative=1
Path=dz83arz0.default
Default=1

[General]
StartWithLastProfile=1
Version=2
```

Kind regards,
Nicholas




Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Fri, 14 Jan 2022 12:03:03 GMT) Full text and rfc822 format available.

Message #8 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Nicholas von Klitzing <nicholas <at> nvk.pm>
To: "53250 <at> debbugs.gnu.org" <53250 <at> debbugs.gnu.org>
Subject: icedove clears data
Date: Fri, 14 Jan 2022 12:02:48 +0000
A brief follow up:

It seems the ~/.icedove folder is not used by icedove (it was probably a relic of when I used icedove-wayland).

Now looking into ~./thunderbird instead I see several more profiles.

```
nicholas <at> guix14 ~/.thunderbird$ ls
bv7r86h9.default/            installs.ini               profiles.ini
gdmykixq.default-default-1/  k6sjw3jm.default-default/
nicholas <at> guix14 ~/.thunderbird$ cat profiles.ini
[Profile2]
Name=default-default-1
IsRelative=1
Path=gdmykixq.default-default-1

[Profile1]
Name=default
IsRelative=1
Path=bv7r86h9.default
Default=1

[Profile0]
Name=default-default
IsRelative=1
Path=k6sjw3jm.default-default

[Install281FC43567D8867D]
Default=gdmykixq.default-default-1
Locked=1

[General]
StartWithLastProfile=1
Version=2

[Install3F4F07DFB18472B1]
Default=k6sjw3jm.default-default
Locked=1
```

Launching icedove with `icedove -p` and then iterating through the 3 listed profiles all leads to a blank profile, except for default-default. The default-default profile contains all of my mail account and settings.

I now set default-default to be my main profile (resolving my issue) but I doubt this is what users expect the software to do.

Is it possible that icedove creates a new profile on upgrades and sets it as default? I definitely did not manually create 3 profiles.

Kind regards,
Nicholas





Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Fri, 14 Jan 2022 14:53:02 GMT) Full text and rfc822 format available.

Message #11 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Nicholas von Klitzing <nicholas <at> nvk.pm>, "53250 <at> debbugs.gnu.org"
 <53250 <at> debbugs.gnu.org>
Subject: Re: bug#53250: icedove clears data
Date: Fri, 14 Jan 2022 15:52:45 +0100
[Message part 1 (text/plain, inline)]
Nicholas von Klitzing via Bug reports for GNU Guix schreef op vr 14-01-
2022 om 12:02 [+0000]:
> A brief follow up:
> 
> It seems the ~/.icedove folder is not used by icedove (it was probably a relic of when I used icedove-wayland).
> 
> Now looking into ~./thunderbird instead I see several more profiles.
> 
> ```
> nicholas <at> guix14 ~/.thunderbird$ ls
> bv7r86h9.default/            installs.ini               profiles.ini
> gdmykixq.default-default-1/  k6sjw3jm.default-default/
> nicholas <at> guix14 ~/.thunderbird$ cat profiles.ini
> [Profile2]
> [...]
> [Profile1]
> [...]
> [Profile0]
> [...]
> [Install281FC43567D8867D]
> [General]
> [...]
> [Install3F4F07DFB18472B1]
> [...]
> ```
> 
> Launching icedove with `icedove -p` and then iterating through the 3 listed profiles all leads to a blank profile, except for default-default. The default-default profile contains all of my mail account and settings.
> 
> I now set default-default to be my main profile (resolving my issue) but I doubt this is what users expect the software to do.
> 
> Is it possible that icedove creates a new profile on upgrades and sets it as default? I definitely did not manually create 3 profiles.

Maybe take a look at the following code in 'icedove':

         ;; Fixes issue where each installation directory generates its
own profile.
         ;; See e.g.
https://trac.torproject.org/projects/tor/ticket/31457
         (add-after 'patch-source-shebangs 'fix-profile-setting
           (lambda _
             (substitute* "comm/mail/moz.configure"
               (("MOZ_DEDICATED_PROFILES, True")
                "MOZ_DEDICATED_PROFILES, False"))
             #t))

Seems like this was fixed at some point but the fix broke?

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Fri, 14 Jan 2022 15:27:01 GMT) Full text and rfc822 format available.

Message #14 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Nicholas von Klitzing <nicholas <at> nvk.pm>
Cc: "53250 <at> debbugs.gnu.org" <53250 <at> debbugs.gnu.org>
Subject: Re: bug#53250: icedove clears user data on upgrade
Date: Fri, 14 Jan 2022 16:25:58 +0100
Hi,

Nicholas von Klitzing <nicholas <at> nvk.pm> skribis:

> It seems the ~/.icedove folder is not used by icedove (it was probably a relic of when I used icedove-wayland).
>
> Now looking into ~./thunderbird instead I see several more profiles.

Indeed; when running ‘guix pull’, you might have seen this entry:

  Icedove 91: profile folder moved to @file{~/.thunderbird}

  Icedove 91 expects your profile folder under @file{~/.thunderbird}.
  You need to manually copy your Icedove profiles from @file{~/.icedove} to
  @file{~./thunderbird}.  It may be required to start Icedove with
  @option{--ProfileManager} for the first time after the migration.

HTH,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Mon, 17 Jan 2022 09:46:01 GMT) Full text and rfc822 format available.

Message #17 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Nicholas von Klitzing <nicholas <at> nvk.pm>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: "53250 <at> debbugs.gnu.org" <53250 <at> debbugs.gnu.org>
Subject: Re: bug#53250: icedove clears data
Date: Mon, 17 Jan 2022 09:44:47 +0000
Hi Maxime,

It seems that this issue is describing the new fix that is needed:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/33734

Only a simple patch would be necessary:
https://gitlab.torproject.org/acat/tor-browser/-/commit/92f480c30178c0847e6866a4115a9393f1d49a28

Kind regards,
Nicholas

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Friday, January 14th, 2022 at 2:52 PM, Maxime Devos <maximedevos <at> telenet.be> wrote:

> Nicholas von Klitzing via Bug reports for GNU Guix schreef op vr 14-01-
>
> 2022 om 12:02 [+0000]:
>
> > A brief follow up:
> >
> > It seems the ~/.icedove folder is not used by icedove (it was probably a relic of when I used icedove-wayland).
> >
> > Now looking into ~./thunderbird instead I see several more profiles.
> >
> >     nicholas <at> guix14 ~/.thunderbird$ ls
> >     bv7r86h9.default/            installs.ini               profiles.ini
> >     gdmykixq.default-default-1/  k6sjw3jm.default-default/
> >     nicholas <at> guix14 ~/.thunderbird$ cat profiles.ini
> >     [Profile2]
> >     [...]
> >     [Profile1]
> >     [...]
> >     [Profile0]
> >     [...]
> >     [Install281FC43567D8867D]
> >     [General]
> >     [...]
> >     [Install3F4F07DFB18472B1]
> >     [...]
> >
> >
> > Launching icedove with `icedove -p` and then iterating through the 3 listed profiles all leads to a blank profile, except for default-default. The default-default profile contains all of my mail account and settings.
> >
> > I now set default-default to be my main profile (resolving my issue) but I doubt this is what users expect the software to do.
> >
> > Is it possible that icedove creates a new profile on upgrades and sets it as default? I definitely did not manually create 3 profiles.
>
> Maybe take a look at the following code in 'icedove':
>
> ;; Fixes issue where each installation directory generates its
>
> own profile.
>
> ;; See e.g.
>
> https://trac.torproject.org/projects/tor/ticket/31457
>
> (add-after 'patch-source-shebangs 'fix-profile-setting
>
> (lambda _
>
> (substitute* "comm/mail/moz.configure"
>
> (("MOZ_DEDICATED_PROFILES, True")
>
> "MOZ_DEDICATED_PROFILES, False"))
>
> #t))
>
> Seems like this was fixed at some point but the fix broke?
>
> Greetings,
>
> Maxime.




Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Mon, 17 Jan 2022 09:52:02 GMT) Full text and rfc822 format available.

Message #20 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Nicholas von Klitzing <nicholas <at> nvk.pm>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: "53250 <at> debbugs.gnu.org" <53250 <at> debbugs.gnu.org>
Subject: Re: bug#53250: icedove clears data
Date: Mon, 17 Jan 2022 09:50:55 +0000
[Message part 1 (text/plain, inline)]

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Monday, January 17th, 2022 at 9:44 AM, Nicholas von Klitzing <nicholas <at> nvk.pm> wrote:

> Hi Maxime,
>
> It seems that this issue is describing the new fix that is needed:
>
> https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/33734
>
> Only a simple patch would be necessary:
>
> https://gitlab.torproject.org/acat/tor-browser/-/commit/92f480c30178c0847e6866a4115a9393f1d49a28
>
> Kind regards,
>
> Nicholas
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Friday, January 14th, 2022 at 2:52 PM, Maxime Devos maximedevos <at> telenet.be wrote:
>
> > Nicholas von Klitzing via Bug reports for GNU Guix schreef op vr 14-01-
> >
> > 2022 om 12:02 [+0000]:
> >
> > > A brief follow up:
> > >
> > > It seems the ~/.icedove folder is not used by icedove (it was probably a relic of when I used icedove-wayland).
> > >
> > > Now looking into ~./thunderbird instead I see several more profiles.
> > >
> > >     nicholas <at> guix14 ~/.thunderbird$ ls
> > >     bv7r86h9.default/            installs.ini               profiles.ini
> > >     gdmykixq.default-default-1/  k6sjw3jm.default-default/
> > >     nicholas <at> guix14 ~/.thunderbird$ cat profiles.ini
> > >     [Profile2]
> > >     [...]
> > >     [Profile1]
> > >     [...]
> > >     [Profile0]
> > >     [...]
> > >     [Install281FC43567D8867D]
> > >     [General]
> > >     [...]
> > >     [Install3F4F07DFB18472B1]
> > >     [...]
> > >
> > >
> > > Launching icedove with `icedove -p` and then iterating through the 3 listed profiles all leads to a blank profile, except for default-default. The default-default profile contains all of my mail account and settings.
> > >
> > > I now set default-default to be my main profile (resolving my issue) but I doubt this is what users expect the software to do.
> > >
> > > Is it possible that icedove creates a new profile on upgrades and sets it as default? I definitely did not manually create 3 profiles.
> >
> > Maybe take a look at the following code in 'icedove':
> >
> > ;; Fixes issue where each installation directory generates its
> >
> > own profile.
> >
> > ;; See e.g.
> >
> > https://trac.torproject.org/projects/tor/ticket/31457
> >
> > (add-after 'patch-source-shebangs 'fix-profile-setting
> >
> > (lambda _
> >
> > (substitute* "comm/mail/moz.configure"
> >
> > (("MOZ_DEDICATED_PROFILES, True")
> >
> > "MOZ_DEDICATED_PROFILES, False"))
> >
> > #t))
> >
> > Seems like this was fixed at some point but the fix broke?
> >
> > Greetings,
> >
> > Maxime.
[0001-gnu-icedove-stop-per-install-profile-generation.patch (text/x-patch, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Mon, 17 Jan 2022 10:38:01 GMT) Full text and rfc822 format available.

Message #23 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Nicholas von Klitzing <nicholas <at> nvk.pm>
Cc: "53250 <at> debbugs.gnu.org" <53250 <at> debbugs.gnu.org>
Subject: Re: bug#53250: icedove clears data
Date: Mon, 17 Jan 2022 11:36:53 +0100
[Message part 1 (text/plain, inline)]
Nicholas von Klitzing schreef op ma 17-01-2022 om 09:44 [+0000]:
> It seems that this issue is describing the new fix that is needed:
> https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/33734
> 
> Only a simple patch would be necessary:
> https://gitlab.torproject.org/acat/tor-browser/-/commit/92f480c30178c0847e6866a4115a9393f1d49a28
> 

Seems reasonable to me (untested).

Greetings
Maxime (not a committer)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Mon, 17 Jan 2022 20:50:02 GMT) Full text and rfc822 format available.

Message #26 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: 53250 <at> debbugs.gnu.org
Subject: icedove clears user data on upgrade
Date: Mon, 17 Jan 2022 21:49:08 +0100
Hello Nicholas,

thanks for the patch, I test it right now :)

~Jonathan




Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Wed, 19 Jan 2022 20:30:02 GMT) Full text and rfc822 format available.

Message #29 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: 53250 <at> debbugs.gnu.org
Cc: Nicholas von Klitzing <nicholas <at> nvk.pm>, jonathan.brielmaier <at> web.de
Subject: [PATCH] gnu: icedove: Stop per-install profile generation.
Date: Wed, 19 Jan 2022 21:29:28 +0100
From: Nicholas von Klitzing <nicholas <at> nvk.pm>

Fixes https://issues.guix.gnu.org/53250

* gnu/packages/gnuzilla.scm (icedove)[arguments]: Disable MOZ_NORMANDY.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
---
 gnu/packages/gnuzilla.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index a9b5ed9fe9..929e43d71d 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -1372,7 +1372,9 @@ (define-public icedove
            (lambda _
              (substitute* "comm/mail/moz.configure"
                (("MOZ_DEDICATED_PROFILES, True")
-                "MOZ_DEDICATED_PROFILES, False"))
+                 "MOZ_DEDICATED_PROFILES, False")
+               (("MOZ_NORMANDY, True")
+                "MOZ_NORMANDY, False"))
              #t))
          (add-after 'prepare-thunderbird-sources 'rename-to-icedove
            (lambda _
--
2.34.0





Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Wed, 19 Jan 2022 20:35:02 GMT) Full text and rfc822 format available.

Message #32 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: 53250 <at> debbugs.gnu.org
Subject: icedove clears user data on upgrade
Date: Wed, 19 Jan 2022 21:33:52 +0100
I tested your patch, Nicholas, and the one I sent in. But sadly non of
them resolved the problem for me :(

Maybe we should add a service or something to start icedove always with
`icedove -P YOUR-PROFILE-NAME`. As a "dirty" hack...




Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Wed, 19 Jan 2022 22:41:02 GMT) Full text and rfc822 format available.

Message #35 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Nicholas von Klitzing <nicholas <at> nvk.pm>
To: "53250 <at> debbugs.gnu.org" <53250 <at> debbugs.gnu.org>,
 "jonathan.brielmaier" <jonathan.brielmaier <at> web.ch>
Subject: (No Subject)
Date: Wed, 19 Jan 2022 22:40:07 +0000
[Message part 1 (text/plain, inline)]
Hi Jonathan,

Thanks for testing the patch. What exactly doesn't work?

Is icedove still generating new profiles upon install?

Even if it stops generating profiles, you still need to use `icedove -p` to select the correct default.

Kind regards,

Nicholas
[Message part 2 (text/html, inline)]

Merged 53250 58762 58763. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 20 Feb 2023 17:06:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#53250; Package guix. (Mon, 20 Feb 2023 18:47:01 GMT) Full text and rfc822 format available.

Message #40 received at 53250 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Nicholas von Klitzing <nicholas <at> nvk.pm>
Cc: "53250-done <at> debbugs.gnu.org" <53250 <at> debbugs.gnu.org>,
 "jonathan.brielmaier" <jonathan.brielmaier <at> web.ch>
Subject: Re: bug#53250: icedove clears user data on upgrade
Date: Mon, 20 Feb 2023 13:46:30 -0500
Hi,

Nicholas von Klitzing <nicholas <at> nvk.pm> writes:

> Hi Jonathan,
>
> Thanks for testing the patch. What exactly doesn't work?
>
> Is icedove still generating new profiles upon install?
>
> Even if it stops generating profiles, you still need to use `icedove -p` to select the correct default.

I believe the reason it wasn't working was because the substitution of
the MOZ_DEDICATED_PROFILES value to False was not effective:

I believe this should fix it:

--8<---------------cut here---------------start------------->8---
modified   gnu/packages/gnuzilla.scm
@@ -1335,8 +1335,8 @@ (define-public icedove-minimal
           (add-after 'patch-source-shebangs 'fix-profile-setting
             (lambda _
               (substitute* "comm/mail/moz.configure"
-                (("MOZ_DEDICATED_PROFILES, True")
-                 "MOZ_DEDICATED_PROFILES, False"))))
+                (("\"MOZ_DEDICATED_PROFILES\", True")
+                 "\"MOZ_DEDICATED_PROFILES\", False"))))
           (add-after 'build 'neutralize-store-references
             (lambda _
               ;; Mangle the store references to compilers & other build tools in
--8<---------------cut here---------------end--------------->8---

Pushed to master as c81d2d448c, after testing resolution on an affected
machine.

Closing!

-- 
Thanks,
Maxim




bug closed, send any further explanations to 58763 <at> debbugs.gnu.org and florhizome <florhizome <at> posteo.net> Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 17 Dec 2023 22:13:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 15 Jan 2024 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.