
這是一個轉發,所以我將連結該帖子: https://security.stackexchange.com/q/274208/227343
我正在發送一封用引用的可列印編碼編碼的郵件,其中包含一些點“.”。特定郵件伺服器/客戶存在問題。由於某種原因,他們收到的郵件的每個點都被編碼為 =2E,最終破壞了簽名。什麼系統可以做到這一點?標準中也沒有定義對點進行編碼。最佳實踐解決方案是什麼?對每個點進行編碼以防止系統轉換?你們有人已經遇到這個問題了嗎?謝謝
編輯:一些附加資訊。我正在使用電子郵件包透過 python 發送郵件。引用列印編碼將使用 python3 中的 set_content 方法進行。該問題僅發生在特殊的郵件伺服器上。以下是電子郵件範例:
離開我的計劃後的郵件:
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
<!DOCTYPE html><html><h1>Test Email</h1><p>This is a test email. Showing En=
coding of points in quoted-printable.</p></html>
測試郵件用戶端收到的郵件:
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
<!DOCTYPE html><html><h1>Test Email</h1><p>This is a test email=2E Showing =
Encoding of points in quoted-printable=2E</p></html>