[exim-cvs] Revert "Rspamd: add $authenticated_id as User to …

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim Git Commits Mailing List
Date:  
À: exim-cvs
Sujet: [exim-cvs] Revert "Rspamd: add $authenticated_id as User to scan command"
Gitweb: https://git.exim.org/exim.git/commitdiff/ba6db9da2c09bf7adf5ede6ef0e5ae25532dc7a5
Commit:     ba6db9da2c09bf7adf5ede6ef0e5ae25532dc7a5
Parent:     149b0e8a479aa1bbd9b2fb8281313edc487e6cec
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Jun 16 18:22:47 2018 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Tue Jun 26 12:02:27 2018 +0100


    Revert "Rspamd: add $authenticated_id as User to scan command"


    This reverts commit 6c54be6459b83b955fbd2fd6d6a844f80c98427a.
---
 src/src/spam.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)


diff --git a/src/src/spam.c b/src/src/spam.c
index 6451ba2..d85e6e1 100644
--- a/src/src/spam.c
+++ b/src/src/spam.c
@@ -371,9 +371,8 @@ start = time(NULL);
 if (sd->is_rspamd)
   {                /* rspamd variant */
   uschar *req_str;
-  const uschar * helo;
-  const uschar * fcrdns;
-  const uschar * authid;
+  const char *helo;
+  const char *fcrdns;


   req_str = string_sprintf("CHECK RSPAMC/1.3\r\nContent-length: %lu\r\n"
     "Queue-Id: %s\r\nFrom: <%s>\r\nRecipient-Number: %d\r\n",
@@ -386,12 +385,10 @@ if (sd->is_rspamd)
     req_str = string_sprintf("%sHostname: %s\r\n", req_str, fcrdns);
   if (sender_host_address != NULL)
     req_str = string_sprintf("%sIP: %s\r\n", req_str, sender_host_address);
-  if ((authid = expand_string(US"$authenticated_id")) != NULL && *authid != '\0')
-    req_str = string_sprintf("%sUser: %s\r\n", req_str, authid);
   req_str = string_sprintf("%s\r\n", req_str);
   wrote = send(spamd_cctx.sock, req_str->s, req_str->ptr, 0);
   }
-else
+  else
   {                /* spamassassin variant */
   (void)string_format(spamd_buffer,
       sizeof(spamd_buffer),
@@ -401,7 +398,6 @@ else
   /* send our request */
   wrote = send(spamd_cctx.sock, spamd_buffer, Ustrlen(spamd_buffer), 0);
   }
-
 if (wrote == -1)
   {
   (void)close(spamd_cctx.sock);