[Collab-qa-commits] r1482 - ddpo-by-mail
Raphael Geissert
atomo64-guest at alioth.debian.org
Fri Jun 12 22:23:42 UTC 2009
Author: atomo64-guest
Date: 2009-06-12 22:23:42 +0000 (Fri, 12 Jun 2009)
New Revision: 1482
Modified:
ddpo-by-mail/reminder-mail.rb
Log:
Handle email addresses with slashes gracefully
Modified: ddpo-by-mail/reminder-mail.rb
===================================================================
--- ddpo-by-mail/reminder-mail.rb 2009-06-12 12:03:07 UTC (rev 1481)
+++ ddpo-by-mail/reminder-mail.rb 2009-06-12 22:23:42 UTC (rev 1482)
@@ -352,8 +352,9 @@
--
DDPOMail, run by #{OWNER}
EOF
-
- File::open(MAIL_DIR + "/mail_#{email}.txt", 'w') do |f|
+
+ fname = email.gsub('/', '__')
+ File::open(MAIL_DIR + "/mail_#{fname}.txt", 'w') do |f|
f.puts gtext
end
end
More information about the Collab-qa-commits
mailing list