fluent-plugin-mail 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/fluent-plugin-mail.gemspec +1 -1
- data/lib/fluent/plugin/out_mail.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fb4a66df9f48748c3acbedab0915dfba8f4a257
|
4
|
+
data.tar.gz: 3beb51c6bc9be5041e1c3ca28a1e34b23e09ec46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bcdb05e89e5f84c07ee8d6e34da33c9bf6be22ad15fa614b93f6c5dba4e3b84a43d6ea7e189aeabf663cd8d4ee2c56f921958ba85dd1c9445d30beb34a33bca
|
7
|
+
data.tar.gz: d4e79e72bb217ce3559c991feff51b1e33fce365011028fb83b6fca2edcc74fc7195ec1d4922224177bc06fbcfd73c6affb824a0191c4fa25c9b519a0733e67f
|
data/README.md
CHANGED
@@ -27,6 +27,7 @@ Or use td-agent : (on Ubuntu12.04)
|
|
27
27
|
subject SUBJECT: %s
|
28
28
|
subject_out_keys target_tag
|
29
29
|
out_keys target_tag,pattern,value
|
30
|
+
time_locale UTC # optional
|
30
31
|
</match>
|
31
32
|
|
32
33
|
Email is sent like
|
@@ -55,6 +56,7 @@ You may use `message` parameter to define mail format as you like. Use `\n` to p
|
|
55
56
|
subject_out_keys target_tag
|
56
57
|
message %s %s\n%s
|
57
58
|
message_out_keys target_tag,pattern,value
|
59
|
+
time_locale UTC # optional
|
58
60
|
</match>
|
59
61
|
|
60
62
|
Email is sent like
|
data/fluent-plugin-mail.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
13
13
|
gem.name = "fluent-plugin-mail"
|
14
14
|
gem.require_paths = ["lib"]
|
15
|
-
gem.version = '0.0.
|
15
|
+
gem.version = '0.0.4'
|
16
16
|
gem.add_development_dependency "fluentd"
|
17
17
|
gem.add_development_dependency "rake"
|
18
18
|
gem.add_runtime_dependency "fluentd"
|
@@ -164,8 +164,8 @@ class Fluent::MailOutput < Fluent::Output
|
|
164
164
|
subject = subject.force_encoding('binary')
|
165
165
|
body = msg.force_encoding('binary')
|
166
166
|
|
167
|
-
if
|
168
|
-
date = Time::now.timezone(
|
167
|
+
if time_locale
|
168
|
+
date = Time::now.timezone(time_locale)
|
169
169
|
else
|
170
170
|
date = Time::now
|
171
171
|
end
|