[imp] Welcome Message Personalization

Eric Rostetter eric.rostetter@physics.utexas.edu
Sat, 10 Aug 2002 11:42:15 -0500


Quoting Gustavo Verduzco Vazquez <gustavo@isp.co.cr>:

> Hi everyone!
> 
> I would like to know how to personalize the welcome message that appears in 
> the login screen. I don't want only to modify the text, I want to give to 
> any virtual domain using the IMP webmail interface a different welcome 
> message.

That is one and the same thing.

> Is it possible to use PHP variables as HTTP_HOST and such to detect the 
> domain typed by the final user when is accessing his webmail so that it can 
> give a personalized welcome message for that domain...

Yes.  You can do this for the welcome message, and in the motd.php files
for further custom output.

> What I want is that is a user types in the url http://mail.domainone.com in 
> the welcome message he will get something like:
> "MAIL.DOMAINONE.COM
> Webmail System"
> and if another user access his webmail at http://mail.domaintwo.com he will 
> get:
> "MAIL.DOMAINTWO.COM
> Webmail System".
> Is it something possible or doable?

Yes.  You can change the name of Horde in registry.php, or you can change
the text in the your locale file(s), or you can change the string directly
in the source file (but the last one makes upgrading/maintenance more
difficult).

> Your input on this one will be much appreciated!
> Regards,

This isn't really any different than all the entries in the mailing lists 
archives or the FAQ, other than the introduction of more logic to
change the message based on login domain.  The newest CVS HEAD motd.php
file for IMP (I think) has some examples of customizing the output, and
could serve as a starting point to give you some ideas.

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

"TAD (Technology Attachment Disorder) is an unshakable, impractical devotion
to a brand, platform, product line, or programming language. It's relatively
harmless among the rank and file, but when management is afflicted the damage
can be measured in dollars. It's also contagious -- someone with sufficient
political clout can infect an entire organization."

--"Enterprise Strategies" columnist Tom Yager.