Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: israel.herraiz@gmail.com (Israel Herraiz)
Subject: [sup-talk] [PATCH] Fixing a couple of warnings (was Prettier printing of enclosed messages)
Date: Fri, 29 May 2009 15:19:23 +0200	[thread overview]
Message-ID: <691d00b80905290619y77769363t5ca4cbd7f270cc26@mail.gmail.com> (raw)

The patch introduced a couple of warnings. They are fixed with the
attached patch.

Cheers,
Israel

---
 lib/sup/message.rb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/sup/message.rb b/lib/sup/message.rb
index 72ec6c5..422aafb 100644
--- a/lib/sup/message.rb
+++ b/lib/sup/message.rb
@@ -392,9 +392,9 @@ private
         subj = Rfc2047.decode_to $encoding, subj
       end
       msgdate = payload.header.date
-      from_person = from ? Person.from_address (from) : nil
-      to_people = to ? Person.from_address_list (to) : nil
-      cc_people = cc ? Person.from_address_list (cc) : nil
+      from_person = from ? Person.from_address(from) : nil
+      to_people = to ? Person.from_address_list(to) : nil
+      cc_people = cc ? Person.from_address_list(cc) : nil
       [Chunk::EnclosedMessage.new(from_person, to_people, cc_people,
msgdate, subj)] + message_to_chunks(payload, encrypted)
     else
       filename =
-- 
1.6.3.1


                 reply	other threads:[~2009-05-29 13:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=691d00b80905290619y77769363t5ca4cbd7f270cc26@mail.gmail.com \
    --to=israel.herraiz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox