Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* gnus-posting-styles
@ 2006-05-11 16:45 Hadron Quark
  2006-05-11 17:36 ` gnus-posting-styles Steven E. Harris
  2006-05-11 18:42 ` gnus-posting-styles Reiner Steib
  0 siblings, 2 replies; 12+ messages in thread
From: Hadron Quark @ 2006-05-11 16:45 UTC (permalink / raw)



If I have a posting style like this:

     (".*gnus"
      (name "Hadron A. Quark")(address "hadronquark@gmail.com")
      )

then when I post or send a mail, the "from" line looks like this

hadronquark@gmail.com <hadron A. Quark>

if I remove the "." then the from is as it should be (minus the period
of course):

Hadron A Quark <hadronquark@gmail.com>

Could someone tell me how I can get the "." into the "name" without
posting-styles causing this strange swap?

thanks

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gnus-posting-styles
  2006-05-11 16:45 gnus-posting-styles Hadron Quark
@ 2006-05-11 17:36 ` Steven E. Harris
  2006-05-11 21:35   ` gnus-posting-styles Hadron Quark
  2006-05-11 18:42 ` gnus-posting-styles Reiner Steib
  1 sibling, 1 reply; 12+ messages in thread
From: Steven E. Harris @ 2006-05-11 17:36 UTC (permalink / raw)


Hadron Quark <hadronquark@gmail.com> writes:

> Could someone tell me how I can get the "." into the "name" without
> posting-styles causing this strange swap?

Perhaps the variable `message-from-style' is involved. I know it
governs whether the name is shown as a parenthetical comment, or at
least allows one to force the syntax one way or another.

-- 
Steven E. Harris

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gnus-posting-styles
  2006-05-11 16:45 gnus-posting-styles Hadron Quark
  2006-05-11 17:36 ` gnus-posting-styles Steven E. Harris
@ 2006-05-11 18:42 ` Reiner Steib
  2006-05-11 21:28   ` gnus-posting-styles Hadron Quark
  1 sibling, 1 reply; 12+ messages in thread
From: Reiner Steib @ 2006-05-11 18:42 UTC (permalink / raw)


On Thu, May 11 2006, Hadron Quark wrote:

>      (".*gnus"
>       (name "Hadron A. Quark")(address "hadronquark@gmail.com")
[...]

> hadronquark@gmail.com <hadron A. Quark>

No, it's...

| From: hadronquark@gmail.com (Hadron A. Quark)

`(' and `)' instead of `<' and `>'.

| From: Hadron A. Quark <hadronquark@gmail.com>
... would be incorrect.

If you set `message-from-style' to 'angles, you'll get...

| From: "Hadron A. Quark" <hadronquark@gmail.com>

... which is correct, but requires quoting.  Therefore, the default
uses the `parens' style in such a case.
See `<f1> v message-from-style RET'.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gnus-posting-styles
  2006-05-11 18:42 ` gnus-posting-styles Reiner Steib
@ 2006-05-11 21:28   ` Hadron Quark
  2006-05-11 21:44     ` gnus-posting-styles Adam Sjøgren
  2006-05-11 22:34     ` gnus-posting-styles Reiner Steib
  0 siblings, 2 replies; 12+ messages in thread
From: Hadron Quark @ 2006-05-11 21:28 UTC (permalink / raw)


Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Thu, May 11 2006, Hadron Quark wrote:
>
>>      (".*gnus"
>>       (name "Hadron A. Quark")(address "hadronquark@gmail.com")
> [...]
>
>> hadronquark@gmail.com <hadron A. Quark>
>
> No, it's...
>
> | From: hadronquark@gmail.com (Hadron A. Quark)
>
> `(' and `)' instead of `<' and `>'.

sorry : yes "(" etc.

>
> | From: Hadron A. Quark <hadronquark@gmail.com>
> ... would be incorrect.
>
> If you set `message-from-style' to 'angles, you'll get...
>
> | From: "Hadron A. Quark" <hadronquark@gmail.com>
>
> ... which is correct, but requires quoting.  Therefore, the default
> uses the `parens' style in such a case.
> See `<f1> v message-from-style RET'.

But my point is that its ONLY if I include the "." in the "name" that it
switches to the other form.

>
> Bye, Reiner.
> -- 
>        ,,,
>       (o o)
> ---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

-- 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gnus-posting-styles
  2006-05-11 17:36 ` gnus-posting-styles Steven E. Harris
@ 2006-05-11 21:35   ` Hadron Quark
  2006-05-12 17:53     ` gnus-posting-styles Steven E. Harris
  0 siblings, 1 reply; 12+ messages in thread
From: Hadron Quark @ 2006-05-11 21:35 UTC (permalink / raw)


"Steven E. Harris" <seh@panix.com> writes:

> Hadron Quark <hadronquark@gmail.com> writes:
>
>> Could someone tell me how I can get the "." into the "name" without
>> posting-styles causing this strange swap?
>
> Perhaps the variable `message-from-style' is involved. I know it
> governs whether the name is shown as a parenthetical comment, or at
> least allows one to force the syntax one way or another.
>
> -- 
> Steven E. Harris

Possibly, but it only happens with the personality which includes the"."
in the "name" so I'm a little stuck.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gnus-posting-styles
  2006-05-11 21:28   ` gnus-posting-styles Hadron Quark
@ 2006-05-11 21:44     ` Adam Sjøgren
  2006-05-11 22:06       ` gnus-posting-styles Hadron Quark
  2006-05-11 22:34     ` gnus-posting-styles Reiner Steib
  1 sibling, 1 reply; 12+ messages in thread
From: Adam Sjøgren @ 2006-05-11 21:44 UTC (permalink / raw)


On Thu, 11 May 2006 23:28:57 +0200, Hadron wrote:

> Reiner Steib <reinersteib+gmane@imap.cc> writes:

>> | From: Hadron A. Quark <hadronquark@gmail.com>
>> ... would be incorrect.

>> If you set `message-from-style' to 'angles, you'll get...

>> | From: "Hadron A. Quark" <hadronquark@gmail.com>

>> ... which is correct, but requires quoting.  Therefore, the default
>> uses the `parens' style in such a case.
>> See `<f1> v message-from-style RET'.

> But my point is that its ONLY if I include the "." in the "name" that it
> switches to the other form.

Yes, because that means that the string needs to be quoted - in my
name it is the 'ø' that needs to be quoted.


  Best regards,

-- 
 "Though I have not tested it, I trust it works."             Adam Sjøgren
                                                         asjo@koldfront.dk

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gnus-posting-styles
  2006-05-11 21:44     ` gnus-posting-styles Adam Sjøgren
@ 2006-05-11 22:06       ` Hadron Quark
  2006-05-11 22:31         ` gnus-posting-styles Adam Sjøgren
  0 siblings, 1 reply; 12+ messages in thread
From: Hadron Quark @ 2006-05-11 22:06 UTC (permalink / raw)


asjo@koldfront.dk (Adam Sjøgren) writes:

> On Thu, 11 May 2006 23:28:57 +0200, Hadron wrote:
>
>> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>
>>> | From: Hadron A. Quark <hadronquark@gmail.com>
>>> ... would be incorrect.
>
>>> If you set `message-from-style' to 'angles, you'll get...
>
>>> | From: "Hadron A. Quark" <hadronquark@gmail.com>
>
>>> ... which is correct, but requires quoting.  Therefore, the default
>>> uses the `parens' style in such a case.
>>> See `<f1> v message-from-style RET'.
>
>> But my point is that its ONLY if I include the "." in the "name" that it
>> switches to the other form.
>
> Yes, because that means that the string needs to be quoted - in my
> name it is the 'ø' that needs to be quoted.

I see : but why does it need to be quoted? Because a period (".") is
otherwise illegal?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gnus-posting-styles
  2006-05-11 22:06       ` gnus-posting-styles Hadron Quark
@ 2006-05-11 22:31         ` Adam Sjøgren
  0 siblings, 0 replies; 12+ messages in thread
From: Adam Sjøgren @ 2006-05-11 22:31 UTC (permalink / raw)


On Fri, 12 May 2006 00:06:51 +0200, Hadron wrote:

> I see : but why does it need to be quoted? Because a period (".") is
> otherwise illegal?

Indeed. (Dig into rfc 2822 if you want the details).


  Best regards,

-- 
 "I try to make everyone's day a little more surreal"         Adam Sjøgren
                                                         asjo@koldfront.dk

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gnus-posting-styles
  2006-05-11 21:28   ` gnus-posting-styles Hadron Quark
  2006-05-11 21:44     ` gnus-posting-styles Adam Sjøgren
@ 2006-05-11 22:34     ` Reiner Steib
  1 sibling, 0 replies; 12+ messages in thread
From: Reiner Steib @ 2006-05-11 22:34 UTC (permalink / raw)


On Thu, May 11 2006, Hadron Quark wrote:

> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>> Therefore, the default uses the `parens' style in such a case.  See
>> `<f1> v message-from-style RET'.
>
> But my point is that its ONLY if I include the "." in the "name" that it
> switches to the other form.

Yes, the dot causes the switch because «Hadron A. Quark
<hadronquark@gmail.com>» is not allowed according to the relevant
RFCs.  «Hadron A Quark <hadronquark@gmail.com>» is allowed.  It's a
feature, not a bug.  You can customize `message-from-style' if you
prefer the angle style.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gnus-posting-styles
  2006-05-11 21:35   ` gnus-posting-styles Hadron Quark
@ 2006-05-12 17:53     ` Steven E. Harris
  0 siblings, 0 replies; 12+ messages in thread
From: Steven E. Harris @ 2006-05-12 17:53 UTC (permalink / raw)


Hadron Quark <hadronquark@gmail.com> writes:

> Possibly, but it only happens with the personality which includes
> the"."  in the "name" so I'm a little stuck.

Right. Note that I'm posting with my middle initial present, followed
by a period. I discovered this rule years ago when I started using my
middle initial.

See RFC 822 Section 6.1, ADDRESS SPECIFICATION. In particular, look
at "mailbox". A name preceding the actual address is a "phrase",
which, per Section 3.3, contains one or more "words", which are in
turn comprised either of quoted strings or "atoms". An atom can be any
"CHAR" except a "special", of which the period is one.

To use a period before an address, one must use a quoted string. The
parenthetical form is a "comment", described in Section 3.2, HEADER
FIELD DEFINITIONS.

-- 
Steven E. Harris

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: gnus-posting-styles
  2005-09-21  6:41 gnus-posting-styles John
@ 2005-09-21 12:35 ` Glyn Millington
  0 siblings, 0 replies; 12+ messages in thread
From: Glyn Millington @ 2005-09-21 12:35 UTC (permalink / raw)


John <falseaddress@nospam.nomore> writes:

> Hello
>
> I am not able to understand why I can't see the gnus-posting-styles
> alist despite C-h v gnus-posting-styles which puts out
>
> ,----
> | gnus-posting-styles's value is nil
> | 
> | Documentation:
> | *Alist of styles to use when posting.
> | 
> | Defined in `gnus-msg'.
> `----
>
> do I need to put (require gnus-msg) in me .emacs in-order to view and
> customize this variable?


No, but you do have to customise it yourself in .gnus - have you looked
at section 5.5 of the Gnus manual where there are some simple examples.

You can have some fun with these :-) Have a look at my headers for
examples  .....

Good luck





Glyn


^ permalink raw reply	[flat|nested] 12+ messages in thread

* gnus-posting-styles
@ 2005-09-21  6:41 John
  2005-09-21 12:35 ` gnus-posting-styles Glyn Millington
  0 siblings, 1 reply; 12+ messages in thread
From: John @ 2005-09-21  6:41 UTC (permalink / raw)


Hello

I am not able to understand why I can't see the gnus-posting-styles
alist despite C-h v gnus-posting-styles which puts out

,----
| gnus-posting-styles's value is nil
| 
| Documentation:
| *Alist of styles to use when posting.
| 
| Defined in `gnus-msg'.
`----

do I need to put (require gnus-msg) in me .emacs in-order to view and
customize this variable?

thanks


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-05-12 17:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-11 16:45 gnus-posting-styles Hadron Quark
2006-05-11 17:36 ` gnus-posting-styles Steven E. Harris
2006-05-11 21:35   ` gnus-posting-styles Hadron Quark
2006-05-12 17:53     ` gnus-posting-styles Steven E. Harris
2006-05-11 18:42 ` gnus-posting-styles Reiner Steib
2006-05-11 21:28   ` gnus-posting-styles Hadron Quark
2006-05-11 21:44     ` gnus-posting-styles Adam Sjøgren
2006-05-11 22:06       ` gnus-posting-styles Hadron Quark
2006-05-11 22:31         ` gnus-posting-styles Adam Sjøgren
2006-05-11 22:34     ` gnus-posting-styles Reiner Steib
  -- strict thread matches above, loose matches on Subject: below --
2005-09-21  6:41 gnus-posting-styles John
2005-09-21 12:35 ` gnus-posting-styles Glyn Millington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).