Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Add text file consumer #395

Merged
merged 4 commits into from
Sep 9, 2018

Conversation

jat255
Copy link
Contributor

@jat255 jat255 commented Sep 4, 2018

This PR adds the ability for Paperless to handle .txt, .md (as plain text), and .csv files (as that's what I had in my library). Similar to the PDF handling, it generates a thumbnail from the file, so it displays like any other.

I haven't written formal tests for it, but it is working correctly in my local testing, with respect to consumption and serving the resulting files.

As this is my first PR for paperless, please let me know if there's anything else needed.

Resolves #223

@jat255
Copy link
Contributor Author

jat255 commented Sep 5, 2018

I suppose this resolves #223 as well

Copy link
Contributor

@ddddavidmartin ddddavidmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor comment from my side after browsing through the changes.

@danielquinn danielquinn merged commit 72c8281 into the-paperless-project:master Sep 9, 2018
@danielquinn
Copy link
Collaborator

Wow! This is a lot of work @jat255! Thanks so much for your contribution! I've merged it into master and made one minor change: I renamed pattern to DATE_REGEX as it's now a constant rather than a local variable.

You probably don't know this, but @philippeowagner has been wanting this feature for a Very Long Time. Sorry for the delay Philippe, but it looks like Joshua has you covered :-)

@philippeowagner
Copy link
Contributor

Awesome! Thanks @jat255 for creating this PR!
It seems, this year Xmas comes a little earlier.

@jat255 jat255 deleted the ENH_text_consumer branch September 10, 2018 01:48
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants