In other
words, if a user's client sends "USER [EMAIL PROTECTED]" I'd like them to
simply be authenticated as "user" Is there a patch or some other simple
modification that can be made to achieve this?


Not very robust, but this should do what you want:

--- ipop3d.c~ Mon Jun 21 19:58:07 2004
+++ ipop3d.c Mon Oct 11 13:58:13 2004
@@ -268,6 +268,10 @@
        host = cpystr (t);/* copy host name */
        user = cpystr (s);/* copy user name */
      }
+     else if (s = strchr (t,'@')) {
+       *s = '\0'; /* tie off user name */
+       user = cpystr (t);/* copy user name */
+     }
      /* local user name */
      else user = cpystr (t);
      PSOUT ("+OK User name accepted, password please\015\012");



Reply via email to