From prestonh at gmail.com Thu Nov 3 18:09:52 2005 From: prestonh at gmail.com (Preston Hagar) Date: Thu, 3 Nov 2005 17:09:52 -0600 Subject: [Mailr] Installing and using Mailr Message-ID: <8f5897560511031509p4517c32dh71da512c630666d4@mail.gmail.com> Hello all, I am new to both rails and mailr. I wanted to setup mailr and play around with it to learn rails further, but I am having trouble with the initial setup (most likely due to my lack of rails knowledge). I followed the install guide and then started the rails webbrick server: ruby script/server. I can now browse to 127.0.0.1:3000 on my local machine and see the generic "Congradulations you have put Ruby on Rails" page, but I cannot seem to find the url to navigate to be able to attempt to login. I looked the documentation and the faq's on the site and could not find it there either. I have tried things such as 127.0.0.1:3000/login , 127.0.0.1:3000/webmailetc, to no avail. If someone could point me to the correct page to login, I would greatly appriciate it. Thanks, Preston -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mailr-list/attachments/20051103/52bc2ad1/attachment.htm From lubo at manolov.org Wed Nov 9 05:34:19 2005 From: lubo at manolov.org (Luben Manolov) Date: Wed, 09 Nov 2005 12:34:19 +0200 Subject: [Mailr] Installing and using Mailr In-Reply-To: <8f5897560511031509p4517c32dh71da512c630666d4@mail.gmail.com> References: <8f5897560511031509p4517c32dh71da512c630666d4@mail.gmail.com> Message-ID: <4371D0AB.5040007@manolov.org> Hi Preston, Preston Hagar wrote: > Hello all, I am new to both rails and mailr. I wanted to setup mailr > and play around with it to learn rails further, but I am having trouble > with the initial setup (most likely due to my lack of rails knowledge). > I followed the install guide and then started the rails webbrick server: > ruby script/server. I can now browse to 127.0.0.1:3000 > on my local machine and see the generic > "Congradulations you have put Ruby on Rails" page, but I cannot seem to > find the url to navigate to be able to attempt to login. I looked the > documentation and the faq's on the site and could not find it there > either. I have tried things such as 127.0.0.1:3000/login > , 127.0.0.1:3000/webmail > etc, to no avail. If someone could > point me to the correct page to login, I would greatly appriciate it. Try with: http://localhost:3000/webmail/webmail/index Best regards, Luben From lubo at manolov.org Wed Nov 16 04:13:47 2005 From: lubo at manolov.org (Luben Manolov) Date: Wed, 16 Nov 2005 11:13:47 +0200 Subject: [Mailr] "Unexpected token RPAR"? In-Reply-To: <83d6121e0510121352q38dc151fj@mail.gmail.com> References: <83d6121e0510121352q38dc151fj@mail.gmail.com> Message-ID: <437AF84B.5000808@manolov.org> Hi, Sorry for the late reply. > I'm trying out Mailr and have hit a problem. After logging in, I'm confronted > with the mysterious (and difficult to find information on Google about) error, > Net::IMAP::ResponseParseError in Webmail/webmail#messages > unexpected token RPAR (expected ATOM) > /components/webmail/webmail_controller.rb:121:in `messages' > script/server:49 > Has anyone else seen this error? I'm kind of at a loss. Thanks in > advance for any information. I have seen a similar error - "unexpected token LPAR". The problem seems to be in the implementation of Net::IMAP. It cannot parse correctly some messages. When I deleted one particular message from my Inbox everything worked like a charm. I will try to create a patch for Net::IMAP when I have more time. My suggestion is to get the latest version of Mailr from the Subversion (revision 135). There are many changes in the new version which I will describe in another email. There is a new setting in the configuration file called "debug_imap". If you set this to "true" you will be able to see the debug messages of Net::IMAP on stderr (if you are using Webrick you will see the debug messages on the console). Maybe this will help you to track where is the problem. Best regards, Luben From lubo at manolov.org Wed Nov 16 04:29:56 2005 From: lubo at manolov.org (Luben Manolov) Date: Wed, 16 Nov 2005 11:29:56 +0200 Subject: [Mailr] Performance? In-Reply-To: References: <434CD701.4010502@manolov.org> Message-ID: <437AFC14.5090800@manolov.org> Hi Kevin, > If your IMAP server does not support the IMAP extension SORT then you > can turn off sorting to speed up folder listing. This can be set per > user, but not as a default for all users. > Courier-IMAP supports both of them. I'm currently using SquirrelMail > and performance is good so far (I'm using Courier too). Maybe we > should consider the same approach as SquirrelMail. > >>I agree that this is unacceptably slow and we have to fix the algorithm. >>Most probably the way to do this will be to cache the message IDs (or >>message headers) in the database and look only for new messages from the >>IMAP server. I guess that this is what Outlook and Thunderbird do. My >>only concern is that there might be some synchronization issues between >>our local cache (stored in the database) and the IMAP server. There is a new version of Mailr available. It is not released on Rubyforge yet because it needs a bit more testing. You can get the latest source from the Subversion repository. You need to recreate your database because there are 2 new tables. One of the major new features is the implementation of message cache. We have implemented the caching algorithm which Thunderbird uses. Mailr now stores the header fields of the messages in the local database (From, Subject, Date and Size fields). This is done only once (so the very first request will be slow). On each next request Mailr fetches only UIDs of the messages to check whether there is a change in the mailbox (new or deleted messages). There is a room for further improvement - for example to fetch UIDs only when necessary. Best regards, Luben From lubo at manolov.org Wed Nov 16 05:00:30 2005 From: lubo at manolov.org (Luben Manolov) Date: Wed, 16 Nov 2005 12:00:30 +0200 Subject: [Mailr] New version of Mailr Message-ID: <437B033E.2010307@manolov.org> Hello, I am happy to announce that there will be a new version of Mailr available soon. You can download the latest source from the Subversion repository (you need to recreate your database with schema_mysql.sql or schema_pgsql.sql because there are 2 new tables). Here is the list of changes: * The system is upgraded to Rails 0.14.2 * The default session store now is ActiveRecord store * There is no usage of DRb anymore. The drb_services.rb file is removed. * There is a new caching algorithm implemented. Header fields of the messages are cached in the local database * There is a new "debug_imap" option in the configuration file. Hopefully it will help to track some strange problems with the Net::IMAP implementation * Fixes of some encoding issues * Fixes of issues with attachments I will be glad to hear your experiences before I tag version 0.2.0 and upload the tar.gz file on Rubyforge. Best regards, Luben From born70s at gmail.com Wed Nov 16 11:48:24 2005 From: born70s at gmail.com (K C) Date: Wed, 16 Nov 2005 08:48:24 -0800 Subject: [Mailr] Performance? In-Reply-To: <437AFC14.5090800@manolov.org> References: <434CD701.4010502@manolov.org> <437AFC14.5090800@manolov.org> Message-ID: Hi Luben, There is a new version of Mailr available. It is not released on > Rubyforge yet because it needs a bit more testing. You can get the > latest source from the Subversion repository. You need to recreate your > database because there are 2 new tables. I'll check it out. One of the major new features is the implementation of message cache. We > have implemented the caching algorithm which Thunderbird uses. Mailr now > stores the header fields of the messages in the local database (From, > Subject, Date and Size fields). This is done only once (so the very > first request will be slow). On each next request Mailr fetches only > UIDs of the messages to check whether there is a change in the mailbox > (new or deleted messages). There is a room for further improvement - for > example to fetch UIDs only when necessary. Curiously, if the email can be accessed thourhg Mailr and Outlook Express, how do you sync the cache? Cheers, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mailr-list/attachments/20051116/e4379275/attachment.htm From bryan at brancada.com Tue Nov 29 12:52:10 2005 From: bryan at brancada.com (Bryan McCormack) Date: Tue, 29 Nov 2005 12:52:10 -0500 Subject: [Mailr] Configuration instructions or debug mode? Message-ID: <438C954A.6070507@brancada.com> 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. Suggestions? Thanks.