Bug 1413 - RFE: include prefs in maemo backup
Summary: RFE: include prefs in maemo backup
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (Maemo)
Classification: Unclassified
Component: General (show other bugs)
Version: 3.3.0
Hardware: Nokia n800 Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2007-12-01 13:02 UTC by Patrick Ernzer
Modified: 2008-02-04 18:50 UTC (History)
0 users

See Also:


Attachments
first draft of proposed file (1.03 KB, text/plain)
2007-12-01 14:14 UTC, Patrick Ernzer
Details
second draft of proposed file (1.20 KB, text/plain)
2007-12-02 12:19 UTC, Patrick Ernzer
Details
third draft of the proposed file (1.44 KB, text/plain)
2008-02-04 17:23 UTC, Patrick Ernzer
Details

Description Patrick Ernzer 2007-12-01 13:02:44 UTC
It would be nice if claws-mail settings were backed up by the maemo Backup/Restore application.
Ideally in a way that 'E-mail messages' would back up the email if (and only if) one had selected 'internal storage' when setting up claws. And definitely the settings of claws should be backed up if 'Settings' are backed up.

Rationale: Nokia wants users to reflash the device at each OS upgrade, hence settings of important apps should be backed up.

Note: I do not know if there are some hooks in the Backup/Restore app you can tie into or if you need to simply move your preferences to a location where maemo expects preferences to sit.
Comment 1 Patrick Ernzer 2007-12-01 13:13:42 UTC
note:

http://maemo.org/development/documentation/tutorials/maemo_4-0_tutorial.html#backup
describes how this should be done
Comment 2 Patrick Ernzer 2007-12-01 14:14:05 UTC
Created attachment 518 [details]
first draft of proposed file

this is a first draft.
this was created after configuring one IMAP server

what's not backed up with this file:
  - POP3 stuff, I do not have a single POP3 account to try this
  - accountrc.tmpl (not sure if this is needed, please advise)
  - any log files (I see no value in backing these up)
  - any .bak files (idem)
  - nothing having 'tmp' in the name (idem)
  - nothing having '_history' in the name (idem)
  - the folder 'uidl' (not sure if this is needed, please advise)


All this is still untested, I guess I will get a test when OS2008 goes from beta to final for my N800
Comment 3 Paul 2007-12-01 19:57:07 UTC
Probably this is suited for the packager rather than in Claws directly.
Comment 4 Patrick Ernzer 2007-12-02 12:19:07 UTC
Created attachment 520 [details]
second draft of proposed file

added folderitemrc and matcherrc
now the only thing that is definitely missing is POP3 related settings, somebody comment please
and a review as asked in Comment  #2
Comment 5 Patrick Ernzer 2007-12-02 12:29:16 UTC
in response to Comment  #3
yes, definitely a packaging bug. As http://www.claws-mail.org/maemo/ tells me that you host the maemo package I figured this was the place to file the bug.
If the packager does not have an account with this bugzilla, please tell and I'll move this RFE to the appropriate bugzilla (the maemo.org one I would guess)
Comment 6 Paul 2007-12-02 13:37:50 UTC
(In reply to comment #5)
> in response to Comment  #3
> yes, definitely a packaging bug. As http://www.claws-mail.org/maemo/ tells me
> that you host the maemo package I figured this was the place to file the bug.

Yes, it's the right place, don't worry about that. I was just leaving the (passing) comment.

Comment 7 Patrick Ernzer 2008-02-04 16:28:36 UTC
just a quick note to confirm that the file I submitted does work. I updated my ITOS and upon restoring the backup my claws config was restored as well.

comment #2 and comment #4 are still valid.
Comment 8 Colin Leroy 2008-02-04 16:42:05 UTC
(In reply to comment #2)

Sorry for the lag.

> what's not backed up with this file:
>   - POP3 stuff, I do not have a single POP3 account to try this

The problem is that the POP3 mailbox can be named anything by the user. Probably saving /home/user/Mail (the default mailbox) would be good.

>   - accountrc.tmpl (not sure if this is needed, please advise)

Unneeded on Maemo, indeed.


>   - nothing having '_history' in the name (idem)

Could be nice, it'd allow people to still have the list of searched things available after upgrading, for example.

>   - the folder 'uidl' (not sure if this is needed, please advise)

Would be good to backup: in there are the UIDL (universal ID something) of the mails that have been downloaded via POP3. Without that, all mails from a given POP3 account would be downloaded again if not deleted from the server.

If you can prepare a rev3 of that settings file, I'll package it for the next release.

Thanks!
Comment 9 Patrick Ernzer 2008-02-04 17:23:28 UTC
Created attachment 554 [details]
third draft of the proposed file

this is the third draft.
  - backup runs fine
  - have not yet attempted a restore, will happen next time I update my ITOS. Any volunteers should just drop this file as /etc/osso-backup/applications/claws-mail.conf as root on their Internet Tablet and report how it worked for them.
Comment 10 Colin Leroy 2008-02-04 18:50:17 UTC
This will be included in 3.3.0.

Note You need to log in before you can comment on or make changes to this bug.