addr_parse.h
上传用户:knt0001
上传日期:2022-01-28
资源大小:264k
文件大小:1k
- /**
- eMail is a command line SMTP client.
- Copyright (C) 2001 - 2008 email by Dean Jones
- Software supplied and written by http://www.cleancode.org
- This file is part of eMail.
- eMail is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
- eMail is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with eMail; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- **/
- #ifndef ADDR_PARSE_H
- #define ADDR_PARSE_H 1
- char *stripEmailName(char *str);
- char *stripEmailAddr(char *str);
- int parseAddr(const char *addr, dstrbuf *name, dstrbuf *email);
- dstrbuf *formatEmailAddr(char *name, char *email);
- int validateEmail(const char *email);
- #endif /* ADDR_PARSE_H */