Skip to contentSkip to conversation

git for mail synchronization

DISCUSSION Enrico Weigelt 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi folks,

I'm currently thinking about using git for mail synchronization. The scenario:

* multiple hosts share a set of maildirs where new mails can be added or removed arbitrarily (using non-conflicting filenames, eg. their sha-hashes)
* on each host, the current tree is committed in some time interval
* the hosts pull from each other and merge in the other's trees.

Could this work well ?

cu

Signature · 8 lines
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: [email protected]
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
#1 lore raw
Quoted 15 lines · Enrico Weigelt

Hi folks,

I'm currently thinking about using git for mail synchronization. The scenario:

* multiple hosts share a set of maildirs where new mails can be added or removed arbitrarily (using non-conflicting filenames, eg. their sha-hashes)
* on each host, the current tree is committed in some time interval
* the hosts pull from each other and merge in the other's trees.

Quoted 1 line

Could this work well ?

It can work, there was a blog post somewhere that showed one solution for this type of thing, google is your friend here.

But, I would recommend just using something like offlineimap instead, it handles stuff like this much easer than git, and then using git to store an "archive" version of emails you want to keep longer. That's what I do and it's much easier in the end.

best of luck,

greg k-h