nilclass-maildir 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/maildir/message.rb +3 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/lib/maildir/message.rb
CHANGED
@@ -118,6 +118,9 @@ class Maildir::Message
|
|
118
118
|
define_method("#{key}!".to_sym) do
|
119
119
|
add_flag(value)
|
120
120
|
end
|
121
|
+
define_method("#{key}=".to_sym) do |v|
|
122
|
+
v ? add_flag(value) : remove_flag(value)
|
123
|
+
end
|
121
124
|
end
|
122
125
|
|
123
126
|
# Returns an array of single letter flags applied to the message
|