Jesaja Everling
0c5a0b54c1
Defect/628 positional arguments for mailbox
2019-06-21 13:35:23 +00:00
Jesaja Everling
e09bd48d65
Fix kwargs for poplib.POP3_SSL and poplib.POP3
2019-06-20 03:51:31 +00:00
Roberto Rosario
7f43a8d5a3
Add support for locked files for watchfolder
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-06-12 03:40:13 -04:00
Roberto Rosario
0267c79b07
Backport test improvements
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-20 02:39:57 -04:00
Roberto Rosario
0d4ab4f2cf
Move setting to the storage app
...
The setting COMMON_TEMPORARY_DIRECTORY is now
STORAGE_TEMPORARY_DIRECTORY.
Move file related utilities to the storage app.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-12 22:26:43 -04:00
Roberto Rosario
36a51eeb73
Switch to full app paths
...
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-05 02:02:57 -04:00
Roberto Rosario
d35323aa65
Watch folders: Add support for subfolders
...
Add support for subfolder scanning to watch folders. Closes
GitLab issue #498 and #563 .
This commit adds a new field to watch folders called
"include_subdirectories".
The directory walk was also updated to use pathlib2.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-05 01:03:34 -04:00
Roberto Rosario
8419facb8a
PEP8 cleanups
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-04 02:46:25 -04:00
Roberto Rosario
5a64a3e833
Reject emails attachments of size 0
...
Thanks to Robert Schoeftner (@robert.schoeftner)for the report
and solution. GitLab issue #574 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-02 23:51:53 -04:00
Roberto Rosario
eeeb246ed7
Restore use of the .store_body variable accidentally remove in 63a77d0235. Thanks to TheOneValen @TheOneValen for the report.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-10-07 04:30:32 -04:00
Roberto Rosario
a99b044555
Code style improvement. Test code consolidation. PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-10-06 02:13:36 -04:00
Roberto Rosario
aa38b1c0e8
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-06-29 03:10:17 -04:00
Roberto Rosario
460570ed05
Don't provide a default for the scanner source adf_mode. Some scanners throw an error even when the selection if supported.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-06-07 20:58:50 -04:00
Roberto Rosario
4d11234ba5
Fix error when trying to upload a document from and email account with 'from' and 'subject' metadata. Fix typo on message.header get from 'Suject' to 'Subject'. On multi part emails keep the original From and Subject properties for all subsequent parts if the sub parts don't specify them. Fixes issue #481 . Thanks to Robert Schöftner @robert.schoeftner for the report and debug information.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-06-07 20:47:00 -04:00
Roberto Rosario
ad351a1368
Add test for the POP3 email source model.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-11 22:23:04 -04:00
Roberto Rosario
64ad07d95d
Add locking for interval sources. This reduces the chance of repeated documents from long running email downloads.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-10 02:26:06 -04:00
Roberto Rosario
3618778737
Email source code cleanups. Use the header variable returned from flanker to extract the sender and the subject. Remove unsed scanimage usage via sh.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-10 01:52:47 -04:00
Roberto Rosario
63a77d0235
Use Mailgun's flanker library to process the email sources.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-10 01:16:53 -04:00
Cornelius Ludmann
d7567f4b97
Test for base64 encoded e-mail attachment filename
...
Signed-off-by: Cornelius Ludmann <dev@cornelius-ludmann.de >
2018-04-01 18:37:35 -04:00
Roberto Rosario
ec223dd54d
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-27 02:08:39 -04:00
Roberto Rosario
922492169f
Fix typos in tests.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-17 21:18:56 -04:00
Roberto Rosario
f5660cd629
Update all test for 100% passed (348 tests).
2017-01-14 17:43:55 -04:00
Roberto Rosario
5ea31554bc
Update and fix failing tests.
2017-01-14 03:08:32 -04:00
Roberto Rosario
4e7559d396
Add settings class cache invalidation method. Update common.tests.base.BaseTestCase
...
class to invalidate settings cache. Update tests using Django's TestCase to
BaseTestCase.
2017-01-14 00:13:35 -04:00
Roberto Rosario
945158bd60
Normalize handling of temporary file and directory creation.
2016-06-23 20:54:10 -04:00
Roberto Rosario
23270e948c
PEP8 cleanups.
2015-11-02 17:40:27 -04:00
Roberto Rosario
da4c41c5b2
Change the way new document version are blocked, moving the logic to the documents app from the checkouts app signal handler. Disable the upload new document version button and have the new version upload view redirect to the document version list with a message. GitLab issue #231 .
2015-10-23 06:06:59 -04:00
Roberto Rosario
df7a5c6e1c
Reorganize tests literals and move then to their respective apps.
2015-10-20 21:14:07 -04:00
Roberto Rosario
3e3eca4c0e
Update all tests to use setting value overriding.
2015-09-06 04:01:40 -04:00
Roberto Rosario
4fb86fba14
Re-estructure tests to cleanup the apps' namespace.
2015-08-18 23:06:26 -04:00