mail-iso-2022-jp 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -20,15 +20,17 @@ Feature
20
20
 
21
21
  * (en)
22
22
 
23
- If you set the `charset` header to `ISO-2022-JP`, the values of `From`, `To`, `Cc`, and `Subject` headers
23
+ If you set the `charset` header to `ISO-2022-JP`, the values of `From`, `Sender`, `To`, `Cc`,
24
+ `Reply-To`, `Subject`, `Resent-From`, `Resent-Sender`, `Resent-To` and `Resent-Cc` headers
24
25
  and the text of body will be automatically converted to `ISO-2022-JP` by `NKF` module.
25
26
 
26
27
  When the `charset` header has other values, this patch has no effect.
27
28
 
28
29
  * (ja)
29
30
 
30
- chasetヘッダの値が `ISO-2022-JP` である場合、送信者(From)、宛先(To)、Cc、件名(Subject)の各ヘッダの値および
31
- 本文(Body)が`NKF`モジュールによって自動的に `ISO-2022-JP` に変換されます。
31
+ chasetヘッダの値が `ISO-2022-JP` である場合、差出人(From)、Sender、宛先(To)、Cc、Reply-To、件名(Subject)
32
+ Resent-From、Resent-Sender、Resent-To、Resent-Cc の各ヘッダの値および本文(Body)
33
+ `NKF` モジュールによって自動的に `ISO-2022-JP` に変換されます。
32
34
 
33
35
  charsetヘッダの値が `ISO-2022-JP` でない場合、このパッチには何の効果もありません。
34
36
 
@@ -43,6 +43,10 @@ module Mail
43
43
  include FieldWithIso2022JpEncoding
44
44
  end
45
45
 
46
+ class SenderField < StructuredField
47
+ include FieldWithIso2022JpEncoding
48
+ end
49
+
46
50
  class ToField < StructuredField
47
51
  include FieldWithIso2022JpEncoding
48
52
  end
@@ -50,4 +54,24 @@ module Mail
50
54
  class CcField < StructuredField
51
55
  include FieldWithIso2022JpEncoding
52
56
  end
57
+
58
+ class ReplyToField < StructuredField
59
+ include FieldWithIso2022JpEncoding
60
+ end
61
+
62
+ class ResentFromField < StructuredField
63
+ include FieldWithIso2022JpEncoding
64
+ end
65
+
66
+ class ResentSenderField < StructuredField
67
+ include FieldWithIso2022JpEncoding
68
+ end
69
+
70
+ class ResentToField < StructuredField
71
+ include FieldWithIso2022JpEncoding
72
+ end
73
+
74
+ class ResentCcField < StructuredField
75
+ include FieldWithIso2022JpEncoding
76
+ end
53
77
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail-iso-2022-jp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kohei MATSUHITA
@@ -48,7 +48,7 @@ files:
48
48
  - Rakefile
49
49
  - lib/mail-iso-2022-jp.rb
50
50
  - lib/mail-iso-2022-jp/patches.rb
51
- homepage: http://github.com/kuroda/mail_ja
51
+ homepage: http://github.com/kuroda/mail-iso-2022-jp
52
52
  licenses: []
53
53
 
54
54
  post_install_message: