Skip to content

Commit

Permalink
enhance: Paperless-ngx add support for email addresses (#1147)
Browse files Browse the repository at this point in the history
* enhance: Paperless-ngx add support for email addresses

* enhance: messed up the test files
  • Loading branch information
LaurenceJJones authored Oct 31, 2024
1 parent a0455ef commit 22392eb
Show file tree
Hide file tree
Showing 4 changed files with 422 additions and 283 deletions.
8 changes: 6 additions & 2 deletions .index.json
Original file line number Diff line number Diff line change
Expand Up @@ -6670,7 +6670,7 @@
"andreasbrett/paperless-ngx-logs": {
"path": "parsers/s01-parse/andreasbrett/paperless-ngx-logs.yaml",
"stage": "s01-parse",
"version": "0.4",
"version": "0.5",
"versions": {
"0.1": {
"digest": "9e0192bcc89e1050c982852c611d23f4ca781c4c201a094f11a5a2f4055f47f6",
Expand All @@ -6687,10 +6687,14 @@
"0.4": {
"digest": "21d1dff2e2d42b5aa2c24e30f7d761d141afcc64706b3a24efbe5ddd528b605f",
"deprecated": false
},
"0.5": {
"digest": "b8c9eaf3783acbf71d2ee98d515dd9dbf97aa2d3c72a4f897d5425c2669d654a",
"deprecated": false
}
},
"long_description": "UGFyc2VyIGZvciBbUGFwZXJsZXNzLW5neF0oaHR0cHM6Ly9naXRodWIuY29tL3BhcGVybGVzcy1uZ3gvcGFwZXJsZXNzLW5neCkgTG9ncy4KCmBgYHlhbWwKLS0tCmZpbGVuYW1lczoKICAgIC0gL3Zhci9sb2cvcGFwZXJsZXNzLmxvZwpsYWJlbHM6CiAgICB0eXBlOiBQYXBlcmxlc3Mtbmd4CmBgYAo=",
"content": "b25zdWNjZXNzOiBuZXh0X3N0YWdlCmZpbHRlcjogIlVwcGVyKGV2dC5QYXJzZWQucHJvZ3JhbSkgPT0gJ1BBUEVSTEVTUy1OR1gnIgpuYW1lOiBhbmRyZWFzYnJldHQvcGFwZXJsZXNzLW5neC1sb2dzCmRlc2NyaXB0aW9uOiAiUGFyc2UgcGFwZXJsZXNzLW5neCBsb2dzIgpwYXR0ZXJuX3N5bnRheDoKICAgIERBVEVfWU1EOiAiJ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"description": "Parse paperless-ngx logs",
"author": "andreasbrett",
"labels": null
Expand Down
3 changes: 2 additions & 1 deletion .tests/paperless-ngx-logs/paperless-ngx-logs.log
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@
[2023-06-30 18:05:11,437] [INFO] [paperless.auth] Login failed for user `test4publegacy` from IP `192.168.0.100.`
[2023-06-30 18:05:38,622] [INFO] [paperless.auth] Login failed for user `test4publegacy` from IP `192.168.0.100.`
[2023-06-30 18:06:22,264] [INFO] [paperless.auth] Login failed for user `test4publegacy` from IP `192.168.0.100.`
[2023-06-30 18:06:47,831] [INFO] [paperless.auth] Login failed for user `test4publegacy` from IP `192.168.0.100.`
[2023-06-30 18:06:47,831] [INFO] [paperless.auth] Login failed for user `test4publegacy` from IP `192.168.0.100.`
[2023-06-30 18:06:47,831] [INFO] [paperless.auth] Login failed for user `[email protected]` from IP `192.168.0.100.`
Loading

0 comments on commit 22392eb

Please sign in to comment.