summaryrefslogtreecommitdiff
path: root/sample/from.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/from.rb')
-rw-r--r--sample/from.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/from.rb b/sample/from.rb
index bed3433f1e..59cc387792 100644
--- a/sample/from.rb
+++ b/sample/from.rb
@@ -50,8 +50,8 @@ end
$outcount = 0;
def fromout(date, from, subj)
return if !date
- y = m = d = 0
y, m, d = parsedate(date) if date
+ y ||= 0; m ||= 0; d ||= 0
if from
from.gsub! /\n/, ""
else