[imp] appending domain to login name - imp 2.3.7

Shyama Mandal shyama_mandal@yahoo.com
Wed, 4 Apr 2001 08:54:29 -0700 (PDT)


In the templates/login/login.inc

function submit_login() {
  if (document.implogin.imapuser.value == "") {
    alert("<?php echo
addslashes($lang->alert_user_pass) ?>" );
    document.implogin.imapuser.focus();
    return false;
  } else if (document.implogin.pass.value == "") {
    alert("<?php echo
addslashes($lang->alert_user_pass) ?>" );
    document.implogin.pass.focus();
    return false;
  } else {
    if (document.implogin.imapuser.value.indexOf("@")
== -1 ) {
      document.implogin.imapuser.value =
document.implogin.imapuser.value + "@yourdomain.com";
    }
    document.implogin.submit();
    return true;
  }
}

--- Jon Parise <jon@csh.rit.edu> wrote:
> On Wed, Apr 04, 2001 at 05:08:59PM +0800, Paul
> Juliano wrote:
> 
> > I'm using IMP 2.3.7 and currently, I have to type
> my complete email
> > address at the login page, because my mail server
> expects it
> > (username@companyxyz.com).  Is there a way for me
> to set a setting
> > somewhere in ~imp/conf.php to automatically append
> the domain name
> > after the user types in just username at the login
> screen?
> 
> No, not really.  Either hack that sort of
> functionality in locally
> (modify the $imapuser so that it contains the domain
> name) or just get
> used to typing your entire domain name.  If that's
> what your IMAP
> server expects, that's probably what should go in
> the 'username'
> field.
> 
> -- 
> Jon Parise (jon@csh.rit.edu)  .  Rochester Inst. of
> Technology
> http://www.csh.rit.edu/~jon/  :  Computer Science
> House Member
> 
> -- 
> IMP mailing list: http://horde.org/imp/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail:
> imp-unsubscribe@lists.horde.org
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/