This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to synch *local* mail across two computers?

Tags: None
(comma "," separated)
wes33
Registered Member
Posts
103
Karma
1
I have several computers that run kmail.

I want them to have the same local folders and local mail.

With the old kmail I just copied ~/.../kmail/mail to all
the computers nightly with a cron job.

This does not seem to work with the new kmail.

So I have two questions. Should the simple copying of the
mail directory keep all the computers synched?

If not, what is th right way to achieve mail synch?
wes33
Registered Member
Posts
103
Karma
1
nobody .... ?
User avatar
google01103
Manager
Posts
6668
Karma
25
just guessing but have you looked at ~/.config/akonadi ? http://community.kde.org/KDE_PIM/Akonadi


OpenSuse Leap 42.1 x64, Plasma 5.x

wes33
Registered Member
Posts
103
Karma
1
google01103 wrote:just guessing but have you looked at ~/.config/akonadi ? http://community.kde.org/KDE_PIM/Akonadi


thanks for that. Akonadi is obviously important here, but that
link is the guts of akonadi - it does not tell me how to actually
do what I want (maybe if I studied up on akonadi for a few months
I could write a special app).

All I want to do is have the local mail folders kept identical
on two computers so that kmail works identically on both.

As it stands, after copying the local folders from computer 1 to
computer 2 there has to be a complex and - in my experience,
incomplete and opaque to the user - import process performed
on computer 2.

But this must be me. There MUST be a simple way to keep
local folders synched across two computers??!!
User avatar
google01103
Manager
Posts
6668
Karma
25
check out responses to q's # 4 & 5 http://old.nabble.com/Kontact-present-a ... 99025.html posted March 2010
> 4) (This may be the important question) Until Akonadi is implemented
> for all contained apps, how can I sync both machines? Copy the
> /home/user folder and Akonadi db?

No. Just copy the data. Ignore the Akonadi db. (It doesn't harm to also
copy the Akonadi db, but you must not do this when the db is still
running because the db might be in an inconsistent state when you copy
the db files.)


> 5) After Akonadi is fully implemented for all apps how will
> synchronization be handled? Will this process be programmed, or will
> it be necessary to handle it directly through mySQL?

There are some plans for handling synchronization, but for the time
being you are better off simply synchronizing/copying the data
storage(s).


try searching/posting on kde-pim mailing-list https://mail.kde.org/mailman/listinfo/kdepim-users or querying on the #akonadi IRC channel on freenode to see if above is still correct


OpenSuse Leap 42.1 x64, Plasma 5.x

wes33
Registered Member
Posts
103
Karma
1
thanks for that. Further searching led me to this page:
http://userbase.kde.org/KMail/FAQs_Hints_and_Tips
which sets out this procedure:
Transfer mail and settings to another computer (or another user account on the same machine)
Solution: The messages are typically in ~/.kde/share/apps/kmail/. For very old installations of KMail, the messages can also be in ~/Mail. Note that KMail uses hidden sub-directories inside that directory, so you need to make sure to copy hidden directories as well.
For settings you will need to copy the following files:
~/.kde/share/config/kmailrc,
~/.kde/share/config/mailtransports, (since KDE 4.0)
~/.kde/share/config/emaildefaults and
~/.kde/share/config/emailidentities .
Your address book is usually stored in ~/.kde/share/apps/kabc/. Calendar data is in ~/.kde/share/apps/korganizer
Be aware that some distributions use ~/.kde4 instead of ~/.kde/ for their KDE configuration data. Look at the output of the command kde4-config --localprefix if in doubt.
From version 4.4 you may have some Akonadi-controlled entries that also need to be kept. Add to the above list -
Everything under ~/.local/share/
Everything under ~/.config/akonadi/.
~/.kde/share/config/nepomukserverrc
Everything under ~/.kde/share/apps/nepomuk/ (KAddressBook stores contact groups in Nepomuk.)


I'll give this a try but my first reaction is: Holy Cr**p :)
[once the script is made it wouldn't be so bad ...]
User avatar
google01103
Manager
Posts
6668
Karma
25
http://userbase.kde.org/KMail/FAQs_Hints_and_Tips appears to be for for Kmail not Kmail2, not that the same won't apply but just be aware and please post your results here for others


OpenSuse Leap 42.1 x64, Plasma 5.x

wes33
Registered Member
Posts
103
Karma
1
http://userbase.kde.org/KMail/FAQs_Hints_and_Tips appears to be for for Kmail not Kmail2, not that the same won't apply but just be aware and please post your results here for others


I missed that but gave it a try anyway.

Does not work. All the "panes" in the kmail window are completely
blank. My accounts show up if I try to configure kmail, but
they remain invisible.

If I try to check mail in my imap account, it shows the progress
bar at bottom right, but nothing appears and all panes remain
totally blank.

Probably need to copy other files ???

It seems like a pretty obvious thing to want to do: keep your
notebook computer local mail identical with that on your
desktop!!!

Hard to do in kmail (trivial in thunderbird)

I'd really welcome more ideas on this.
wes33
Registered Member
Posts
103
Karma
1
after logging out and in some folders appeared. But
the local folders do not (a news system of local folders
appears to have been created, not the ones copied).

On the imap account, some mail is available but others
have only the header info - no content.

Pretty unacceptable all around.

(it really does seem that some mail is stored in ~....kmail/mail
and some mail is stored elsewhere - in akonadi database?.
If that is right, IT IS CRAZY way to do things


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]