[exim-dev] [Bug 1647] New: Write spam_score to spool file

Page principale
Supprimer ce message
Répondre à ce message
Auteur: admin
Date:  
À: exim-dev
Sujet: [exim-dev] [Bug 1647] New: Write spam_score to spool file
https://bugs.exim.org/show_bug.cgi?id=1647

            Bug ID: 1647
           Summary: Write spam_score to spool file
           Product: Exim
           Version: 4.85+ HEAD
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Content Scanning
          Assignee: tom@???
          Reporter: gedalya@???
                CC: exim-dev@???


I like adding spam_score to headers during delivery, as it is more presentable
than spam_score_int. Currently the only way to do this is to assign an ACL
variable, as spam_score is not written to the spool file.

diff --git a/src/src/spool_in.c b/src/src/spool_in.c
index 9ce8ce5..c06d5e8 100644
--- a/src/src/spool_in.c
+++ b/src/src/spool_in.c
@@ -296,6 +296,7 @@ tls_in.ocsp = OCSP_NOT_REQ;
#endif

#ifdef WITH_CONTENT_SCAN
+spam_score = NULL;
spam_score_int = NULL;
#endif

@@ -571,6 +572,8 @@ for (;;)
     if (Ustrncmp(p, "ender_set_untrusted", 19) == 0)
       sender_set_untrusted = TRUE;
 #ifdef WITH_CONTENT_SCAN
+    else if (Ustrncmp(p, "pam_score ", 10) == 0)
+      spam_score = string_copy(big_buffer + 12);
     else if (Ustrncmp(p, "pam_score_int ", 14) == 0)
       spam_score_int = string_copy(big_buffer + 16);
 #endif
diff --git a/src/src/spool_out.c b/src/src/spool_out.c
index 92bf0aa..b17e3b5 100644
--- a/src/src/spool_out.c
+++ b/src/src/spool_out.c
@@ -218,6 +218,7 @@ if (sender_local) fprintf(f, "-local\n");
 if (local_error_message) fprintf(f, "-localerror\n");
 if (local_scan_data != NULL) fprintf(f, "-local_scan %s\n", local_scan_data);
 #ifdef WITH_CONTENT_SCAN
+if (spam_score != NULL) fprintf(f,"-spam_score %s\n", spam_score);
 if (spam_score_int != NULL) fprintf(f,"-spam_score_int %s\n", spam_score_int);
 #endif
 if (deliver_manual_thaw) fprintf(f, "-manual_thaw\n");


--
You are receiving this mail because:
You are on the CC list for the bug.