summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/feed2imap/channel.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/feed2imap/channel.rb b/lib/feed2imap/channel.rb
index eda01e6..839d483 100644
--- a/lib/feed2imap/channel.rb
+++ b/lib/feed2imap/channel.rb
@@ -253,7 +253,7 @@ class Item
subj = @title or (@date and @date.to_s) or @link
if subj
if subj.needMIME
- message.header['Subject'] = "=?utf-8?b?#{Base64::encode64(subj).chomp}?="
+ message.header['Subject'] = "=?utf-8?b?#{Base64::encode64(subj).gsub("\n",'')}?="
else
message.header['Subject'] = subj
end