From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8925 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.user Subject: Re: why cannot use Chinese character in nnmail-split-methods Date: Sun, 29 Apr 2007 13:24:04 +0200 Message-ID: References: <1177722887.338663.96860@y5g2000hsa.googlegroups.com> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1177850080 4686 80.91.229.12 (29 Apr 2007 12:34:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2007 12:34:40 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Apr 29 14:34:38 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hi8bs-0006RP-VN for gegu-info-gnus-english@m.gmane.org; Sun, 29 Apr 2007 14:34:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hi8hx-0001yf-1D for gegu-info-gnus-english@m.gmane.org; Sun, 29 Apr 2007 08:40:53 -0400 Original-Newsgroups: gnu.emacs.gnus X-Face: P05mdcZT&lL[-s2=mw~RsllZ0zZAb?vdE}.s List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:8925 Archived-At: On Sat, Apr 28 2007, haomiao wrote: > I want to split my mails through nnmail-split-methods > setting. When I use regexp all in English, everything is fine, but > when I use regexp having some Chinese charaters, the mail will not be > split into the right mail folder. > Why this happened? How to resolve it? > > Here is my code in .gnus.el > ---------------------------------------------------------------------------- > (setq nnmail-split-methods > '(("Mail.test" "^Subject:.*\\(测试\\|test\\).*") > ("Mail.inbox" ""))) > ---------------------------------------------------------------------------- At least in Gnus >= 5.10.* (you didn't mention your Gnus version) ... ,----[ (info "(gnus)Splitting Mail") ] | By default, splitting MIME-decodes headers so you can match on | non-ASCII strings. The `nnmail-mail-splitting-charset' variable | specifies the default charset for decoding. The behavior can be turned | off completely by binding `nnmail-mail-splitting-decodes' to `nil', | which is useful if you want to match articles based on the raw header | data. `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/