🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #86364

Re: How to get pan 0.139 on Linux to put quotes around the name

#86364
From: "Michael Bäuerle"
Date: Sat, 30 Aug 2014 10:45
61 lines
3727 bytes
''Nduka Okafor'' wrote:
> 'Nduka Okafor' wrote:
> > 
> > Test of '"Nduka Okafor'"
> 
> I give up. 
> Single quotes work; but double quotes fail.

Note that all the variants with "/" can't bring a reserved character
inside a quoted-string. The escape character is "\" (Backslash)!
There are only two reserved characters (Double-quote and backslash),
this means any other character (incuding single-quote and forward-
slash) is defined to be treated literally inside a quoted-string.

Examples for standard RFC5536 format:

   "Nduka Okafor"       Result: Nduka Okafor
   ^            ^
   |            +------ End of quoted-string
   +------------------- Start of quoted-string


   "/"Nduka Okafor"/"   Result: /Nduka Okafor/
   ^ ^ atom atom  ^ ^
   | |            | +-- End of 2nd quoted-string
   | |            +---- Start of 2nd quoted-string
   | +----------------- End of 1st quoted-string
   +------------------- Start of 1st quoted-string


   "\"Nduka Okafor\""   Result: "Nduka Okafor"
   ^^^            ^^^
   |||            ||+-- End of quoted string
   |||            |+--- Literal (part of quoted-string)
   |||            +---- Escape ("treat next character literally")
   ||+----------------- Literal (part of quoted-string)
   |+------------------ Escape ("treat next character literally")
   +------------------- Start of quoted string


There is another option to get in the quotes by using RFC2047 (MIME):


   =?US-ASCII?Q?=22Nduka_Okafor=22?=    Result: "Nduka Okafor"
   ^  charset | <----------------> ^
   |          |       content      +--- End of encoded-word ("?=")
   |          |
   |          +------------------------ Transfer enc. (quoted-printable)
   +----------------------------------- Start of encoded-word ("=?")
   [question marks are field separators]

The double-quote has code 22 (hexadecimal) in US-ASCII, therefore the
quoted-printable representation is "=22" and the space in the middle is
not allowed literally (it can be represented as "=20" or "_"). I have
choosen the latter option but both are equivalent.


Even if you can't get it working, I hope it's now clear how things are
defined and *should* work if implemented in the sense of the standards.
-- 
http://micha.freeshell.org/
Technical Details
Message-ID: <AABUAatF8ScAAEbK.A1.flnews@WStation4.micha.freeshell.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <lt96qa$v78$1@solani.org> <AABT+GOsyBEAAEd8.A1.flnews@WStation4. micha.freeshell.org> <ltauu6$su1$1@solani.org> <AABT+aoZ0fgAAAVt.A1.flnews@ WStation1.micha.freeshell.org> <AABT+wHPKhoAAA4C.A1.flnews@WStation3.stz-e. de> <ltlscn$cji$1@solani.org> <ltlse5$cji$2@solani.org> <ltlsfk$cji$3@ solani.org> <ltlshd$cji$4@solani.org> <ltlsil$cji$5@solani.org> < ltlsmn$cji$7@solani.org> <ltlsof$cji$8@solani.org>

Show Full Headers
Complete Article Headers
Message-ID: <AABUAatF8ScAAEbK.A1.flnews@WStation4.micha.freeshell.org>
Subject: Re: How to get pan 0.139 on Linux to put quotes around the name
Date: Sat, 30 Aug 2014 10:45:25 +0000
From: "Michael Bäuerle" <michael.baeuerle@gmx.net>
References: <lt96qa$v78$1@solani.org> <AABT+GOsyBEAAEd8.A1.flnews@WStation4. micha.freeshell.org> <ltauu6$su1$1@solani.org> <AABT+aoZ0fgAAAVt.A1.flnews@ WStation1.micha.freeshell.org> <AABT+wHPKhoAAA4C.A1.flnews@WStation3.stz-e. de> <ltlscn$cji$1@solani.org> <ltlse5$cji$2@solani.org> <ltlsfk$cji$3@ solani.org> <ltlshd$cji$4@solani.org> <ltlsil$cji$5@solani.org> < ltlsmn$cji$7@solani.org> <ltlsof$cji$8@solani.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.nntp
Lines: 61
Mime-Version: 1.0
X-Trace: individual.net niK3j9qC1h8cwXp3i2BTOw2hfCzOgY0/uEHHyPgjDlWlRPaHM1
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:r3wV6f1q6TqvG+t8u2N02i1bxUw=
Injection-Date: 30 Aug 2014 10:45:25 -0000
User-Agent: flnews/0.9pre22 (for AIX)