Article View: news.software.readers
Article #235674slrn, metamail, multipart messages
From: Whiskers
Date: Sat, 19 Sep 2009 22:53
Date: Sat, 19 Sep 2009 22:53
54 lines
3181 bytes
3181 bytes
I'm trying to get slrn to use Lynx to display the HTML part of messages
posted with
Content-Type: multipart/alternative;
boundary="[whatever]"
and having parts which are headed
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
and
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
In ~/.slrnrc I have these lines
set metamail_command "meamail"
set use_metamail 1
and in ~/.mailcap I have
text/html; lynx -force_html '%s'; needsterminal
If the message Content-Type is text/html, slrn directs the message to
metamail which uses Lynx to display the message.
However, when the Content-Type is multipart/alternative slrn doesn't seem
to pick up the Content-Type header to invoke metamail; is there something
I need to do in ~/.slrnrc to make that happen?
When I use | to pipe the message to metamail by hand, I get this message:
This message contains 'multipart/alternative'-format data.
Do you want to view it using the 'lynx' command (y/n) [y] ?
answering y to that launches Lynx OK and I see the HTML part, correctly
parsed. But I can't work out a line for mailcap that will automatically
send the HTML part of such a message to Lynx. I can see that variables %t
%n and %F are involved, but I can't work out from the man files how to use
them - and I haven't found any examples of their usage on line.
As slrn already has a macro to strip out all the non-plain-text parts of
HTML and multipart messages (Poor Man's MIME), perhaps I'm trying to do
something which is known to be impossible, or too complex to be worth the
effort. But I'm so close!
--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~
Technical Details
Message-ID:
<slrnhbao7c.q87.catwheezel@ID-107770.user.individual.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.kpn.net!pfeed09.wxs.nl!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrnhbao7c.q87.catwheezel@ID-107770.user.individual.net> Subject: slrn, metamail, multipart messages Date: Sat, 19 Sep 2009 23:53:32 +0100 From: Whiskers <catwheezel@operamail.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.kpn.net!pfeed09.wxs.nl!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: is an alien concept Lines: 54 Reply-To: Whiskers <catwheezel@gmx.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net m+dGl7/ns05NSOhB2YDlJwRW0w1tjJKUqa2C8ArlcU8BBxapGm X-Orig-Path: ID107770.user.individual.net!not-for-mail Cancel-Lock: sha1:YEZ74Rk8CDpuZglcj7429MDpRyI= X-Face: (8UIp\C%, 7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_ "Pmt)1xC~QW%bU/xrlDuux"; aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00 xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@ p& g^8<z5>HA User-Agent: slrn/pre0.9.9-94 (Linux)