Commit Graph

131 Commits

Author SHA1 Message Date
Aleksander Machniak
800832612c Fix PHP8 warning 2021-09-22 11:38:46 +02:00
Aleksander Machniak
f2688ba492 Use ?? operator where applicable 2021-09-21 19:12:06 +02:00
Aleksander Machniak
e2187b8f2d Fix various PHP 8.1 warnings 2021-08-27 16:52:54 +02:00
Aleksander Machniak
db2888c604 Support IMAP LITERAL- extension [RFC 7888] (#6878) 2021-05-29 08:52:37 +02:00
Aleksander Machniak
ed17ce58b1 Remove (incorrect) use of Return-Receipt-To header (#8069) 2021-05-22 09:13:42 +02:00
Thomas P
0044673e11 Add config options for subject prefixes (#7929) 2021-04-25 09:41:08 +02:00
Josh Soref
203f456620 Spelling (#8001) 2021-04-18 08:43:18 +02:00
johndoh
79af30e924 Add preauth_ident parameter (#7863) 2021-01-30 15:53:39 +01:00
Aleksander Machniak
5975742bcb Fix so IMAP ID command is send only after authentication (#7517) 2021-01-24 09:39:25 +01:00
Aleksander Machniak
5aa0d09def Add array_first() helper, fix some code issues 2020-12-20 09:44:17 +01:00
Aleksander Machniak
f4ed1024dc PHP8 fixes, CS fixes, short array syntax, tests 2020-12-02 20:15:00 +01:00
Aleksander Machniak
7e5301f636 CS fixes, short array syntax, PHP8 fixes, tests 2020-11-28 18:52:36 +01:00
Aleksander Machniak
545a1569f1 Steps -> Actions refactoring (#7688)
* Move action handling code to rcmail class
* Add rcmail_action class
* Add action aliases
* Get rid of $OUTPUT global
* Move some methods from rcmail to rcmail_action
* PHP8 compat. fixes
* Add framework for testing actions
* Fix obvious code mistakes
2020-11-01 11:25:38 +01:00
Aleksander Machniak
f95212d626 PHP8: More warnings fixed 2020-10-11 15:24:30 +02:00
Aleksander Machniak
bde383d051 PHP8: Fix various issues
for now only these I found by running our unit tests, there will be much more
2020-10-11 10:32:41 +02:00
Aleksander Machniak
a5c2b4360c Fixes in context of undefined variables, and code style 2020-08-15 12:13:31 +02:00
Thomas B
9020797d0d Merge pull request #7425 from thomascube/pr-xoauth2
Add OAuth/XOauth support
2020-08-10 21:40:01 +02:00
Aleksander Machniak
60ccb25bd5 Fix detecting special folders on servers with both SPECIAL-USE and LIST-STATUS (#7525) 2020-07-31 14:36:57 +02:00
Thomas Bruederli
1e6a2f4f49 Basic support for OAuth2 user login and IMAP/SMTP authentication
- Add "Login with XXX" button to login screen if oauth is configured
- Perform OAuth login procedure and get an access token
- Implement XOAUTH2 authentication type for IAMP and SMTP

Requires a patched and not yet released version of Net_SMTP.
2020-06-16 08:17:52 +02:00
Aleksander Machniak
f6586c7cf7 Fix PHP warning: count(): Parameter must be an array or an object... in ID command handler (#7392) 2020-05-19 07:57:35 +02:00
Aleksander Machniak
e84dc4c385 Fix literals handling again 2020-03-20 19:39:19 +01:00
Aleksander Machniak
2965e60c1f Support many string literals in a "line response", deduplicate code 2020-03-20 18:53:45 +01:00
Aleksander Machniak
f9c84e2646 Fix string literals handling in IMAP STATUS (and various other) responses (#7290) 2020-03-19 21:28:28 +01:00
Aleksander Machniak
d194b238c7 Support RFC8438: IMAP STATUS=SIZE - for faster folder size calculation (#7269) 2020-03-08 10:27:28 +01:00
Aleksander Machniak
770d818dd9 Fix undefined variable 2020-02-17 14:31:57 +01:00
Aleksander Machniak
0b02e87afe Fix some strict mode warnings 2020-01-31 13:21:34 +01:00
Aleksander Machniak
fe796d4040 Remove useless pass-by-reference 2020-01-31 09:58:03 +01:00
Aleksander Machniak
66fab8cdb2 CS fixes, Avoid usused variables, fixed minor bugs 2019-10-05 19:44:39 +02:00
Aleksander Machniak
1afa46d28d PHPDoc and CS fixes 2019-08-25 14:15:09 +02:00
Aleksander Machniak
44bdca4ab9 Enigma: Fix bug where signature verification could have been skipped for some message structures (#6838) 2019-07-10 14:01:51 +02:00
Aleksander Machniak
57c67db029 Remove year(s) from copyright headers + some cleanup 2019-04-16 10:42:45 +02:00
Aleksander Machniak
5693b4f31c Fix bug in parsing some IMAP command responses that include unsolicited replies (#6577) 2019-01-04 09:17:51 +01:00
Aleksander Machniak
943de28d2a Log IMAP/SMTP connection time in debug mode 2018-12-05 12:02:41 +01:00
Aleksander Machniak
3dad8c5908 Fix incorrect IMAP SASL GSSAPI negotiation (#6308) 2018-10-24 12:29:50 +02:00
Aleksander Machniak
c4916a8fe3 Simplify code that uses setError() followed by return 2018-10-24 12:13:13 +02:00
Aleksander Machniak
19332495b0 Fix so fallback from BINARY to BODY FETCH is used also on [PARSE] errors in dovecot 2.3 (#6383) 2018-08-06 15:30:29 +02:00
Aleksander Machniak
988ed7e565 Fix PHP warnings on dummy QUOTA responses in Courier-IMAP 4.17.1 (#6374) 2018-08-06 11:08:07 +02:00
Edgaras L
c236c22c41 Parse all quotas from GETQUOTAROOT (#6280) 2018-05-05 12:48:15 +02:00
Aleksander Machniak
8df6d7c3e4 Fix regression in compressMessageSet() (#6235) 2018-04-06 08:21:22 +02:00
Aleksander Machniak
8b0540d402 Fix possible IMAP command injection and type juggling vulnerabilities (#6229) 2018-04-03 19:07:02 +02:00
Aleksander Machniak
c0959bd619 Sanity checks for header data length in FETCH (#6087)
Where we know what expected data length is we truncate the input.
2017-12-13 09:06:40 +01:00
Aleksander Machniak
36638ec0c2 Fix untagged COPYUID responses handling - again (#5982) 2017-11-20 18:05:07 +01:00
Aleksander Machniak
f8fc01b800 Fix so untagged COPYUID responses are also supported according to RFC6851 (#5982) 2017-10-06 09:23:17 +02:00
Aleksander Machniak
76adb49454 Support for IMAP folders that cannot contain both folders and messages (#5057) 2017-07-14 13:39:49 +02:00
Aleksander Machniak
e04f72d018 Fix PHP 7.2 warnings on count() use (#5845) 2017-07-09 13:20:57 +02:00
Aleksander Machniak
7c001260fa Simplified code to parse METADATA responses 2017-06-05 12:32:50 +02:00
Aleksander Machniak
f7809af6e4 Support AUTHENTICATE LOGIN for IMAP connections (#5563)
Add imap_auth_type=IMAP to force use of LOGIN instead of AUTHENTICATE LOGIN.
In imap_auth_type=CHECK mode prefer LOGIN over AUTHENTICATE LOGIN (for performance reasons).
2017-05-19 10:50:51 +02:00
Aleksander Machniak
e800fb5a19 Bring back unintentionally removed .SILENT suffix in STORE FLAGS command 2017-04-27 10:20:12 +02:00
Aleksander Machniak
d1cf69562f CS fixes and return values fixes 2017-04-27 09:58:11 +02:00
ka7
9a35768c26 spelling fixes (#5690) 2017-03-12 12:14:19 +01:00