Questions tagged [tmail]

15 questions
4
votes
3 answers

How to decode an RFC 2047 encoded email header in Ruby?

I have the following header: From: =?iso-8859-1?Q?Marta_Falc=E3o?= I can easily split out the stuff before the <, which leaves me with "=?iso-8859-1?Q?Marta_Falc=E3o?=" What can I use to turn this into "Marta Falcão"?
James A. Rosen
  • 64,193
  • 61
  • 179
  • 261
3
votes
1 answer

Correct format of an Return-Path header

My application uses sendmail to send outbound email. I set the 'From:' address using the following format: Fred Dibnah I'm also setting the Reply-To and Return-Path headers using the exact same format. This seems to work in the…
Olly
  • 7,732
  • 10
  • 54
  • 63
3
votes
1 answer

Ruby email encoding and quoted-printable content

Is there a straightforward way to coach TMail to make the body encoded with "quoted-printable"? I only see methods in there for decoding content like that, not creating it.
tadman
  • 208,517
  • 23
  • 234
  • 262
2
votes
0 answers

Forward a mail using Tmail & ActionMailer::ARMailer

I'm writing a rake task to go through one of our mailboxes of incoming mail, using Tmail. For certain mails, i just want to forward them on to another address. I'm not sure what the best way to do that is though. Our regular mails for the website…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
2
votes
2 answers

Ruby Tmail error: undefined symbol: rb_get_kcode

ruby: symbol lookup error: /usr/local/lib/ruby/gems/1.9.1/gems/tmail-1.2.7.1/ext/tmailscanner/tmail/tmailscanner.so: undefined symbol: rb_get_kcode strange error that crash app. ruby 1.9.1 rails 2.3.8 tmail 1.2.7
Tolik Kukul
  • 1,996
  • 16
  • 26
2
votes
1 answer

Problem with fetching mail using TMail in Ruby on Rails

While fetching email, TMail appears to parse the email body twice,when I use this code.All the other parameters are fine(from_email,email_subject). Any ideas? def get_mail Net::POP3.enable_ssl(OpenSSL::SSL::VERIFY_NONE) …
Shreyas
  • 8,737
  • 7
  • 44
  • 56
1
vote
1 answer

Ruby TMail size-limit on body?

I have a small application that process emails as downloaded from a imap-server with fetchmail. The processing consists of finding base64-encoded attachments with a XML-file inside. Here is the code (somewhat stripped): def…
Commander Keen
  • 742
  • 6
  • 12
1
vote
0 answers

Read email and store data using Ruby

I'm currently working on a project that requires: 1)Ruby reads the email 2)It stores the data, i.e project name from the email. 3) Project hours corresponding to project name I've looked through the internet but I found methods to print the body…
1
vote
1 answer

Tmail ruby handler

how to specify the attachment name in Tmail . i searched the documentation but couldnt get a clear idea . wen ever i send a mail wit an attachment i gives the attachment name as 'noname' how to solve this
akhil
  • 11
  • 1
1
vote
2 answers

Trying to set the message-id, in-reply-to, etc... in ActionMailer

I'm working on an app that needs to be able to send out email updates and then route the reply back to the original item. All emails will come to a single address (this can't change unfortunately), and I need to be able to determine where they go. …
Ryan
  • 668
  • 5
  • 12
1
vote
1 answer

MMS2R and Multiple Images Rails

Here's my code: require 'mms2r' class IncomingMailHandler < ActionMailer::Base ## # Receives email(s) from MMS-Email or regular email and # uploads that content the user's photos. # TODO: Use beanstalkd for background queueing and…
Maletor
  • 41
  • 3
0
votes
1 answer

Ruby Tmail Attachment name

I am using TMail to send emails. I'm able to attach PDFs to these emails, and download them successfully. However, when I receive the email, the attachment name is 'noname'. How can I choose the name of the attachment? I know I can choose it using…
0
votes
1 answer

Problem including gems in Rails 2.3?

My Rails app uses the TMail plugin, but it requires a modification to Attachment.rb. The modification is recognized and loaded by Rails on my development machine, but in the production environment on my hosting provider (Rails Playground), the…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
0
votes
1 answer

Saving GMAIL Attachment as 'Subject - (Date of message)' using ruby

I am trying to incorporate this script here (http://snippets.dzone.com/posts/show/7530), yet i'm no ruby wizard. Right now it pulls down mail that I want with the local_file name, but was wondering if its possible to have it pull it down and save…
Josh G
0
votes
1 answer

Ruby and Tmail; Hostname of relaying server?

I am using Ruby and Tmail to retrieve a series of emails from the server. Is there any way to determine the hostname of the server that relayed the email message?
aantix
  • 499
  • 8
  • 12