Thread View: news.software.nntp
23 messages
23 total messages
Started by Nduka Okafor
Sat, 23 Aug 2014 04:54
How to get pan 0.139 on Linux to put quotes around the name
Author: Nduka Okafor
Date: Sat, 23 Aug 2014 04:54
Date: Sat, 23 Aug 2014 04:54
22 lines
1965 bytes
1965 bytes
I simply want the name to show up as:
"Nduka Okafor"
Insted of as:
Nduka Okafor
But, I can't get Pan 0.139 to insert the quotes.
Of course, I tried typing quotes ("), but they are ignored.
Then I tried double quotes (""), but they're also ignored.
I tried editing the ~/.pan2/posting.xml text file, but, even
with literal quotes, Pan still doesn't put quotes around
my name in this message.
<profile name="foo">
<username>"Nduka Okafor"</username>
<address>NdukaOkafor@is.invalid</address>
<server>nntp</server>
<xface></xface>
<attribution>%n wrote, on %d:</attribution>
</profile>
What's the trick to get Pan to put quotes in the name?
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: Michael Baeuerle
Date: Sat, 23 Aug 2014 09:49
Date: Sat, 23 Aug 2014 09:49
45 lines
2451 bytes
2451 bytes
Nduka Okafor wrote:
>
> I simply want the name to show up as:
> "Nduka Okafor"
> Insted of as:
> Nduka Okafor
>
> But, I can't get Pan 0.139 to insert the quotes.
>
> Of course, I tried typing quotes ("), but they are ignored.
> Then I tried double quotes (""), but they're also ignored.
> I tried editing the ~/.pan2/posting.xml text file, but, even
> with literal quotes, Pan still doesn't put quotes around
> my name in this message.
>
> <profile name="foo">
> <username>"Nduka Okafor"</username>
> <address>NdukaOkafor@is.invalid</address>
> <server>nntp</server>
> <xface></xface>
> <attribution>%n wrote, on %d:</attribution>
> </profile>
>
> What's the trick to get Pan to put quotes in the name?
I don't know whether pan can do what you want, but the reason for the
described behaviour is maybe the format of e-mail mailboxes according to
RFC5322:
http://tools.ietf.org/html/rfc5322#section-3.4
The display name is specified as "phrase":
http://tools.ietf.org/html/rfc5322#section-3.2.5
that itself can be an "atom" or a "quoted string".
Maybe all quotes are simply filtered out because pan can't handle them
in a safe way. Example:
this:is"not_an_atom
"this:is"not_an_atom"
Both strings are not a valid phrase. But this would be valid:
"this:is not_an_atom"
[Fup2 set on news.software.nntp]
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: Nduka Okafor
Date: Sat, 23 Aug 2014 20:52
Date: Sat, 23 Aug 2014 20:52
15 lines
1867 bytes
1867 bytes
Michael Baeuerle wrote, on Sat, 23 Aug 2014 09:49:32 +0000:
> Maybe all quotes are simply filtered out because pan can't handle them
Thanks Michael for that explanation.
Certainly *some* newsreaders allow the quotes as you can see in just
this newsgroup, some names are listed with quotes, while others aren't.
I even edited the posting.xml file directly, changing from username:
<username>"Nduka Okafor"</username>
To username:
<username>"Nduka Okafor";</username>
But, in the end, the quotes were never shown.
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: David Hume
Date: Sun, 24 Aug 2014 08:32
Date: Sun, 24 Aug 2014 08:32
15 lines
2381 bytes
2381 bytes
Nduka Okafor <NdukaOkafor@is.invalid> writes: > But, in the end, the quotes were never shown. It doesn't quite answer your question, but if you put a punctuation mark in, pan seems to put in quotes. E.g. "Nduka. Okafor" Maybe this will give some clue as to how pan puts in quotes? I have noticed this behaviour in other clients. Emacs/gnus seems to try to avoid quotes by putting the name after the email address in brackets.
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: David Hume
Date: Sun, 24 Aug 2014 08:34
Date: Sun, 24 Aug 2014 08:34
8 lines
1928 bytes
1928 bytes
David Hume <David.Hume@hushmail.com> writes: > > "Nduka. Okafor" > Just to be clear, put the name with a . and without quotes in the profile, and then pan puts them in automatically.
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: Michael Baeuerle
Date: Sun, 24 Aug 2014 09:02
Date: Sun, 24 Aug 2014 09:02
35 lines
2266 bytes
2266 bytes
Nduka Okafor wrote: > Michael Baeuerle wrote: > > > > Maybe all quotes are simply filtered out because pan can't handle them > > Thanks Michael for that explanation. > Certainly *some* newsreaders allow the quotes as you can see in just > this newsgroup, some names are listed with quotes, while others aren't. But your newsreader shouldn't display them if they are delimiters of a "quoted-string". Cited from [1]: | | [...] | Semantically, neither the optional CFWS outside of the quote | characters nor the quote characters themselves are part of the | quoted-string; the quoted-string is what is contained between the | two quote characters. This means that a "quoted-string" is intended as a transfer encoding and the quotes should be removed by the decoder of the receiver. Correctly decoded, these two examples should be displayed the same (_without_ the quotes): Some data "Some data" If quotes should be visible after decoding, they must be represented as "quoted-pair"s inside the "quoted-string" like this: "\"Some data\"" [References repaired] [1] http://tools.ietf.org/html/rfc5322#section-3.2.4
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: Michael Baeuerle
Date: Sun, 24 Aug 2014 09:52
Date: Sun, 24 Aug 2014 09:52
18 lines
1743 bytes
1743 bytes
David Hume wrote: > Nduka Okafor wrote: > > > > But, in the end, the quotes were never shown. > > It doesn't quite answer your question, but if you put a punctuation mark > in, pan seems to put in quotes. E.g. > > "Nduka. Okafor" > > Maybe this will give some clue as to how pan puts in quotes? Because the dot is not allowed in an "atom", a "quoted-string" must be used to transfer it. This is standard compliant behaviour up to here. But if the algorithm is that simple, it don't work if the data contains double quote characters itself (or backslash characters). See my other article.
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: "Michael Baeuerle"
Date: Mon, 25 Aug 2014 09:28
Date: Mon, 25 Aug 2014 09:28
9 lines
1493 bytes
1493 bytes
Michael Baeuerle wrote: > > [...] > If quotes should be visible after decoding, they must be represented as > "quoted-pair"s inside the "quoted-string" like this: > > "\"Some data\"" Test
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: /Nduka Okafor/
Date: Thu, 28 Aug 2014 00:16
Date: Thu, 28 Aug 2014 00:16
6 lines
1570 bytes
1570 bytes
\"Michael Baeuerle\" wrote, on Mon, 25 Aug 2014 09:28:47 +0000: > Test Test of "/"Nduka Okafor"/"
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: Nduka Okafor
Date: Thu, 28 Aug 2014 00:17
Date: Thu, 28 Aug 2014 00:17
6 lines
1613 bytes
1613 bytes
/Nduka Okafor/ wrote, on Thu, 28 Aug 2014 00:16:23 +0000: > Test of "/"Nduka Okafor"/" Test of """Nduka Okafor"""
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: /Nduka Okafor/
Date: Thu, 28 Aug 2014 00:17
Date: Thu, 28 Aug 2014 00:17
6 lines
1669 bytes
1669 bytes
Nduka Okafor wrote, on Thu, 28 Aug 2014 00:17:10 +0000: > Test of """Nduka Okafor""" Test of /"Nduka Okafor/"
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: /Nduka Okafor/
Date: Thu, 28 Aug 2014 00:18
Date: Thu, 28 Aug 2014 00:18
6 lines
1698 bytes
1698 bytes
/Nduka Okafor/ wrote, on Thu, 28 Aug 2014 00:17:56 +0000: > Test of /"Nduka Okafor/" Test of /""Nduka Okafor/""
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: 'Nduka Okafor'
Date: Thu, 28 Aug 2014 00:19
Date: Thu, 28 Aug 2014 00:19
6 lines
1745 bytes
1745 bytes
/Nduka Okafor/ wrote, on Thu, 28 Aug 2014 00:18:53 +0000: > Test of /""Nduka Okafor/"" Test of 'Nduka Okafor'
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: ''Nduka Okafor''
Date: Thu, 28 Aug 2014 00:20
Date: Thu, 28 Aug 2014 00:20
6 lines
1803 bytes
1803 bytes
'Nduka Okafor' wrote, on Thu, 28 Aug 2014 00:19:33 +0000: > Test of 'Nduka Okafor' Test of ''Nduka Okafor'' (note the use of two ' and not one ")
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: 'Nduka Okafor'
Date: Thu, 28 Aug 2014 00:21
Date: Thu, 28 Aug 2014 00:21
6 lines
1848 bytes
1848 bytes
''Nduka Okafor'' wrote, on Thu, 28 Aug 2014 00:20:42 +0000: > Test of ''Nduka Okafor'' (note the use of two ' and not one ") Test of '"Nduka Okafor'"
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: ''Nduka Okafor''
Date: Thu, 28 Aug 2014 00:22
Date: Thu, 28 Aug 2014 00:22
7 lines
1836 bytes
1836 bytes
'Nduka Okafor' wrote, on Thu, 28 Aug 2014 00:21:43 +0000: > Test of '"Nduka Okafor'" I give up. Single quotes work; but double quotes fail.
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: Doug713705
Date: Thu, 28 Aug 2014 00:41
Date: Thu, 28 Aug 2014 00:41
19 lines
2154 bytes
2154 bytes
Le 28-08-2014, /Nduka Okafor/ nous expliquait dans
news.software.nntp
(<ltlsfk$cji$3@solani.org>) :
> Nduka Okafor wrote, on Thu, 28 Aug 2014 00:17:10 +0000:
>
>> Test of """Nduka Okafor"""
>
> Test of /"Nduka Okafor/"
Double-quotes aroud the name work fine here.
I tested it with no problem by putting something like :
On the %d, "%n" wrote
(double-quote included) in the profile settings.
--
Tu peux venir là où je suis.
L'ennui, c'est que je ne suis plus.
-- H.F. Thiéfaine, La môme kaléïdoscope
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: "Michael Bäuerle"
Date: Sat, 30 Aug 2014 10:45
Date: Sat, 30 Aug 2014 10:45
61 lines
3727 bytes
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/
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: "Nduka Okafor"
Date: Sat, 30 Aug 2014 11:38
Date: Sat, 30 Aug 2014 11:38
8 lines
1835 bytes
1835 bytes
Michael Bäuerle wrote, on Sat, 30 Aug 2014 10:45:25 +0000: > 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. Trying the backslash ...
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: \Nduka Okafor\
Date: Sat, 30 Aug 2014 11:40
Date: Sat, 30 Aug 2014 11:40
9 lines
1661 bytes
1661 bytes
\"Nduka Okafor\" wrote, on Sat, 30 Aug 2014 11:38:43 +0000: > Trying the backslash ... That was \"Nduka Okafor\". This is \\"Nduka Okafor\\" I do not think it is possible.
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: Michael Baeuerle
Date: Sat, 30 Aug 2014 14:27
Date: Sat, 30 Aug 2014 14:27
17 lines
1890 bytes
1890 bytes
"Nduka Okafor" wrote: ^^^^^^^^^^^^^^ > Michael Bäuerle wrote: > > > > 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. > > Trying the backslash ... Now it looks good. Sent raw as: | | From: "\"Nduka Okafor\"" <NdukaOkafor@is.invalid> and looks decoded as marked above. -- http://micha.freeshell.org/
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: Michael Baeuerle
Date: Sat, 30 Aug 2014 14:39
Date: Sat, 30 Aug 2014 14:39
31 lines
2176 bytes
2176 bytes
\Nduka Okafor\ wrote:
> \"Nduka Okafor\" wrote:
> >
> > Trying the backslash ...
>
> That was \"Nduka Okafor\".
> This is \\"Nduka Okafor\\"
^^
This would be wrong (outside of the quoted-string).
> I do not think it is possible.
But in your article header I see this:
|
| From: "\\Nduka Okafor\\" <NdukaOkafor@is.invalid>
... and that is correct. This is the way to do it defined in RFC5536.
Because the escape in quoted-string is so seldom used, displaying it may
be not implemented correctly in many Newsreaders (including mine, I have
repaired it after your thread revealed the bug).
The method with encoded-word defined in RFC2047 maybe is more compatible
(at least with newsreaders that are popular in countries where non-ASCII
character sets must be used for the native language).
BTW: Your newsreader still cripples the references by folding it at
the wrong places.
--
http://micha.freeshell.org/
Re: How to get pan 0.139 on Linux to put quotes around the name
Author: Ray Banana
Date: Sat, 30 Aug 2014 20:45
Date: Sat, 30 Aug 2014 20:45
13 lines
1936 bytes
1936 bytes
Thus spake "\"Nduka Okafor\"" <NdukaOkafor@is.invalid> > Michael Bäuerle wrote, on Sat, 30 Aug 2014 10:45:25 +0000: >> 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. > Trying the backslash ... -- Time flies like an arrow, fruit flies like a Banana. http://www.eternal-september.org
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads