diff options
author | Dan Hansen <mokker1234@gmail.com> | 2011-10-10 09:35:04 +0400 |
---|---|---|
committer | Dan Hansen <mokker1234@gmail.com> | 2011-10-10 09:35:04 +0400 |
commit | 32f1b6171981c4756a1220d962502870809eb60d (patch) | |
tree | a22af514c5b72401721b28729de6e0c0cc5fc7cf /app/mailers | |
parent | 71681d1bc7102668366f3c1802ecafa968cb2416 (diff) |
Mail doesn't seem to like the name-addr spec from RFC2822
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/notification_mailers/also_commented.rb | 2 | ||||
-rw-r--r-- | app/mailers/notification_mailers/comment_on_post.rb | 2 | ||||
-rw-r--r-- | app/mailers/notification_mailers/private_message.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/mailers/notification_mailers/also_commented.rb b/app/mailers/notification_mailers/also_commented.rb index a92f3a2af..73ed95389 100644 --- a/app/mailers/notification_mailers/also_commented.rb +++ b/app/mailers/notification_mailers/also_commented.rb @@ -8,7 +8,7 @@ module NotificationMailers @comment = Comment.find_by_id(comment_id) if mail? - @headers[:from] = "[#{@comment.author.name} (Diaspora*)] <#{AppConfig[:smtp_sender_address]}>" + @headers[:from] = "\"#{@comment.author.name} (Diaspora*)\" <#{AppConfig[:smtp_sender_address]}>" @headers[:subject] = truncate(@comment.parent.comment_email_subject, :length => TRUNCATION_LEN) @headers[:subject] = "Re: #{@headers[:subject]}" end diff --git a/app/mailers/notification_mailers/comment_on_post.rb b/app/mailers/notification_mailers/comment_on_post.rb index ffb29fbb5..eb3626466 100644 --- a/app/mailers/notification_mailers/comment_on_post.rb +++ b/app/mailers/notification_mailers/comment_on_post.rb @@ -7,7 +7,7 @@ module NotificationMailers def set_headers(comment_id) @comment = Comment.find(comment_id) - @headers[:from] = "[#{@comment.author.name} (Diaspora*)] <#{AppConfig[:smtp_sender_address]}>" + @headers[:from] = "\"#{@comment.author.name} (Diaspora*)\" <#{AppConfig[:smtp_sender_address]}>" @headers[:subject] = truncate(@comment.parent.comment_email_subject, :length => TRUNCATION_LEN) @headers[:subject] = "Re: #{@headers[:subject]}" end diff --git a/app/mailers/notification_mailers/private_message.rb b/app/mailers/notification_mailers/private_message.rb index 2cbc655c3..b258ab563 100644 --- a/app/mailers/notification_mailers/private_message.rb +++ b/app/mailers/notification_mailers/private_message.rb @@ -7,7 +7,7 @@ module NotificationMailers @conversation = @message.conversation @participants = @conversation.participants - @headers[:from] = "[#{@message.author.name} (Diaspora*)] <#{AppConfig[:smtp_sender_address]}>" + @headers[:from] = "\"#{@message.author.name} (Diaspora*)\" <#{AppConfig[:smtp_sender_address]}>" @headers[:subject] = @conversation.subject.strip @headers[:subject] = "Re: #{@headers[:subject]}" if @conversation.messages.size > 1 end |