[imp] Using Email Address to Login

Brian Cosgrove brianlc at sowired.info
Wed May 5 20:25:05 PDT 2004


Hello everyone!

I've been reading the messages here and I think I'm on the way to 
solving a problem I'm having.  If someone can let me know if I'm on the 
right track or not, I'd appreciate it.

Here's my situation:

I have the head versions of horde and imp installed on a linux server.

I use IMP for authentication.

My IMAP userid/mailboxes are generated for me by my hosting company and 
can't be changed.  They are in the following format:  the letter 'M' 
follow by six numbers (such as M123456).  The email address would be 
something like brianlc at mydomain.com.

So when I log into my IMAP server I use my userid (M123456) and my password.

I would like to set up horde so that my users can login using their 
email address (which is MUCH easier for them to remember than their 
mailbox).

I thought I would accomplish this as follows:

Create a new 'mailboxes" table that would have two fields, an email 
address and a mailbox id.

I would then modify _imp_hook_vinfo to take the email address that a 
person types in as their horde/imp login, look it up in the mailboxes 
table, find their mailbox id and return that value.

Their mailbox userid would then become their horde id.

Is this the best way to accomplish this?

Any thoughts/suggestions would be greatly appreciated.

Thank you,
Brian



More information about the imp mailing list