eNextState POP3C_ReadMessageBody(pop3aggr *RecvMsg) { AsyncIO *IO = &RecvMsg->IO; EVP3CM_syslog(LOG_DEBUG, "Converting message..."); RecvMsg->CurrMsg->Msg = convert_internet_message_buf(&RecvMsg->IO.ReadMsg->MsgBuf); return EventQueueDBOperation(&RecvMsg->IO, POP3C_SaveMsg, 0); }
/* * Convert an RFC822 message (headers + body) to a CtdlMessage structure. * NOTE: the supplied buffer becomes part of the CtdlMessage structure, and * will be deallocated when CM_Free() is called. Therefore, the * supplied buffer should be DEREFERENCED. It should not be freed or used * again. */ struct CtdlMessage *convert_internet_message(char *rfc822) { StrBuf *RFCBuf = NewStrBufPlain(rfc822, -1); free (rfc822); return convert_internet_message_buf(&RFCBuf); }