Como visualizo toda a mensagem bruta em alpine?

2

Estou brincando com e-mails S / MIME (enviados de link ).

Eu quero ver o e-mail inteiro, mas quando eu exporto a mensagem, recebo isso:

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. ]

Em vez disso, espero ver algo mais assim:

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

Eu tentei salvar o anexo e, aparentemente, ele está salvando em um formato binário. Se eu olhar para isso no modo de exibição "original" do Gmail, ele aparecerá codificado em b64 (é claro que isso provavelmente é óbvio, já que estou olhando para ele no navegador).

Eu tenho que converter o anexo eu mesmo? Ou existe uma maneira de exportá-lo codificado em b64?

    
por Wayne Werner 16.04.2014 / 18:14

2 respostas

0

Uma maneira simples de fazer isso, que pressupõe que você salve seu e-mail no formato mbox, é apenas salvar a mensagem em uma pasta diferente, sem outras mensagens. Em seguida, o arquivo que corresponde a essa pasta em ~/Mail conterá essencialmente essa mensagem. Ele também conterá a mensagem "placeholder" do Pine / Alpines:

This text is part of the internal format of your mail folder, and is not a real message. It is created automatically by the mail system software. If deleted, important folder data will be lost, and it will be re-created with the data reset to initial values.

mas isso é fácil de remover.

    
por 16.04.2014 / 21:23
0

IIRC, você pode pressionar "h" e tê-lo ligado (para frente e para trás).

Isso confirma: link

  1. In Alpine, open the message for viewing.
  2. Type h so as to switch on viewing of full headers.

    If you only wanted to view the full headers, you need not read further, but if you want to forward a copy of the headers, continue as shown below.


  3. Type f to forward the message.

  4. Pine may ask you if you want to forward the message as an attachment; answer No to this.
  5. Enter the forwarding address and any notes of your own above the forwarded text.
  6. Enter CTRL-X (hold down CTRL and type x) to send the message.

Depois, você pode exportar a mensagem para um arquivo e depois lê-la:

PINE

When viewing the message in question, use the “E” command to export the message to a text file. This file will contain the full raw message source, starting with the full headers.

Via: link

Exemplo via meu Alpine 2.21. Vista habitual :

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
[...]

Exibir com cabeçalhos completos em :

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">
[...]
    
por 16.08.2018 / 06:38