Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							9c583fe9f3 
							
						 
					 
					
						
						
							
							Merge branch 'inotify' of git://github.com/erikarvstedt/paperless into erikarvstedt-inotify  
						
						
						
						
					 
					
						2018-05-28 13:03:06 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							a1cb67c4ce 
							
						 
					 
					
						
						
							
							Don't check changed passphrase if no passphrase set  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							c37f642cff 
							
						 
					 
					
						
						
							
							Remove old Python2.7-style code  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							27a936f9bf 
							
						 
					 
					
						
						
							
							Add script to (de|en)crypt all documents  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							6e1f2b3f03 
							
						 
					 
					
						
						
							
							Drop STORAGE_TYPE in favour of just using PAPERLESS_PASSPHRASE  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							5643d89270 
							
						 
					 
					
						
						
							
							Change default storage_type to unencrypted  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							52b0249d71 
							
						 
					 
					
						
						
							
							Don't run document checks if table doesn't exist yet  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							2ab2c37f5a 
							
						 
					 
					
						
						
							
							Fix migration conflict  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							f72fa43e86 
							
						 
					 
					
						
						
							
							Add check for changed password  
						
						... 
						
						
						
						These tests are incomplete, but I have no idea how to write the other
half. 
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							c0ad6cd58a 
							
						 
					 
					
						
						
							
							Add "fat finger" check to password status  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							b79caa64d0 
							
						 
					 
					
						
						
							
							Remove checks we weren't using  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							e5b7e93eff 
							
						 
					 
					
						
						
							
							Only require a passphrase if STORAGE_TYPE is not "unencrypted"  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							d8740ee5ca 
							
						 
					 
					
						
						
							
							Make the consumer aware of the different storage types  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							cdc07cf153 
							
						 
					 
					
						
						
							
							Move the encrypt/decrypt decision out of db and into the view  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							da6dc2ad5b 
							
						 
					 
					
						
						
							
							Attach storage_type to Documents  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							885dbf67d5 
							
						 
					 
					
						
						
							
							Set STORAGE_TYPE instead of ENABLE_ENCRYPTION boolean  
						
						... 
						
						
						
						This allows for future decisions around the types of encryption used (if any).  Ideally, I want to replace GPG one day with something elegant out of the cryptography module. 
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							02b40a54e0 
							
						 
					 
					
						
						
							
							Try to be more pep8 in the settings file  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Mike Cronce 
							
						 
					 
					
						
						
						
						
							
						
						
							3b6a3219f5 
							
						 
					 
					
						
						
							
							src/paperless/db.py:  If encryption is disabled, just directly read the file contents  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Mike Cronce 
							
						 
					 
					
						
						
						
						
							
						
						
							8783c2af88 
							
						 
					 
					
						
						
							
							src/manage.py:  Added check to see whether or not encryption is enabled before prompting for passphrase if it's empty  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Mike Cronce 
							
						 
					 
					
						
						
						
						
							
						
						
							6cedbb3307 
							
						 
					 
					
						
						
							
							src/paperless/settings.py:  Added DISABLE_ENCRYPTION environment variable  
						
						
						
						
					 
					
						2018-05-28 12:58:28 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							4585308e7f 
							
						 
					 
					
						
						
							
							Fix redirect for subpaths (hopefully)  
						
						
						
						
					 
					
						2018-05-28 12:56:20 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							4386b09eb1 
							
						 
					 
					
						
						
							
							Code clean up  
						
						
						
						
					 
					
						2018-05-28 12:56:06 +01:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							0559204be4 
							
						 
					 
					
						
						
							
							fixup: require usage of PAPERLESS_EMAIL_SECRET  
						
						
						
						
					 
					
						2018-05-21 12:11:56 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							bccac5017c 
							
						 
					 
					
						
						
							
							fixup: remove helper fn 'make_dirs'  
						
						
						
						
					 
					
						2018-05-21 00:45:00 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							3e8038577d 
							
						 
					 
					
						
						
							
							fixup: break up complex if condition  
						
						
						
						
					 
					
						2018-05-21 00:44:58 +02:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							3532745579 
							
						 
					 
					
						
						
							
							Allow the searching of documents by tag  #354  
						
						
						
						
					 
					
						2018-05-20 17:28:00 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							528b572855 
							
						 
					 
					
						
						
							
							Add hack to allow for logentries to show for all users.  
						
						
						
						
					 
					
						2018-05-20 16:29:00 +01:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							7e1d59377a 
							
						 
					 
					
						
						
							
							Add inotify support  
						
						
						
						
					 
					
						2018-05-11 14:14:50 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							7357471b9e 
							
						 
					 
					
						
						
							
							Consumer loop: make sleep duration dynamic  
						
						... 
						
						
						
						Make the sleep duration dynamic to account for the time spent in
loop_step.
This improves responsiveness when repeatedly consuming newly
arriving docs.
Use float epoch seconds (time.time()) as the time type for
MailFetcher.last_checked to allow for natural time arithmetic. 
						
						
					 
					
						2018-05-11 14:14:50 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							bd75a65866 
							
						 
					 
					
						
						
							
							Refactor: renamings, extract fn 'loop'  
						
						... 
						
						
						
						Renamings:
loop -> loop_step
delta -> next_mail_time (this variable names a point in time, not a duration)
Extracting the 'loop' fn is a preparation for later commits where a
second type of loop is added. 
						
						
					 
					
						2018-05-11 14:14:25 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							e65e27d11f 
							
						 
					 
					
						
						
							
							Consider mtime of ignored files, garbage-collect ignore list  
						
						... 
						
						
						
						1. Store the mtime of ignored files so that we can reconsider them if
they have changed.
2. Regularly reset the ignore list to files that still exist in the
consumption dir. Previously, the list could grow indefinitely. 
						
						
					 
					
						2018-05-11 14:05:30 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							12488c9634 
							
						 
					 
					
						
						
							
							Simplify ignoring docs  
						
						
						
						
					 
					
						2018-05-11 14:05:29 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							61cd050e24 
							
						 
					 
					
						
						
							
							Ensure docs have been unmodified for some time before consuming  
						
						... 
						
						
						
						Previously, the second mtime check for new files usually happened right
after the first one, which could have caused consumption of docs that
were still being modified.
We're now waiting for at least FILES_MIN_UNMODIFIED_DURATION (0.5s).
This also cleans up the logic by eliminating the consumer.stats attribute
and the weird double call to consumer.run().
Additionally, this a fixes memory leak in consumer.stats where paths could be
added but never removed if the corresponding files disappeared from
the consumer dir before being considered ready. 
						
						
					 
					
						2018-05-11 14:05:29 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							f018e8e54f 
							
						 
					 
					
						
						
							
							Refactor: extract fn try_consume_file  
						
						... 
						
						
						
						The main purpose of this change is to make the following commits more
readable. 
						
						
					 
					
						2018-05-11 14:05:28 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							a56a3eb86d 
							
						 
					 
					
						
						
							
							Use os.scandir instead of os.listdir  
						
						... 
						
						
						
						It's simpler and better suited for use cases introduced in later commits. 
						
						
					 
					
						2018-05-11 14:05:25 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							2fe7df8ca0 
							
						 
					 
					
						
						
							
							Consume documents in order of increasing mtime  
						
						... 
						
						
						
						This increases overall usability, especially for multi-page scans.
Previously, the consumption order was undefined (see os.listdir()) 
						
						
					 
					
						2018-05-11 14:04:37 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							873c98dddb 
							
						 
					 
					
						
						
							
							Refactor: extract fn 'make_dirs'  
						
						
						
						
					 
					
						2018-05-11 14:04:36 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							ea287e0db2 
							
						 
					 
					
						
						
							
							Fix list out of bounds error in mail message parsing  
						
						... 
						
						
						
						Check list length before accessing the first two elements of
'dispositions'.
The list may have only a single element ('inline') or may be empty in
mailformed emails. 
						
						
					 
					
						2018-05-11 14:04:36 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							4babfa1a5b 
							
						 
					 
					
						
						
							
							Set default empty PAPERLESS_EMAIL_SECRET  
						
						... 
						
						
						
						Previously, if the user didn't set PAPERLESS_EMAIL_SECRET, Paperless
failed with an error in check_body() because self.SECRET was None. 
						
						
					 
					
						2018-05-11 14:04:31 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							aa2fc84d7f 
							
						 
					 
					
						
						
							
							Mail fetching: Only catch internal errors  
						
						... 
						
						
						
						Previously, all errors raised during mail fetching were silently caught
and printed without backtrace.
To increase robustness and ease debugging, we now fail with a backtrace
on unexpected errors. 
						
						
					 
					
						2018-05-11 14:01:09 +02:00 
						 
				 
			
				
					
						
							
							
								Erik Arvstedt 
							
						 
					 
					
						
						
						
						
							
						
						
							8d5ae64aff 
							
						 
					 
					
						
						
							
							Increase link area in documents listing  
						
						... 
						
						
						
						Increase the link area to include the whole visual header.
Fixes  #335  
						
						
					 
					
						2018-05-11 13:50:09 +02:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							82f9dde055 
							
						 
					 
					
						
						
							
							Account for KeyError problem in  #345  
						
						
						
						
					 
					
						2018-04-28 12:20:43 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							c983e73d0f 
							
						 
					 
					
						
						
							
							Account for KeyError problem in  #345  
						
						
						
						
					 
					
						2018-04-28 12:19:53 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							20a4a66a57 
							
						 
					 
					
						
						
							
							Clean up test formatting a bit  
						
						
						
						
					 
					
						2018-04-22 16:28:21 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							4ed1fff518 
							
						 
					 
					
						
						
							
							Remove old Python style  
						
						
						
						
					 
					
						2018-04-22 16:28:03 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							7223ea3c3f 
							
						 
					 
					
						
						
							
							Don't explode on invalid dates  
						
						
						
						
					 
					
						2018-04-22 16:27:43 +01:00 
						 
				 
			
				
					
						
							
							
								CkuT 
							
						 
					 
					
						
						
						
						
							
						
						
							3aafabba26 
							
						 
					 
					
						
						
							
							Fix LogEntry user when PAPERLESS_DISABLE_LOGIN is set to true  
						
						
						
						
					 
					
						2018-04-17 21:03:18 +02:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							4ba9514007 
							
						 
					 
					
						
						
							
							Revert root redirection  
						
						
						
						
					 
					
						2018-04-16 09:53:31 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							4505711e4f 
							
						 
					 
					
						
						
							
							Put this file where it's supposed to be  
						
						
						
						
					 
					
						2018-04-15 13:41:08 +01:00 
						 
				 
			
				
					
						
							
							
								Daniel Quinn 
							
						 
					 
					
						
						
						
						
							
						
						
							27c72a7bc6 
							
						 
					 
					
						
						
							
							Remove the hard-coding of the thumbnail URL  
						
						
						
						
					 
					
						2018-04-13 20:18:16 +01:00