similar to: Reading email attachments

Displaying 20 results from an estimated 800 matches similar to: "Reading email attachments"

2006 Jan 09
1
Saving an upload
I am creating a database for movies (films) and television shows (shows) that will have has_and_belongs_to_many relationships with the pictures table. CREATE TABLE screenshots ( id serial NOT NULL, filename character varying NOT NULL, content_type character varying NOT NULL, primary key (id) ); CREATE TABLE films ( id serial NOT NULL, name character varying NOT NULL,
2006 Jul 05
1
TMail + Receing mail and extract attachments
Hi guys, I have a hard time with action mailer and TMail, I always get the following error... My code: << pop = Net::POP3.new(''pop.mydomain.com'') pop.start(''xxx'', ''xxxxx'') # (1) if pop.mails.empty? puts ''No mail.'' else i = 0 pop.each_mail do |m| # or "pop.mails.each
2007 Apr 17
0
rflickr: invalid auth token when uploading
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I''m working on an application which uses rflickr to upload images to flickr. I''ve generated and cached an auth token as described in the GETTING STARTED document in the rflickr tree. However, when I call the API, I receive an error stating "ERR: Invalid auth token (98)". The extended error is: XMLRPC::FaultException
2007 Nov 09
0
Problem with Actionmailer/TMail & decoding Apple Mail Attachments
Im having problems with Apple Mail and decoding attachments that are sent from it. I''m not 100% sure but I think it might have something to do with them being inline. I''m a bit stumped, I haven''t managed to find anything about this anywhere and just wondered if anyone had come up again this? def receive(email)... if email.has_attachments?
2006 Jun 19
3
can''t dump anonymous class Class
I''m trying to create a document upload system, where most of the code is the super class Document and just the path to file on the system is controlled by the sub classes. When I attempt to use my code, I get the following when I try to save the document. can''t dump anonymous class Class Any ideas? ** Migration ** class CreateDocuments < ActiveRecord::Migration def
2006 Aug 04
1
[Info] TMail included in ActionMailer differs from ''normal'' TMail
Issue: Just to hopefully save someone else a bunch of fun in the future - a modified version of TMail is automatically installed with Rails in the ActionMailer module. This version of TMail (which is required in your rails environment by convention) differs significantly from the package available at: http://i.loveruby.net/en/projects/tmail/ (Second hit on Google for
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
I submitted this earlier, but the web forums went down and I''ve screwed up the thread, so I''m starting over. I''m trying to built a document upload system. The system has a main Document model with different subclasses for different types of documents. With the code below, if I attempt to create a Document, it works fine, but if I attempt to use one of the subclasses, I
2006 Aug 15
0
file object treated as a string
I am trying to implement the uploading of a file to a remote server My upload form looks like this: <%= start_form_tag(:action => "save_image", :multipart => true) %> <td><b>Description</b> </td> <td><%= text_area("image", "descript", "cols" => 33, "rows" => 5) %></td>
2006 Sep 05
2
Mongrel and umask for uploaded files
So any files that are uploaded through my form are getting the following mode: -rw------- I need them to have: -rw-r--r-- I''ve tried setting the umask in a script file called set_umask.rb as follows: File.umask(022) and then starting mongrel using: mongrel_rails start -m config/mime.types -S set_umask.rb but it doesn''t seem to change the mode that the files are created
2011 Mar 26
2
upload file, read first 10 lines.
I have a csv file and in my controller: uploaded_file = params[:upload][:csv].read @rows << FasterCSV.parse(uploaded_file) I want to put in @rows only the first 10 lines but the read method reads all the file. How can I do? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2009 Oct 31
3
1.9 Compat and merging mail gem into ActionMailer
Hi all of both RoR Core and TMail. You may know me better as the maintainer of TMail. However, TMail has been a bit difficult to get working with Ruby 1.9, so in the light of that, I sat down over the past few months and wrote myself an all encompasing mail gem. Mail passes all of its hundreds of specs equally well in Ruby 1.8.6, 1.8.7 and 1.9.1. Mail reads every email in the TMail test suite
2012 Feb 28
1
Master user
Hi, I'd like to have a master user that can read the other users mailboxes. I have only one user who read and write the mail (i.e. I use the static userdb) and I use namespace for public and shared mailboxes. I can authenticate to the server but I am not able to list the mailboxes: > emiliano at dovecot:~$ telnet localhost imap > Trying 127.0.0.1... > Connected to localhost. >
2006 Jul 26
4
Upload File
I got this error: NoMethodError in PictureController#new You have a nil object when you didn''t expect it! The error occured while evaluating nil.uploaded_file= and the line code is here: @picture.uploaded_file = @params[''picture_file''] -- Posted via http://www.ruby-forum.com/.
2009 Dec 30
3
Mail now in ActionMailer
OK everyone, so we finally have Mail merged into ActionMailer replacing out TMail This is for the 3.0 release, and not part of the 2.x tree. I am the TMail maintainer and I decided this year to write a ruby email handler, the Mail gem is my solution to this. Mail takes a very object oriented approach to email. It conforms to RFCs as closely as practical and parses the 0.5gb Trec and 2.5Gb
2009 Dec 30
3
Mail now in ActionMailer
OK everyone, so we finally have Mail merged into ActionMailer replacing out TMail This is for the 3.0 release, and not part of the 2.x tree. I am the TMail maintainer and I decided this year to write a ruby email handler, the Mail gem is my solution to this. Mail takes a very object oriented approach to email. It conforms to RFCs as closely as practical and parses the 0.5gb Trec and 2.5Gb
2006 Mar 23
1
Multiple file uploads
I have a form with multiple file upload fields (1-10), of which 2-10 are optional. So i need to cycle thru all file fields and pick only those that have a file attached. Selecting only one file in the form, the paramters look simple: "image"=>{"file_1"=>#<File:/tmp/CGI344.4>, "file_2"=>"", "file_3"=>""}, so I
2006 May 12
1
Uploading a file with form_remote_tag problem.
params[uploaded_file] is not recognised when i try form_remote_tag like this: <%= form_remote_tag :url=>{:action => "save_file"} ,:html=>{:multipart => true} <%=text_field_tag "name"%> <input type="file" id="uploaded_file_file" name="uploaded_file[file]"/> <input type="submit"
2012 Jun 12
1
doveadm doesn't subscribe to public folders
Hi, I'd like to subscribe folder with doveadm: doveadm mailbox subscribe -u rago public.Conferences This command doesn't work, while it works with an ordinary folder. However it's possible to subscribe to the folder with an imap connection: 1 login rago "mypasswd" 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORTSORT=DISPLAY
2006 Mar 29
1
ActionMailer - Message-id issue
Whenever I send e-mails through rails, part of the header comes out as follows: From: johndoe@domain1.com To: janedoe@domain2.com Message-Id: <442aba6514d50_154f7ba03530@iMac.local.tmail> With Outlook 2003 SP2''s new "anti-phishing" feature, it''s tagging all of these e-mails as junk. I tried sending the same content from my mail software, using the same
2009 Oct 22
1
Can't figure you why I am getting deliver_from == Nil Using EmailSpec
Using EmailSpec, I am testing the format of emails sent from an observer. I can verify the deliver_to address, the bcc_to address, and that the message body has the appropriate text. However, when I test the deliver_from, I am getting an error saying my deliver_from is nil, though when I follow the same steps in development, an email is sent with the appropriate from address. This is the