aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/tmail_extensions.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tmail_extensions.rb b/lib/tmail_extensions.rb
index 0efb9e622..c0ed1033b 100644
--- a/lib/tmail_extensions.rb
+++ b/lib/tmail_extensions.rb
@@ -21,6 +21,8 @@ module TMail
part['content-location'].body) ||
part.sub_header("content-type", "name") ||
part.sub_header("content-disposition", "filename")
+ file_name = file_name.strip if file_name
+ file_name
end
# Monkeypatch! Return the name part of from address, or nil if there isn't one