Authenticate if needed before sending POST command.
Differential Revision: https://phabricator.services.mozilla.com/D159459
--HG--
extra : rebase_source : cfaff1720ac01be6d4254ca08969a84828437e01
extra : amend_source : 33127740f63cd6b7a36c4a64839c016051075e6d
extra : absorb_source : e7e4b14483b704b480c90d6955b19139faa8f75c
Direct compares do not necessarily work, since the actual objects are not the same.
--HG--
extra : amend_source : 4beccc4276882c3d9ebcf1eeb0d9c3eb0e6650ec
Adds a 'UID' attribute, stored in the server's preferences as 'uid', just like nsIAbDirectory. If there's no value, a new UUID is created on access.
Differential Revision: https://phabricator.services.mozilla.com/D153824
--HG--
extra : rebase_source : 437b905977a0651ecf1ef4d104ab394804097abc
Changed prettier printWidth to 100 to put Services.jsm on one line, prettified and then
grep -rEl "/Services.jsm" --exclude-dir=.hg --exclude-dir=suite --include="*.js" --include="*.jsm" --exclude=".*" . | xargs xargs sed -i -e '/\/Services.jsm/d'
Differential Revision: https://phabricator.services.mozilla.com/D151575
--HG--
extra : rebase_source : 43da2706d3b30f5062511cedd527e9fb65631f02
extra : amend_source : 863bfd4ad3930f4fe4ed0b3dba6061370118f9a5
Prior to this patch, mail.default_html_action ("default_html_action") and mailnews.sendformat.auto_downgrade ("auto_downgrade") were used as parameters in nsMsgCompose::DetermineHTMLAction to decide on whether to send HTML, PlainText, both parts, or to ask the user.
DetermineHTMLAction is removed in this patch, and we replace the its behaviour with a single mail.default_send_format preference, with 4 values:
+ PlainText - Always send plain text. Equivalent to "default_html_action" set to PlainText before (regardless of "auto_downgrade").
+ HTML - Always send HTML. Equivalent to "default_html_action" set to HTML and "auto_downgrade" set to false.
+ Both - Always send both HTML and plain text. Equivalent to "default_html_action" set to Both and "auto_downgrade" set to false.
+ Auto - Send only plain text if the message lacks formatting, else send both. Equivalent to "default_html_action" set to Both and "auto_downgrade" set to true. This was the default before and after this patch.
The lost behaviour is:
+ "default_html_action" set to "AskUser". This would ask the user what format to send using the askSendFormat dialog. This is now dropped, along with the dialog, and transferred to the Auto default.
+ "default_html_action" set to "HTML" and "auto_downgrade" set to true. This is transferred to the Auto default.
The new "default_send_format" preferences is now linked directly to MsgCompFields.deliveryFormat. New messages have their MsgCompFields.deliveryFormat set to nsIMsgCompSendFormat.Unset, but this is changed to the value of "default_send_format" when it is loaded into the compose window. As before, the deliveryFormat can be set to a different value using the #outputFormatMenu (the compose window's "Options, Delivery Format" menu). This also means that the 4 values for "default_send_format" correspond to the 4 menuitems. Just as before, the deliveryFormat is saved for drafts or templates. Note that the "Unset" value is only used as an initial value for the deliveryFormat field, and it is never used again after it has been opened for the first time.
Note, prior to this patch, nsIMsgCompSendFormat.AskUser was used as a value for MsgCompFields.deliveryFormat to indicate that the send format should use DetermineHTMLAction, rather than an explicit value (the name was a misnomer in this case). The "AskUser" enum has been renamed to "Unset". This means that any drafts or templates saved by a user before this patch without an explicitly set format will now be opened with the default send format, the same as newly created messages. This acts as a convenient bridge between the old and new behaviour.
Differential Revision: https://phabricator.services.mozilla.com/D136009
--HG--
extra : amend_source : 8fd622c39171d4992a07dc2404d0a75215a74fe8
With a bcc only message, nsMsgSendLater passes `To: undisclosed-recipients: ;` to SmtpService, but it should not be sent to the SMTP server.
Differential Revision: https://phabricator.services.mozilla.com/D127515
--HG--
extra : amend_source : 05a1d048fc7f1e847c78e6cd765f6c814bd656fb
MessageSend.jsm removes bcc header before delivering, no need to do it in nsMsgSendLater.
Differential Revision: https://phabricator.services.mozilla.com/D125639
--HG--
extra : amend_source : 47f9ea4951d7ebecab013e03c50b8c3c6f65f88f
extra : histedit_source : 013c3a9ac9347570538890b56761f0734eda3812
Use getStringPref/setStringPref to handle AUTF8String.
Differential Revision: https://phabricator.services.mozilla.com/D122800
--HG--
extra : amend_source : 5f17e05c8a72325e8e522615dabd18202014c42c
nsIParserUtils.convertToPlainText expects a unicode string, but we passed a binary string.
Differential Revision: https://phabricator.services.mozilla.com/D114708
--HG--
extra : amend_source : ae19e321faddda1a116b1ab76bda165f8c5cc050
The original encoding of non-UTF8 eml attachments are kept in the final message file, so the final message file is not guaranteed to be UTF-8. This patch changes to use read/write instead of readUTF8/writeUTF8.
Differential Revision: https://phabricator.services.mozilla.com/D113619
--HG--
extra : amend_source : 82548958da7bafae33be67bf73b00cddf842bb2a
Also fix removing stuffed space in format=flowed message.
Differential Revision: https://phabricator.services.mozilla.com/D112679
--HG--
extra : amend_source : b26cbdcfc3ca9bb8232a49972d6f7191b043597a