X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fpop3client%2Fserv_pop3client.c;h=8a674c77f4df847f429c2ad479490c23ff795c43;hb=0387f48886a9395d89eaca01cd40ab751610426f;hp=ab2c4a6cdc20c2e37d8c0c4193bbfea3ab8745ba;hpb=984ea5827d1658847bf958cb9a373d4306de0c24;p=citadel.git diff --git a/citadel/modules/pop3client/serv_pop3client.c b/citadel/modules/pop3client/serv_pop3client.c index ab2c4a6cd..8a674c77f 100644 --- a/citadel/modules/pop3client/serv_pop3client.c +++ b/citadel/modules/pop3client/serv_pop3client.c @@ -1,7 +1,7 @@ /* * Consolidate mail from remote POP3 accounts. * - * Copyright (c) 2007-2017 by the citadel.org team + * Copyright (c) 2007-2020 by the citadel.org team * * This program is open source software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as published @@ -59,7 +59,6 @@ struct p3cq { // module-local queue of pop3 client work that needs processing long interval; }; -struct CitContext pop3_client_CC; static int doing_pop3client = 0; struct p3cq *p3cq = NULL; @@ -144,7 +143,7 @@ void pop3client_one_mailbox(char *room, const char *host, const char *user, cons res = curl_easy_perform(curl); if (res == CURLE_OK) { struct CtdlMessage *msg = convert_internet_message_buf(&TheMsg); - CtdlSubmitMsg(msg, NULL, room, 0); + CtdlSubmitMsg(msg, NULL, room); CM_Free(msg); } else { @@ -204,8 +203,6 @@ void pop3client_scan(void) { time_t fastest_scan; struct p3cq *pptr = NULL; - become_session(&pop3_client_CC); - if (CtdlGetConfigLong("c_pop3_fastest") < CtdlGetConfigLong("c_pop3_fetch")) { fastest_scan = CtdlGetConfigLong("c_pop3_fastest"); } @@ -259,7 +256,6 @@ CTDL_MODULE_INIT(pop3client) { if (!threading) { - CtdlFillSystemContext(&pop3_client_CC, "POP3aggr"); CtdlREGISTERRoomCfgType(pop3client, ParseGeneric, 0, 5, SerializeGeneric, DeleteGenericCfgLine); CtdlRegisterSessionHook(pop3client_scan, EVT_TIMER, PRIO_AGGR + 50); }