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

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

我正在摆弄 S/MIME 电子邮件(从https://ttpedge.sitev.org/ttp/#/hisp/smtp)。

我想查看整个电子邮件,但是当我导出邮件时,我得到以下信息:

From [email protected] Wed Apr 16 11:02:03 2014
Date: Wed, 16 Apr 2014 12:02:04 -0400 (EDT)
From: [email protected]
To: [email protected]
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 <[email protected]>; Wed, 16 Apr 2014 13:54:21 -0500 (CDT)
Subject: Direct Validation Request
Date: Wed, 16 Apr 2014 14:54:23 -0400 (EDT)
From: [email protected]
To: [email protected]
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 编码。

答案1

IIRC,您可以按“h”并切换(前后)。

这证实了这一点:http://www.sussex.ac.uk/its/help/faq?faqid=1080#pine

  1. 在 Alpine 中,打开消息进行查看。
  2. 类型H以便打开完整标题的查看。

    如果您只想查看完整的标头,则无需进一步阅读,但如果您想转发标头的副本,请继续如下所示。


  3. 类型F转发消息。

  4. Pine 可能会询问您是否要将邮件作为附件转发;回答对此。
  5. 在转发文本上方输入转发地址和您自己的注释。
  6. 进入CTRL-X(按住控制键并输入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 <[email protected]>
To: [email protected]
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: <[email protected]>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: from localhost (localhost [127.0.0.1])
    by tvarka.ar.fi.lt (Postfix) with ESMTP id 10DB0C0BC6
    for <[email protected]>; 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 <[email protected]>;
    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 <[email protected]>; 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: [email protected]
Message-ID: <[email protected]>
From: "The PocketFMS Foundation" <[email protected]>
To: <[email protected]>
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">
[...]

答案2

执行此操作的一个简单方法是假设您以 mbox 格式保存邮件,只需将邮件保存到其他文件夹中,不包含其他邮件。然后,与该文件夹相对应的文件~/Mail将基本上包含该消息。它还将包含 Pine/Alpines“占位符”消息:

此文本是邮件文件夹内部格式的一部分,并不是真正的消息。它是由邮件系统软件自动创建的。如果删除,重要的文件夹数据将丢失,并且将重新创建文件夹并将数据重置为初始值。

但这很容易删除。

相关内容