X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fpop3client%2Fserv_pop3client.c;h=950436dd8ed65d5eaa4954b5cdbba915efc9af56;hb=4db4fc48793f3680c5defd28ea32c97044a2b569;hp=bf235b2110899982ce502167499cd6d08f16a1e5;hpb=1493fd8ff0de73d30336607b43b1c8113ffcffa2;p=citadel.git diff --git a/citadel/modules/pop3client/serv_pop3client.c b/citadel/modules/pop3client/serv_pop3client.c index bf235b211..950436dd8 100644 --- a/citadel/modules/pop3client/serv_pop3client.c +++ b/citadel/modules/pop3client/serv_pop3client.c @@ -21,6 +21,7 @@ #include #include #include +#include #if TIME_WITH_SYS_TIME # include @@ -432,8 +433,8 @@ eNextState POP3_FetchNetworkUsetableEntry(AsyncIO *IO) if (CheckIfAlreadySeen("POP3 Item Seen", RecvMsg->CurrMsg->MsgUID, - IO->Now, - IO->Now, //// todo + EvGetNow(IO), + EvGetNow(IO) - USETABLE_ANTIEXPIRE, eCheckUpdate, IO->ID, CCID) != 0) @@ -492,7 +493,8 @@ eNextState POP3C_GetOneMessagID(pop3aggr *RecvMsg) /// done receiving uidls.. start looking them up now. RecvMsg->Pos = GetNewHashPos(RecvMsg->MsgNumbers, 0); return EventQueueDBOperation(&RecvMsg->IO, - POP3_FetchNetworkUsetableEntry); + POP3_FetchNetworkUsetableEntry, + 0); } return eReadMore; /* TODO */ } @@ -589,8 +591,8 @@ eNextState POP3C_StoreMsgRead(AsyncIO *IO) ChrPtr(RecvMsg->CurrMsg->MsgUID)); CheckIfAlreadySeen("POP3 Item Seen", RecvMsg->CurrMsg->MsgUID, - IO->Now, - IO->Now, //// todo + EvGetNow(IO), + EvGetNow(IO) - USETABLE_ANTIEXPIRE, eWrite, IO->ID, CCID); @@ -625,7 +627,7 @@ eNextState POP3C_ReadMessageBody(pop3aggr *RecvMsg) EVP3CM_syslog(LOG_DEBUG, "Converting message..."); RecvMsg->CurrMsg->Msg = convert_internet_message_buf(&RecvMsg->IO.ReadMsg->MsgBuf); - return EventQueueDBOperation(&RecvMsg->IO, POP3C_SaveMsg); + return EventQueueDBOperation(&RecvMsg->IO, POP3C_SaveMsg, 0); } eNextState POP3C_SendDelete(pop3aggr *RecvMsg)