aboutsummaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/config/environment.rb b/config/environment.rb
index b50cfb6dd..9fecc98f0 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -131,18 +131,6 @@ module TMail
part.sub_header("content-type", "name") ||
part.sub_header("content-disposition", "filename")
end
-
- # Monkeypatch! :)
- # Returns the name of the person a message is from, or nil if there isn't
- # one or if there is only an email address.
- def safe_from
- if self.from and (not self.friendly_from.include?('@'))
- return self.friendly_from
- else
- return nil
- end
- end
-
end
class Address