* why cannot use Chinese character in nnmail-split-methods
@ 2007-04-28 1:14 haomiao
2007-04-29 2:51 ` It's me FKtPp ;)
2007-04-29 11:24 ` Reiner Steib
0 siblings, 2 replies; 3+ messages in thread
From: haomiao @ 2007-04-28 1:14 UTC (permalink / raw)
To: info-gnus-english
Hi
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" "")))
----------------------------------------------------------------------------
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: why cannot use Chinese character in nnmail-split-methods
2007-04-28 1:14 why cannot use Chinese character in nnmail-split-methods haomiao
@ 2007-04-29 2:51 ` It's me FKtPp ;)
2007-04-29 11:24 ` Reiner Steib
1 sibling, 0 replies; 3+ messages in thread
From: It's me FKtPp ;) @ 2007-04-29 2:51 UTC (permalink / raw)
To: info-gnus-english
haomiao <miaohaoz@ustc.edu> writes:
> Hi
>
> 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" "")))
> ----------------------------------------------------------------------------
Chinese characters in Subject: header is often encoded by various
method, so... your match will be fail.
--
To reply, remove string `ccol' from the email address.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: why cannot use Chinese character in nnmail-split-methods
2007-04-28 1:14 why cannot use Chinese character in nnmail-split-methods haomiao
2007-04-29 2:51 ` It's me FKtPp ;)
@ 2007-04-29 11:24 ` Reiner Steib
1 sibling, 0 replies; 3+ messages in thread
From: Reiner Steib @ 2007-04-29 11:24 UTC (permalink / raw)
To: info-gnus-english
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-29 11:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-28 1:14 why cannot use Chinese character in nnmail-split-methods haomiao
2007-04-29 2:51 ` It's me FKtPp ;)
2007-04-29 11:24 ` Reiner Steib
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).