From: akr Date: Wed, 27 May 1998 18:32:58 +0000 (+0000) Subject: * eword-decode.el (eword-after-encoded-word-in-phrase-regexp): remove ` X-Git-Tag: flam-1_3_0~2 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e40bffbae3cd2b8a1ef3dd784cfc5104918c6532;p=elisp%2Fflim.git * eword-decode.el (eword-after-encoded-word-in-phrase-regexp): remove ` `(' to do not decode encoded word just before comment. * TESTPAT: New file. --- diff --git a/ChangeLog b/ChangeLog index 04fca1c..cf9cad0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +1998-05-27 Tanaka Akira + + * eword-decode.el (eword-after-encoded-word-in-phrase-regexp): remove ` + `(' to do not decode encoded word just before comment. + +1998-05-27 Tanaka Akira + + * TESTPAT: New file. + 1998-05-22 Tanaka Akira * eword-decode.el (eword-analyze-quoted-string): Check diff --git a/TESTPAT b/TESTPAT new file mode 100644 index 0000000..a08e29a --- /dev/null +++ b/TESTPAT @@ -0,0 +1,72 @@ +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?= +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?= =?ISO-2022-JP?B?GyRCJCQbKEI=?= + +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?= + =?ISO-2022-JP?B?GyRCJCQbKEI=?= + +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?= + =?ISO-2022-JP?B?GyRCJCQbKEI=?= + +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?==?ISO-2022-JP?B?GyRCJCQbKEI=?= + +From: akr@jaist.ac.jp + (=?ISO-2022-JP?B?GyRCJCIbKEI=?=\a=?ISO-2022-JP?B?GyRCJCQbKEI=?=) +From: akr@jaist.ac.jp + (=?ISO-2022-JP?B?GyRCJCIbKEI=?=a=?ISO-2022-JP?B?GyRCJCQbKEI=?=) +From: akr@jaist.ac.jp + (=?ISO-2022-JP?B?GyRCJCIbKEI=?=(=?ISO-2022-JP?B?GyRCJCQbKEI=?=)=?ISO-2022-JP?B?GyRCJCYbKEI=?=) + (Ignore 76bytes/line limit.) +From: a=?ISO-2022-JP?B?GyRCJCIbKEI=?= +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?=b +From: "=?ISO-2022-JP?B?GyRCJCIbKEI=?=" +From: (a)=?ISO-2022-JP?B?GyRCJCIbKEI=?= +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?=(b) +From: (a)=?ISO-2022-JP?B?GyRCJCIbKEI=?=(b) +From: "a"=?ISO-2022-JP?B?GyRCJCIbKEI=?= +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?="b" +From: "a"=?ISO-2022-JP?B?GyRCJCIbKEI=?="b" +From: "\"\\" =?ISO-2022-JP?B?GyRCJCIbKEI=?= "\"\\" +From: < =?ISO-2022-JP?B?GyRCJCIbKEI=?= @jaist.ac.jp> +From: =?ISO-2022-JP?Q?=1B=24BAA=1B=28B?= +From: =?ISO-2022-JP?Q?=1B$BAA=1B(B?= ) +Subject: =?ISO-2022-JP?B?GyRCJCIbKEI=?= +Subject: a=?ISO-2022-JP?B?GyRCJCIbKEI=?= +Subject: =?ISO-2022-JP?B?GyRCJCIbKEI=?=b +Subject: (a)=?ISO-2022-JP?B?GyRCJCIbKEI=?=(b) +Subject: "a"=?ISO-2022-JP?B?GyRCJCIbKEI=?="b" +Subject: (Re: =?ISO-2022-JP?B?GyRCJCIbKEI=?=) +Subject: =?ISO-2022-JP?B?GyRCJCIbKEI=?=: +Subject: =?ISO-2022-JP?B??= + +From: あ +From: あい +From: あい +From: あい +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?==?ISO-2022-JP?B?GyRCJCQbKEI=?= + +From: akr@jaist.ac.jp (あ(い)う) (Ignore 76bytes/line limit.) +From: akr@jaist.ac.jp (あaい) +From: akr@jaist.ac.jp + (=?ISO-2022-JP?B?GyRCJCIbKEI=?=a=?ISO-2022-JP?B?GyRCJCQbKEI=?=) +From: a=?ISO-2022-JP?B?GyRCJCIbKEI=?= +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?=b +From: "=?ISO-2022-JP?B?GyRCJCIbKEI=?=" +From: (a)=?ISO-2022-JP?B?GyRCJCIbKEI=?= +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?=(b) +From: (a)=?ISO-2022-JP?B?GyRCJCIbKEI=?=(b) +From: "a"=?ISO-2022-JP?B?GyRCJCIbKEI=?= +From: =?ISO-2022-JP?B?GyRCJCIbKEI=?="b" +From: "a"=?ISO-2022-JP?B?GyRCJCIbKEI=?="b" +From: "\"\\" あ "\"\\" +From: < =?ISO-2022-JP?B?GyRCJCIbKEI=?= @jaist.ac.jp> +From: 疏 +From: =?ISO-2022-JP?Q?=1B$BAA=1B(B?= ) +Subject: あ +Subject: a=?ISO-2022-JP?B?GyRCJCIbKEI=?= +Subject: =?ISO-2022-JP?B?GyRCJCIbKEI=?=b +Subject: (a)=?ISO-2022-JP?B?GyRCJCIbKEI=?=(b) +Subject: "a"=?ISO-2022-JP?B?GyRCJCIbKEI=?="b" +Subject: (Re: =?ISO-2022-JP?B?GyRCJCIbKEI=?=) +Subject: =?ISO-2022-JP?B?GyRCJCIbKEI=?=: +Subject: =?ISO-2022-JP?B??= + diff --git a/eword-decode.el b/eword-decode.el index 31f9a78..46063ff 100644 --- a/eword-decode.el +++ b/eword-decode.el @@ -82,7 +82,7 @@ however this behaviour violates RFC2047." (concat eword-encoded-word-prefix-regexp "\\(" eword-encoded-text-in-phrase-regexp "\\)" eword-encoded-word-suffix-regexp)) -(defconst eword-after-encoded-word-in-phrase-regexp "\\([ \t(]\\|$\\)") +(defconst eword-after-encoded-word-in-phrase-regexp "\\([ \t]\\|$\\)") (defconst eword-encoded-text-in-comment-regexp "[]!-'*->@-[^-~]+") (defconst eword-encoded-word-in-comment-regexp