<div dir="ltr"><div><div><div>Hello Adam,<br><br></div>thanks for the reply. Sounds fair enough to me. I hadn't thought about that last benefit of git. I haven't deleted anything off my pc for years ... still got HDD from 15 years ago with 'something' on them ?<br></div><div><br></div><div><div>Sorry this is going to go off topic somewhat .... (ok, I've just read it again... its gone off topic a lot... again, apologies for that)<br></div></div><div><br></div>One more question, if you are using exclusively LibreOffice, I understand it has a mode where it will separate the file into its constituent flat, text XML files (style, contents, formatting etc), all of which can then be stored in git with all the advantages that privides, no binary files needed. Do you use this functionality ? I haven't done this so I don't know how it impacts the work flow for a user, or how it will integrate into a git workflow, but would be interested to hear a user experience. I just use the inbuilt 'versioning' that is available within libreoffice (much better than multiple copies of the same file with just a few changes).<br><br></div><div>Hopefully my last set of 'novice questions' ;)<br><br></div><div>thanks in advance.</div><div><br></div><div>David<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 7, 2020 at 10:41 AM Adam <<a href="mailto:adam.ranek@seznam.cz">adam.ranek@seznam.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi David, <br>
<br>
Please find answers bellow.<br>
<br>
Kind regards,<br>
Adam<br>
<br>
---------- Původní e-mail ----------<br>
Od: David Myers <<a href="mailto:david.myers.24j74@gmail.com" target="_blank">david.myers.24j74@gmail.com</a>><br>
Komu: Adam <<a href="mailto:adam.ranek@seznam.cz" target="_blank">adam.ranek@seznam.cz</a>>, Dovecot Mailing List <<a href="mailto:dovecot@dovecot.org" target="_blank">dovecot@dovecot.org</a>><br>
Datum: 7. 10. 2020 8:44:28<br>
Předmět: Re: Version controlled (git) Maildir generated by Dovecot<br>
Hello Adam, and the dovecot list<br>
<br>
> Just a question, I hate to pollute the thread, so feel free to push these<br>
> questions into a new thread if deemed necessary. So as you can guess I'm a bit<br>
> of a newb here, so rather obvious questions are about to arrive....<br>
> <br>
> As you are using GIT for your archive (which is a cool idea by the way) I'm<br>
> sure you are well aware that not all files types play nicely with version<br>
> control, my question therefore is : How do you plan to handle attachments ?<br>
<br>
I use git for everything including for example LibreOffice / Word documents. Git works just fine with binary files. You can't use text tools like "git diff" but... it works.<br>
<br>
> Also, although I appreciate the idea of using git, emails generally don't<br>
> 'change', but I guess that also depends on how you are storing them (single<br>
> email with links to previous / next ... etc, or as a single big file for each<br>
> specific thread). Although this is hitting my limits of understanding for how<br>
> dovecot works, so I probably need educating on this (a pointer to the docs would<br>
> be good).<br>
<br>
As I mentioned in the first e-mail, I configured Dovecot to use Maildir format -> each e-mail is a single text file. Mail body + attachment(s) are in the same file, attachment(s) are Base64 encoded.<br>
<br>
> You seem concerned regarding the files that you are ignoring that you will need<br>
> to 'recreate them', so why not do a complete git add . prior to adding them into<br>
> the git ignore, then you have an initial state for those files too.<br>
<br>
But I don't want to store files that can be regenerated. I don't want to backup stuff, that doesn't have information value.<br>
<br>
> Final thought, what advantage do you envisage by using git as opposed to simply<br>
> using a filter to select the files over a certain age, and place them into a<br>
> zipped TAR archive ? Although I guess you could eventually zip the git archive<br>
> too, and in the interim it would remain searchable by your users mail clients<br>
> whilt in git.<br>
<br>
I like to use git ;-). Tar will work just fine.<br>
<br>
In this use case the only real benefit of git is that it never forgets. Unless I delete whole .git directory, I can make a mistake, delete some e-mails (files), commit changes and rollback. I can't rollback if I delete tar archive.<br>
<br>
> Thanks in advance, and apologies once again for polluting your question with my<br>
> own.<br>
<br>
David<br>
</blockquote></div>