Граф коммитов

186 Коммитов

Автор SHA1 Сообщение Дата
Daniel Fraser 096323989d Bug 1532388 - implement full support for IMAP and SMTP CLIENTID. r=mkmelin
IMAP RFC Draft: https://tools.ietf.org/html/draft-yu-imap-client-id-01
SMTP RFC Draft: https://tools.ietf.org/html/draft-storey-smtp-client-id-05

This also updates the imapd.js server to expose a pseudo CLIENTID
command, and adds a new xpcshell test for clientid.
2020-01-15 18:12:33 +02:00
Geoff Lankow 6dcab5f332 Bug 1606538 - Remove localised pref mailnews.account_central_page.url; r=mkmelin
--HG--
extra : rebase_source : bc0cd8060d5a373e2fcec80b4fd5d8ef36e5e2e2
extra : amend_source : 1d34dae5f0446c3831792b6af2d13809c1eb6969
2020-01-01 16:19:45 +13:00
segfault 838a1c82a9 Bug 1370217 - Add pref mail.suppress_content_language that when set prevents setting Content-Language header. r=mkmelin
If this option is enabled, the Content-Language header will not be set,
to avoid leaking the user's dictionary, which could be used for
fingerprinting.
2019-12-27 18:17:39 +02:00
Kai Engert 163d0112fe Bug 1530106 - follow-up to move the mail.html_sanitize.drop_conditional_css pref to mailnews.js. r=mkmelin 2019-12-05 11:51:37 +02:00
Ian Neal a8cb204515 Bug 479006 - get rid of crufty timeline service globals [dead code]. r=frg
--HG--
extra : rebase_source : d06bbdf7658ec825af65a192ed40655b9fee9681
2019-10-19 17:24:00 +02:00
Kai Engert e028eea3ba Bug 1576828 - Remove pref mailnews.p7m_subparts_external and related code/tests. r=mkmelin DONTBUILD 2019-10-18 11:43:06 +02:00
aceman a2b3e6c5ce Bug 949135 - make number of items in Recent folders list configurable. r=jorgk,ui-r=aleca 2019-10-12 13:06:00 +02:00
Geoff Lankow d885fa4e6f Bug 1576525 - Use JS address book provider for the default address books in new profiles; r=mkmelin 2019-08-28 12:32:06 +12:00
Jorg K 7c7357cc5a Backed out changeset 23362b85a4fa (bug 1576525) for test failures. a=backout 2019-09-19 23:04:22 +02:00
Geoff Lankow 2af1fe8a7c Bug 1576525 - Use JS address book provider for the default address books in new profiles; r=mkmelin 2019-08-28 12:32:06 +12:00
Paul Morris 1c565050af Bug 1349337 - Use DNS.jsm to query MX records. r=mkmelin 2019-07-19 11:34:51 -04:00
Jorg K 7fa9b2a2e0 Bug 1532388 - Backout the CLIENTID feature (leaving strings in place). a=backout DONTBUILD
--HG--
extra : rebase_source : 636b032a255de51de5ae1f9282ab0bb54c47e7aa
2019-07-11 23:06:59 +02:00
Nomis101 bf95eb7915 Bug 1462666 - increase default autocompact threshold "mail.purge_threshhold" from 20MB to 200MB. r=mkmelin 2019-06-24 22:37:12 +02:00
Kent James 95a184ce92 Bug 864187 - Add possibility to run filters periodically (most of code by rkent, tweaked by aceman). r=mkmelin,ui-r=Paenglab DONTBUILD 2019-05-17 14:56:00 +02:00
anonym 2656a673c6 Bug 971347 - Add pref for guessing only SSL configs. r=BenB
If enabled users are protected from guessing a plaintext config.
2019-05-09 00:34:18 +02:00
anonym 2e196c7648 Bug 971347 - Also fetch ISP configuration using SSL. r=BenB
Now we support ISPs who only serve .well-known over SSL.

This slightly increases defenses against passive attackers (who could
snoop your username [0]), but for active attackers the "downgrade"
attack that forces plaintext is trivial: just block all SSL traffic
and then manipulate the HTTP traffic. In other words, a
Man-in-the-middle can easily get full control over the client
configuration.

It would be reasonable to only do SSL by default, but it is not an
option in certain enterprise deployments, so instead we allow
security-focused distributions (and extensions like TorBirdy) to
control the behavior via a new boolean pref:

mailnews.auto_config.fetchFromISP.sslOnly

When set to true ISP fetches are done using SSL only, but it defaults
to false which allows insecure fetches as well.

[0] See the mailnews.auto_config.fetchFromISP.sendEmailAddress pref.
2019-05-09 00:25:39 +02:00
Daniel Fraser 7b75c30efc Bug 1532388 - implement full support for IMAP and SMTP CLIENTID. r=gds,jorgk,mkmelin
IMAP RFC Draft: https://tools.ietf.org/html/draft-yu-imap-client-id-01
SMTP RFC Draft: https://tools.ietf.org/html/draft-storey-smtp-client-id-05
2019-05-08 13:37:47 +02:00
u@451f.org aa981a5837 Bug 971347 - Add pref for setting the autoconfiguration guess timeout. r=BenB
The static 10 seconds is not enough for Tor users (delay spikes of 10
seconds is not uncommon), so let's make it possible for the TorBirdy
extension to override this timeout.
2019-04-10 18:07:37 +02:00
u@451f.org 180ea6ca22 Bug 971347 - Add comment for pref mailnews.auto_config.guess.enabled. r=BenB 2019-04-10 17:52:44 +02:00
Maciej S. Szmigiero 29215b2012 Bug 1535969 - Add imlementation of TCP keeplives for IMAP connections. r=GeneSmith,jorgk
This implements TCP keepalive for IMAP protocol, as it is already used for HTTP.

Three new preferences are added, mirroring these in
"network.http.tcp_keepalive" namespace:
1) "mail.imap.tcp_keepalive.enabled",
2) "mail.imap.tcp_keepalive.idle_time",
3) "mail.imap.tcp_keepalive.retry_interval".

For the two last ones setting any of them to -1 means to use the relevant
value from "network.tcp.keepalive" namespace.

--HG--
extra : rebase_source : a976ec35c0689392974a4e60d070b19f0bba8d83
2019-04-09 10:59:59 +02:00
aceman 450ad90192 Bug 1509709 - add a pref to disallow showing text attachments inline. r=mkmelin 2019-02-09 04:17:00 +01:00
Magnus Melin 71fceae99f Bug 1514522 - remove link to 3rd party site for account type add-ons. r=jorgk 2018-12-15 23:16:41 +02:00
Ben Bucksch e3b0cf8d63 Bug 1500105 - Support Exchange AutoDiscover and parallelize network calls. r=aceman,mkmelin,Neil
Summary:
* Parallelize network calls
* Exchange AutoDiscover protocol implementation
* Try to find IMAP servers in the server response
* Offer to install an extension which supports the Exchange protocol to get mails

Runs all the ISP config lookup network calls in parallel. Class
PriorityOrderAbortable (subclass of ParallelAbortable) implements a
policy that waits until one of the calls returns successfully, then takes
that result and cancels all pending less desirable calls.

Implements the Exchange AutoDiscover protocol to detect Exchange servers.
If the server gives an IMAP configuration, we offer that to the user.
Alternatively, we offer a compatible verified extension that implements the
specific Exchange protocol that the Exchange server returned.
Exchange has at least 7 protocols, and we show extensions that support the
protocols that the server listed and that are known to work well and actively
maintained. The setup process then continues without interruption.

Test plan:
Exchange autoconfig:
1. To test Exchange AutoDiscover with an hotmail/outlook.com account
   (which has an IMAP config in our ISPDB), set these prefs:
   mailnews.auto_config.guess.enabled = false
   mailnews.auto_config_url = ""
   mailnews.mx_service_url = ""
2. Enter you@outlook.com and a valid password (it will not work without
   valid password, due to the Exchange AutoDiscover protocol design)
3. [Continue]
4. -> TB should find an Exchange server with hostname
5. -> TB will offer you to install an extension that supports this protocol type,
      with explanatory text and a link
6. Click [Install]
7. -> The password is checked, the dialog closes, and the account appears,
      and your emails are downloaded.

Parallel network calls:
1. Open account creation dialog
2. Enter "foo@gmail.com", "foo@yahoo.com", "foo@sys4.de",
   "foo@example.com", or any other domain
3. -> It works functionally as before, see https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration
4. -> It's faster than before

Differential Revision: https://phabricator.services.mozilla.com/D9215
2018-12-14 12:05:14 +01:00
Jorg K 5245dd0271 Bug 1511723 - Change default of mailnews.reply_to_self_check_all_ident to true. r=mkmelin
--HG--
extra : rebase_source : ba070a44fc242753c6371530c00216b6e0c3b7a4
2018-12-02 18:29:45 +01:00
Jorg K f475afd363 Bug 1506800 - Don't sent AppleDouble for files with extension unless whitelisted. r=mkmelin 2018-11-15 15:39:37 +01:00
Jorg K 5f68ca40d6 Bug 1500772 - Revert POP3 USER/PASS and SMTP LOGIN auth back to ASCII/Latin1. r=AlfredPeters 2018-11-05 17:53:31 +01:00
Ryan ext:(%20and%20Jorg%20K%20%3Cjorgk%40jorgk.com%3E) d5425aa441 Bug 690644 - Don't specify background and text colors by default when composing a message. r=mkmelin DONTBUILD 2017-10-19 12:32:22 -07:00
Jorg K 2d758aa5e0 Bug 1464056 - Follow-up: rename pref to align with mailnews.p7m_external and fix test. r=mkmelin DONTBUILD 2018-06-19 08:08:33 +02:00
Magnus Melin 57838993ac Bug 1464056 - Don't decrypt S/MIME sub parts. Only allow decryption at top level. r=jorgk DONTBUILD 2018-06-17 21:30:50 +03:00
Jorg K 1c150e05f8 Bug 1358837 - re-enable native Linux notifications by default. r=mkmelin 2018-06-03 23:29:32 +02:00
Ben Bucksch 36a6dde47d Bug 1462481 - clean up MIME's HTML sanitizer class. r=mkmelin,jorgk 2018-05-17 15:11:00 +02:00
Andrei Hajdukewycz 988c16e82e Bug 1456767 - Update prefs to use thunderbird.net in place of mozillamessaging.com and mozilla.org. r=jorgk 2018-04-25 02:08:01 -07:00
Jorg K 40c49e90f9 Bug 1399756 - fix typos in mailnews/ using codespell. rs=comment-only,typo-fix
[skip-blame]
2018-03-20 11:54:29 +01:00
Anindya-Pandey f27dcea3e0 Bug 856087 - Implement a pluggable store converter (mbox <-> maildir). r=mkmelin,aceman 2017-01-07 23:52:00 +02:00
Jorg K 3261cc42ca Bug 1439172 - port bug 1427364: Auto-complete no longer supports showCommentColumn. r=aceman 2018-02-19 21:50:01 +01:00
Jorg K 32dd7e60a1 Bug 1399756 - remove trailing spaces from JS/JSM files in mailnews/. rs=white-space-only
[skip-blame]
2018-02-10 00:38:07 +01:00
Frank-Rainer Grahl 919ac23918 Bug 1430483 - Remove no longer needed gtk pref nglayout.enable_drag_images from Thunderbird. r=tomprince,jorgk 2018-01-17 03:35:00 +01:00
Frank-Rainer Grahl 70d1914749 Bug 1430483 - Remove no longer valid gtk2 and qt build options from Thunderbird. r=tomprince 2018-01-17 03:33:00 +01:00
rene 20e3d50e1a Bug 1294027 - use mail sender's address for SMTP MAIL FROM. r=jorgk 2018-01-18 14:11:02 +01:00
Patrick Brunschwig e9bd8b2c83 Bug 1414518 - introduce pref mailnews.headers.extraAddonHeaders to emit extra headers to currentHeaderData. r=jorgk 2017-12-14 09:26:00 +01:00
Jorg K 123b46568b Bug 1392371 - Add pref mail.override_list_reply_to to restore reply-to behaviour. r=aceman 2017-08-27 09:01:48 +02:00
Jorg K 79249e9e42 Bug 1382008 - Increase IMAP max. cache entry size from 15MB to 25MB. r=rkent 2017-08-08 09:29:04 +02:00
Jorg K 413d6fc09b Bug 1365319 - Always disallow plugins in messages. r=mkmelin 2017-05-16 20:07:04 +02:00
Gene Smith 26a4ffd76d Bug 1360117 - Improve detection of servers requiring additional IMAP select. r=jorgk
Removes advance server option to force IMAP select and allows automatic
detection based on identifier string in the IMAP ID response from
servers. All control is now done via config editor: force an extra
select for server, preclude extra select for server, or automatically
decide based on configured strings compared to ID response.
2017-05-04 02:20:02 -04:00
Jorg K c15ce19bc5 Bug 1355350 - lift cache entry size for mailnews. r=rkent 2017-04-24 08:37:33 +02:00
Gene Smith 25cd7d6a70 Bug 1231592 - Implement mail.server.default.forceSelect for misbehaving IMAP servers. Use UidExpunge(). r=jorgk, sr=rkent 2017-03-15 14:42:00 +01:00
Jorg K 57300216bb Backed out changeset 56b629c7f032 (bug 1231592) for causing test failures. rs=backout DONTBUILD 2017-03-16 15:27:19 +01:00
Gene Smith df71ce2067 Bug 1231592 - Implement mail.imap.force_select for misbehaving IMAP servers. Use UidExpunge(). r=jorgk, sr=rkent DONTBUILD 2017-03-15 14:42:00 +01:00
Jorg K 8cb32a2609 Bug 1325745 - Port bug 1301640 to mailnews. Remove nsIDateTimeFormat.h etc. and adapt calls. rs=bustage-fix 2017-01-05 00:10:00 +01:00
Thomas Düllmann 66aff97b13 Bug 1308776 - Implement Prefs for showing custom or last-used directory when starting Address Book. ui-r=Paenglab, r=aceman 2016-11-23 22:30:39 +02:00