Pierre Frenkiel | 8 Nov 2011 09:44
Picon

display of html content

hi,
Although html is not generally recomended for usual mails, it is useful
in some cases. Most modern mailers display correctly the html content,
including images. 
I didn't find how to do that with alpine, but if I tranfer the mail to 
my smartphone, the html is displayed, including images.
Is there a way to do that with alpine?

--

-- 
Pierre Frenkiel
David Forrest | 8 Nov 2011 12:57
Favicon

Re: display of html content

On Tue, 8 Nov 2011, Pierre Frenkiel wrote:

> hi,
> Although html is not generally recomended for usual mails, it is useful
> in some cases. Most modern mailers display correctly the html content,
> including images. I didn't find how to do that with alpine, but if I tranfer 
> the mail to my smartphone, the html is displayed, including images.
> Is there a way to do that with alpine?
>

See config > Viewer Preferences > Prefer Plain Text

This allows the alternate viewer (html) by using a one character command 
by message.

--

-- 
David Forrest 
St. Louis, Missouri    (Sent by ALPINE 2.02 FEDORA 11 LINUX)
Andraž 'ruskie' Levstik | 8 Nov 2011 13:48

Re: display of html content

:2011-11-08T09:44:Pierre Frenkiel:

> hi,
> Although html is not generally recomended for usual mails, it is useful
> in some cases. Most modern mailers display correctly the html content,
> including images. I didn't find how to do that with alpine, but if I tranfer
> the mail to my smartphone, the html is displayed, including images.
> Is there a way to do that with alpine?

Simple setup a .mailcap file with:
text/html;                      elinks -dump %s; copiousoutput

Or
text/html;                      DISPLAY=:0 firefox %s

Or something to that effect. Search for setting up mailcap for graphical
browser or something.

That way you'll get either a full graphical view(if you have an X
session to use) or a dumped formated html no pics.

--

-- 
Andraž 'ruskie' Levstik
Source Mage GNU/Linux Games/Xorg grimoire guru
Re-Alpine Coordinator http://sourceforge.net/projects/re-alpine/
Geek/Hacker/Tinker

I may not agree with what you say, but I'll defend your right to say it.
:2011-11-08T09:44:Pierre Frenkiel:
(Continue reading)

Matt Ackeret | 8 Nov 2011 20:13
Picon
Favicon

Re: display of html content

On Tue, 8 Nov 2011, David Forrest wrote:
> See config > Viewer Preferences > Prefer Plain Text
>
> This allows the alternate viewer (html) by using a one character command by
> message.

In other words, if you have prefer plain text turned on, alpine prefers
the plain text part when a message contains plain text and rich/html
info (ptooey).

However, for some messages, you need to see the rich part.. With prefer
plain text on, you can hit A to view the rich/html part FOR THAT MESSAGE.

If you turn off prefer plain text, you'll see the rich/html part by
default (textified in alpine's viewer of course).
Mike Miller | 9 Nov 2011 00:02
Picon

Re: display of html content

On Tue, 8 Nov 2011, Pierre Frenkiel wrote:

> Although html is not generally recomended for usual mails, it is useful 
> in some cases. Most modern mailers display correctly the html content, 
> including images. I didn't find how to do that with alpine, but if I 
> tranfer the mail to my smartphone, the html is displayed, including 
> images. Is there a way to do that with alpine?

I don't think any of the responses posted so far are telling you what you 
need to know.  I often look at HTML attachments in a browser, but that 
doesn't seem to handle the images, which have to be viewed separately.

I think the answer to your question probably is 'no' because if an html 
attachment is viewed in a browser, the images are still back in the email 
message, so they won't be seen.

So to view the message as it was meant to be seen, I think you have to use 
something else, like maybe Thunderbird.

Mike
James Freer | 9 Nov 2011 23:17
Picon

Re: display of html content

On 8 November 2011 23:02, Mike Miller <mbmiller+l@...> wrote:
> On Tue, 8 Nov 2011, Pierre Frenkiel wrote:
>
>> Although html is not generally recomended for usual mails, it is useful in
>> some cases. Most modern mailers display correctly the html content,
>> including images. I didn't find how to do that with alpine, but if I tranfer
>> the mail to my smartphone, the html is displayed, including images. Is there
>> a way to do that with alpine?
>
>
> I don't think any of the responses posted so far are telling you what you
> need to know.  I often look at HTML attachments in a browser, but that
> doesn't seem to handle the images, which have to be viewed separately.
>
> I think the answer to your question probably is 'no' because if an html
> attachment is viewed in a browser, the images are still back in the email
> message, so they won't be seen.
>
> So to view the message as it was meant to be seen, I think you have to use
> something else, like maybe Thunderbird.
>
> Mike

I've been wondering how to do this myself... sorry but i don't follow
these responses. It seems to me that alpine as a text email client
doesn't allow one to view an email as html. To me the beauty of alpine
is its speed. As each of us use gmail - it's easier just to flag such
a message whilst in Alpine and then look at it through gmail's web
interface. Alpine does somehow allow the text of an html message to be
read whereas Cone wouldn't i found. As for using Thunderbird or
(Continue reading)

Bret Busby | 10 Nov 2011 04:55
Favicon

Query about setting plugins

Hello.

I am using ALPINE 1.10(962) running on Debian Linux 5.

When I receive a PDF attachment, to view it, ALPINE oens the file using 
kpdf.

I cannot print from kpdf.

I have Acrobat Reader 9 installed, and I can print from that 
application.

How do I set ALPINE to open PDF attachments using Acrobat Reader?

Thank you in anticipation.

--
Bret Busby
Armadale
West Australia
..............

"So once you do know what the question actually is,
  you'll know what the answer means."
- Deep Thought,
   Chapter 28 of Book 1 of
   "The Hitchhiker's Guide to the Galaxy:
   A Trilogy In Four Parts",
   written by Douglas Adams,
   published by Pan Books, 1992
(Continue reading)

Andrew Morgan | 10 Nov 2011 07:01

Re: Query about setting plugins

On Thu, 10 Nov 2011, Bret Busby wrote:

> Hello.
>
> I am using ALPINE 1.10(962) running on Debian Linux 5.
>
> When I receive a PDF attachment, to view it, ALPINE oens the file using kpdf.
>
> I cannot print from kpdf.
>
> I have Acrobat Reader 9 installed, and I can print from that application.
>
> How do I set ALPINE to open PDF attachments using Acrobat Reader?
>
> Thank you in anticipation.

Look at the file /etc/mailcap.  It sets the mappings from MIME types to 
applications.  Note - if you want to override a setting, your best bet may 
be to create a .mailcap file in your home directory.  There are comments 
at the top of /etc/mailcap to get you started.

 	Andy
Mike Miller | 11 Nov 2011 00:52
Picon

Re: display of html content

On Wed, 9 Nov 2011, James Freer wrote:

> I've been wondering how to do this myself... sorry but i don't follow
> these responses. It seems to me that alpine as a text email client
> doesn't allow one to view an email as html.

Not quite.  If an email message is HTML, then there is an HTML attachment. 
Alpine can display the HTML attachment as text, but it can't reveal all 
the richness of the document in terms of fonts and things.  A second thing 
Alpine can do is call a web browser to display the HTML attachment.  It 
does that very well and HTML with no embedded graphics will look perfect, 
as will HTML with embedded graphics that are downloaded from URLs 
(assuming the internet is available).  The place where Alpine seems to 
fail is when the embedded graphics are attachments to the message.  I 
don't see any easy way to view such messages in a browser.  That's why I 
recommend switching to a different mailer for those occasional messages.

No one has come up with another strategy for viewing those messages.

> To me the beauty of alpine is its speed. As each of us use gmail - it's 
> easier just to flag such a message whilst in Alpine and then look at it 
> through gmail's web interface. Alpine does somehow allow the text of an 
> html message to be read whereas Cone wouldn't i found. As for using 
> Thunderbird or Evolution - i found on imap they were both so slow they 
> weren't worth using.

That's why 99% of my email work is done in Alpine.

Mike
(Continue reading)

Mike Miller | 11 Nov 2011 08:55
Picon

stripping extra lines from Alpine mbox files

When I use a program line MHonArc to make archives of email folders, I 
need to drop the first 13 lines of the mbox file whenever it is just that 
extra Alpine "FOLDER INTERNAL DATA" stuff.  So I drop the first 13 lines 
whenever the first line begins with "From MAILER-DAEMON ".

Here are two ways to do it that appear to be safe in the sense that they 
won't drop the initial lines unless they really are the Alpine internal 
data lines.  This creates a second file without the internal data lines:

perl -pe 'BEGIN{undef $/} ; s/\AFrom MAILER-DAEMON ([^\n]*\n){13}//s' infile > outfile

This changes the input file in place (which changes the files date stamp):

perl -pi -e 'BEGIN{undef $/} ; s/\AFrom MAILER-DAEMON ([^\n]*\n){13}//s' infile

With the latter method you could use globbing like so:

perl -pi -e 'BEGIN{undef $/} ; s/\AFrom MAILER-DAEMON ([^\n]*\n){13}//s' mail/*

That would remove the 13 internal data lines from every file in the folder 
'mail', but only if such lines existed in the file.  It would also change 
the date stamps on those files.

For in-place edits that retain a back-up copy of the original, add '.bak' 
after the 'i' option:

perl -pi.bak -e 'BEGIN{undef $/} ; s/\AFrom MAILER-DAEMON ([^\n]*\n){13}//s' mail/*

Then every original file in mail/ will still be there, but with .bak 
appended to the filename and the new edited versions will have the 
(Continue reading)


Gmane