JunkBox_Lib 1.10.1
|
SMTPツールプログラム ヘッダ More...
#include "protocol.h"
Go to the source code of this file.
Macros | |
#define | __JBXL_SMTP_TOLLS_H_ |
Functions | |
char * | get_smtp_rcpt (char *mesg) |
char * | get_smtp_mailbox (char *mesg) |
int | is_smtp_onecommand (char *mesg, char *com) |
int | smtp_check_dot (char *mesg) |
Definition in file smtp_tool.h.
#define __JBXL_SMTP_TOLLS_H_ |
Definition at line 2 of file smtp_tool.h.
char * get_smtp_mailbox | ( | char * | mesg | ) |
char* get_smtp_mailbox(char* mesg)
<forward-path> から <mailbox> を返す.see RFC821
RFC821の <mailbox> とは,通常のメールアドレスのこと.
後ろの文字から探索し,(':' || '<' || ' ') 〜 !(' ' && '>' && CR && LF) を取り出す
Definition at line 62 of file smtp_tool.c.
References CHAR_CR, and CHAR_LF.
Referenced by get_smtp_rcpt().
char * get_smtp_rcpt | ( | char * | mesg | ) |
char* get_smtp_rcpt(char* mesg)
mesg から RCPT TO: コマンドを検索し,配送先のメールアドレスを返す.
Definition at line 22 of file smtp_tool.c.
References awk(), freeNull, get_smtp_mailbox(), and pack_char.
int is_smtp_onecommand | ( | char * | mesg, |
char * | com ) |
int is_smtp_onecommand(char* mesg, char* com)
DATA, RSETなどの空白無し,引数なしのコマンドを識別する.
Definition at line 96 of file smtp_tool.c.
References awk(), FALSE, freeNull, pack_char, and TRUE.
int smtp_check_dot | ( | char * | mesg | ) |
int smtp_check_dot(char* mesg)
メールの終わり "@\r@\n.@\r@\n" を探す.
Definition at line 121 of file smtp_tool.c.