Decided not to attempt normalizing the parameters to action functions
authorArt Cancro <ajc@citadel.org>
Sun, 22 Nov 2020 06:28:30 +0000 (01:28 -0500)
committerArt Cancro <ajc@citadel.org>
Sun, 22 Nov 2020 06:28:30 +0000 (01:28 -0500)
citadel/modules/inboxrules/serv_inboxrules.c

index 6c176c36ded33b4d4c5028f8014ada1cb3092b5e..5d2e4a12be0a45825dfec7eb4fde353f8d170204 100644 (file)
@@ -698,7 +698,7 @@ struct inboxrules *deserialize_inbox_rules(char *serialized_rules) {
 
 // Perform the "reject" action
 //
-void inbox_do_reject(struct irule *rule, struct CtdlMessage *msg, struct MetaData *smi) {
+void inbox_do_reject(struct irule *rule, struct CtdlMessage *msg) {
        syslog(LOG_DEBUG, "inbox_do_reject: sender: <%s>, reject message: <%s>",
                msg->cm_fields[erFc822Addr],
                rule->autoreply_message
@@ -960,7 +960,7 @@ void inbox_do_msg(long msgnum, void *userdata) {
                                        keep_message = 0;
                                        break;
                                case action_reject:
-                                       inbox_do_reject(&ii->rules[i], msg, &smi);
+                                       inbox_do_reject(&ii->rules[i], msg);
                                        keep_message = 0;
                                        break;
                                case action_fileinto: