/*************************************************************************** * * Copyright 2007,2013 by Sean Conner. * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or (at your * option) any later version. * * This library 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 Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library; if not, see . * * Comments, questions and criticisms can be sent to: sean@conman.org * *************************************************************************/ #ifndef I_D45F5CA0_725D_57F1_8714_C302E8DEB0F8 #define I_D45F5CA0_725D_57F1_8714_C302E8DEB0F8 #include #include #include "nodelist.h" typedef struct email { char const *from; char const *to; char const *replyto; char const *subject; char *tbody; size_t bsize; time_t timestamp; List headers; FILE *body; } *Email; /********************************************************************/ extern Email EmailNew (void); extern int EmailSend (Email const); extern int EmailFree (Email); /********************************************************************/ #endif .