gurgitate-mail 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gurgitate-mail.rb +5 -4
- data/lib/gurgitate/mailmessage.rb +1 -1
- metadata +3 -3
data/lib/gurgitate-mail.rb
CHANGED
@@ -81,7 +81,7 @@ module Gurgitate
|
|
81
81
|
# What kind of mailboxes you prefer
|
82
82
|
def folderstyle(*style)
|
83
83
|
if style.length == 0 then
|
84
|
-
|
84
|
+
@folderstyle
|
85
85
|
elsif style.length == 1 then
|
86
86
|
if style[0] == Maildir then
|
87
87
|
spooldir homedir
|
@@ -90,12 +90,12 @@ module Gurgitate
|
|
90
90
|
spooldir "/var/spool/mail"
|
91
91
|
spoolfile File.join(spooldir, @passwd.name)
|
92
92
|
end
|
93
|
+
@folderstyle = style[0]
|
93
94
|
else
|
94
95
|
raise ArgumentError, "wrong number of arguments "+
|
95
96
|
"(#{style.length} for 0 or 1)"
|
96
97
|
end
|
97
|
-
|
98
|
-
@folderstyle = style[0]
|
98
|
+
@folderstyle
|
99
99
|
end
|
100
100
|
|
101
101
|
# Set config params to defaults, read in mail message from
|
@@ -248,7 +248,6 @@ module Gurgitate
|
|
248
248
|
begin
|
249
249
|
eval File.new(configfilespec).read, nil,
|
250
250
|
configfilespec
|
251
|
-
save(spoolfile)
|
252
251
|
rescue ScriptError
|
253
252
|
log "Couldn't load #{configfilespec}: "+$!
|
254
253
|
save(spoolfile)
|
@@ -262,6 +261,8 @@ module Gurgitate
|
|
262
261
|
if block
|
263
262
|
instance_eval(&block)
|
264
263
|
end
|
264
|
+
log "Mail not covered by rules, saving to default spool"
|
265
|
+
save(spoolfile)
|
265
266
|
else
|
266
267
|
save(spoolfile)
|
267
268
|
end
|
@@ -40,7 +40,7 @@ module Gurgitate
|
|
40
40
|
# def to; @headers["To","Cc"]; end
|
41
41
|
|
42
42
|
# Returns the formatted mail message
|
43
|
-
def to_s; @headers.to_s + @body; end
|
43
|
+
def to_s; @headers.to_s + ( @body || ""); end
|
44
44
|
|
45
45
|
# Returns the mail message formatted for mbox
|
46
46
|
def to_mbox; @headers.to_mbox + @body; end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.2
|
3
3
|
specification_version: 1
|
4
4
|
name: gurgitate-mail
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.8.
|
7
|
-
date:
|
6
|
+
version: 1.8.2
|
7
|
+
date: 2007-03-28 00:00:00 +09:00
|
8
8
|
summary: gurgitate-mail is a mail filter (and a mail-delivery agent)
|
9
9
|
require_paths:
|
10
10
|
- lib
|