*** contrib/sendmail/src/headers.c.orig Tue Mar 6 09:38:51 2001 --- contrib/sendmail/src/headers.c Wed May 30 16:44:39 2001 *************** *** 903,908 **** --- 903,917 ---- (void) snprintf(sbp, SPACELEFT(sbuf, sbp), ", auth=%.30s", p); sbp += strlen(sbp); } + /* patch by Yu-lin Chang, May.30,2001. */ + /* if use SASL, Log userid to log file. userid is stored in {auth_authen} */ + p = macvalue(macid("{auth_authen}", NULL), e); + if (p != NULL) + { + (void) snprintf(sbp, SPACELEFT(sbuf, sbp), ", userid=%.30s", p); + sbp += strlen(sbp); + } + /* end of Yu-lin Chang's patch */ # endif /* SASL */ sm_syslog(LOG_INFO, e->e_id, "%.850s, relay=%.100s",