Alpine-Mail

如何在 alpine 中查看整個原始消息?

  • December 16, 2018

我正在擺弄 S/MIME 電子郵件(從https://ttpedge.sitenv.org/ttp/#/hisp/smtp發送)。

我想查看整個電子郵件,但是當我導出郵件時,我得到了這個:

From wwerner@transport-testing.nist.gov Wed Apr 16 11:02:03 2014
Date: Wed, 16 Apr 2014 12:02:04 -0400 (EDT)
From: wwerner@transport-testing.nist.gov
To: wwerner@not-a-chance.com
Subject: Direct Validation Request



   [ Part 1, Application/PKCS7-MIME (Name: "smime.p7m") 27 KB. ]
   [ Unable to print this part. ]

相反,我希望看到更像這樣的東西:

Received: from hit-testing.nist.gov (unknown [])
       by mydomain.com (Postfix) with SMTP id 552EDB606BC
       for <wwerner@direct.mydomain.com>; Wed, 16 Apr 2014 13:54:21 -0500 (CDT)
Subject: Direct Validation Request
Date: Wed, 16 Apr 2014 14:54:23 -0400 (EDT)
From: wwerner@transport-testing.nist.gov
To: wwerner@direct.mydomain.com
Message-ID: <2027534107.69.1397674463912.JavaMail.root@transport-testing.nist.gov>
Subject: Message test
MIME-Version: 1.0
Content-Type: application/pkcs7-mime; name=smime.p7m; 
       smime-type=enveloped-data
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=smime.p7m

MIAGCSqGSIb3DQEHA6CAMIACAQAxggGtMIIBqQIBADCBkDCBgjELMAkGA1UEBhMCVVMxCzAJBgNV
BAgMAkFSMQswCQYDVQQHDAJMUjETMBEGA1UECgwKTFdTSSwgSW5jLjEMMAoGA1UECwwDRGV2MRUw
EwYDVQQDDAx0dHQubHdzaS5jb20xHzAdBgkqhkiG9w0BCQEWEHd3ZXJuZXJAbHdzaS5jb20CCQDa
Ol9sXP8A8TANBgkqhkiG9w0BAQEFAASCAQBrfDgrbsR24cMsMUHLwqmZldHRfZh+rqHAg3wYp/BT
91OasZfU2Yke/MBTNu3VpmNM4L2OB10PzYH8heywPP6cVylLhEwnpdEGv6i1sL4Wz0pFeivXfHn/
D7w4iAQyBRUJnFd/uEYIJRJ5xP1Jnlcmcifyz8ZJ2YCZolehbETQGmLbNJdLuHTkB7ZnlmCMnNW+
vhRFDOrg/l9C+ATsoEGGWKRLmN0EZT8XSyiEOHpRqgGaScS0sjXGzCPkZGd+S1X8KSzUP7cvB1Ml
Vz7lXpIg+KnuglMWaPIp++acHGEwbb3hTIKxn23HqdbT95MeXdjjOJnqxkkelC6ObPY6evSnMIAG
CSqGSIb3DQEHATAdBglghkgBZQMEAQIEECvsba7B8B6vlbDaHsp000+ggASCA+iNDnc2EOJPNAXk
x0fDMAuVuzB5ZiklhJ+bQXn21eYGaXJedhk+UWZF3ov5sWKwbl2A7yVCoKF1yuVlpAqGAFh1MZOH
XcFF+EwbzR1dF5rUJQ3xc+evyT64clDap7IM1LBGJ2z2qBaQNazoVTdKIPYuyNmmeAteeXh3XaAU

我剛剛嘗試保存附件,顯然它是以二進制格式保存的。如果我在 Gmail 的“原始”視圖中查看它,它會顯示為 b64 編碼(當然這可能很明顯,因為我在瀏覽器中查看它)。

我必須自己轉換附件嗎?或者有沒有辦法可以將它導出為 b64 編碼。

執行此操作的一種簡單方法(假設您將郵件保存為 mbox 格式)就是將郵件保存到不包含其他郵件的不同文件夾中。然後,對應於該文件夾的文件~/Mail將基本上包含該消息。它還將包含 Pine/Alpines“佔位符”消息:

此文本是您的郵件文件夾內部格式的一部分,並不是真正的消息。它是由郵件系統軟體自動創建的。如果刪除,重要的文件夾數據將失去,並且將重新創建,並將數據重置為初始值。

但這很容易刪除。

IIRC,您可以按“h”並切換(來回)。

這證實了這一點:http ://www.sussex.ac.uk/its/help/faq?faqid=1080#pine

  1. 在 Alpine 中,打開消息進行查看。
  2. 鍵入h以打開查看完整標題。

如果您只想查看完整的標題,則無需進一步閱讀,但如果您想轉發標題的副本,請繼續如下所示。


  1. 鍵入f以轉發消息。
  2. Pine 可能會詢問您是否要將郵件作為附件轉發;對此回答
  3. 在轉發的文本上方輸入轉發地址和您自己的任何註釋。
  4. 輸入CTRL-X(按住CTRL並鍵入x)發送消息。

然後您可以將消息導出到文件並在之後閱讀:

松樹

查看相關消息時,使用“E”命令將消息導出到文本文件。該文件將包含完整的原始消息源,從完整的標頭開始。

通過:https ://luxsci.com/blog/viewing-the-message-source-full-headers-of-an-email.html


通過我的 Alpine 2.21 範例。 通常的看法

Date: Tue, 13 Jun 2017 15:28:23 -0000
From: The PocketFMS Foundation <noreply@pocketfms.com>
To: saulius2@ar.fi.lt
Subject: EasyVFR Basic is now available for free in the UK and the Netherlands.

.
 
 
Click here [www.pocketfms.com] to view this e-mail in your web browser.
 
[image-6.jpg] [www.easyvfr.aero]
 
 
[image-15.png]
 
Rotate your device for the best viewing experience!
 
 
 
 
Free version EasyVFR now available
in UK and NL
[...]

顯示完整的標題

Return-Path: <noreply@pocketfms.com>
X-Original-To: saulius2@ar.fi.lt
Delivered-To: saulius2@ar.fi.lt
Received: from localhost (localhost [127.0.0.1])
   by tvarka.ar.fi.lt (Postfix) with ESMTP id 10DB0C0BC6
   for <saulius2@ar.fi.lt>; Tue, 13 Jun 2017 18:42:27 +0300 (EEST)
Received: from tvarka.ar.fi.lt ([127.0.0.1])
   by localhost (tvarka.ar.fi.lt [127.0.0.1]) (amavisd-new, port 10024)
   with ESMTP id drJmckwq9NY3 for <saulius2@ar.fi.lt>;
   Tue, 13 Jun 2017 18:42:25 +0300 (EEST)
Received: from members.pocketfms.com (members.pocketfms.com [93.158.218.198])
   by tvarka.ar.fi.lt (Postfix) with ESMTP id 6A300C0A8A
   for <saulius2@ar.fi.lt>; Tue, 13 Jun 2017 18:42:24 +0300 (EEST)
Received: from MapServer1 ([93.158.218.198]) by members.pocketfms.com with Microsoft SMTPSVC(8.5.9600.16384);
    Tue, 13 Jun 2017 15:28:23 +0000
Organization: The PocketFMS Foundation
Reply-To: noreply@pocketfms.com
Message-ID: <c95250f8bb17c122099605d600265862@pocketfms.com>
From: "The PocketFMS Foundation" <noreply@pocketfms.com>
To: <saulius2@ar.fi.lt>
Subject: =?windows-1252?Q?EasyVFR_Basic_is_now_available_for_free_in_the_UK_and_the_Netherlands.?=
Date: Tue, 13 Jun 2017 15:28:23 -0000
MIME-Version: 1.0
Content-Type: text/html;
   charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
X-OriginalArrivalTime: 13 Jun 2017 15:28:23.0972 (UTC) FILETIME=[B22D9640:01D2E459]


<html xmlns=3D"http://www.w3.org/1999/xhtml" =
xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office"><head><meta =
http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8">
[...]

引用自:https://unix.stackexchange.com/questions/125094