Commit 3a3f2015 3a3f201543c9171f101acd257ceb69a22d6cd6c4 by Sergey Poznyakoff

(spamd_test): Use EUID to determine user's identity.

1 parent 366a44a7
......@@ -315,7 +315,7 @@ spamd_test (sieve_machine_t mach, list_t args, list_t tags)
message_size (msg, &m_size);
message_lines (msg, &m_lines);
auth = mu_get_auth_by_uid (getuid ());
auth = mu_get_auth_by_uid (geteuid ());
spamd_send_command (stream, "SYMBOLS SPAMC/1.2");
spamd_send_command (stream, "Content-length: %lu",
(u_long) (m_size + m_lines));
......