Skip to content
Snippets Groups Projects
Commit 88560cef authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Fixed misnamed module entry points for the lda-sieve plugin.

parent deb9f705
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
static deliver_mail_func_t *next_deliver_mail;
static const char *get_sieve_path(void)
static const char *lda_sieve_get_path(void)
{
const char *script_path, *home;
struct stat st;
......@@ -61,13 +61,13 @@ static const char *get_sieve_path(void)
return script_path;
}
static void *sieve_smtp_open(const char *destination,
static void *lda_sieve_smtp_open(const char *destination,
const char *return_path, FILE **file_r)
{
return (void *) smtp_client_open(destination, return_path, file_r);
}
static bool sieve_smtp_close(void *handle)
static bool lda_sieve_smtp_close(void *handle)
{
struct smtp_client *smtp_client = (struct smtp_client *) handle;
......@@ -103,8 +103,8 @@ static int lda_sieve_run
mailenv.username = username;
mailenv.hostname = deliver_set->hostname;
mailenv.postmaster_address = deliver_set->postmaster_address;
mailenv.smtp_open = sieve_smtp_open;
mailenv.smtp_close = sieve_smtp_close;
mailenv.smtp_open = lda_sieve_smtp_open;
mailenv.smtp_close = lda_sieve_smtp_close;
mailenv.duplicate_mark = duplicate_mark;
mailenv.duplicate_check = duplicate_check;
......@@ -123,7 +123,7 @@ static int lda_sieve_deliver_mail
{
const char *script_path;
script_path = get_sieve_path();
script_path = lda_sieve_get_path();
if (script_path == NULL)
return 0;
......@@ -134,13 +134,13 @@ static int lda_sieve_deliver_mail
destaddr, getenv("USER"), mailbox);
}
void lda_sieve_plugin_init(void)
void sieve_plugin_init(void)
{
next_deliver_mail = deliver_mail;
deliver_mail = lda_sieve_deliver_mail;
}
void lda_sieve_plugin_deinit(void)
void sieve_plugin_deinit(void)
{
deliver_mail = next_deliver_mail;
}
#ifndef __LDA_SIEVE_PLUGIN_H
#define __LDA_SIEVE_PLUGIN_H
static int lda_sieve_run
(struct mail_namespace *namespaces, struct mail *mail, const char *script_path,
const char *destaddr, const char *username, const char *mailbox);
void lda_sieve_plugin_init(void);
void lda_sieve_plugin_deinit(void);
void sieve_plugin_init(void);
void sieve_plugin_deinit(void);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.