(build_mime,sieve_action_redirect): Removed unused argument.
(sieve_register_standard_actions): Changed declaration.
Showing
1 changed file
with
9 additions
and
11 deletions
... | @@ -133,7 +133,6 @@ build_mime (mime_t *pmime, message_t msg, const char *text) | ... | @@ -133,7 +133,6 @@ build_mime (mime_t *pmime, message_t msg, const char *text) |
133 | struct tm *tm; | 133 | struct tm *tm; |
134 | char *sender; | 134 | char *sender; |
135 | size_t off = 0; | 135 | size_t off = 0; |
136 | header_t hdr; | ||
137 | body_t body; | 136 | body_t body; |
138 | 137 | ||
139 | message_create (&newmsg, NULL); | 138 | message_create (&newmsg, NULL); |
... | @@ -341,7 +340,6 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags) | ... | @@ -341,7 +340,6 @@ sieve_action_redirect (sieve_machine_t mach, list_t args, list_t tags) |
341 | address_t addr = NULL, from = NULL; | 340 | address_t addr = NULL, from = NULL; |
342 | header_t hdr = NULL; | 341 | header_t hdr = NULL; |
343 | int rc; | 342 | int rc; |
344 | size_t size; | ||
345 | char *fromaddr; | 343 | char *fromaddr; |
346 | mailer_t mailer = sieve_get_mailer (mach); | 344 | mailer_t mailer = sieve_get_mailer (mach); |
347 | 345 | ||
... | @@ -439,16 +437,16 @@ sieve_data_type fileinto_args[] = { | ... | @@ -439,16 +437,16 @@ sieve_data_type fileinto_args[] = { |
439 | }; | 437 | }; |
440 | 438 | ||
441 | void | 439 | void |
442 | sieve_register_standard_actions () | 440 | sieve_register_standard_actions (sieve_machine_t mach) |
443 | { | 441 | { |
444 | sieve_register_action ("stop", sieve_action_stop, NULL, NULL, 1); | 442 | sieve_register_action (mach, "stop", sieve_action_stop, NULL, NULL, 1); |
445 | sieve_register_action ("keep", sieve_action_keep, NULL, NULL, 1); | 443 | sieve_register_action (mach, "keep", sieve_action_keep, NULL, NULL, 1); |
446 | sieve_register_action ("discard", sieve_action_discard, NULL, NULL, 1); | 444 | sieve_register_action (mach, "discard", sieve_action_discard, NULL, NULL, 1); |
447 | sieve_register_action ("fileinto", sieve_action_fileinto, fileinto_args, | 445 | sieve_register_action (mach, "fileinto", sieve_action_fileinto, |
448 | NULL, 1); | 446 | fileinto_args, NULL, 1); |
449 | sieve_register_action ("reject", sieve_action_reject, fileinto_args, | 447 | sieve_register_action (mach, "reject", sieve_action_reject, fileinto_args, |
450 | NULL, 0); | ||
451 | sieve_register_action ("redirect", sieve_action_redirect, fileinto_args, | ||
452 | NULL, 0); | 448 | NULL, 0); |
449 | sieve_register_action (mach, "redirect", sieve_action_redirect, | ||
450 | fileinto_args, NULL, 0); | ||
453 | } | 451 | } |
454 | 452 | ... | ... |
-
Please register or sign in to post a comment