#399 Wildcard denoter for login

closed-fixed
nobody
None
5
2008-01-30
2003-10-01
Stan Lemon
No

Some IMAP servers have logins like

user+domain.com
or
user@domain.com

And some accept both, however, Squirrelmail doesn't
read the pref's correctly in this instance and would
include/create two totally different and separate files
even though its the same username. A way of figuring
out if this may be a "special" user name would be to
run a regular expression and look for foreign
characters, if one is detected explode around the
character and implode with a common one? Just a
thought. Let me know if you need help, e-mail me at
scl at insyderhomielc dot com

Thanks,
- Stan

Discussion

  • Jonathan Angliss

    Logged In: YES
    user_id=620333

    + isn't a wild card, neither is @. My IMAP server users @
    as a delimiter just fine. In fact, I have several domains
    hosted, that use the @domain for their users, and no issues
    at all. But then again, you've missed out a bunch of
    information, such as _what_ squirrelmail version? _What_
    operating system? _What_ PHP version? _What_ IMAP server?
    All basic information that makes finding issues a _lot_ easier.

     
  • Nobody/Anonymous

    Logged In: NO

    4.3.3, SQM 1.4.2, As far as the server goes it's a CPanel
    8.4.0-STABLE 92 system. That should give you all the
    information you need as far as that goes.

    Since you didn't understand what I was saying I'll give it
    another shot...
    user+domain.com and user@domain.com are the same username in
    this instance, but squirrelmail doesn't use the prefs from
    user@domain.com for user+domain.com or vice versa, rather it
    creates a new set of prefs... as if it were two different
    user names, but they aren't.

    - Stan

     
  • Jonathan Angliss

    Logged In: YES
    user_id=620333

    CPanel isn't really an IMAP server as far as I know... it's
    more of an administration system for a base operating system
    (as far as I remember at least).

    The problem lies however in how the underlying IMAP server
    is handling the logins. For example, some accept the +, and
    not the @, and visa versa... and in your case, it seems to
    accept both. I don't think it'd be wise to just interchange
    values like that. The only exception I know of is with
    Exchange, but that is because the \ and / characters are
    specially reserved for most operating systems as folder
    delimiters, so for the safety of the operating system, we
    changed them with another character.

    Could you find out what IMAP server you're really using, and
    I shall investigate into seeing if something like character
    changing would be wise in this case.

     
  • Nobody/Anonymous

    Logged In: NO

    I'll look into the IMAP item. CPanel is actually a bundle
    of servers together for distribution, I thought someone
    might know off hand what IMAP server comes bundled on a
    CPanel server. I'll send a letter off and inquire though.

    Thanks,
    - Stan

     
  • Nobody/Anonymous

    Logged In: NO

    Qmail

     
  • Paul Lesniewski

    Paul Lesniewski - 2008-01-30

    Logged In: YES
    user_id=508228
    Originator: NO

    If you continue to have multiple prefs files for the same accounts, you should use the Login Manager (vlogin) plugin to remap + to @ (or vice versa) so no + pref files will ever be created.

     
  • Paul Lesniewski

    Paul Lesniewski - 2008-01-30
    • status: open --> closed-fixed
     

Log in to post a comment.