Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Commit

Permalink
Fixes #22633 - Mavericks Mail.app wraps From header in quotes and bre…
Browse files Browse the repository at this point in the history
…aks attribution string
  • Loading branch information
foozmeat committed Jul 11, 2013
1 parent fbdab07 commit 3c0ac47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/tweet.rb
Expand Up @@ -88,7 +88,10 @@ def display_length
@to = "@" + to_regex.match(mail.to.first)[1] @to = "@" + to_regex.match(mail.to.first)[1]


# Form the signature from the first letter of the sender's name # 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 # 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]}>/ reply_status_regex = /^<(\d+)@#{@config['mail']['mailbox']}-#{@config['auth_token']}\.#{@config['mail']['delivery_configuration'][:domain]}>/
Expand Down

0 comments on commit 3c0ac47

Please sign in to comment.