Commit Graph

28 Commits

Author SHA1 Message Date
Laurent Dinclaux
fd9836c7ae Add custom auth, connection testing, preconfig_only, and security fixes
Major form improvements:
- Custom SMTP/Sieve credentials (separate username/password per protocol)
- Connection testing on save (IMAP, SMTP, Sieve) with localized errors
- preconfig_only mode to restrict domains to preconfigured entries
- Form POST value preservation on save errors (auth selects, passwords)
- Smart host placeholders (SMTP/Sieve default to IMAP host)

Security and bug:
- Fix password re-encryption bug (was comparing raw vs encrypted values)
- Fix XSS: escape label output in special folders form
- Fix parse_url() return value not checked for false
- Fix decrypt() failures not handled (fallback to empty string)
- Sanitize log output (remove raw POST data from log messages)
- Replace weak == comparisons with strict === (PHP and JS)

SQL changes:
- Consolidate 4 migrations (2026021000-03) into single 2026021000
- Remove now unused notify_sound_url column
- Add smtp_username, smtp_password, sieve_username, sieve_password columns
2026-02-10 20:50:05 +11:00
Laurent Dinclaux
39fe417104 Add Auto/Manual mode select for IMAP delimiter 2026-02-10 18:15:43 +11:00
Laurent Dinclaux
36b9b3e35f Replace TLS checkbox with security dropdown (None/STARTTLS/SSL)
Replace the single IMAP TLS checkbox with a per-protocol security
dropdown for IMAP, SMTP, and Sieve. The security scheme (ssl:// or
tls://) is now stored directly in the host field, unifying the approach
across all protocols.

Smart form behavior:
- Default ports update automatically when changing security type
- Fields clear on blur when value matches the placeholder
- Warning shown when selecting no encryption
- Defaults: IMAP SSL/993, SMTP STARTTLS/587, Sieve STARTTLS/4190

The DB_SECURE_IMAP_TLS flag is no longer written but still read for
backward compatibility with existing records.
2026-02-10 17:54:36 +11:00
Laurent Dinclaux
12572b563d Add background mail checking and new mail notifications 2026-02-10 17:13:57 +11:00
Laurent Dinclaux
6ea4aee0a7 Add managesieve (Sieve) support for remote accounts
When switching identities, the managesieve plugin still connected to
the default sieve server. Hook into managesieve_connect to redirect
the sieve connection to the remote account's server.

Adds sieve_host, sieve_port and sieve_auth columns to the database,
a Sieve section to the identity settings form, preconfig support for
sieve_host, and localized labels for all 7 languages.
2026-02-10 14:03:47 +11:00
Laurent Dinclaux
456d44c677 Fix and complete all localization files
- fr_FR, de_DE: add missing keys (imap.delimiter, smtp.auth.imap,
  smtp.auth.none)
- it_IT, nl_NL: rewrite with current key names (form.common.*,
  form.imap.*, form.smtp.*) and add all missing SMTP keys
- All 7 languages now have the same complete set of keys
2026-02-10 10:11:04 +11:00
Boris Gulay
ca790d72de Add Slovenian translation. Thanx to Marko Ambrožič 2021-02-03 00:28:03 +03:00
Boris Gulay
072ef65fdf Add option to disable SMTP auth
Closes #61
2020-06-01 16:34:19 +03:00
Boris Gulay
46f58d694f Fix IMAP delimiter translation 2020-05-31 14:42:50 +03:00
Boris Gulay
148052a6d0 Add delimiter to account setup. Closes #50 2019-11-24 18:48:25 +03:00
Boris Gulay
7bb10e55d7 Update french translation. Thanx Alban 2019-10-18 00:21:42 +03:00
Boris Gulay
c0a92bb436 Fixed issue in German translation. Thanx bJBM 2019-07-30 23:16:43 +03:00
Boris Gulay
34fd9ca6f6 Update German translation. 2019-01-10 00:25:13 +03:00
Boris Gulay
e79ec4e45b English translation updated 2018-12-29 15:07:21 +03:00
Boris Gulay
f796334126 Add ability to specify SMTP server directly.
Closes #32.
Closes #30.
2018-12-22 13:31:25 +03:00
Boris Gulay
f5f3fbdf90 Dutch translation added. Thanx to Dave, closes #14. 2016-10-18 22:23:16 +03:00
Boris Gulay
fcdff0ccc7 German translation added. Thanx to John, closes #13. 2016-10-18 22:22:33 +03:00
Boris Gulay
0e0b00dea2 Change line endings to unix. 2016-10-18 22:12:40 +03:00
Boris Gulay
c76942a6cd Fixed typo in language files. Thanx to John, see #13. 2016-10-18 22:07:21 +03:00
Boris Gulay
f1874e3fe7 Localization for Italian added. Thanx to Dario Pezzi, closes #10. 2016-06-20 23:24:34 +03:00
Boris Gulay
5096826621 Added French translation. Thanx to Mathieu Ambrosy, closes #9. 2016-06-19 00:27:15 +03:00
Boris Gulay
7a97816d1c Username is not a required field anymore. If empty - email from identity
is used.
2016-06-02 16:17:48 +03:00
Boris Gulay
f7b650db3e Changed the way connection security is set. Now supporting SSL and TLS
separatly. Closes #5, thanx to Wouter de Geus.
2016-05-28 18:21:27 +03:00
Boris Gulay
6cfbeab7f0 Added RUS messages for validation errors. 2016-05-27 23:42:46 +03:00
Boris Gulay
b10f3625c2 Added string in ENG for all validation erros. 2016-05-27 23:25:26 +03:00
Boris Gulay
9367409f36 Russian translation added. 2016-05-20 23:21:15 +03:00
Boris Gulay
40e7f5664e Missing string added. 2016-05-20 23:21:15 +03:00
Boris Gulay
f9b2762d30 Really initial commit. 2016-04-28 00:43:39 +03:00