| Postfix3.3.1
    | 
#include <sys_defs.h>#include <sys/stat.h>#include <stdlib.h>#include <stdio.h>#include <unistd.h>#include <errno.h>#include <string.h>#include <ctype.h>#include <msg.h>#include <mymalloc.h>#include <events.h>#include <vstring.h>#include <vstream.h>#include <line_wrap.h>#include <stringops.h>#include <myflock.h>#include <mail_queue.h>#include <quote_822_local.h>#include <mail_params.h>#include <is_header.h>#include <record.h>#include <rec_type.h>#include <post_mail.h>#include <mail_addr.h>#include <mail_error.h>#include <bounce_log.h>#include <mail_date.h>#include <mail_proto.h>#include <lex_822.h>#include <deliver_completed.h>#include <dsn_mask.h>#include <smtputf8.h>#include "bounce_service.h"| マクロ定義 | |
| #define | STR vstring_str | 
| #define | DELIVER_LOCK_MODE (MYFLOCK_OP_SHARED | MYFLOCK_OP_NOWAIT) | 
| #define | STREQ(a, b) (strcasecmp((a), (b)) == 0) | 
| #define | STRNE(a, b) (strcasecmp((a), (b)) != 0) | 
| #define | NOT_US_ASCII(tp) STRNE(bounce_template_charset(template), "us-ascii") | 
| #define | NOT_7BIT_MIME(bp) (bp->mime_encoding && STRNE(bp->mime_encoding, MAIL_ATTR_ENC_7BIT)) | 
| #define | LENGTH 79 | 
| #define | INDENT 4 | 
| #define | NON_NULL_EMPTY(s) ((s) && *(s)) | 
| #define | IS_UTF8_ADDRESS(str, len) ((str)[0] != 0 && !allascii(str) && valid_utf8_string((str), (len))) | 
| #define | IS_UNDELIVERED_TEMPLATE(template) (IS_FAILURE_TEMPLATE(template) || IS_DELAY_TEMPLATE(template)) | 
| #define | IS_HEADER(s) (IS_SPACE_TAB(*(s)) || is_header(s)) | 
| 関数 | |
| BOUNCE_INFO * | bounce_mail_init (const char *service, const char *queue_name, const char *queue_id, const char *encoding, int smtputf8, const char *dsn_envid, BOUNCE_TEMPLATE *template) | 
| BOUNCE_INFO * | bounce_mail_one_init (const char *queue_name, const char *queue_id, const char *encoding, int smtputf8, const char *dsn_envid, RCPT_BUF *rcpt_buf, DSN_BUF *dsn_buf, BOUNCE_TEMPLATE *template) | 
| void | bounce_mail_free (BOUNCE_INFO *bounce_info) | 
| int | bounce_header (VSTREAM *bounce, BOUNCE_INFO *bounce_info, const char *dest, int postmaster_copy) | 
| int | bounce_boilerplate (VSTREAM *bounce, BOUNCE_INFO *bounce_info) | 
| int | bounce_recipient_log (VSTREAM *bounce, BOUNCE_INFO *bounce_info) | 
| int | bounce_diagnostic_log (VSTREAM *bounce, BOUNCE_INFO *bounce_info, int notify_filter) | 
| int | bounce_header_dsn (VSTREAM *bounce, BOUNCE_INFO *bounce_info) | 
| int | bounce_recipient_dsn (VSTREAM *bounce, BOUNCE_INFO *bounce_info) | 
| int | bounce_diagnostic_dsn (VSTREAM *bounce, BOUNCE_INFO *bounce_info, int notify_filter) | 
| int | bounce_original (VSTREAM *bounce, BOUNCE_INFO *bounce_info, int headers_only) | 
| void | bounce_delrcpt (BOUNCE_INFO *bounce_info) | 
| void | bounce_delrcpt_one (BOUNCE_INFO *bounce_info) | 
| #define DELIVER_LOCK_MODE (MYFLOCK_OP_SHARED | MYFLOCK_OP_NOWAIT) | 
| #define INDENT 4 | 
| #define IS_HEADER | ( | s | ) | (IS_SPACE_TAB(*(s)) || is_header(s)) | 
| #define IS_UNDELIVERED_TEMPLATE | ( | template | ) | (IS_FAILURE_TEMPLATE(template) || IS_DELAY_TEMPLATE(template)) | 
| #define IS_UTF8_ADDRESS | ( | str, | |
| len | |||
| ) | ((str)[0] != 0 && !allascii(str) && valid_utf8_string((str), (len))) | 
| #define LENGTH 79 | 
| #define NON_NULL_EMPTY | ( | s | ) | ((s) && *(s)) | 
| #define NOT_7BIT_MIME | ( | bp | ) | (bp->mime_encoding && STRNE(bp->mime_encoding, MAIL_ATTR_ENC_7BIT)) | 
| #define NOT_US_ASCII | ( | tp | ) | STRNE(bounce_template_charset(template), "us-ascii") | 
| #define STR vstring_str | 
bounce_notify_util.c の 214 行目に定義があります。
| #define STREQ | ( | a, | |
| b | |||
| ) | (strcasecmp((a), (b)) == 0) | 
| #define STRNE | ( | a, | |
| b | |||
| ) | (strcasecmp((a), (b)) != 0) | 
| int bounce_boilerplate | ( | VSTREAM * | bounce, | 
| BOUNCE_INFO * | bounce_info | ||
| ) | 
bounce_notify_util.c の 528 行目に定義があります。
| void bounce_delrcpt | ( | BOUNCE_INFO * | bounce_info | ) | 
bounce_notify_util.c の 882 行目に定義があります。
| void bounce_delrcpt_one | ( | BOUNCE_INFO * | bounce_info | ) | 
bounce_notify_util.c の 897 行目に定義があります。
| int bounce_diagnostic_dsn | ( | VSTREAM * | bounce, | 
| BOUNCE_INFO * | bounce_info, | ||
| int | notify_filter | ||
| ) | 
bounce_notify_util.c の 755 行目に定義があります。
| int bounce_diagnostic_log | ( | VSTREAM * | bounce, | 
| BOUNCE_INFO * | bounce_info, | ||
| int | notify_filter | ||
| ) | 
bounce_notify_util.c の 592 行目に定義があります。
| int bounce_header | ( | VSTREAM * | bounce, | 
| BOUNCE_INFO * | bounce_info, | ||
| const char * | dest, | ||
| int | postmaster_copy | ||
| ) | 
bounce_notify_util.c の 458 行目に定義があります。
| int bounce_header_dsn | ( | VSTREAM * | bounce, | 
| BOUNCE_INFO * | bounce_info | ||
| ) | 
bounce_notify_util.c の 630 行目に定義があります。
| void bounce_mail_free | ( | BOUNCE_INFO * | bounce_info | ) | 
bounce_notify_util.c の 436 行目に定義があります。
| BOUNCE_INFO* bounce_mail_init | ( | const char * | service, | 
| const char * | queue_name, | ||
| const char * | queue_id, | ||
| const char * | encoding, | ||
| int | smtputf8, | ||
| const char * | dsn_envid, | ||
| BOUNCE_TEMPLATE * | template | ||
| ) | 
bounce_notify_util.c の 376 行目に定義があります。
| BOUNCE_INFO* bounce_mail_one_init | ( | const char * | queue_name, | 
| const char * | queue_id, | ||
| const char * | encoding, | ||
| int | smtputf8, | ||
| const char * | dsn_envid, | ||
| RCPT_BUF * | rcpt_buf, | ||
| DSN_BUF * | dsn_buf, | ||
| BOUNCE_TEMPLATE * | template | ||
| ) | 
bounce_notify_util.c の 414 行目に定義があります。
| int bounce_original | ( | VSTREAM * | bounce, | 
| BOUNCE_INFO * | bounce_info, | ||
| int | headers_only | ||
| ) | 
bounce_notify_util.c の 790 行目に定義があります。
| int bounce_recipient_dsn | ( | VSTREAM * | bounce, | 
| BOUNCE_INFO * | bounce_info | ||
| ) | 
bounce_notify_util.c の 687 行目に定義があります。
| int bounce_recipient_log | ( | VSTREAM * | bounce, | 
| BOUNCE_INFO * | bounce_info | ||
| ) | 
bounce_notify_util.c の 566 行目に定義があります。
 1.8.9.1
 1.8.9.1