diff options
Diffstat (limited to 'lib/feed2imap')
-rw-r--r-- | lib/feed2imap/imap.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/feed2imap/imap.rb b/lib/feed2imap/imap.rb index 20f8ccb..6957489 100644 --- a/lib/feed2imap/imap.rb +++ b/lib/feed2imap/imap.rb @@ -95,7 +95,7 @@ class ImapAccount # Put the mail in the given folder # You should check whether the folder exist first. def putmail(folder, mail) - @connection.append(folder, mail) + @connection.append(folder, mail.gsub(/\n/, "\r\n")) end # update a mail @@ -109,7 +109,7 @@ class ImapAccount searchres.each { |m| @connection.store(m, "+FLAGS", [:Deleted]) } @connection.expunge end - @connection.append(folder, mail, flags) + @connection.append(folder, mail.gsub(/\n/, "\r\n"), flags) end # convert to string |