Mercurial > dovecot > original-hg > dovecot-1.2
view src/deliver/deliver.h @ 5661:f18a7fd8ac9a HEAD
Added rejection_reason setting for deliver.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 24 May 2007 20:21:29 +0300 |
parents | 4862cb37106c |
children | e4eb71ae8e96 |
line wrap: on
line source
#ifndef __DELIVER_H #define __DELIVER_H #include <sysexits.h> #include "lib.h" #include "mail-storage.h" #define DEFAULT_MAIL_REJECTION_HUMAN_REASON \ "Your message to <%t> was automatically rejected:%n%r" struct deliver_settings { const char *hostname; const char *postmaster_address; const char *sendmail_path; const char *rejection_reason; }; extern struct deliver_settings *deliver_set; typedef int deliver_mail_func_t(struct mail_namespace *namespaces, struct mail_storage **storage_r, struct mail *mail, const char *username, const char *mailbox); extern deliver_mail_func_t *deliver_mail; void deliver_env_clean(void); /* Save a mail into given mailbox with given flags and keywords. */ int deliver_save(struct mail_namespace *namespaces, struct mail_storage **storage_r, const char *mailbox, struct mail *mail, enum mail_flags flags, const char *const *keywords); /* Extracts user@domain from Return-Path header. Returns NULL if not found. */ const char *deliver_get_return_address(struct mail *mail); /* Returns a new unique Message-ID */ const char *deliver_get_new_message_id(void); #endif