Re: Difficulty with html-mail

2012-12-20 Thread Maxim Vuets
On Wed, Dec 19, 2012 at 09:40:35PM -0600, Jim Graham wrote:
   I 1 no description  [multipa/alternativ, 7bit, 
 13K]
   I 2 ??no description [text/plain, quoted, 
 utf-8, 1.6K]
   I 3 ??no description   [text/html, quoted, 
 utf-8, 11K]

Just curious...are the question marks from your e-mail or from my system?

Hey Jim,

Your assumption is correct---it's from your system. You can check how
the original mail should look like via the following link (assuming your
web-browser handles it correctly) (-:
http://article.gmane.org/gmane.mail.mutt.user/40236


Difficulty with html-mail

2012-12-19 Thread Alan McConnell
Assembled Wisdom!

No, the difficulty is not just that it existsG, it is how
my mutt occasionally deals with it.

I call up mutt from one of my terms(URxvt) and it displays my
E-mail from /var/spool/mail/alan, as is normal. With many
of my mails I press 'v' to get a display like

  I 1 no description  [multipa/alternativ, 7bit, 13K]
  I 2 ├─no description [text/plain, quoted, utf-8, 1.6K]
  I 3 └─no description   [text/html, quoted, utf-8, 11K]

and use my arrow keys to get to the number 3, '[text/html, . . .'
I then press 'Enter'  and _sometimes_ a tab opens on my browser to
display the interpreted content of the mail.  This is what I want.
But _sometimes_  I get a tab: Problem loading page with a display

File not found
Iceweasel can't find the file at /home/alan/tmp/mutt.html.

And this is true; there is nothing in my ~/tmp directory.
But there is also nothing in my tmp/ directory when the html-mail
opens successfully.  The Tab says:
  file:///home/alan/tmp/mutt.html
but there is nothing of that kind in my ~tmp/.

I suspect that my ~/.mailcap file is not correct.  I was given it
several years ago, and I've never understood it.  I give it here, in
its one-line entirety:

text/html; iceweasel -new-tab '%s'; test=test -n $DISPLAY;nametemplate=%s.html

I am running Debian squeeze; my browser is iceweasel; my mutt is 1.5.20.
I spare you my .muttrc, except to say that it has been pretty constant
for my many years of using mutt and Linux.

TIA for expected help!

Alan

-- 
Alan McConnell :  http://globaltap.com/~alan/
   War is God's way of teaching Americans geography.(Bierce)
   Know thyself.  If you need help, call the C.I.A.


Re: Difficulty with html-mail

2012-12-19 Thread Patrick Shanahan
* Alan McConnell a...@his.com [12-19-12 16:13]:
 [...] 
 I call up mutt from one of my terms(URxvt) and it displays my
 E-mail from /var/spool/mail/alan, as is normal. With many
 of my mails I press 'v' to get a display like
 
   I 1 no description  [multipa/alternativ, 7bit, 
 13K]
   I 2 ├─no description [text/plain, quoted, utf-8, 
 1.6K]
   I 3 └─no description   [text/html, quoted, utf-8, 
 11K]
 
 and use my arrow keys to get to the number 3, '[text/html, . . .'
 I then press 'Enter'  and _sometimes_ a tab opens on my browser to
 display the interpreted content of the mail.  This is what I want.
 But _sometimes_  I get a tab: Problem loading page with a display
 
 File not found
 Iceweasel can't find the file at /home/alan/tmp/mutt.html.
 
 And this is true; there is nothing in my ~/tmp directory.
 But there is also nothing in my tmp/ directory when the html-mail
 opens successfully.  The Tab says:
   file:///home/alan/tmp/mutt.html
 but there is nothing of that kind in my ~tmp/.
 
 I suspect that my ~/.mailcap file is not correct.  I was given it
 several years ago, and I've never understood it.  I give it here, in
 its one-line entirety:

I suspect your temp file has expired before the browser has a change to
open it, especially since you cannot see it below ~/tmp (I rather use
system tmp, /tmp).

Install a delay/wait state after exporting the file so it does not
disappear to quickly.  I did this myself sometime back but no longer
require it and cannot remember where/how I did it.
-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Difficulty with html-mail

2012-12-19 Thread Alan McConnell
Wow, you are quick!

On Wed, Dec 19, 2012 at 04:19:32PM -0500, Patrick Shanahan wrote:
 * Alan McConnell a...@his.com [12-19-12 16:13]:
  [...] 
  File not found
  Iceweasel can't find the file at /home/alan/tmp/mutt.html.
  
  And this is true; there is nothing in my ~/tmp directory.
  But there is also nothing in my tmp/ directory when the html-mail
  opens successfully.  The Tab says:
file:///home/alan/tmp/mutt.html
  but there is nothing of that kind in my ~tmp/.

I am sorry, I miswrote.  My /tmp exists of course, and so
does my ~/tmp, /home/alan/tmp/.  What I meant was: there
is nothing relevant to mutt in it.  I have just checked,
there is a #mutt . . . file in it now, reflecting the
fact that I am editing a reply to you.

 Install a delay/wait state after exporting the file so it does not
 disappear to quickly.  I did this myself sometime back but no longer
 require it and cannot remember where/how I did it.
  LOL  Very reminiscent of how I operate!  one gets involved
  in a difficulty, one fixes it, and then the solution slowly
  oozes out of one's brain. 

Thanks for your reply!

Alan

-- 
Alan McConnell :  http://globaltap.com/~alan/
   War is God's way of teaching Americans geography.(Bierce)
   Know thyself.  If you need help, call the C.I.A.


Re: Difficulty with html-mail

2012-12-19 Thread Patrick Shanahan
* Alan McConnell a...@his.com [12-19-12 16:32]:
 Wow, you are quick!
 
 On Wed, Dec 19, 2012 at 04:19:32PM -0500, Patrick Shanahan wrote:
  * Alan McConnell a...@his.com [12-19-12 16:13]:
   [...] 
   File not found
   Iceweasel can't find the file at /home/alan/tmp/mutt.html.
 [...]

I have a work-a-round(tm!) that I employ just for viewing html mail
because I have a somewhat convoluted setup.  I maintain a tmux (similar to
screen) session containing a mutt instance from a remote computer where I
maintain my mail and web servers.  Since the tmux session is viewed
locally but the session originates somewhere else, dumping html mail to a
local browser is not a direct operation.  I have a macro to dump the http
portion to a specific file and a local browser set to access that file via
nfs:
 macro   attach  ,x  |rm -f ~/mutt.htmlenter:unset \
   wait_key\n;save-entrykill-line~/mutt.htmlenter

to access:
 browser file:///mnt/nfs/remote-home/mutt.html

You should have no trouble making this work for a local operation.


ps:  Please, I read the list and have *no* need or request for a second
  copy of list mail.  Mutt *does* provide for a list-reply, a function
  missing on many of the lessor clients available on other operating
  systems.

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Difficulty with html-mail

2012-12-19 Thread Gary Johnson
On 2012-12-19, Alan McConnell wrote:
 Assembled Wisdom!
 
 No, the difficulty is not just that it existsG, it is how
 my mutt occasionally deals with it.
 
 I call up mutt from one of my terms(URxvt) and it displays my
 E-mail from /var/spool/mail/alan, as is normal. With many
 of my mails I press 'v' to get a display like
 
   I 1 no description  [multipa/alternativ, 7bit, 
 13K]
   I 2 ├─no description [text/plain, quoted, utf-8, 
 1.6K]
   I 3 └─no description   [text/html, quoted, utf-8, 
 11K]
 
 and use my arrow keys to get to the number 3, '[text/html, . . .'
 I then press 'Enter'  and _sometimes_ a tab opens on my browser to
 display the interpreted content of the mail.  This is what I want.
 But _sometimes_  I get a tab: Problem loading page with a display
 
 File not found
 Iceweasel can't find the file at /home/alan/tmp/mutt.html.
 
 And this is true; there is nothing in my ~/tmp directory.
 But there is also nothing in my tmp/ directory when the html-mail
 opens successfully.  The Tab says:
   file:///home/alan/tmp/mutt.html
 but there is nothing of that kind in my ~tmp/.
 
 I suspect that my ~/.mailcap file is not correct.  I was given it
 several years ago, and I've never understood it.  I give it here, in
 its one-line entirety:
 
 text/html; iceweasel -new-tab '%s'; test=test -n 
 $DISPLAY;nametemplate=%s.html

There are some tips on handling that problem here:

http://www.spocom.com/users/gjohnson/mutt/#background

Regards,
Gary



Re: Difficulty with html-mail

2012-12-19 Thread Jim Graham
On Wed, Dec 19, 2012 at 04:12:55PM -0500, Alan McConnell wrote:
 
 I call up mutt from one of my terms(URxvt) and it displays my
 E-mail from /var/spool/mail/alan, as is normal. With many
 of my mails I press 'v' to get a display like
 
   I 1 no description  [multipa/alternativ, 7bit, 
 13K]
   I 2 ??no description [text/plain, quoted, utf-8, 
 1.6K]
   I 3 ??no description   [text/html, quoted, 
 utf-8, 11K]

Just curious...are the question marks from your e-mail or from my system?
I see these quite frequently with some e-mail (primarily on e-mail
lists), and am wondering what causes that (aside from what I THINK is the
obvious answer, characters that aren't being interpreted properly).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running Mac OS X Lion 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

Do not look into waveguide with remaining eye.