/[pupa]/bugcomm/lib/bugcomm/service.rb
ViewVC logotype

Diff of /bugcomm/lib/bugcomm/service.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by okuji, Sun Sep 29 10:53:27 2002 UTC revision 1.10 by okuji, Sun Sep 29 11:29:39 2002 UTC
# Line 149  module BugCommunicator Line 149  module BugCommunicator
149              new_str << sprintf('=%02X', byte)              new_str << sprintf('=%02X', byte)
150            end            end
151          end          end
152          new_str          '=?UTF-8?Q?' + new_str + '?=' #'
153        end        end
154      end      end
155    
# Line 497  module BugCommunicator Line 497  module BugCommunicator
497          body << "\r\n" if bug[f.name][-1] != ?\n          body << "\r\n" if bug[f.name][-1] != ?\n
498        end        end
499    
500          debug("body = #{body.inspect}")
501        body.strip!        body.strip!
502                
503        if us_ascii?(body)        if us_ascii?(body)
# Line 504  module BugCommunicator Line 505  module BugCommunicator
505          text.header['Content-Type'] = 'text/plain; charset=US-ASCII'          text.header['Content-Type'] = 'text/plain; charset=US-ASCII'
506          text.header['Content-Transfer-Encoding'] = '7bit'          text.header['Content-Transfer-Encoding'] = '7bit'
507        else        else
508          text.body = body.to_a.pack('M*')          text.body = [body].pack('M*')
509          text.header['Content-Type'] = 'text/plain; charset=UTF-8'          text.header['Content-Type'] = 'text/plain; charset=UTF-8'
510          text.header['Content-Transfer-Encoding'] = 'quoted-printable'          text.header['Content-Transfer-Encoding'] = 'quoted-printable'
511        end        end
512    
513          debug("text.body = #{text.body.inspect}")
514          
515        if bug.has_attachment?        if bug.has_attachment?
516          file = RMail::Message.new          file = RMail::Message.new
517          content_type = bug.attachment.content_type          content_type = bug.attachment.content_type

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26