*** pop_pass.c.orig Wed May 10 00:35:20 2000 --- pop_pass.c Sun Aug 20 22:08:23 2000 *************** *** 1019,1024 **** --- 1019,1040 ---- * Authorization completed successfully */ + /*** begin SMTP-after-POP patch ***/ + { + #include + #include + #include "../../smaccessd.h" + int d = open(VAR_RUN__FIFO, O_WRONLY|O_APPEND|O_NONBLOCK); + if (d!=-1) { + int l; + char b[MAXUSERNAMELEN+17]; + l = sprintf(b, "%s@%s", p->user, p->ipaddr); + write(d, b, l+1); + close(d); + } + } + /*** end SMTP-after-POP patch ***/ + #ifdef LOG_LOGIN pop_log ( p, POP_PRIORITY, HERE, "(v%s) POP login by user \"%s\" at (%s) %s", *** pop_apop.c.orig Wed May 10 00:35:19 2000 --- pop_apop.c Sun Aug 20 22:09:18 2000 *************** *** 289,294 **** --- 289,311 ---- /* * Authorization completed successfully */ + + /*** begin SMTP-after-POP patch ***/ + { + #include + #include + #include "../../smaccessd.h" + int d = open(VAR_RUN__FIFO, O_WRONLY|O_APPEND|O_NONBLOCK); + if (d!=-1) { + int l; + char b[MAXUSERNAMELEN+17]; + l = sprintf(b, "%s@%s", p->user, p->ipaddr); + write(d, b, l+1); + close(d); + } + } + /*** end SMTP-after-POP patch ***/ + #ifdef LOG_LOGIN pop_log ( p, POP_PRIORITY, HERE, "(v%s) POP login by user \"%s\" at (%s) %s",