Commit Graph

145 Commits

Author SHA1 Message Date
Aleksander Machniak
a55061dfae Fix PHP error when imap_conn_options.proxy_protocol is not an array 2023-06-02 14:46:01 +02:00
Aleksander Machniak
3648caa0d1 Optimize fetchPartBody() for huge results w/o formatting and decoding 2023-05-08 10:15:48 +02:00
Aleksander Machniak
378a5d3423 Fix PHP 8.1 warning (#8804) 2022-11-28 20:52:53 +01:00
Aleksander Machniak
c78d998ec3 Fix authenticating to Courier IMAP with passwords containing a '~' character (#8772) 2022-11-11 14:11:37 +01:00
Aleksander Machniak
704034be2d Add setQuota() method 2022-09-24 09:08:10 +02:00
Aleksander Machniak
9fc9158fc2 Merge branch 'dev/proxyprotocol' of https://github.com/cmollekopf/roundcubemail into cmollekopf-dev/proxyprotocol 2022-08-01 11:56:22 +02:00
Aleksander Machniak
0895d6c2fd - Fix various PHP 8.1 warnings (#8628) 2022-07-29 08:00:34 +02:00
Christian Mollekopf
76154d27f2 Introduce optional support to inject PROXY protocol headers after
opening IMAP TCP streams.

Version 1 (text based) and version 2 (binary) protocol header types are
supported. Supports both IPv4 and IPv6 style headers.

http://www.haproxy.org/download/1.6/doc/proxy-protocol.txt
2022-07-22 10:32:50 +02:00
Aleksander Machniak
ba1a93ec5b Fix PHP8 warnings 2022-07-09 18:29:07 +02:00
Aleksander Machniak
688320b4c6 readBytes() never returns null 2021-11-29 09:59:44 +01:00
Aleksander Machniak
74b89fffde Improve performance of fetching mail bodies
Read response in 1MB chunks, instead of lines.
2021-11-29 09:30:05 +01:00
Aleksander Machniak
6f7e19b2f0 Fix fetching headers of multiple message parts at once in rcube_imap_generic::fetchMIMEHeaders() (#8282) 2021-11-03 08:16:52 +01:00
Aleksander Machniak
81cc8ac0e0 Purge also subfolders of Trash (and/or messages in them) on logout (#1037) 2021-10-09 16:55:28 +02:00
Aleksander Machniak
626332d42a Don't use is_resource() where not needed 2021-10-02 08:40:56 +02:00
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