257 Commits

Author SHA1 Message Date
Stefan
4eede1381c fix formatting 2022-08-20 13:15:38 -07:00
Stefan
e01452d02f Handle tags for gmail email accounts
like mentioned here: https://github.com/ikvk/imap_tools/issues/174
2022-08-20 13:15:38 -07:00
Trenton Holmes
024fd8bc9b When raising an exception during exception handling, chain them together for slightly cleaner logs 2022-08-03 09:00:56 -07:00
phail
4a89e0941f Merge remote-tracking branch 'paperless/dev' into feature-consume-eml 2022-07-12 00:09:10 +02:00
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
phail
d6b9eb6613 Merge branch 'dev' into feature-consume-eml 2022-05-20 19:29:52 +02:00
phail
07b000a01d switch to From: Header instead of date to compensate for older libmagic versions 2022-05-19 22:51:17 +02:00
phail
d605ef9ce0 workaround for wrong mime detection of .eml files 2022-05-14 16:47:12 +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
037c8a4950 add attachment size to pdf 2022-05-05 00:20:32 +02:00
phail
b14153b6cf fix consumption of mails without html
split pdf generation functions
2022-05-04 23:42:59 +02:00
phail
9c5f824bb3 add parsing of inline attachments
remove insecure chromium option
fix html parsing
2022-05-03 23:21:33 +02:00
phail
404026dafb remove .eml parser from tika 2022-05-03 18:02:08 +02: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
phail
f05e815961 merge migrations 2022-04-30 17:33:12 +02:00
phail
276b99b340 Merge remote-tracking branch 'paperless/dev' into feature-consume-eml 2022-04-29 23:52:56 +02:00
phail
79579d6239 add eml parser to paperless_mail 2022-04-29 22:58:11 +02: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
phail
09b3dc1586 moved files 2022-04-26 23:12:36 +02: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
phail
61851d9689 add prototype archive pdf 2022-04-25 20:55:00 +02: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
phail
c7d7052974 fix Mail actions mixup 2022-04-19 20:14:31 +02: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
phail
39cb1c9098 work in progress Mail parsing 2022-04-19 00:39:00 +02:00
phail
1393dd84f4 add feature to consume imap mail als .eml 2022-04-15 14:40:02 +02:00
phail
edafe401a5 remove uneeded print and fix merge fail 2022-04-14 00:19:30 +02:00
phail
8cd9e35857 Merge branch 'dev' into fix-mail-starttls 2022-04-13 23:55:38 +02:00
phail
77122dc26e fix unittest 2022-04-13 23:37:21 +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
phail
b83f8a1cab adapt to starttls interface change in imap_tools
pin imap-tools version to avoid breaking changes
improve mail log
2022-04-09 13:07:14 +02:00