kevinzehnder / enex2paperless

CLI tool to help migrate attachements from Evernote to Paperless-NGX
20 stars 1 forks source link

Option to dump to folder instead? #8

Open HackerJL opened 2 months ago

HackerJL commented 2 months ago

First off, this is an amazing project, youre a wizard!

I am working on a large move from ENEX files, and the direct send to paperless is a bit painful for me (not your problem). I was wondering if there was an ability to put in a switch to do the work the program is doing, but instead, send to a subfolder vs sending to paperless. Then I can batch it up better and drop into paperless, or maybe even go direct to the paperless machine, for speed.

I know I can fork it..but this is out of my wheelhouse.

Seriously great tool, works great, just a thought.

kevinzehnder commented 2 months ago

Thanks, I appreciate it.

I think I've already implemented that functionality, but havent made it available. So thats an easy addon.

Storing attachements in a certain folder structure would be easy to do. What would a good output structure be though? I could just dump all attachements into a folder, or a folder per note, or something else?

HackerJL commented 2 months ago

In my opinion (since you asked), just a switch to specify a folder name (or it to make one...) for the entire ENEX file thats being worked on. I guess additional options for folder per note would be wanted by some Im betting.

kevinzehnder commented 2 months ago

try the latest release

HackerJL commented 2 months ago

I was just seeing it posted (watching it). Documentation doesnt show any more switches? Whats the syntax to try?

kevinzehnder commented 2 months ago

Ah yes, good point. Forgot to update the Readme. If you run it with -h it'll show you all the options.

HackerJL commented 2 months ago

Ill try tonight!

kevinzehnder commented 1 month ago

works? :)

HackerJL commented 1 month ago

Gah. Didnt get a chance - but will. Sorry. Tomorrow - its on my list.

-- James D. Lainton @.**@.>


From: kevinzehnder @.> Sent: Thursday, September 19, 2024 12:17 PM To: kevinzehnder/enex2paperless @.> Cc: James Lainton @.>; Author @.> Subject: Re: [kevinzehnder/enex2paperless] Option to dump to folder instead? (Issue #8)

works? :)

— Reply to this email directly, view it on GitHubhttps://github.com/kevinzehnder/enex2paperless/issues/8#issuecomment-2361871714, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAPPS64LAITLFAYOKBTBLWTZXMIMVAVCNFSM6AAAAABM6CV7YWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRRHA3TCNZRGQ. You are receiving this because you authored the thread.Message ID: @.***>

HackerJL commented 1 month ago

Yes, works great, fast and easy. Many thanks.

But...We might need it to handle duplications better. While Evernote used different notes, the attachments can be duplicated. So when it hits a folder, it asks for overwrite.

My biggest issue is scanned stuff in Evernote that had the attachment 'Scanned from a Xerox Multifunction Printer.pdf'. There is also no way to auto-accept overwrite function, so it's fairly hands on to get through the ENEX conversion.

My suggestion (that you didnt ask for...) is that it it incrementally adds a version number to the file -1, -2, etc.

But, let me be clear that it does work...wonderfully.

kevinzehnder commented 1 month ago

Glad to know it works, thank you.

I agree, that feature is pretty bare bones at the moment. If you have a bunch of these duplicates in an ENEX file then it definitely gets pretty tedious right now.

I think adding a -1 etc. to the files would be an option. I could also append the note title for instance, or do something with the note date. I'll think about it.