Commit graph

53 commits

Author SHA1 Message Date
S-A-L13
876ed221c3
Update Fork (#2)
* Cleanup OpenPgpImportPopupView code

* update polish translation

* small fix

* Added Import S/MIME certificate popup
And much better handling of the sign and encrypt options

* bugfix: store in Passphrases

* Resolve #1448

* pre-verify S/MIME opaque signed messages so we have a body to view

* Fix timestampToString() for future dates

* Move php8.php to /app/libraries/polyfill/

* Improved Settings handling to prevent bugs in outer code

* Changed AbstractProvider::IsActive() to be abstract

* Example for #1449

* bugfix: previous IsActive() commit

* OpenSSL required due to S/MIME

* Use get_debug_type() instead of gettype()

* update polish translation

* Make all Enumerations classes abstract

* Added search functionality in Admin -> Config
And removed the unused ['capa']['quota']

* Cleanup Quota handling

* OPEN_PGP should be OPENPGP as it is one word

* Improve Capa handling

* Resolve #1451

* Bugfix TypeError: b64Encode(...).match(...) is null

* Small StorageType change

* Bugfix: mailvelope editor failed

* Bugfix: undefined getMailvelopePrivateKeyFor()

* Bugfix: MIME parser RegExp didn't escape `boundary` which caused issues

* Return detailed info on PgpImportKey

* Show GnuPG verify error

* Sort PGP keys by email and id

* Sort S/MIME certificates on emailAddress else validTo

* S/MIME import from signature use `BEGIN PKCS7`

* Optionally use existing private key to generate S/MIME certificate

* Chaned some error_log() to MailSo Logger()

* Force reload of S/MIME certificates list on import

* Make better use of SnappyMail\SensitiveString

* Fix view PGP key button

* Mask all POST data that has a key which contains `pass`

* v2.35.1

* Resolve #1455

* Improved GnuPG error handling

* Update pt/pt-PT translation

* update Polish translation

* Drop support for gnupg pecl extension as it fails with "no passphrase" issues

* Resolve #1456

* Resolve #1458

* v2.35.2

* fix changelog

* Resolve #1461

* Update pt/pt-PT translation

* compact-composer plugin v1.0.0

* Resolve #1462

* Fix decrypt error message

* `new Error()` to `Error()`

* Resolve #1463

* Show url for #1466

* Simplify SignMe/Remember me code

* Simplify language Notifications

* Bugfix: SetPassword expects \SnappyMail\SensitiveString

* https://github.com/the-djmaze/snappymail/issues/1450#issuecomment-1972147950

* improve: fire the 'squire2-toolbar' event after more props are added

* improve: add dark theme support and use 'button' element as menu trigger for consistent styling

* fix: use compact template in non-destructive way (do not replace the PopupsCompose template if a different wysiwyg is used)

* Update admin.json

* Update user.json

* CSS rainloopErrorTip location

* Improved error handling on PGP and S/MIME decrypt

* KnockoutJS remove unused `beforeRemove`

* KnockoutJS drop unused `as`

* KnockoutJS simplify renderMode because only 1 option is used

* KnoutJS cleanup templating.js a bit

* KnockoutJS drop unused `bindingRewriteValidators`

* KnockoutJS drop the twoWayBindings code

* KnockoutJS simplify virtualElements binding check

* KnockoutJS simplify applyBindingsToNodeInternal

* KnockoutJS use Array.isArray

* KnockoutJS drop alias `textinput` for `textInput`

* KnockoutJS scramble `createChildContext`

* KnockoutJS scramble `controlsDescendantBindings`

* KnockoutJS scramble `exportDependencies`

* KnockoutJS drop unused `throttleEvaluation`

* KnockoutJS drop unused `valueAllowUnset`

* KnockoutJS drop unused `templateNodes`

* KnockoutJS drop unused `optionsCaption`

* KnockoutJS drop unused `dontLimitMoves`

* KnockoutJS drop unused `uniqueName`

* KnockoutJS drop IE leftovers

* KnockoutJS drop unused `preprocess`

* KnockoutJS drop unused "disposeWhenNodeIsRemoved" and "disposeWhen"

* KnockoutJS don't scramble exportDependencies. controlsDescendantBindings, createChildContext

* KnockoutJS drop unused `$parentContext` and `$parents`

* KnockoutJS drop unused `$rawData`

* Knockoutjs built latest

* KnockoutJS drop unused template options `nodes`, `if`, `ifnot`

* KnockoutJS use more Array.isArray

* KnockoutJS cleanup code a bit

* KnockoutJS primitiveTypes can just be checked with Object()

* KnockoutJS rebuilt

* Verify S/MIME signed automatically and log Exception

* Automatically verify PGP and S/MIME signed messages

* `new Error` to `Error`

* By default throw AccountNotAllowed as confused in #1478

* GPG use pinentries for decrypt, sign and export

* Better GPG error handling

* GPG show error on view/export

* OpenPGP fix handling of importing keys

* Make "verify signatures automatically" optional, as it requires more IMAP fetching

* S/MIME don't post identity key and certificate, just fetch from server

* Show error to old browsers, instead of crashing

* Automatically verify S/MIME decrypted signed message

---------

Co-authored-by: the-djmaze <>
Co-authored-by: tinola <tinola@poczta.onet.pl>
Co-authored-by: Maarten <3752035+the-djmaze@users.noreply.github.com>
Co-authored-by: lmperfis <joint.striker@gmail.com>
Co-authored-by: Sergey Mosin <sergey@srgdev.com>
Co-authored-by: hguilbert <51283484+hguilbert@users.noreply.github.com>
2024-03-04 17:00:27 +01:00
the-djmaze
6a715da1ac Bugfix Sieve rfc5429 2024-01-08 04:55:18 +01:00
the-djmaze
a96ff94c6f Bugfix handling of RainLoop Sieve script 2024-01-03 02:41:42 +01:00
the-djmaze
f3935b1df4 Fix some Sieve parser issues 2024-01-03 01:47:52 +01:00
the-djmaze
62639acc5a Cleanup Sieve RainLoop filter editor 2024-01-03 01:31:44 +01:00
the-djmaze
a2b638dc55 Remove all String.trim() from Sieve RainLoop script #1329 2023-11-26 02:55:08 +01:00
the-djmaze
bde5060008 Revert #1323
As rfc5228 implementations MUST support the "keep", "discard", and "redirect" actions.
2023-11-23 01:46:46 +01:00
the-djmaze
0736782a44 Resolve #1323 2023-11-23 01:34:55 +01:00
the-djmaze
88279c55e0 Resolve #1111 2023-05-01 11:48:57 +02:00
the-djmaze
ce2fb9d7f2 Many AppData properties to JavaScript camelCase 2023-02-21 10:22:59 +01:00
the-djmaze
8d52b0afdf Bugfix: Notification enum conflicts with window.Notification 2023-02-20 15:59:37 +01:00
the-djmaze
4cfd6479ce Better Sieve rainloop.user script handling 2023-01-25 09:28:09 +01:00
the-djmaze
f4b9501388 Resolve #728 by removing impossible button 2022-11-30 17:11:44 +01:00
the-djmaze
c7cf5b1c2c JavaScript substr() is deprecated 2022-10-19 16:43:16 +02:00
the-djmaze
732b6eb641 Use JavaScript Optional chaining 2022-09-02 11:52:07 +02:00
the-djmaze
58cd2fcacb Cleanup and improved handling of Sieve scripts 2022-08-23 10:52:23 +02:00
the-djmaze
edb7b38e0c Resolve #494 2022-08-22 22:10:09 +02:00
the-djmaze
6c4950615d Cleanup Sieve Filter edit, no need to reassign filters on save 2022-07-21 22:03:56 +02:00
the-djmaze
cf71c1a18f Resolve #464 2022-07-21 21:57:29 +02:00
the-djmaze
e1426b484e Sieve: use Optional chaining operator
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
2022-05-21 23:58:46 +02:00
the-djmaze
7c8039d91d Resolve #407 2022-05-19 15:18:15 +02:00
the-djmaze
33f0e6febf Small code cleanup 2022-05-18 22:53:33 +02:00
the-djmaze
882c0bde42 Bugfix: sieve undefined args[i-1] 2022-05-17 14:48:38 +02:00
the-djmaze
663fb1485a Resolve #400 2022-05-17 12:18:49 +02:00
the-djmaze
6a90c62456 Resolve #317 2022-04-05 14:26:10 +02:00
the-djmaze
f47eb61aee Improved Sieve Script editor with lists of available Actions, Controls and Tests 2022-03-17 10:21:23 +01:00
the-djmaze
ff9a89380c Prepare some Sieve restructuring for GUI 2022-03-17 09:03:02 +01:00
the-djmaze
37bb9a9a97 added Sieve getMatchTypes() for easy valid match-types 2022-03-16 14:33:43 +01:00
the-djmaze
e4bd24b4e8 Added Sieve extension rfc6134 partial 2022-03-16 14:21:23 +01:00
the-djmaze
63de537f8f Added Sieve extension rfc5703 2022-03-16 12:05:50 +01:00
the-djmaze
57673384e9 Support Sieve extension rfc6131 2022-03-15 10:16:26 +01:00
the-djmaze
b3c1723c5c Improved Sieve code and added rfc5435 2022-03-15 09:58:04 +01:00
the-djmaze
c01c02d723 Added Sieve extension rfc5463 2022-03-15 07:54:25 +01:00
the-djmaze
219589b8ea Support Sieve RFC3894 2022-03-14 14:06:28 +01:00
the-djmaze
668a5f1fa5 Added Sieve rfc5490
Renamed tests classes *Command as *Test
2022-03-14 12:39:11 +01:00
the-djmaze
40adf992ed Activate more Sieve extensions and use parseScript when saving script 2022-03-13 20:22:00 +01:00
the-djmaze
42813b90dd Added the new Sieve parser as script validator 2022-03-11 13:41:13 +01:00
the-djmaze
9bae77bfa1 Fix Sieve Circular dependency 2022-03-11 13:01:46 +01:00
djmaze
d6dc4d291c Split Sieve/Filters code from app.js so that i can work on the new Sieve GUI 2022-03-11 10:26:25 +01:00
the-djmaze
f4cd25f8ad Added Sieve parser code in master 2022-03-09 12:33:31 +01:00
djmaze
ca91a6e408 drop sieve parser from sievescripts branch 2021-01-20 11:43:03 +01:00
djmaze
73e26d388a Added: rfc5233
Activate: comparator
Bugfix: StringList must use .toString()
Bugfix: redirect command
Bugfix: MultiLine
2021-01-15 16:09:03 +01:00
djmaze
3566f4a538 Added rfc5183, rfc5229, rfc5260 and rfc5293
Make comparator and match_type available for all Test classes

Signed-off-by: djmaze <djmaze@djmaze.lan>
2021-01-15 14:35:16 +01:00
djmaze
3ce123b536 Added RFC5231 check 2021-01-15 12:12:56 +01:00
djmaze
eb369ca122 Added rfc6609 2021-01-15 12:11:13 +01:00
djmaze
68fc9f21bd Centralize some argument parsing
Improved parser error handling
Fix Sieve Vacation extension
2021-01-15 11:34:16 +01:00
djmaze
55178016a0 Solve some comparators 2021-01-15 00:32:04 +01:00
djmaze
43c669e629 Added draft code for handling "require []" 2021-01-15 00:14:45 +01:00
djmaze
d9865e3a46 Simplify Sieve Parser and added RFC5235 2021-01-14 23:42:46 +01:00
djmaze
22964f1fde More improvements and fixes based on test scripts 2021-01-14 17:50:23 +01:00