Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reading source code attachments

8 views
Skip to first unread message

Lucas Levrel

unread,
Oct 30, 2012, 5:28:26 AM10/30/12
to
Hi,

Sometimes I read messages having an attachment of type application/x-tex.
It is TeX source code, and as any language source it is basically plain
text. So I would like to read it in the Alpine window, just like any other
plain text attachment. How can I achieve this?

Thanks.

--
LL

Andreas Prilop

unread,
Oct 31, 2012, 1:30:52 PM10/31/12
to
On Tue, 30 Oct 2012, Lucas Levrel wrote:

> Sometimes I read messages having an attachment of type application/x-tex.
> So I would like to read it in the Alpine window, just like any other
> plain text attachment.

[X] enable-unix-pipe-cmd

| cat

I don't know if there is a better way.

--
Outgoing mail is certified free from defamation of Islam™
and insult of the Prophet™.
Checked by Thinkpol anti-obscenity system v. 6.66.

Kees Theunissen

unread,
Oct 31, 2012, 4:13:33 PM10/31/12
to
Andreas Prilop wrote:
> On Tue, 30 Oct 2012, Lucas Levrel wrote:
>
>> Sometimes I read messages having an attachment of type application/x-tex.
>> So I would like to read it in the Alpine window, just like any other
>> plain text attachment.
>
> [X] enable-unix-pipe-cmd
>
> | cat
>
> I don't know if there is a better way.

This is the method I frequently use, or I look at the
raw message text:

[X] Enable Full Header and Text

[X] Enable Full Header Command


Press the "h" key to view the raw message text.
This doesn't work if the attachment is BASE64 encoded.

Speaking about viewing attachments: to get a quick impression
of binary attachments containing some text like ms-word files:

| strings
or
| tr -d '\0' | strings


regards,

Kees.

--
Kees Theunissen.

0 new messages