Google Apps + Users/Passwords [WORKING - almost fully] -> SHOULD BUG REPORTS BE OPENED
ashpatel - March 29, 2009 - 02:14
| Project: | Webmail Plus |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Kind of a 2 part questions here.
1) Has anybody made Webmail Plus work successfully with Google Apps email (not Gmail). I've been playing with it and haven't gotten it going. Any info you can share is appreciated.
2) Users/Passwords - I guess I'm a little confused with how Webmail manages this stuff. Say I an email account named 'joe@example.com' - This user has a drupal account (joec). Does the email just need to be set to 'joe@example.com' for things to work?
This is what I am trying and I can't get folders (Inbox....etc) created, and it doesn't even look like a connection is being attempted. Then again - this all could be because of question #1.

#1
After playing around a bit I am connecting to Google Apps and getting 'Folders' created - will post a little how to about this for others.
mysql> select * from webmail_plus_user_folders;+-----+-------------------------------------------+
| uid | folder |
+-----+-------------------------------------------+
| 3 | {imap.gmail.com:993/ssl}INBOX |
| 3 | {imap.gmail.com:993/ssl}[Gmail] |
| 3 | {imap.gmail.com:993/ssl}[Gmail]/All Mail |
| 3 | {imap.gmail.com:993/ssl}[Gmail]/Drafts |
| 3 | {imap.gmail.com:993/ssl}[Gmail]/Sent Mail |
| 3 | {imap.gmail.com:993/ssl}[Gmail]/Spam |
| 3 | {imap.gmail.com:993/ssl}[Gmail]/Starred |
| 3 | {imap.gmail.com:993/ssl}[Gmail]/Trash |
+-----+-------------------------------------------+
8 rows in set (0.00 sec)
The only problem is that in the main block it still shows: No messages available in the body. So, I am connecting but just not grabbing messages or I am grabbing messages and the module isn't processing them correctly. I'm not seeing any obvious errors but will dig into code to see how everything is done. If anyone has any input I'm all ears.
#2
Who said persistence doesn't pay. Setting the "Folder Prefix" option to {imap.gmail.com:993/ssl} cleaned up the menu:
mysql> select * from webmail_plus_user_folders;+-----+-------------------+
| uid | folder |
+-----+-------------------+
| 3 | INBOX |
| 3 | [Gmail] |
| 3 | [Gmail]/All Mail |
| 3 | [Gmail]/Drafts |
| 3 | [Gmail]/Sent Mail |
| 3 | [Gmail]/Spam |
| 3 | [Gmail]/Starred |
| 3 | [Gmail]/Trash |
+-----+-------------------+
8 rows in set (0.00 sec)
However, I was still unable to see any email. I don't know anything for sure but I figured that Google Apps was doing something out of the ordinary with IMAP - but I didn't think they'd do enough to break the protocol. So, I began digging a little and under the 'Settings' (in GMAIL) section you can find a 'Labs' tab and enable different feature. In this case, I enables "Advanced IMAP Controls" so I could disable some of their additional IMAP options. To do this, you need to go (still in Settings) to Labels and disable (Starred, Charts, All Mail).
These labels DO still appear in the Gmail (Google Apps) interface. As far as I can tell - no way to get rid of them there but that's not what I'm looking to do. The options are still in drupal's DB. I'm not comfortable with removing them from here (yet) so I'll keep them.
I was considering making a custom menu with links that pointed to appropriate URL (Inbox, Sent..etc). Once I get things working I'll do this. I'm still troubleshooting why cron breaks things (with the password) when it runs, and I'm not crazy about how the emails are formatted in the blocks. But for now, I can get mail at times (YEAH!!!)
#3
What out for the "must log out between doing stuff" feature or you might think things aren't working that are.
Yani
#4
I read the post about logging out/in and have been doing that after every change. Doing that fixed the directory prefix issue but I still am experiencing some weird behavior.
First, in "Webmail Plus -> Presentation -> Hide these folders:" I have entered [GMAIL], [GMAIL]/ALL Mail thinking these directories will not be displayed under "Folder" but they still are. I have looked through the schema and can't find where these are stored (or documentation to let me know if I am listing directory excludes correctly).
Another weird issue is the messages only appear in the INBOX after I click Administer -> Site Configuration -> Webmail Plus. If I navigate away I can no longer see them and must click though to Webmail Plus configuration block before they reappear.
My question is, should bug reports be filed for any of this stuff? The module doesn't claim support for Gmail (Google Apps) so I'm not sure it would do any good.
#5
Are you able to delete mail posts as I'm not. I'd like to figure that one out.
I'd say report everything but I haven't seen any activity here from anyone doing development. You would think that a mail system was a pretty important feature for a CMS. I hope someone is working on it.
Yani
#6
Guys I am here and paying attention to all of the issues opened. Lots of them are being addressed almost immediately. Please continue to report all the bugs you find.
#7
That is really good news. Thanks for posting that. I had a poke about your blog the other night in all. And I liked it! I figured you were in this for the long term and weren't a quitter.
Yani
#8
In case anybody reading this thread wants to see a little more info, I have posted a "How To" on my site:
http://redhatmba.com/?q=node/5
If I should contribute this type of stuff anywhere else please let me know.
Ash
#9
Ash,
that tutorial was really helpful. If possible, could you add it to the current documentation (http://drupal.org/node/369604)?