gmvault icon indicating copy to clipboard operation
gmvault copied to clipboard

Feature Request: Symlink Labels

Open jantman opened this issue 8 years ago • 5 comments

I just found gmvault and have to say it's AMAZING. I was about to write... more or less the same thing... myself (and in Python) so I'm really glad I found it.

It's really handy that the DB is stored in plaintext, but one thing that I really wanted this for was the ability to grep through my backups locally, or through a specific Label.

What I'm proposing is that, with an optional CLI flag or config setting, a Labels directory be created under DB_DIR, with a subdirectory for each label and then the messages symlinked into that structure as DB_DIR/Labels/LABEL_NAME/THREAD_ID/MESSAGE_ID.

I'd be more than happy to code this and submit a PR if you're interested and think it would be merged. If not, I can just do this via a post-processing script.

Thanks!

jantman avatar Dec 01 '16 21:12 jantman

@jantman Like the labels dir with symlinks idea. It could be an option activated from the configuration file. Could you please implement it and make a PR. Please test it heavily. Please also think on what is going to happen if it is activated on an existing Database. The label dir should then be implemented. You have the brand new DB use case and the existing one to handle. It should also not take too long. You should also handle Linux, Mac OS X and Windows. For windows what is going to happen ? Is there the concept of sym links here ? Waiting for your answer.

gaubert avatar Jan 03 '17 08:01 gaubert

What is the progress on this? I am interested in contributing to this feature.

Anmol-Singh-Jaggi avatar Aug 12 '17 22:08 Anmol-Singh-Jaggi

I haven't been able to do any work on it, sorry, and I find it unlikely that I'll be able to. My time is stretched very thin, and while I'd really like this, I don't think this is important enough to me to implement properly.

jantman avatar Aug 13 '17 00:08 jantman

Oh! No worries! I'll make an attempt at this.

Anmol-Singh-Jaggi avatar Aug 13 '17 11:08 Anmol-Singh-Jaggi

@gaubert I have created the basic functionality. It currently takes the path of an already existing db and creates symlinks for it on a label basis. You can review it here.

Anmol-Singh-Jaggi avatar Oct 07 '17 15:10 Anmol-Singh-Jaggi