Gnus development mailing list
 help / color / mirror / Atom feed
From: Florian Weimer <fw@s.netic.de>
Subject: Re: de .* and gnus-group-posting-charset-alist
Date: 21 Dec 1999 00:22:35 +0100	[thread overview]
Message-ID: <87puw1yz7o.fsf@deneb.cygnus.argh.org> (raw)
In-Reply-To: Per Abrahamsen's message of "20 Dec 1999 12:24:51 +0100"

Per Abrahamsen <abraham@dina.kvl.dk> writes:

> The current (5.8.2) solution, to make the behaviour depend on
> hierarchy, is close to perfect.

No, it isn't.  Currently, you've got two choices: Either you encode the
whole article with quoted-printable (which causes pain with clueless
newsreaders), or you use 8-bit in the article *and* the header, which
is against RFC 822, RFC 1036, RFC 2047 (and probably more...)

I'm currently testing the following extension (of course, a bit of
additional code is required):

(defcustom gnus-group-posting-charset-alist
  '(("^\\(no\\|fr\\|dk\\)\\.[^,]*" iso-8859-1 (iso-8859-1))
    (message-this-is-mail nil nil)
    (message-this-is-news nil t))
  "Alist of regexps and permitted unencoded charsets for posting.
Each element of the alist has the form (TEST HEADER BODY-LIST), where
TEST is either a regular expression matching the newsgroup header or a
variable to query,
HEADER is the charset which may be left unencoded in the header (nil
means encode all charsets),
BODY-LIST is a list of charsets which may be encoded using 8bit
content-transfer encoding in the body, or one of the special values
nil (always encode using quoted-printable) or t (always use 8bit).

Note that any value other tha nil for HEADER infringes some RFCs, so
use this option with care."
  :type '(repeat (list 
		  (choice :tag "Where"
		   (regexp :tag "Group")
		   (const :tag "Mail message" :value message-this-is-mail)
		   (const :tag "News article" :value message-this-is-news))
		  (choice :tag "Header"
		   (const :tag "Always encoded" nil)
		   (symbol :tag "Permitted charset"))
		  (choice :tag "Body"
			  (const :tag "Any charset" :value t)
			  (const :tag "Always encoded" :value nil)
			  (repeat :tag "Permitted charsets"
				  (symbol :tag "Charset")))))
  :group 'gnus-charset)

The idea is that you can chose the header charset and the charsets
which will not be encoded in the body in a completely independent manner.

It seems that my current implementation is nearly complete and mostly
correct, but I don't have Internet access at the moment and it's about
time to go to bed anyway ;), so I haven't committed the changes yet.




  reply	other threads:[~1999-12-20 23:22 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-07 20:45 Karl EICHWALDER
1999-12-08  6:50 ` Florian Weimer
1999-12-11 20:20 ` Kai Großjohann
1999-12-12  6:39   ` Karl EICHWALDER
1999-12-12  9:22     ` Florian Weimer
1999-12-12 11:46       ` Bjørn Mork
1999-12-13 12:04         ` Christophe Cuq
1999-12-12 10:47     ` Kai Großjohann
1999-12-12 15:54       ` Karl EICHWALDER
1999-12-12 11:07   ` Per Abrahamsen
1999-12-12 11:15     ` Florian Weimer
1999-12-13  9:08       ` Per Abrahamsen
1999-12-13 23:51         ` Karl EICHWALDER
1999-12-14  8:48           ` Per Abrahamsen
1999-12-21 20:06         ` Kai Großjohann
1999-12-21 20:30           ` Florian Weimer
1999-12-21 21:32             ` Kai Großjohann
1999-12-23 20:30               ` Florian Weimer
1999-12-21 20:47           ` Per Abrahamsen
1999-12-22  0:07             ` Russ Allbery
1999-12-22  0:52               ` Stainless Steel Rat
1999-12-14 20:18       ` smarkacz
1999-12-14 20:56         ` Florian Weimer
1999-12-17 11:49           ` Toby Speight
1999-12-18 19:33             ` Florian Weimer
1999-12-19 10:47               ` Per Abrahamsen
1999-12-19 18:23           ` Karl EICHWALDER
     [not found]           ` <ug0x1bxde.fsf@lanber.ca <shvh5uhjsf.fsf@tux.gnu.franken.de>
1999-12-20 11:24             ` Per Abrahamsen
1999-12-20 23:22               ` Florian Weimer [this message]
1999-12-21 20:23                 ` Florian Weimer
1999-12-20 18:20           ` Karl EICHWALDER
1999-12-15  7:20         ` Per Abrahamsen
1999-12-17  8:53           ` Hrvoje Niksic
1999-12-21 20:08             ` Kai Großjohann
1999-12-21 20:29               ` Florian Weimer
1999-12-21 21:31                 ` Kai Großjohann
1999-12-22 10:10               ` Hrvoje Niksic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87puw1yz7o.fsf@deneb.cygnus.argh.org \
    --to=fw@s.netic.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).