lib/sup/account.rb in sup-0.9 vs lib/sup/account.rb in sup-0.9.1

- old
+ new

@@ -8,9 +8,20 @@ raise ArgumentError, "no email for account" unless h[:email] super h[:name], h[:email] @sendmail = h[:sendmail] @signature = h[:signature] end + + # Default sendmail command for bouncing mail, + # deduced from #sendmail + def bounce_sendmail + sendmail.sub(/\s(\-(ti|it|t))\b/) do |match| + case $1 + when '-t' then '' + else ' -i' + end + end + end end class AccountManager include Singleton