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) ...@@ -315,7 +315,7 @@ spamd_test (sieve_machine_t mach, list_t args, list_t tags)
315 message_size (msg, &m_size); 315 message_size (msg, &m_size);
316 message_lines (msg, &m_lines); 316 message_lines (msg, &m_lines);
317 317
318 auth = mu_get_auth_by_uid (getuid ()); 318 auth = mu_get_auth_by_uid (geteuid ());
319 spamd_send_command (stream, "SYMBOLS SPAMC/1.2"); 319 spamd_send_command (stream, "SYMBOLS SPAMC/1.2");
320 spamd_send_command (stream, "Content-length: %lu", 320 spamd_send_command (stream, "Content-length: %lu",
321 (u_long) (m_size + m_lines)); 321 (u_long) (m_size + m_lines));
......