Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #22633 - Mavericks Mail.app wraps From header in quotes and bre…

…aks attribution string
  • Loading branch information...
commit 3c0ac47858a9bdb363fc284f290a1e4bdac9b060 1 parent fbdab07
@foozmeat foozmeat authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 bin/tweet.rb
View
5 bin/tweet.rb
@@ -88,7 +88,10 @@ def display_length
@to = "@" + to_regex.match(mail.to.first)[1]
# Form the signature from the first letter of the sender's name
-@sig = "" + mail[:from].decoded.chars.first
+first_char = mail[:from].decoded.chars.first
+first_char = mail[:from].decoded.chars[1] if first_char == '"'
+
+@sig = "" + first_char
# Capture the status id of the tweet we're replying to
reply_status_regex = /^<(\d+)@#{@config['mail']['mailbox']}-#{@config['auth_token']}\.#{@config['mail']['delivery_configuration'][:domain]}>/
Please sign in to comment.
Something went wrong with that request. Please try again.