From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68031 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: Character of Death locks one out of all newsgroups Date: Thu, 01 Jan 2009 20:57:08 +0100 Message-ID: <8763ky7qaz.fsf@marauder.physik.uni-ulm.de> References: <87bpuytys2.fsf@jidanni.org> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1230916632 31788 80.91.229.12 (2 Jan 2009 17:17:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Jan 2009 17:17:12 +0000 (UTC) Cc: ding@gnus.org To: jidanni@jidanni.org Original-X-From: ding-owner+M16476@lists.math.uh.edu Fri Jan 02 18:18:21 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1LInfA-0002cR-K0 for ding-account@gmane.org; Fri, 02 Jan 2009 18:18:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1LInct-0005lW-RS; Fri, 02 Jan 2009 11:15:59 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LIncr-0005l7-LO for ding@lists.math.uh.edu; Fri, 02 Jan 2009 11:15:57 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LIncm-0006Zo-QI for ding@lists.math.uh.edu; Fri, 02 Jan 2009 11:15:57 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LInd2-00009n-00 for ; Fri, 02 Jan 2009 18:16:08 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n02HFmPj006634; Fri, 2 Jan 2009 18:15:49 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id ACE9B131A4; Fri, 2 Jan 2009 18:15:48 +0100 (CET) X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Mail-Followup-To: jidanni@jidanni.org, ding@gnus.org In-Reply-To: <87bpuytys2.fsf@jidanni.org> (jidanni@jidanni.org's message of "Sat, 27 Dec 2008 05:25:01 +0800") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-INFN-TO-Metrics: poseidon 1233; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68031 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, Dec 26 2008, jidanni@jidanni.org wrote: > One bad character locks me out of all newsgroups... until when, one > doesn't know. Great denial of service attack. > > Debugger entered--Lisp error: (error "Can't rfc2047-encode `\x2563d\x2587= c \x256cf\x7ecf'") > signal(error ("Can't rfc2047-encode `\x2563d\x2587c \x256cf\x7ecf'")) > error("Can't rfc2047-encode `%s'" "\x2563d\x2587c \x256cf\x7ecf") > rfc2047-encode(5 10) > rfc2047-encode-region(1 12) > nnrss-mime-encode-string("Re: \x2563d\x2587c亲\x256cf经= 382; 3") > nnrss-check-group("BDSM \x25322\x25cf0\x25d37\x268a2" "") > nnrss-request-group("BDSM =E4=B8=80=E8=88=AC=E8=A8=8E=E8=AB=96" "" nil) > gnus-activate-group("nnrss:BDSM =E4=B8=80=E8=88=AC=E8=A8=8E=E8=AB=96" s= can) > gnus-get-unread-articles(nil) > gnus-group-get-new-news() > > Input was http://www.bdsm.com.tw/phorum/rss.php?1 A minimal recipe to reproduce this in Emacs 22 is this: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable (let ((rfc2047-encoding-type 'mime) rfc2047-encode-max-chars) (rfc2047-encode-string "=E8=BA=AB --=-=-= Content-Type: text/plain; charset=shift_jis Content-Transfer-Encoding: quoted-printable =EFn")) (It works fine with Emacs 23 (CVS)) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ,---- | character: =E8=BA=AB (153295, #o453317, #x256cf, U+8EAB) | charset: chinese-big5-1 | (Frequently used part (A141-C67F) of Big5 (Chinese traditional).) | code point: #x2D #x4F | syntax: w which means: word | category: C:Chinese (Han) characters of 2-byte character sets c:Ch= inese | |:While filling, we can break a line at this character. `---- --=-=-= Content-Type: text/plain; charset=shift_jis Content-Transfer-Encoding: quoted-printable ,---- | character: =EFn (32463, #o77317, #x7ecf) | charset: japanese-jisx0208-1978 | (JISX0208.1978 Japanese Kanji (so called "old JIS"): ISO-IR-42.) | code point: #x7D #x4F | syntax: w which means: word `---- rfc2047-encode fails because mime-charset is '(iso-2022-jp big5): --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ELISP> (with-temp-buffer (insert "=E8=BA=AB --=-=-= Content-Type: text/plain; charset=shift_jis Content-Transfer-Encoding: quoted-printable =EFn") (mm-find-mime-charset-region (point-min) (point-max))) (iso-2022-jp big5) > If you can't rfc2047-encode something, then put a "bad character > character" in its place. This message (which contains the bad characters) will be split into parts with utf-8 and shift_jis, see "A message part needs to be split into %d charset parts." in `mml-parse-1'. Maybe nnrss could do something similar, e.g. return "=3D?utf-8?Q?=3DE8=3DBA=3DAB?=3D =3D?shift_jis?Q?=3DEFn?=3D"? I know next = to nothing about RSS, so I'm not sure. Anyone? > Firefox shows the line as > Re: =89=E4=93I亲=90g经历 3 > That would be still better that bombing out too. > Anyway, I had to use > C-k runs the command gnus-group-kill-group > to be able to use > g runs the command gnus-group-get-new-news > ever again. Else one must use many > M-g (translated from g) runs the command gnus-group-get-new-news= -this-group > If I dare use > c runs the command gnus-group-catchup-current > I just get > > Debugger entered--Lisp error: (error "Can't rfc2047-encode `\x2563d\x2587= c \x256cf\x7ecf'") > signal(error ("Can't rfc2047-encode `\x2563d\x2587c \x256cf\x7ecf'")) > error("Can't rfc2047-encode `%s'" "\x2563d\x2587c \x256cf\x7ecf") > rfc2047-encode(5 10) > rfc2047-encode-region(1 12) > nnrss-mime-encode-string("Re: \x2563d\x2587c亲\x256cf经= 382; 3") > nnrss-check-group("BDSM \x25322\x25cf0\x25d37\x268a2" "") > nnrss-request-group("BDSM =88=EA=94=CA=93=A2=98_" "" nil) > gnus-activate-group("nnrss:BDSM =88=EA=94=CA=93=A2=98_") > gnus-sequence-of-unread-articles("nnrss:BDSM =88=EA=94=CA=93=A2=98_") > gnus-group-catchup("nnrss:BDSM =88=EA=94=CA=93=A2=98_" nil) > gnus-group-catchup-current(nil) > call-interactively(gnus-group-catchup-current) > > Who knows why it must encode things just to mark them as read. > > I wonder how I ever can read this group again? On Mon, Dec 29 2008, jidanni@jidanni.org wrote: > One needs to unconnect to the Internet, start gnus again, unsubscribe > the group, and wait several weeks for that thread with the poison > character to die off RSS (monitoring via e.g., firefox), or else one > will not be able to read ANY mail or news groups. Bye, Reiner. --=20 ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ --=-=-=--