Article View: news.software.readers
Article #240150Re: [slrn]save recoded bodies
From: Whiskers
Date: Wed, 24 Mar 2010 15:02
Date: Wed, 24 Mar 2010 15:02
53 lines
3740 bytes
3740 bytes
On 2010-03-23, Stefan Ram <ram@zedat.fu-berlin.de> wrote:
> In slrn, after having tagged articles with »#«, I can save
> them with »o«.
>
> This will save the headers and bodies as they came from the
> newsserver.
>
> The bodies have different »Content-Transfer-Encoding«s (7 bit,
> 8 bit, quoted-printable and base64) and different charsets
> (ISO-8859-16, ISO-8859-9, BIG5, ISO-8859-14, ISO-8859-4,
> ISO-8859-2, GB18030, ISO-8859-13, US-ASCII, ISO-8859-15 and
> last not least: UTF-8 AND ISO-8859-1).
>
> Can I asked slrn to save the bodies »decoded«? That is,
> first, decode all 7 bit, quoted-printable and base64 bodies
> to an 8 bit representation. Next recode all charsets to
> UTF-8 (replacing characters by »?« if they cannot be
> represented) or something similar to this?
>
> (Slrn must already know how to »decode« bodies as it can
> show me the bodies decoded.)
Slrn's built-in 'decode' function is for converting binary files encoded
using base64 or uuencode back into the original form - JPG, GIF, OGG, etc.
A compile-time option is to link slrn to the separate uudeview tool instead
of using the built-in code; that will add the ability to cope with yEnc
posts. The decoded files are saved in the decode directory (or the save
directory) specified in your ~/.slrnrc file.
See the slrn manual 6.12 for the "charsat" settings information that
determines how slrn copes with text messages. Run the command
slrn --version
to see which version of S-Lang your slrn is compiled against; S-Lang
version 2 is required for slrn to be able to handle UTF-8 fully.
I don't think slrn can change the character encoding of a text article when
'saving' it. However, the Linux command recode can do this. I haven't
had occasion to use it myself so I can't give usage advice - and the man
file isn't easy to follow - but you can probably find usage examples on
line. I think using it on usenet articles could corrupt the message
headers.
Slrn's pipe command | might be of interest to you too. I use it to pipe
HTML articles (via metamail) to Lynx. I think it should be possible to
pipe an article to a shell script acting as a 'wrapper' for the recode
command. Someone may already have something of the sort set up.
--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~
Technical Details
Message-ID:
<slrnhqkacd.dbl.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.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<slrn-20100324004134@ram.dialup.fu-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <slrnhqkacd.dbl.catwheezel@ID-107770.user.individual.net> Subject: Re: [slrn]save recoded bodies Date: Wed, 24 Mar 2010 15:02:37 +0000 From: Whiskers <catwheezel@operamail.com> References: <slrn-20100324004134@ram.dialup.fu-berlin.de> 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.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!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: 53 Reply-To: Whiskers <catwheezel@gmx.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net d+3MFKD2Z4cLl8DzmXAv1wUslO3aeOaCHFnCJm4vQL7xMiEFGT X-Orig-Path: ID107770.user.individual.net!not-for-mail Cancel-Lock: sha1:OfRHpdfJztQib3J1xXm+19pePTI= 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)