235 Commits

Author SHA1 Message Date
Trenton Holmes
d4bc608dc5 Fixes an erroneous raise that prevented the retry logic from going 2023-08-28 18:26:22 -07:00
Trenton Holmes
0ddb62943c Sets the http timeouts equal to the task timeout, so it's either done or really done 2023-08-23 18:40:22 -07:00
Trenton H
d48c59a546 Adjusts to use a different loading of certificates and updates the docs for it 2023-08-23 08:22:01 -07:00
Trenton H
7279eb27c0 Allow users to set a combined certificte and key file for additional certificates in the SSL context 2023-08-23 08:22:01 -07:00
Trenton H
73e829b721 Reduces the 2 mail tests flakiness 2023-08-07 15:32:33 -07:00
Trenton H
45f4d9d6eb Creates and provides a default SSL context to the IMAP library 2023-07-28 10:43:37 -07:00
shamoon
de2c82787e Include permissions for mail rules & accounts 2023-07-26 07:28:25 -07:00
Trenton H
97d9edda96 Updates tika client library and handle the changes to it 2023-06-26 10:41:05 -06:00
Trenton H
fe9874a96a Fixes generation of thumbnails when the archive file hasn't already been created 2023-06-26 10:36:50 -06:00
Trenton H
7a63bcc817 Updates the httpx timeout to be 30s for all operations 2023-06-19 08:59:51 -07:00
Trenton Holmes
48ab961c68 Adds better error handling/checking around getting content of a document via Tika
Signed-off-by: Trenton Holmes <797416+stumpylog@users.noreply.github.com>
2023-06-18 08:39:17 -07:00
Trenton H
4504668cb2 Let ruff autofix some things from the newest version 2023-06-13 20:15:18 -07:00
shamoon
9b0fca3f5d Return default 'ALL' mailbox criterias for some imap servers 2023-06-06 20:00:31 -07:00
Trenton H
1b3492a01f Rewrites the email parsing to be more clear and concise.
Adds testing to use httpx mocked responses to stand in as a server even offline
2023-06-06 09:05:26 -07:00
Trenton H
36f09c4974 Swapping out the tika and replaces requests with httpx 2023-06-06 09:05:26 -07:00
Trenton H
bad8d304cb Improves the logging mixin and allows it to be typed better 2023-05-23 17:16:39 -07:00
shamoon
beafebf4a6 Dont perform mail actions when rule filename filter not met
Update mail.py
2023-05-06 23:59:33 -07:00
Trenton H
e5225a3798 Fixes inversion in tagged mail searching 2023-05-04 06:29:41 -07:00
Trenton H
fe0f034127 Don't ever send GMail related keywords if the server doesn't report support for the extensions 2023-04-29 09:34:50 -07:00
Trenton H
aabcc9a1c4 Upgrades black to v23, upgrades ruff 2023-04-26 09:35:27 -07:00
Trenton H
30655f1b73 Fixes ruff not running isort against the codebase 2023-04-26 09:35:27 -07:00
shamoon
f66372aa28 Update src/paperless_mail/mail.py with code suggestions
Co-authored-by: Trenton H <797416+stumpylog@users.noreply.github.com>
2023-04-25 07:22:16 -07:00
shamoon
ce81fb37f8 Handle delete mail action with no filters 2023-04-24 20:55:01 -07:00
Trenton H
dce0b2a29f To support token auth better, increase the password field (more of a double duty) to be 2048 chars 2023-04-20 14:43:19 -07:00
Trenton H
d2c02b9102 Configures ruff as the one stop linter and resolves warnings it raised 2023-04-01 17:03:52 -07:00
Trenton H
36a6df0bae Creates a data model for the document consumption, allowing stronger typing of arguments and setting of some information about the file only once 2023-04-01 11:05:34 -07:00
shamoon
b350454633 Adds testing for test mail account 2023-03-24 15:14:02 -07:00
shamoon
f6cd40f9f2 Add test mail account 2023-03-24 15:14:02 -07:00
Trenton H
2043571def Allows users to use OAuth tokens instead of passwords 2023-03-23 08:52:12 -07:00
Trenton H
4607323b6a Allows filtering email by the TO value(s) as well 2023-03-12 10:31:42 -07:00
Trenton H
1008b6c1f5 When tagging an email using Gmail label extensions, append the label instead of replacing 2023-03-10 09:19:58 -08:00
Trenton H
0644e8ae21 Ensure dates from emails are made timezone aware if not already 2023-03-07 10:01:40 -08:00
shamoon
d41ebd2a8a Update processed mail migration 2023-03-03 10:40:29 -08:00
shamoon
679579a452 Update admin.py 2023-03-02 19:37:09 -08:00
Jonas Winkler
3240ad2b99 fix links in django admin 2023-03-01 18:17:55 +01:00
Jonas Winkler
ed6ec7fb38 cleanup test code 2023-02-24 12:49:54 +01:00
Jonas Winkler
b568d27dfa fix the test cases for python 3.8 2023-02-24 00:15:40 +01:00
Jonas Winkler
135f2c9a56 fix the test cases 2023-02-24 00:03:28 +01:00
Jonas Winkler
e7279a7947 changes 2023-02-23 22:02:38 +01:00
Jonas Winkler
0dac012248 reconfigure mail admin 2023-02-21 22:07:14 +01:00
Jonas Winkler
000f14b35e Merge branch 'dev' into feature/2396-better-mail-actions 2023-02-21 18:37:17 +01:00
Jonas Winkler
ce4ec0e035 changes 2023-02-21 18:37:08 +01:00
Jonas Winkler
844ab06cf5 mark mails as processed internally, don't process processed mails again 2023-02-21 13:50:34 +01:00
Trenton Holmes
6644ccc33f Changes testing to use more declarative status code names from DRF 2023-02-20 10:25:21 -08:00
Trenton Holmes
acfa7d633d Creates a mix-in for asserting file system states 2023-02-20 10:25:21 -08:00
Jonas Winkler
59000df482 remove unused argument 2023-02-20 11:57:56 +01:00
Jonas Winkler
a484db2d15 implement better mail actions 2023-02-20 11:46:46 +01:00
Jonas Winkler
890d48609e Merge branch 'dev' into feature/2396-better-mail-actions 2023-02-19 23:29:52 +01:00
shamoon
c9ea57a142 Merge branch 'dev' into feature-permissions 2023-02-16 20:44:51 -08:00
shamoon
c35ac07b32 Merge branch 'dev' 2023-02-16 20:07:50 -08:00