Re: HTML Mail
On Sat, Apr 13, 2002 at 02:27:25AM +0200, Rocco Rutte wrote: * s. keeling [04/13/02 02:10:27 CEST] wrote: That's the background. So in my ~/.mailcap, I tried links %s; copiousoutput: Here's (relevant parts of) my ~/.mailcap: text/html; w3m -cookie %s; copiousoutput; nametemplate=%s.html Try 'w3m -dump' for autoview. Thanks Rocco. Problem solved. Much appreciated. Next problem: This works: macro index \cB |'w3m -m -cookie'\n 'call w3m to extract URLs out of a message' macro pager \cB |'w3m -m -cookie'\n 'call w3m to extract URLs out of a message' This doesn't: macro index \cB |'links'\n 'call links to extract URLs out of a message' macro pager \cB |'links'\n 'call links to extract URLs out of a message' The latter two just lock up mutt. kill -HUP `pidof links` says ERROR: could not get terminal size -- Any technology distinguishable from magic is insufficiently advanced. TopQuark Software Serv. Contract programmer, server bum.
Re: HTML Mail
Hi, * s. keeling [04/13/02 03:11:49 CEST] wrote: On Sat, Apr 13, 2002 at 02:27:25AM +0200, Rocco Rutte wrote: Try 'w3m -dump' for autoview. Thanks Rocco. Problem solved. Much appreciated. No problem. I didn't mention the manpages for those 3 text-mode browsers. Maybe you should read it. This works: macro index \cB |'w3m -m -cookie'\n 'call w3m to extract URLs out of a message' macro pager \cB |'w3m -m -cookie'\n 'call w3m to extract URLs out of a message' This doesn't: macro index \cB |'links'\n 'call links to extract URLs out of a message' macro pager \cB |'links'\n 'call links to extract URLs out of a message' The latter two just lock up mutt. kill -HUP `pidof links` says ERROR: could not get terminal size So, now that you know that the 'could not get terminal...' error from links is because it wants to run in interactive mode, this is the same problem here. The pipe is used to hand the current mail/news over via stdin to a program specified. So, the program must be abled to read from stdin. w3m is (IIRC not documented in the manpage), but links isn't. That means that links ignores the input from stdin and just wants to run with the URL given (none in your case). If you really depend on links, I think a short wrapper should help: #!/bin/sh tee $filename links $filename rm -f $filename (or: maybe this can be done directly in the macro) Btw, if you want to extract URLs from a message body why not use UrlView adjusted to use your favorite browser? Cheers, Rocco. msg27109/pgp0.pgp Description: PGP signature
Re: HTML Mail
* s. keeling [EMAIL PROTECTED] [04-12-02 19:46]: On Fri, Apr 12, 2002 at 08:27:21PM -0400, Shawn McMahon wrote: begin s. keeling quotation: One of the things driving this is I'd like to find a way to easily report spam to spamcop, which means I have to pass an ID and password. This is possible with lynx -auth=uname:passwd. With w3m or links, it would be something like w3m http://uname:[EMAIL PROTECTED]/ Spamcop will give you an email address. You forward the mails there, Actually, that's what I do now. Submission works great. I'm talking about the final bit about getting onto their system, reviewing spamcop's work, and hitting that last send reports bit. Spamcop works great, except lynx tends to be the only browser that works well with their web server (Opera 5.0 is awful with it; Netscape is better; w3m would be great, but there's a cookie handling bug; links just hangs mutt - links can't figure out terminal geometry). And why didn't the cc: line get filled in with your reply address this time I did an L? Excellent! I use a small footprint limited feature web browser called dillo for this final action to spamcop. Works great and is very small and quick. It is available at: sourceforge.netprojects/dillo/ -- Patrick Shanahan Registered Linux User #207535 Registered at: http://counter.li.org
Re: HTML Mail
--KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Alas! Patrick spake thus: I use a small footprint limited feature web browser called dillo for this final action to spamcop. Works great and is very small and quick. It is available at: sourceforge.netprojects/dillo/ I love dillo, it's so freaking fast. All it needs is just a few more features (like ftp support and bookmark heirarchies), and it'll replace Mozilla on my computer ;) --=20 Rob 'Feztaa' Park [EMAIL PROTECTED] -- We all declare for liberty, but in using the same word we do not all mean the same thing. -- A. Lincoln --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8t6YGPTh2iSBKeccRAmrxAJ9j2z6a1qwnk4cLWj8KvzsL7aKhWACdHJ+U FHyg6ZlSc7Vuy1lTT9gVd5k= =4E7c -END PGP SIGNATURE- --KsGdsel6WgEHnImy--
Re: HTML Mail
Hello -- ...and then s. keeling said... % ... % % One of the things driving this is I'd like to find a way to easily I think I've pretty much solved this wrinkle. Assuming you've gone to get a spamcop mail reporting ID, then you might find [zero] [11:59pm] ~ grep spam .mutt/muttrc | cat -v ###set editor=vim +/^$# set as a send-hook; reset for spamcop folder-hook F.spam 'set sort=mailbox-order ; push tag-pattern.^M' # for spam forwards send-hook (spamcop|(submit|quick).[a-z0-9]*)@.*spamcop.net 'unset pgp_autosign ; set editor=/bin/true signature= ; my_hdr Fcc: /dev/null ; my_hdr From: [EMAIL PROTECTED]' macro generic ,f enter-commandpush tag-prefixforward-messagescenterentery spam forward macro generic ,s tag-prefixsave-message=F.spam\n spam transfer macro generic ,S tag-prefixset-flagrtag-prefixsave-message=OF.spam\n spam dump [zero] [11:59pm] ~ grep spamcop .mutt/aliases alias sc [EMAIL PROTECTED] (SpamCop Submissions-by-mail (quick)) [zero] [11:59pm] ~ ls -lF Mail/quick* lrwxrwxrwx 1 davidtg 7 Apr 2 13:22 Mail/quick.4fhavei2m7k2cgam - spamcop lrwxrwxrwx 1 davidtg 7 Dec 12 07:53 Mail/quick.oxd1ox6zdsz2ztjb - spamcop [zero] [DING!] ~ helpful. Anything tagged (and everything in =F.spam automatically is) gets forwarded to spamcop with a simple ,f sequence. When SpamCop sends a message back with umpteen URLs in it, I hit ctrl-b to fire off urlview and then hit return on about a dozen in a batch and then back through the screen windows pasting in /send sp to search for the send link, hit return, and hit return again. It quick and easy and will last me until I finally get spamassassin in place and handle it elsewhere. In the meantime, if anyone has a quick perl script that will take a URL, talk to the web server, find a certain link (send spam report) and follow it, I'd be in heaven :-) Hey, good morning, everyone! :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg27115/pgp0.pgp Description: PGP signature
Re: HTML Mail
--CdrF4e02JqNVZeln Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Alas! Patrick spake thus: I love dillo, it's so freaking fast. All it needs is just a few more features (like ftp support and bookmark heirarchies), and it'll replace Mozilla on my computer ;) =20 You would probably also like skipstone (and it moving away from sourceforge). Small and fast with more features than dillo. Skipstone uses the GtkMozEmbed mozilla engine. I use dillo for small browses that require few features and skipstone for more normal views. Looks interesting, I'm going to try it. It has tabbing, which is cool. How is it for loading time? You say it's fast -- faster or slower than dillo? Thanks. --=20 Rob 'Feztaa' Park [EMAIL PROTECTED] -- Rainy days and automatic weapons always get me down. --CdrF4e02JqNVZeln Content-Type: application/pgp-signature Content-Disposition: inline -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8t8J+PTh2iSBKeccRAvBSAJ9FwCFXL8ofhdZ1BKykVaRE7F39vgCfeber 9dOkLZRxkkHGCLMggrvmkeM= =607E -END PGP SIGNATURE- --CdrF4e02JqNVZeln--
HTML Mail
Hello, Please reply direct to [EMAIL PROTECTED] I am trying to get HTML mails to display with links. I have this: [ian@buzz:~]$ cat .mailcap text/html; /usr/bin/links %s and these in .muttrc set mailcap_path=~/.mailcap auto_view text/html But I get this: mailcap entry for type text/html not found Any ideas? Thanks Ian
Re: HTML Mail
11-Apr-02 at 12:01, Ian Chilton ([EMAIL PROTECTED]) wrote : Hello, Please reply direct to [EMAIL PROTECTED] Sorry, no. Mailing lists are mailing lists. Participation is expected, not just one way communication. I am trying to get HTML mails to display with links. I have this: [ian@buzz:~]$ cat .mailcap text/html; /usr/bin/links %s and these in .muttrc set mailcap_path=~/.mailcap auto_view text/html For lynx I have:- text/html; lynx -force_html %s; needsterminal; I don't use auto_view or any settings in my muttrc and the mailcap works fine, however if you set it explicitly look at use_mailcap Could be a permissions issue with mutt being unable to read the mailcap file of course. -- [Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:66.77% see www.mersenne.org] /\ASCII Ribbon Campaign \ /Respect for open standards X No HTML/RTF in email / \No M$ Word docs in email
Re: HTML Mail
Hello, Thanks for the reply. Sorry, no. Mailing lists are mailing lists. Participation is expected, not just one way communication. Actually, the custom is to reply to the person and CC to the list :-) I don't use auto_view or any settings in my muttrc and the mailcap works fine Interesting... however if you set it explicitly look at use_mailcap I can't find any reference to use_mailcap in the muttrc or man muttrc - where is it please? Could be a permissions issue with mutt being unable to read the mailcap file of course. That's what I thought, but i'm running everythign as user ian, which is who owns .mailcap: [ian@buzz:~]$ ls -la .mailcap -rw-r--r-- 1 ian users 30 Apr 10 14:19 .mailcap Thanks Ian
Re: HTML Mail
* Ian Chilton [EMAIL PROTECTED] [04-11-02 07:11]: Hello, Thanks for the reply. Sorry, no. Mailing lists are mailing lists. Participation is expected, not just one way communication. Actually, the custom is to reply to the person and CC to the list :-) Actually, the custon is and SHOULD-BE: reply to list and ONLY CC to person if asked. We certainly do not want to receive posts twich without requesting such action. -- Patrick Shanahan Registered Linux User #207535 Registered at: http://counter.li.org
Re: HTML Mail
At Thu, Apr 11 2002 [12:01 +0100], Ian Chilton aroused my curiosity with: text/html; /usr/bin/links %s Try something like: text/html; /usr/bin/links %s; copiousoutput and read section 5.3 MIME Viewer configuration with mailcap in the manual. Tschoe, Steff
Re: HTML Mail
Hello, Try something like: text/html; /usr/bin/links %s; copiousoutput OK, thanks Ian
Re: HTML Mail
11-Apr-02 at 12:55, Ian Chilton ([EMAIL PROTECTED]) wrote : Sorry, no. Mailing lists are mailing lists. Participation is expected, not just one way communication. Actually, the custom is to reply to the person and CC to the list :-) Not on this list, if I take precedents I have seen from other members to be the netiquette for this list... however if you set it explicitly look at use_mailcap I can't find any reference to use_mailcap in the muttrc or man muttrc - where is it please? In the manual, /usr/local/doc/mutt/manual.txt by default. That's what I thought, but i'm running everythign as user ian, which is who owns .mailcap: [ian@buzz:~]$ ls -la .mailcap -rw-r--r-- 1 ian users 30 Apr 10 14:19 .mailcap Exactly the same permissions I have. Is links in the $PATH? -- [Simon White. vim/mutt. [EMAIL PROTECTED] GIMPS:66.97% see www.mersenne.org] UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. -- Dennis Ritchie [Linux user #170823 http://counter.li.org. Home cooked signature rotator.]
Re: HTML Mail
begin Patrick quotation: Actually, the custon is and SHOULD-BE: reply to list and ONLY CC to person if asked. We certainly do not want to receive posts twich without requesting such action. IMHO, it should be reply to list, and let the guy who refuses to join the list use the archives, that's what they're there for. -- Shawn McMahon| Information may want to be free, but fiber http://www.eiv.com | optic cable wants to be one million US AIM: spmcmahonfedex, smcmahoneiv | dollars per mile. msg27045/pgp0.pgp Description: PGP signature
Re: HTML Mail
I have this: [ian@buzz:~]$ cat .mailcap text/html; /usr/bin/links %s and these in .muttrc set mailcap_path=~/.mailcap auto_view text/html For lynx I have:- text/html; lynx -force_html %s; needsterminal; I don't use auto_view or any settings in my muttrc and the mailcap works fine, however if you set it explicitly look at use_mailcap Could be a permissions issue with mutt being unable to read the mailcap file of course. With lynx -force_html i get a full readable page, with links %s i get a page more understandable than the default view but still with alot of html code included. Would you or anyone know a similar option for links, i cant seem to find one. -- Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. -- Andrew S. Tanenbaum Chad Young - Registered Linux User #195191 http://counter.li.org --- Linux localhost 2.4.19-pre5-ac3 #1 Sat Apr 6 00:30:47 AST 2002 i686 GenuineIntel 6:35pm up 0:10, 2 users, load average: 0.15, 0.07, 0.04
Re: HTML Mail
Chad -- First, I should note that the proper address is [EMAIL PROTECTED] rather than @gbnet. While mutt.org is hosted at gbnet and the address sometimes slips out, many here will only properly notice the message if it goes to the real address. ...and then skidley said... % ... % With lynx -force_html i get a full readable page, with links %s i get a % page more understandable than the default view but still with alot of % html code included. Would you or anyone know a similar option for links, % i cant seem to find one. Have you tried template to get the name to end in .html or such? I haven't played with it, but I'm sure it's in the archives, and maybe even for links. % -- % Never underestimate the bandwidth of a station wagon full of tapes % hurtling down the highway. -- Andrew S. Tanenbaum Ha. That's a relly good one. I can see it now, and I'm already thinking about the comparison! I wonder if he knows from experience... :-) % % Chad Young - Registered Linux User #195191 @ http://counter.li.org % --- % Linux localhost 2.4.19-pre5-ac3 #1 Sat Apr 6 00:30:47 AST 2002 i686 GenuineIntel % 6:35pm up 0:10, 2 users, load average: 0.15, 0.07, 0.04 HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg27086/pgp0.pgp Description: PGP signature
Re: Quoting HTML mail in reply - argh!
* Daniel J Peng [EMAIL PROTECTED] [2002-03-19 22:24]: Is there any way to have mutt automatically quote HTML mail when I reply to it? We could tell you - but then we'd have to kill you. ;-) now, I don't mind the *text* getting quoted. hint: doc/manual.txt 5.4. MIME Autoview User-Agent: Mutt/1.3.15i upgrade! Sven
Quoting HTML mail in reply
Is there any way to have mutt automatically quote HTML mail when I reply to it? My mailcap has text/html; lynx -dump -force_html '%s'; copiousoutput and it only makes sense for mutt to quote copiousoutput MIME types in replies... -- W: You see, me and Willetta have been going on for a few weeks now. Phil: Only a few weeks, and she's living in your room? DJP: Will! What's that thing you said earlier about taking things slow! MW rolling on the ground laughing.
Re: Quoting HTML mail in reply
Daniel J Peng wrote: Is there any way to have mutt automatically quote HTML mail when I reply to it? My mailcap has text/html; lynx -dump -force_html '%s'; copiousoutput and it only makes sense for mutt to quote copiousoutput MIME types in replies... set autoview for that type of attachment. it will quote it then. -- Will Yardley input: william hq . newdream . net .
HTML mail
How do folks handle HTML mail. If I receive an attached HTML file (and HTML email, I think), autoview will decode it and I'll see it in the pager (correct term?). Then I can use v and when I view the link, Galeon is invoked and I can see the page. But if someone sends an entire page as the email, I don't get the option to view an HTML attachment. All I see is a bunch links and .gif references. I'm not sure what the differences are between these two conditions but it's one of the last pieces of the puzzle to make mutt truly amazing. -- Michael Montagne [EMAIL PROTECTED] http://www.boora.com
Re: HTML mail
Have you just tried pressing v from the main page before you open up the letter? Joel On Thu, Mar 07, 2002 at 10:23:42AM -0800, Michael Montagne wrote: How do folks handle HTML mail. If I receive an attached HTML file (and HTML email, I think), autoview will decode it and I'll see it in the pager (correct term?). Then I can use v and when I view the link, Galeon is invoked and I can see the page. But if someone sends an entire page as the email, I don't get the option to view an HTML attachment. All I see is a bunch links and .gif references. I'm not sure what the differences are between these two conditions but it's one of the last pieces of the puzzle to make mutt truly amazing. -- Michael Montagne [EMAIL PROTECTED] http://www.boora.com
Re: HTML mail
On 07/03/02, from the brain of Joel Hammer tumbled: Have you just tried pressing v from the main page before you open up the letter? Joel On Thu, Mar 07, 2002 at 10:23:42AM -0800, Michael Montagne wrote: How do folks handle HTML mail. If I receive an attached HTML file (and HTML email, I think), autoview will decode it and I'll see it in the pager (correct term?). Then I can use v and when I view the link, Galeon is invoked and I can see the page. But if someone sends an entire page as the email, I don't get the option to view an HTML attachment. All I see is a bunch links and .gif references. I'm not sure what the differences are between these two conditions but it's one of the last pieces of the puzzle to make mutt truly amazing. That's the weird thing. Sometimes I get mail that doesn't present a text/html option and sometimes it does. -- Michael Montagne [EMAIL PROTECTED] http://www.boora.com
Re: HTML mail
On Thu, Mar 07, 2002 at 10:23:42AM -0800, Michael Montagne wrote: How do folks handle HTML mail. If I receive an attached HTML file (and HTML email, I think), autoview will decode it and I'll see it in the pager (correct term?). Then I can use v and when I view the link, Galeon is invoked and I can see the page. But if someone sends an entire page as the email, I don't get the option to view an HTML attachment. All I see is a bunch links and .gif references. I'm not sure what the differences are between these two conditions but it's one of the last pieces of the puzzle to make mutt truly amazing. That's the weird thing. Sometimes I get mail that doesn't present a text/html option and sometimes it does. It looks to me like the MIME type is broken, so what you're getting is HTML typed into a plain text email, which is displayed correctly by lame MUAs like Outlook Express. Check the headers of the mail and see if it has Content Type: text/html or not. If it does, it should also have some MIME statements too... Content Type on its own is not sufficient. Simon -- Signature still pending
lynx -dump for html mail
I've been getting an increased amount of HTML mail *BLECH*. I have the following line in my mailcap: text/html; lynx -dump %s; copiousoutput and I keep getting the raw HTML instead of the formatted output in my pager. Strangely, lynx from the command line does what I would want it to do with -dump. Anyone have any suggestions? TIA, JT
Re: lynx -dump for html mail
Use 'text/html; lynx -force_html %s; needsterminal' It works for me. On Thu, 21 Jun 2001, JT wrote: I've been getting an increased amount of HTML mail *BLECH*. I have the following line in my mailcap: text/html; lynx -dump %s; copiousoutput and I keep getting the raw HTML instead of the formatted output in my pager. Strangely, lynx from the command line does what I would want it to do with -dump. Anyone have any suggestions? TIA, JT -- Micha. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Re: lynx -dump for html mail
* JT [EMAIL PROTECTED] [20010621 12:57]: I've been getting an increased amount of HTML mail *BLECH*. I have the following line in my mailcap: text/html; lynx -dump %s; copiousoutput and I keep getting the raw HTML instead of the formatted output in my pager. Strangely, lynx from the command line does what I would want it to do with -dump. Anyone have any suggestions? -force_html TIA, JT -- Kirill
Re: lynx -dump for html mail
Quoting JT [EMAIL PROTECTED], who wrote: I've been getting an increased amount of HTML mail *BLECH*. I have the following line in my mailcap: text/html; lynx -dump %s; copiousoutput and I keep getting the raw HTML instead of the formatted output in my pager. Strangely, lynx from the command line does what I would want it to do with -dump. Anyone have any suggestions? The docs are confusing, the first examples don't work, you have to keep reading. Use this, for example: text/html; lynx -localhost -dump %s ; copiousoutput ; nametemplate=%s.html lynx uses the extension to determine if it's html. -- Sam Roberts [EMAIL PROTECTED]
viewing html mail
Hi! Is there a way to make mutt view html formated e-mail in some web browser.. for instance it would display normal text extracted from html in pager, but if you would press H it would display it in netscape/konq/opera... ? is there a way to do this? THX in advance! Bostjan -- Botjan Mller [NEONATUS], [EMAIL PROTECTED], http://neonatus.net/~neonatus For my PGP key finger: [EMAIL PROTECTED], RSA id: 0x90178DBD, ICQ #:7506644 Celular: +386(0)41243189, Powered by Debian GNU/LiNUX , Student of VFUL "Its not a bug...just think of it as a new undocumented feature" - M$ TechSupport
Re: viewing html mail
* On 05-06-01 at 20:17 Ralf Hildebrandt ([EMAIL PROTECTED]) wrote: +Here quoted text begins+ On Tue, Jun 05, 2001 at 07:56:13PM +0200, Bostjan Muller wrote: Is there a way to make mutt view html formated e-mail in some web browser.. for instance it would display normal text extracted from html in pager, but if you would press H it would display it in netscape/konq/opera... ? is there a way to do this? auto_view text/html, image/gif, image/jpeg alternative_order text/plain# I like plaintext more than html. Be sure to have your mime.types and mailcap set correctly... -- [EMAIL PROTECTED]innominate AG Technical Consultant Don't be afraid of what you see - Diplom-Informatiker be afraid of what you don't see! tel: +49.(0)7000.POSTFIXfax: +49.(0)30.308806-77 +and here the quote ends+ That's not what I asked for ;) I can view HTML formated email, but I would like do view some of the email apart from ordinary plaintext style (withing mutt's pager) also in outside application... For instance I would use auto_view to display html as plain text, but if I would pres for instance key H the same e-mail would be displayed in an web browser. THX in advance! Bostjan -- Botjan Mller [NEONATUS], [EMAIL PROTECTED], http://neonatus.net/~neonatus For my PGP key finger: [EMAIL PROTECTED], RSA id: 0x90178DBD, ICQ #:7506644 Celular: +386(0)41243189, Powered by Debian GNU/LiNUX , Student of VFUL Loose bits sink chips. PGP signature
Re: viewing html mail
On Tue, Jun 05, 2001 at 08:33:16PM +0200, Bostjan Muller wrote: That's not what I asked for ;) I can view HTML formated email, but I would like do view some of the email apart from ordinary plaintext style (withing mutt's pager) also in outside application... For instance I would use auto_view to display html as plain text, but if I would pres for instance key H the same e-mail would be displayed in an web browser. From the mutt manual, put this in your mailcap ahead of the line already there for lynx or whatever you use to convert HTML to text: text/html; netscape -remote 'openURL(%s)' ; test=RunningX You could also try this, pieced together from my mailcap file and a script I have, but untested in this form: text/html; netscape -remote 'openURL(file:%s, new-window)' || netscape %s; test=RunningX To display an HTML attachment using Netscape, open the attachment from mutt's attachment menu. HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | RF Communications PGU http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA
Re: HTML mail - mailcap problem
On Sat, May 05, 2001 at 09:21:01PM -0400, Michael P. Soulier wrote: On Sat, May 05, 2001 at 03:47:24PM -0600, Duke Normandin wrote: However, when I select a message from the index that's HTML I get the following: mailcap entry for type text/html not found What the hell? Hey Duke. Check the exact mime-type, there are about four that come up. Here's a cut from my .mailcap text/html ; lynx -dump -force_html %s ; copiousoutput text/htm; lynx -dump -force_html %s ; copiousoutput message/html; lynx -dump -force_html %s ; copiousoutput message/htm ; lynx -dump -force_html %s ; copiousoutput I use lynx instead of links. Works great. The copiousoutput is also required. Mike I'll try the 4 mailcap entries above and report back. Thanks! -- -duke Calgary, Alberta, Canada
HTML mail - mailcap problem
I was following the recent thread about HTML mail, and hosed my mailcap/muttrc settings - I think. Before dinking around with the settings, I hit 'v' to view the attachments, and when I hit 'Enter' on a text/html entry, Links would come up nice -- but source code only. I reads the 'Links' manual to find out that Mutt's auto_view setting doesn't work with my version (083 or something) of Links. So I got rid of auto_view. However, when I select a message from the index that's HTML I get the following: mailcap entry for type text/html not found What the hell? My muttrc has the mailcap_path set correctly! I have a mailcap file in every freaking directory imaginable, and the mailcap entries are: text/html; links %s; needsterminal; nametemplate=%s.html Any ideas? TIA... -- -duke Calgary, Alberta, Canada
Re: HTML Mail - no temp file
On Tue, 06 Jul 1999, Hal Burgiss wrote: Trying to view html mail and I get a NS message to the effect of: No Such File: /tmp/mutt Correct there is no such file -- anywhere. I have tmpdir set to /tmp in .muttrc. I don't see that mutt is creating any temp files in this situation? I've changed mailcap to '-remote openFile(%s)', since openURL() seemed to always want a http:// URL. This works fine as long as it points to a valid file. The problem with "netscape -remote openFile" is, that this command terminates before the file is read in completely. IMHO this is a bug in netscape. Mutt works correctly here: Mutt creates the temp file, then it starts the command (netscape), then it waits for the started command to terminate and after this Mutt removes the temp file. When netscape terminates before reading the file completely in, this means, that Mutt has removed the file before is read and you got the above message. Work around for this problem: Add a sleep 10 after the netscape call in your mailcap like this: text/html; (netscape -remote 'openFile(%s)' || netscape %s)\; sleep 10; \ test=test -n "$DISPLAY" This is ugly, but normally these 10 seconds should be enough for netscape to read the file. Alternatively you can tell Mutt to always wait for a key press before removing the file by adding an exit 1 like this: text/html; (netscape -remote 'openFile(%s)' || netscape %s)\; exit 1; \ test=test -n "$DISPLAY" This tells Mutt to ask for a key press (because netscape seems to be terminated with an error) before removing the file. Another alternative is to "set wait_key" in your muttrc. This should activate waiting for a key press after every external command. But in most situations this is annoying, so I prefer to "unset wait_key" and to add an "exit 1", when I want Mutt to wait for a key press in some special case. Ciao Roland -- * [EMAIL PROTECTED] * http://www.spinnaker.de/ * PGP: 1024/DD08DD6D 2D E7 CC DE D5 8D 78 BE 3C A0 A4 F1 4B 09 CE AF
Re: HTML Mail - no temp file
On Wed, Jul 07, 1999 at 01:27:31PM +0200, Roland Rosenfeld wrote: On Tue, 06 Jul 1999, Hal Burgiss wrote: Trying to view html mail and I get a NS message to the effect of: No Such File: /tmp/mutt Correct there is no such file -- anywhere. I have tmpdir set to /tmp in .muttrc. I don't see that mutt is creating any temp files in this situation? I've changed mailcap to '-remote openFile(%s)', since openURL() seemed to always want a http:// URL. This works fine as long as it points to a valid file. The problem with "netscape -remote openFile" is, that this command terminates before the file is read in completely. IMHO this is a bug in netscape. Mutt works correctly here: Mutt creates the temp file, then it starts the command (netscape), then it waits for the started command to terminate and after this Mutt removes the temp file. When netscape terminates before reading the file completely in, this means, that Mutt has removed the file before is read and you got the above message. I had sort of figured this out as I indicated in an earlier post. Work around for this problem: Add a sleep 10 after the netscape call in your mailcap like this: text/html; (netscape -remote 'openFile(%s)' || netscape %s)\; sleep 10; \ test=test -n "$DISPLAY" Could you explain what is really going here? Why the two calls to netscape sparated by ||? Why the \ after the ) to protect the ;? Are the alternatives whether netscape is already running or not? The manual explains some of the rules for mailcap entries, but it does not seem to cover the complete works. I keep seeing something new like this one. Cheers, Brian. This is ugly, but normally these 10 seconds should be enough for netscape to read the file. Alternatively you can tell Mutt to always wait for a key press before removing the file by adding an exit 1 like this: text/html; (netscape -remote 'openFile(%s)' || netscape %s)\; exit 1; \ test=test -n "$DISPLAY" This tells Mutt to ask for a key press (because netscape seems to be terminated with an error) before removing the file. Another alternative is to "set wait_key" in your muttrc. This should activate waiting for a key press after every external command. But in most situations this is annoying, so I prefer to "unset wait_key" and to add an "exit 1", when I want Mutt to wait for a key press in some special case. Ciao Roland -- * [EMAIL PROTECTED] * http://www.spinnaker.de/ * PGP: 1024/DD08DD6D 2D E7 CC DE D5 8D 78 BE 3C A0 A4 F1 4B 09 CE AF -- Associate Professor Brian Salter-Duke (Brian Duke) Chemistry, Faculty of Science, IT and Education, Northern Territory University, Darwin, NT 0909, Australia. Phone 08-89466702. Fax 08-89466847 [EMAIL PROTECTED] http://www.smps.ntu.edu.au/chemistry/compchem.html
Re: HTML Mail - no temp file
On Wed, 07 Jul 1999, Brian Salter-Duke wrote: text/html; (netscape -remote 'openFile(%s)' || netscape %s)\; sleep 10; \ test=test -n "$DISPLAY" Could you explain what is really going here? Why the two calls to netscape sparated by ||? This first tries to start netscape -remote, which exits with a value !=0 if no netscape is actually running. In this case the "or" (||) part is executed and a new netscape is started. Why the \ after the ) to protect the ;? Because an unquoted ";" is the mailcap separator. But what I want to do here is to execute two commands (netscape and sleep) one after the other, so the "\;" is a ";" for the shell executing the mailcap command. Are the alternatives whether netscape is already running or not? Yep. Ciao Roland -- * [EMAIL PROTECTED] * http://www.spinnaker.de/ * PGP: 1024/DD08DD6D 2D E7 CC DE D5 8D 78 BE 3C A0 A4 F1 4B 09 CE AF
HTML Mail - no temp file
Trying to view html mail and I get a NS message to the effect of: No Such File: /tmp/mutt Correct there is no such file -- anywhere. I have tmpdir set to /tmp in .muttrc. I don't see that mutt is creating any temp files in this situation? I've changed mailcap to '-remote openFile(%s)', since openURL() seemed to always want a http:// URL. This works fine as long as it points to a valid file. Using with RH6.0: Mutt 0.95.4us (1999-03-03) Copyright (C) 1996-8 Michael R. Elkins and others. System: Linux 2.2.5-22 [using slang 9938] Compile options: -DOMAIN -HOMESPOOL -USE_SETGID -USE_DOTLOCK +USE_FCNTL -USE_FLOCK +USE_IMAP +USE_POP +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR -BUFFY_SIZE -EXACT_ADDRESS +ENABLE_NLS SENDMAIL="/usr/sbin/sendmail" MAILPATH="/var/spool/mail" SHAREDIR="/etc" SYSCONFDIR="/etc" ISPELL="/usr/bin/ispell" TIA -- Hal B [EMAIL PROTECTED] -- Linux helps those who help themselves
Re: HTML Mail - no temp file
On Tue, Jul 06, 1999 at 08:10:36PM -0400, Hal Burgiss wrote: Trying to view html mail and I get a NS message to the effect of: No Such File: /tmp/mutt Correct there is no such file -- anywhere. I have tmpdir set to /tmp in .muttrc. I don't see that mutt is creating any temp files in this situation? I have experienced a similar situation and was waiting to find time for more extensive tests before asking mutt-users. On some tries I get the "No such file" error. On others I get part of the document appearing. I think mutt fires of the document from the tmp directory and then moves on, deleting the file. It gets deleted before the transfer is complete. At least that is my hypothesis at present. I was going to try putting the call of netscape in a wrapper script whose name appears in the mailcap file, but I am busy with other stuff. I've changed mailcap to '-remote openFile(%s)', since openURL() seemed to always want a http:// URL. This works fine as long as it points to a valid file. I think this is correct too, since you are trying to load a file not a URL. I do not think this problem is mutt version or system dependent. Cheers, Brian. Using with RH6.0: Mutt 0.95.4us (1999-03-03) Copyright (C) 1996-8 Michael R. Elkins and others. System: Linux 2.2.5-22 [using slang 9938] Compile options: -DOMAIN -HOMESPOOL -USE_SETGID -USE_DOTLOCK +USE_FCNTL -USE_FLOCK +USE_IMAP +USE_POP +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR -BUFFY_SIZE -EXACT_ADDRESS +ENABLE_NLS SENDMAIL="/usr/sbin/sendmail" MAILPATH="/var/spool/mail" SHAREDIR="/etc" SYSCONFDIR="/etc" ISPELL="/usr/bin/ispell" TIA -- Hal B [EMAIL PROTECTED] -- Linux helps those who help themselves -- Associate Professor Brian Salter-Duke (Brian Duke) Chemistry, Faculty of Science, IT and Education, Northern Territory University, Darwin, NT 0909, Australia. Phone 08-89466702. Fax 08-89466847 [EMAIL PROTECTED] http://www.smps.ntu.edu.au/chemistry/compchem.html
Re: HTML Mail - no temp file
On Wed, Jul 07, 1999 at 10:12:01AM +1100, Brian Salter-Duke wrote: On Tue, Jul 06, 1999 at 08:10:36PM -0400, Hal Burgiss wrote: Trying to view html mail and I get a NS message to the effect of: No Such File: /tmp/mutt Correct there is no such file -- anywhere. I have tmpdir set to /tmp in .muttrc. I don't see that mutt is creating any temp files in this situation? I have experienced a similar situation and was waiting to find time for more extensive tests before asking mutt-users. On some tries I get the "No such file" error. On others I get part of the document appearing. I think mutt fires of the document from the tmp directory and then moves on, deleting the file. It gets deleted before the transfer is complete. At least that is my hypothesis at present. I was going to try putting the call of netscape in a wrapper script whose name appears in the mailcap file, but I am busy with other stuff. You would seem to be correct. I just tried 'watch ls' in /tmp and there is a temp file created very briefly -- and then it's gone. -- Hal B [EMAIL PROTECTED] -- Linux helps those who help themselves