From lubo at manolov.org Fri Dec 2 04:23:44 2005 From: lubo at manolov.org (Luben Manolov) Date: Fri, 02 Dec 2005 11:23:44 +0200 Subject: [Mailr] Configuration instructions or debug mode? In-Reply-To: <438C954A.6070507@brancada.com> References: <438C954A.6070507@brancada.com> Message-ID: <439012A0.4070700@manolov.org> Hi Bryan, Bryan McCormack wrote: > I discovered this project and thought that I'd kick the tires a bit. > I've installed this on an OS X server (10.4.3) which uses Cyrus/Postfix > by default. I changed just a couple of lines in the config/site.rb file > to reflect the IMAP server here, or at least I think I made all of the > necessary changes. > > However, I'm unable to log in. I'm getting the invalid user > name/password error. So I was wondering if there's more detailed info > about the config settings. I also saw in a post from earlier this month > that there's a debug option in the latest source in the subversion > repository (which is the version that I'm testing.) I didn't see it, so > I added it myself with ":debug_imap => true" but didn't see any debug > info in the WEBrick console. Please update Mailr to revision 140 from the subversion repository. There is a new configuration option called "imap_auth". It is used to specify the authentication method used to connect to the IMAP server. The default value is "PLAIN" which works for Courier IMAP but I guess that some IMAP servers do not support "PLAIN" so in this case you can try to set "LOGIN" method. To do so you have to add the following line to your config/site.rb file: :imap_auth => 'LOGIN' I hope that this will help. Best regards, Luben From matt at techiesalumni.com Wed Dec 7 17:29:51 2005 From: matt at techiesalumni.com (matt@techiesalumni.com) Date: Wed, 7 Dec 2005 16:29:51 -0600 (CST) Subject: [Mailr] Can not login?!? Message-ID: <36167.64.122.225.194.1133994591.squirrel@www.techiesalumni.com> I've tried installing on my server, as well as my Powerbook, but I can not seem to login into the app. I've tried product versus development set ups. It hangs on login, granted I am still testing with WebBrick. Mysql 4.1 Rails 0.14.3 (?) Ruby 1.8.2 from my production.log Redirected to http://127.0.0.1:3000/login Completed in 74.70380 (0 reqs/sec) | DB: 0.00000 (0%) | 302 Found [http://127.0.0.1/login/authenticate] I can not find any errors to debug?!? my site.rb module CDF LOCALCONFIG = { :mysql_version => '4.1', :default_encoding => 'utf-8', :imap_server => '209.98.117.18', #:imap_auth => 'PLAIN', :imap_use_ssl => 'TRUE', :imap_port => '993', #:debug_imap => 'TRUE' } end Any ideas? Thanks, From lubo at manolov.org Thu Dec 8 04:27:23 2005 From: lubo at manolov.org (Luben Manolov) Date: Thu, 08 Dec 2005 11:27:23 +0200 Subject: [Mailr] Can not login?!? In-Reply-To: <36167.64.122.225.194.1133994591.squirrel@www.techiesalumni.com> References: <36167.64.122.225.194.1133994591.squirrel@www.techiesalumni.com> Message-ID: <4397FC7B.8050705@manolov.org> Hi Matt, matt at techiesalumni.com wrote: > I've tried installing on my server, as well as my Powerbook, but I can not > seem to login into the app. I've tried product versus development set > ups. It hangs on login, granted I am still testing with WebBrick. > Mysql 4.1 > Rails 0.14.3 (?) > Ruby 1.8.2 > > my site.rb > module CDF > LOCALCONFIG = { > :mysql_version => '4.1', > :default_encoding => 'utf-8', > :imap_server => '209.98.117.18', > #:imap_auth => 'PLAIN', > :imap_use_ssl => 'TRUE', > :imap_port => '993', > #:debug_imap => 'TRUE' > } > end First of all I want to apologize to all because I have forgotten to commit the "debug_imap" configuration option. It's now in the subversion (revision 141). Could you please update to revision 141? It will allow you to see the exact IMAP commands sent to the server on the Webrick's console. Your site.rb file should be: module CDF LOCALCONFIG = { :mysql_version => '4.1', :default_encoding => 'utf-8', :imap_server => '209.98.117.18', #:imap_auth => 'PLAIN', :imap_use_ssl => true, :imap_port => '993', :debug_imap => true } end I guess that the problem is in the authentication method ( PLAIN or LOGIN). What is your IMAP server? Best regards, Luben From matt at techiesalumni.com Thu Dec 8 11:37:57 2005 From: matt at techiesalumni.com (matt@techiesalumni.com) Date: Thu, 8 Dec 2005 10:37:57 -0600 (CST) Subject: [Mailr] Can not login?!? Message-ID: <2989.64.122.225.194.1134059877.squirrel@www.techiesalumni.com> >>matt at techiesalumni.com wrote: >> I've tried installing on my server, as well as my Powerbook, but I can not >> seem to login into the app. I've tried product versus development set >> ups. It hangs on login, granted I am still testing with WebBrick. >> Mysql 4.1 >> Rails 0.14.3 (?) >> Ruby 1.8.2 >> >> my site.rb >> module CDF >> LOCALCONFIG = { >> :mysql_version => '4.1', >> :default_encoding => 'utf-8', >> :imap_server => '209.98.117.18', >> #:imap_auth => 'PLAIN', >> :imap_use_ssl => 'TRUE', >> :imap_port => '993', >> #:debug_imap => 'TRUE' >> } >> end >First of all I want to apologize to all because I have forgotten to >commit the "debug_imap" configuration option. It's now in the subversion >(revision 141). > >Could you please update to revision 141? It will allow you to see the >exact IMAP commands sent to the server on the Webrick's console. Your >site.rb file should be: > >module CDF > LOCALCONFIG = { > :mysql_version => '4.1', > :default_encoding => 'utf-8', > :imap_server => '209.98.117.18', > #:imap_auth => 'PLAIN', > :imap_use_ssl => true, > :imap_port => '993', > :debug_imap => true > } >end > >I guess that the problem is in the authentication method ( PLAIN or >LOGIN). What is your IMAP server? > >Best regards, > >Luben Luben - Thanks for the quick response. No need to apologize - we all appreciate the work you're doing!! To answer your question, I am using courier-imap on FreeBSD, I've modified by site.rb to be module CDF LOCALCONFIG = { :mysql_version => '4.1', :default_encoding => 'utf-8', :imap_server => '209.98.117.18', :imap_auth => 'LOGIN', :imap_use_ssl => 'TRUE', :imap_port => '993', :debug_imap => 'TRUE' } end I updated my trunk to rev 741. I did not see any debug information from my imap server... I checked it the 993 port is open, courier-imaps is running ( I use it for remote email). I didn't see anything in my log either.... From matt at techiesalumni.com Thu Dec 8 14:10:30 2005 From: matt at techiesalumni.com (matt@techiesalumni.com) Date: Thu, 8 Dec 2005 13:10:30 -0600 (CST) Subject: [Mailr] undefined method 'downcase' for nil:NilClass (No MethodError) Message-ID: <6935.64.122.225.194.1134069030.squirrel@www.techiesalumni.com> Mysql 4.1 Courier-imap Rails 0.14.3 mailr - trunk rev 141 All running locally, my log/fastcgi.crash.log [08/Dec/2005:13:06:17 :: 56978] starting [08/Dec/2005:13:06:18 :: 56978] Dispatcher failed to catch: undefined method `downcase' for nil:NilClass (NoMethodError) /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/request.rb:13:in `method' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/request.rb:23:in `post?' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/request.rb:68:in `formatted_post?' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/cgi_process.rb:66:in `request_parameters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/request.rb:8:in `parameters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/session_management.rb:114:in `process' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/rescue.rb:20:in `process_with_exception' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.1/lib/dispatcher.rb:38:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.1/lib/fcgi_handler.rb:136:in `process_request' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.1/lib/fcgi_handler.rb:53:in `process!' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.1/lib/fcgi_handler.rb:52:in `each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.1/lib/fcgi_handler.rb:52:in `process!' /usr/local/lib/ruby/gems/1.8/gems/rails-0.14.1/lib/fcgi_handler.rb:22:in `process!' public/dispatch.fcgi:24 [08/Dec/2005:13:06:18 :: 56978] terminated gracefully From smith at xml-doc.org Mon Dec 12 05:45:07 2005 From: smith at xml-doc.org (Michael Smith) Date: Mon, 12 Dec 2005 19:45:07 +0900 Subject: [Mailr] Causing mailr to use LOGIN command instead of AUTHENTICATE? Message-ID: <20051212104506.GA12517@sideshowbarker.net> Is there any way to cause mailr to just send a "login" command during the IMAP chat session, without sending an "authenticate" command? The IMAP server I am testing against does not seem to support "authenticate", and that seems to be causing mailr logins to fail. On the client side, when mailr tries to log into the server, I see the following messages logged: S: * OK sideshowbarker.net Cyrus IMAP4 v2.1.18-IPv6-Debian-2.1.18-1 server ready C: RUBY0001 AUTHENTICATE LOGIN S: RUBY0001 NO encryption needed to use mechanism On the server side I see the following.: badlogin: [...] LOGIN [SASL(-16): encryption needed to use mechanism: security flags do not match required] To confirm that, I tried directly telnetting into the port the IMAP server is listening on -- in the case of this test server, port 5143 -- and manually sending commands. For example: $ telnet sideshowbarker.net 5143 Trying 80.68.92.65... Connected to sideshowbarker.net. Escape character is '^]'. * OK sideshowbarker.net Cyrus IMAP4 * v2.1.18-IPv6-Debian-2.1.18-1 server ready . AUTHENTICATE LOGIN . NO encryption needed to use mechanism When I did that, on the IMAP server side, I saw the exact same "badlogin ... encryption needed to use mechanism..." error logged. Also, when I send the "capability" command, I don't see either "AUTH=LOGIN" or "AUTH=PLAIN", etc., as I would expect to if the server supported the "authenticate" command. But if I just send the "login" command, without an "authenticate" command, everything works fine. $ telnet sideshowbarker.net 5143 Trying 80.68.92.65... Connected to sideshowbarker.net. Escape character is '^]'. * OK sideshowbarker.net Cyrus IMAP4 v2.1.18-IPv6-Debian-2.1.18-1 * server ready . LOGIN msmith [password] . OK User logged in So, if I could cause mailr to just send the "login" command, withouth sending an "authenticate", I think it could log into the server successfully. --Mike From lubo at manolov.org Mon Dec 12 06:27:12 2005 From: lubo at manolov.org (Luben Manolov) Date: Mon, 12 Dec 2005 13:27:12 +0200 Subject: [Mailr] Causing mailr to use LOGIN command instead of AUTHENTICATE? In-Reply-To: <20051212104506.GA12517@sideshowbarker.net> References: <20051212104506.GA12517@sideshowbarker.net> Message-ID: <439D5E90.9060005@manolov.org> Hi Michael, Michael Smith wrote: > Is there any way to cause mailr to just send a "login" command > during the IMAP chat session, without sending an "authenticate" > command? It is possible to cause mailr to send a "login" command now. Could you please update to revision 144 and add the following line to your config/site.rb file: :imap_auth => 'NOAUTH' It would be better if we could use "capability" command to find whether the server supports "authenticate", but unfortunately on my installation of Courier IMAP the "capability" command does not return "AUTH=LOGIN" or "AUTH=PLAIN" although the server supports them. Best regards, Luben > The IMAP server I am testing against does not seem to support > "authenticate", and that seems to be causing mailr logins to fail. > > On the client side, when mailr tries to log into the server, I see > the following messages logged: > > S: * OK sideshowbarker.net Cyrus IMAP4 v2.1.18-IPv6-Debian-2.1.18-1 server ready > C: RUBY0001 AUTHENTICATE LOGIN > S: RUBY0001 NO encryption needed to use mechanism > > On the server side I see the following.: > > badlogin: [...] LOGIN [SASL(-16): > encryption needed to use mechanism: security flags do not match required] > > To confirm that, I tried directly telnetting into the port the > IMAP server is listening on -- in the case of this test server, > port 5143 -- and manually sending commands. For example: > > $ telnet sideshowbarker.net 5143 > Trying 80.68.92.65... > Connected to sideshowbarker.net. > Escape character is '^]'. > * OK sideshowbarker.net Cyrus IMAP4 > * v2.1.18-IPv6-Debian-2.1.18-1 server ready > . AUTHENTICATE LOGIN > . NO encryption needed to use mechanism > > When I did that, on the IMAP server side, I saw the exact same > "badlogin ... encryption needed to use mechanism..." error logged. > > Also, when I send the "capability" command, I don't see either > "AUTH=LOGIN" or "AUTH=PLAIN", etc., as I would expect to if the > server supported the "authenticate" command. > > But if I just send the "login" command, without an "authenticate" > command, everything works fine. > > $ telnet sideshowbarker.net 5143 > Trying 80.68.92.65... > Connected to sideshowbarker.net. > Escape character is '^]'. > * OK sideshowbarker.net Cyrus IMAP4 v2.1.18-IPv6-Debian-2.1.18-1 > * server ready > . LOGIN msmith [password] > . OK User logged in > > So, if I could cause mailr to just send the "login" command, > withouth sending an "authenticate", I think it could log into the > server successfully. > > --Mike > _______________________________________________ > Mailr-list mailing list > Mailr-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/mailr-list From smith at xml-doc.org Mon Dec 12 06:34:58 2005 From: smith at xml-doc.org (Michael Smith) Date: Mon, 12 Dec 2005 20:34:58 +0900 Subject: [Mailr] Causing mailr to use LOGIN command instead of AUTHENTICATE? In-Reply-To: <20051212104506.GA12517@sideshowbarker.net> References: <20051212104506.GA12517@sideshowbarker.net> Message-ID: <20051212113456.GB12517@sideshowbarker.net> Michael Smith writes: > Is there any way to cause mailr to just send a "login" command > during the IMAP chat session, without sending an "authenticate" > command? [With apologies for responding to my own message and for not having taken the time to look at the code more before posting.] The following is a suggested simple patch to enable direct login to servers that don't have AUTH=LOGIN, AUTH=PLAIN, etc. support. $ svn diff Index: components/webmail/imapmailbox.rb =================================================================== --- components/webmail/imapmailbox.rb (revision 143) +++ components/webmail/imapmailbox.rb (working copy) @@ -76,10 +76,14 @@ @username = username begin logger.error "IMAP authentication - #{CDF::CONFIG[:imap_auth]}." - @imap.authenticate(CDF::CONFIG[:imap_auth], username, password) + if CDF::CONFIG[:imap_auth] != "" + @imap.authenticate(CDF::CONFIG[:imap_auth], username, password) + else + @imap.login(username, password) + end @connected = true rescue Exception => ex - logger.error "Error on authentication!" + logger.error "Error on authentication/login!" logger.error ex.backtrace.join("\n") raise AuthenticationError.new end So, if the value of imap_auth is the empty string, it falls back to doing a plain imap.login instead of imap.authenticate. --Mike From smith at xml-doc.org Mon Dec 12 06:46:54 2005 From: smith at xml-doc.org (Michael Smith) Date: Mon, 12 Dec 2005 20:46:54 +0900 Subject: [Mailr] Causing mailr to use LOGIN command instead of AUTHENTICATE? In-Reply-To: <439D5E90.9060005@manolov.org> References: <20051212104506.GA12517@sideshowbarker.net> <439D5E90.9060005@manolov.org> Message-ID: <20051212114653.GC12517@sideshowbarker.net> Hi Luben, You wrote: > It is possible to cause mailr to send a "login" command now. Could you > please update to revision 144 and add the following line to your > config/site.rb file: > > :imap_auth => 'NOAUTH' Thanks! I should have checked for replies before sending out my previous message. Anyway, having an explicit NOAUTH value to toggle authentication off is definitely better than my suggestion of checking for an empty-string value for imap_auth. > It would be better if we could use "capability" command to find whether > the server supports "authenticate", Yeah, I was also thinking that would probably be good. > but unfortunately on my installation of Courier IMAP the > "capability" command does not return "AUTH=LOGIN" or > "AUTH=PLAIN" although the server supports them. Which is why I guess it's always a good idea to give users an option for forcing the simplest behavior (in this case, the change you've just added for causing a direct "login" instead of "authenticate"). Thanks again for the fix and for the quick response. --Mike From smith at xml-doc.org Mon Dec 12 07:07:00 2005 From: smith at xml-doc.org (Michael Smith) Date: Mon, 12 Dec 2005 21:07:00 +0900 Subject: [Mailr] Any plans for mobile-phone UI? Message-ID: <20051212120659.GD12517@sideshowbarker.net> Luben, Do you have plans to put together an optional alternative UI for mailr that is optimized for viewing on a mobile-phone web browser? (Or do you know if anybody else has such plans?) If there are already existing plans, I would like to help out with designing the mobile-phone UI. But if there are no existing plans, I guess I will try to start work on putting something together -- and if anybody else on the list is interested, perhaps we can collaborate on it. --Mike -- Michael Smith http://sideshowbarker.net/ From lubo at manolov.org Wed Dec 14 04:28:26 2005 From: lubo at manolov.org (Luben Manolov) Date: Wed, 14 Dec 2005 11:28:26 +0200 Subject: [Mailr] Any plans for mobile-phone UI? In-Reply-To: <20051212120659.GD12517@sideshowbarker.net> References: <20051212120659.GD12517@sideshowbarker.net> Message-ID: <439FE5BA.8030307@manolov.org> Hi Mike, > Do you have plans to put together an optional alternative UI for > mailr that is optimized for viewing on a mobile-phone web browser? > (Or do you know if anybody else has such plans?) I do not have plans for mobile-phone UI although it will be a good thing to have. > If there are already existing plans, I would like to help out with > designing the mobile-phone UI. But if there are no existing plans, > I guess I will try to start work on putting something together -- > and if anybody else on the list is interested, perhaps we can > collaborate on it. If you start building the mobile-phone UI I will be glad to help. Best regards, Luben From smith at xml-doc.org Wed Dec 14 07:11:16 2005 From: smith at xml-doc.org (Michael Smith) Date: Wed, 14 Dec 2005 21:11:16 +0900 Subject: [Mailr] Any plans for mobile-phone UI? In-Reply-To: <439FE5BA.8030307@manolov.org> References: <20051212120659.GD12517@sideshowbarker.net> <439FE5BA.8030307@manolov.org> Message-ID: <20051214121115.GB14962@sideshowbarker.net> Luben Manolov writes: > Hi Mike, > > > Do you have plans to put together an optional alternative UI for > > mailr that is optimized for viewing on a mobile-phone web browser? > > (Or do you know if anybody else has such plans?) > > I do not have plans for mobile-phone UI although it will be a good thing > to have. > > > If there are already existing plans, I would like to help out with > > designing the mobile-phone UI. But if there are no existing plans, > > I guess I will try to start work on putting something together -- > > and if anybody else on the list is interested, perhaps we can > > collaborate on it. > > If you start building the mobile-phone UI I will be glad to help. OK. How would you prefer to handle switching between the normal UI and mobile UI? Maybe a new config option in config/default_site.rb? --Mike -- Michael Smith http://sideshowbarker.net/ -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2348 bytes Desc: not available Url : http://rubyforge.org/pipermail/mailr-list/attachments/20051214/bb9f8567/smime.bin From smith at xml-doc.org Wed Dec 14 08:17:30 2005 From: smith at xml-doc.org (Michael Smith) Date: Wed, 14 Dec 2005 22:17:30 +0900 Subject: [Mailr] Patch for db/schema.pgsql.sql Message-ID: <20051214131728.GC14962@sideshowbarker.net> Luben, I needed to make some adjustments to the default db/schema.pgsql.sql file in order to get mailr working correctly with the postgresql connection adapter and database. The following patch shows the changes I made to get it work in my environment: - Changed the MySQL-style backtick quoting to double-quotes (I think single ones would work with Postgres as well) - Changed the data type for From, To, and Subject fields from VARCHAR(255) to TEXT. Because none of the e-mail RFCs place any limits on the maximum length of the contents of those fields, and I have test messages with From headers that mailr was choking on because they were longer than what the db schema expected. Index: db/schema.pgsql.sql =================================================================== --- db/schema.pgsql.sql (revision 148) +++ db/schema.pgsql.sql (working copy) @@ -95,15 +95,15 @@ username VARCHAR(100) NOT NULL, msg_id VARCHAR(100), uid BIGINT NOT NULL, - `from` VARCHAR(255), - `from_flat` VARCHAR(255), - `to` VARCHAR(255), - `to_flat` VARCHAR(255), - `subject` VARCHAR(255), - `content_type` VARCHAR(30), - `date` TIMESTAMP, - `unread` BOOL default false, - `size` BIGINT, + "from" TEXT, + "from_flat" TEXT, + "to" TEXT, + "to_flat" TEXT, + "subject" TEXT, + "content_type" VARCHAR(30), + "date" TIMESTAMP, + "unread" BOOL default false, + "size" BIGINT, PRIMARY KEY (id) ); By the way, how do you prefer to get patches and/or bug reports? On this list? (I notice that the Tracker for the mailr project at Rubyforge is turned off.) -- Michael Smith http://sideshowbarker.net/ From lubo at manolov.org Wed Dec 14 09:41:47 2005 From: lubo at manolov.org (Luben Manolov) Date: Wed, 14 Dec 2005 16:41:47 +0200 Subject: [Mailr] Patch for db/schema.pgsql.sql In-Reply-To: <20051214131728.GC14962@sideshowbarker.net> References: <20051214131728.GC14962@sideshowbarker.net> Message-ID: <43A02F2B.80505@manolov.org> Hi Mike, > I needed to make some adjustments to the default > db/schema.pgsql.sql file in order to get mailr working correctly > with the postgresql connection adapter and database. > > The following patch shows the changes I made to get it work in my > environment: Thanks for these changes. They are applied now (see http://mailr.org/ticket/42 and http://mailr.org/changeset/149). > By the way, how do you prefer to get patches and/or bug reports? > On this list? (I notice that the Tracker for the mailr project at > Rubyforge is turned off.) We are using Trac for patches and bugs reports. The URL is http://mailr.org. There is a "Patching guide" available here: http://mailr.org/wiki/PatchingGuide The only trick with Trac is that you can attach your patch to the ticket only after you save the ticket. Best regards, Luben From david at objectmentor.com Sun Dec 18 13:32:11 2005 From: david at objectmentor.com (David Chelimsky) Date: Sun, 18 Dec 2005 12:32:11 -0600 Subject: [Mailr] 0.2.0 Message-ID: <43A5AB2B.9010509@objectmentor.com> Hi, I see there are no unit or functional tests other than those that are autogenerated by script/generate. How can I see the existing tests? David From david at objectmentor.com Sun Dec 18 13:34:46 2005 From: david at objectmentor.com (David Chelimsky) Date: Sun, 18 Dec 2005 12:34:46 -0600 Subject: [Mailr] domain name Message-ID: <43A5ABC6.6020709@objectmentor.com> Hi, I'm able to log in to mailr using "david" and my password and read my email. So far so good. When I try to send an email, however, I get an error complaining that the sender has no domain name. How do I configure mailr so that it appends "@mydomain" to my username when sending mail? Thanks, David From david at objectmentor.com Sun Dec 18 13:36:36 2005 From: david at objectmentor.com (David Chelimsky) Date: Sun, 18 Dec 2005 12:36:36 -0600 Subject: [Mailr] 0.2.0 In-Reply-To: <43A5AB2B.9010509@objectmentor.com> References: <43A5AB2B.9010509@objectmentor.com> Message-ID: <43A5AC34.9010305@objectmentor.com> David Chelimsky wrote: > Hi, > > I see there are no unit or functional tests other than those that are > autogenerated by script/generate. How can I see the existing tests? Also - there IS a file test/unit/user_test.rb that appears to be obsolete (there is no User class or users table). From lubo at manolov.org Tue Dec 20 10:43:43 2005 From: lubo at manolov.org (Luben Manolov) Date: Tue, 20 Dec 2005 17:43:43 +0200 Subject: [Mailr] domain name In-Reply-To: <43A5ABC6.6020709@objectmentor.com> References: <43A5ABC6.6020709@objectmentor.com> Message-ID: <43A826AF.2020007@manolov.org> Hi David, > I'm able to log in to mailr using "david" and my password and read my > email. So far so good. When I try to send an email, however, I get an > error complaining that the sender has no domain name. How do I configure > mailr so that it appends "@mydomain" to my username when sending mail? Could you please update to the latest version from SVN (revision 155) and then add the following to your config/site.rb file: :send_from_domain => 'your_domain' Best regards, Luben From david at objectmentor.com Tue Dec 20 10:58:41 2005 From: david at objectmentor.com (David Chelimsky) Date: Tue, 20 Dec 2005 09:58:41 -0600 Subject: [Mailr] domain name In-Reply-To: <43A826AF.2020007@manolov.org> References: <43A5ABC6.6020709@objectmentor.com> <43A826AF.2020007@manolov.org> Message-ID: <43A82A31.3090003@objectmentor.com> Luben Manolov wrote: > Could you please update to the latest version from SVN (revision 155) > and then add the following to your config/site.rb file: > > :send_from_domain => 'your_domain' > That worked. Thanks. From matt at techiesalumni.com Thu Dec 22 14:08:12 2005 From: matt at techiesalumni.com (matt@techiesalumni.com) Date: Thu, 22 Dec 2005 13:08:12 -0600 (CST) Subject: [Mailr] No such file to load -- iconv Message-ID: <10717.209.98.117.18.1135278492.squirrel@www.techiesalumni.com> I get this error when I attempt to login.? I've googled and all I've found is something windows and rails-related. I am running on FreeBSD 6, I have iconv installed with the binary located at /usr/local/bin/iconv (yes, it's in my path).? I am running rails 1.0, ruby 1.8.2, mysql 4.1.x, mailr trunk 155. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mailr-list/attachments/20051222/d824b7c7/attachment.htm From lubo at manolov.org Fri Dec 23 03:09:31 2005 From: lubo at manolov.org (Luben Manolov) Date: Fri, 23 Dec 2005 10:09:31 +0200 Subject: [Mailr] No such file to load -- iconv In-Reply-To: <10717.209.98.117.18.1135278492.squirrel@www.techiesalumni.com> References: <10717.209.98.117.18.1135278492.squirrel@www.techiesalumni.com> Message-ID: <43ABB0BB.5040205@manolov.org> Hi Matt, matt at techiesalumni.com wrote: > I get this error when I attempt to login. I've googled and all I've > found is something windows and rails-related. I am running on FreeBSD 6, > I have iconv installed with the binary located at /usr/local/bin/iconv > (yes, it's in my path). I am running rails 1.0, ruby 1.8.2, mysql > 4.1.x, mailr trunk 155. > > Any ideas? After some googling I think that there is a problem with Ruby and iconv on Freebsd. There is some sort of solution - I guess that you have to recompile Ruby from source and add "--with-iconv-dir=/usr/local" parameter. Unfortunately I found this on some Japanese pages, so I am not sure what was the exact explanation. Anyway you can try this: $ wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.2.tar.gz $ tar zxf ruby-1.8.2.tar.gz $ cd ruby-1.8.2/ext/iconv $ ruby extconf.rb --prefix=$HOME/app --with-iconv-dir=/usr/local $ make $ cp iconv.so $RUBYLIB Here are the URLs (in case that you know Japanese): http://www.imasy.or.jp/~garsl/td/?date=0509 http://www.machu.jp/diary/20041004.html#p01 Best regards, Luben From matt at techiesalumni.com Sat Dec 24 12:03:48 2005 From: matt at techiesalumni.com (matt@techiesalumni.com) Date: Sat, 24 Dec 2005 11:03:48 -0600 (CST) Subject: [Mailr] No such file to load -- iconv Message-ID: <24791.209.98.117.18.1135443828.squirrel@www.techiesalumni.com> Luben-Thanks. I continued to Google around, (as usual) it turned out to be that there is another port on FreeBSD related to iconv named Ruby-Iconv that needed to be installed for that to work. Should have checked the ports first! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mailr-list/attachments/20051224/9a1f130d/attachment.htm From matt at techiesalumni.com Sat Dec 24 12:14:35 2005 From: matt at techiesalumni.com (matt@techiesalumni.com) Date: Sat, 24 Dec 2005 11:14:35 -0600 (CST) Subject: [Mailr] No content in the body of the email messages - run in production mode. Message-ID: <24813.209.98.117.18.1135444475.squirrel@www.techiesalumni.com> I've got mailr trunk 155 running, I have two issues, 1) Despite entering text into the body of an email message, this doesn't show up in the email when sent. 2) I put in my apache directive SetEnv RAILS_ENV='production' and yet mailr is running in development mode. Thanks for the help. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mailr-list/attachments/20051224/f27682d0/attachment.htm