Oliver Rümpelein
2c878318ab
Add migration for new rule.
2022-05-29 15:22:50 +02:00
Oliver Rümpelein
78fa05da9d
Clear cache instead of working around it.
2022-05-27 22:51:32 +02:00
Oliver Rümpelein
acd525a9d9
Make test work.
2022-05-26 12:42:20 +02:00
Oliver Rümpelein
164cd19296
Revert all changes to tests, will need a more structured approach.
2022-05-25 20:47:43 +02:00
Oliver Rümpelein
cbb36e8941
Add first draft implementation, test broken.
2022-05-25 19:23:52 +02:00
Trenton Holmes
f62193099c
Runs pyupgrade to Python 3.8+ and adds a hook for it
2022-05-06 09:04:08 -07:00
phail
dae148bdc5
Add log messages for mail errors ( #727 )
...
* adapt to starttls interface change in imap_tools
pin imap-tools version to avoid breaking changes
improve mail log
* fix unittest
* remove uneeded print and fix merge fail
* bump to next version
2022-05-02 15:54:51 -07:00
Quinn Casey
81582bb2e7
Merge pull request #725 from paperless-ngx/bugfix-imap-utf8-login
...
Fixes IMAP UTF8 Authenication
2022-04-29 10:31:38 -07:00
Trenton Holmes
a51edbf2ce
Fixes newly added mail tests to account for model change
2022-04-26 10:03:41 -07:00
Trenton Holmes
47191e9690
Adds some logging so we know which login method has failed
2022-04-26 09:41:36 -07:00
Trenton Holmes
402cca2b5f
Implements a fallback to AUTH=PLAIN in the event of a UnicodeEncodeError during a normal login
2022-04-26 09:41:36 -07:00
Trenton Holmes
ef3b6d9ec7
Fixes tests with imap-tools 0.54.0 changes to the EmailAddress class
2022-04-26 08:11:25 -07:00
Trenton Holmes
204cdaf175
Fixes backend testing of mail on dev
2022-04-25 11:10:32 -07:00
Michael Shamoon
421a604b92
Merge branch 'main' into dev
2022-04-25 10:33:40 -07:00
Trenton Holmes
72d48f50c1
Includes exception information during exception listing folders
...
Co-authored-by: Florian <florian.brandes@posteo.de>
2022-04-19 13:40:04 -07:00
Trenton Holmes
4539869016
Only output the folder names
2022-04-19 09:03:08 -07:00
Trenton Holmes
5e95f1017b
In the event of an error when setting the mail account folder, attempt to list the account's folders to the log
2022-04-19 08:32:34 -07:00
phail
753ef98eab
fix Mail actions mixup
2022-04-19 00:59:57 +02:00
shamoon
3662e648aa
Merge pull request #270 from jonasc/dev
...
Allow setting more than one tag in mail rules
2022-04-13 03:11:38 -07:00
Florian Brandes
a5e6e637be
fixes #697
...
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-12 15:54:18 +02:00
jonasc
64b4d5139b
reformat migration with black
2022-04-12 15:06:38 +02:00
jonasc
e242f18f20
merge migrations
2022-04-12 10:51:19 +02:00
jonasc
2dbae8c46f
Reset related_name (was set to prevent duplicate)
2022-04-12 10:45:56 +02:00
jonasc
261eddd21c
Add backwards data migration
...
The documents.tests.test_migration_mime_type test suite failes if no
backwards migration is provided. This simple backwards migration sets
the old assign_tag field with a tag if exactly one is set in
assign_tags.
2022-04-12 10:45:56 +02:00
jonasc
cf0d3b0615
Save MailRule and MailAccount objects in tests
...
This fixes the errors in the tests that the new many-to-many
assign_tags property cannot be accessed due to MailRule not having an
id. In one case it it necessary to give additional names to both objects
as several are created.
2022-04-12 10:45:52 +02:00
jonasc
00f0beb550
Allow setting more than one tag in mail rules
...
The three migrations do the following to preserve existing data in
assign_tag:
1. Add the new many-to-many field assign_tags.
2. Copy existing data from the assign_tag field to the assign_tags.
3. Delete the existing assign_tag field.
2022-04-12 10:41:08 +02:00
shamoon
3505a08633
Merge pull request #550 from stumpylog/feature-mail-consume-improve-docs
...
Feature mail consume improve docs
2022-04-10 08:46:45 -07:00
Trenton Holmes
4443a03df0
Fixes the matching of attachment files names to patterns
2022-04-08 13:42:42 -07:00
Trenton Holmes
c36ddc27f9
Updates the mail db model to use the built-in enum capabilities and runs the migrations
2022-04-08 08:55:40 -07:00
Trenton Holmes
6633961052
Updates the folder input text and adds docs note for how to figure out the folder separator value
2022-04-08 08:55:40 -07:00
Trenton Holmes
48c1f7795f
Improves the mail handling testing to use more of the imap_tools library types instead of internal types
2022-03-15 16:25:51 -07:00
Trenton Holmes
f63805afb3
Fixes the EmailAddress which was a dict and is now a class
2022-03-15 14:00:01 -07:00
Trenton Holmes
6635fa5f0d
Runs the pre-commit hooks over all the Python files
2022-03-11 11:34:28 -08:00
Johannes Schöpp
49b27d1bc6
Switched to flag()
...
Newer versions of imap_tools moved away from `seen()` in favour of
`flag()` and deprecated the former.
This fixes https://github.com/jonaswinkler/paperless-ng/issues/1672
I also remove the mocked `seen()` function and updated the `flag()` mock
2022-03-02 17:48:02 +01:00
kpj
c56cb25b5f
Format Python code with black
2022-02-27 15:26:41 +01:00
Stéphane Brunner
8d93b3b9cb
Hide the password field ( #103 )
2022-02-19 22:49:57 +01:00
jonaswinkler
ff7187672d
fix pycodestyle
2021-06-13 12:18:21 +02:00
servusoft
90914d9613
Solving issue with search criteria maximum age for some mail server
...
Some mail servers (mail.ru) do not support search criteria for the maximum age. By setting the maximum age to 0, it is possible to hide the search criteria. This PR solves that problem.
2021-05-27 18:30:57 +02:00
jonaswinkler
d6446b3efd
add support for configuring mail server character set per server. fixes #548
2021-05-16 11:58:32 +02:00
jonaswinkler
555e37958f
better exception logging
2021-02-11 22:16:41 +01:00
jonaswinkler
6c00a63015
separate mail logging
2021-02-06 16:59:04 +01:00
jonaswinkler
e5a7dc0cc7
rework most of the logging
2021-02-05 01:10:29 +01:00
jonaswinkler
28e1d5ea02
mail tests
2021-01-18 22:23:53 +01:00
jonaswinkler
47ebe5c263
fix test case
2021-01-11 22:11:01 +01:00
jonaswinkler
4b616feaa6
fixes #305
2021-01-11 16:16:39 +01:00
jonaswinkler
18c44c76c5
fixes #153 , adds option for inline attachments and filename filters
2021-01-06 02:40:08 +01:00
jonaswinkler
e1e19685b9
add missing migrations
2021-01-02 01:21:44 +01:00
jonaswinkler
9f26f47cae
fix some translation issues
2021-01-02 00:45:23 +01:00
jonaswinkler
59be51ffd8
fix some messages
2021-01-01 20:23:32 +01:00
jonaswinkler
669163b821
more translation
2020-12-31 15:59:12 +01:00