diff options
author | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2005-09-19 13:03:33 +0000 |
---|---|---|
committer | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2005-09-19 13:03:33 +0000 |
commit | 0844dd69d1fd4f337b96a10f436b211e92c2adf8 (patch) | |
tree | ea18dfdc784f82a56a2b0d3455b22b718b195736 /lib/feed2imap | |
parent | c5388528365e34ae11afd023cff249bd631d3c80 (diff) | |
download | feed2imap-0844dd69d1fd4f337b96a10f436b211e92c2adf8.tar.gz feed2imap-0844dd69d1fd4f337b96a10f436b211e92c2adf8.tar.bz2 feed2imap-0844dd69d1fd4f337b96a10f436b211e92c2adf8.zip |
fixed problem with LF/CRLF in mails
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@62 f70e237a-67f3-0310-a06c-d2b8a7116972
Diffstat (limited to '')
-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 |