mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-27 00:15:51 -04:00
Initialize GXS mail service in rsinit.cc
forgot in previous commit
This commit is contained in:
parent
53e3177c2b
commit
56c870c1d7
1 changed files with 24 additions and 2 deletions
|
@ -82,6 +82,10 @@
|
||||||
#include "tcponudp/udpstunner.h"
|
#include "tcponudp/udpstunner.h"
|
||||||
#endif // RS_USE_DHT_STUNNER
|
#endif // RS_USE_DHT_STUNNER
|
||||||
|
|
||||||
|
#ifdef RS_GXS_MAIL
|
||||||
|
# include "services/p3gxsmails.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// #define GPG_DEBUG
|
// #define GPG_DEBUG
|
||||||
// #define AUTHSSL_DEBUG
|
// #define AUTHSSL_DEBUG
|
||||||
// #define FIM_DEBUG
|
// #define FIM_DEBUG
|
||||||
|
@ -1483,6 +1487,19 @@ int RsServer::StartupRetroShare()
|
||||||
pqih->addService(gxschannels_ns, true);
|
pqih->addService(gxschannels_ns, true);
|
||||||
//pqih->addService(photo_ns, true);
|
//pqih->addService(photo_ns, true);
|
||||||
|
|
||||||
|
# ifdef RS_GXS_MAIL
|
||||||
|
RsGeneralDataService* gxsmail_ds = new RsDataService(
|
||||||
|
currGxsDir + "/", "gxsmails_db", RS_SERVICE_TYPE_GXS_MAIL,
|
||||||
|
NULL, rsInitConfig->gxs_passwd );
|
||||||
|
p3GxsMails* mGxsMails = new p3GxsMails(gxsmail_ds, NULL, mGxsIdService);
|
||||||
|
RsGxsNetService* gxsmails_ns = new RsGxsNetService(
|
||||||
|
RS_SERVICE_TYPE_GXS_MAIL, gxschannels_ds, nxsMgr, mGxsMails,
|
||||||
|
mGxsMails->getServiceInfo(), mGxsIdService, mGxsCircles,
|
||||||
|
mGxsIdService, pgpAuxUtils );
|
||||||
|
mGxsMails->setNetworkExchangeService(gxsmails_ns);
|
||||||
|
pqih->addService(gxsmails_ns, true);
|
||||||
|
# endif // RS_GXS_MAIL
|
||||||
|
|
||||||
// remove pword from memory
|
// remove pword from memory
|
||||||
rsInitConfig->gxs_passwd = "";
|
rsInitConfig->gxs_passwd = "";
|
||||||
|
|
||||||
|
@ -1804,6 +1821,11 @@ int RsServer::StartupRetroShare()
|
||||||
//createThread(*photo_ns);
|
//createThread(*photo_ns);
|
||||||
//createThread(*wire_ns);
|
//createThread(*wire_ns);
|
||||||
|
|
||||||
|
# ifdef RS_GXS_MAIL
|
||||||
|
startServiceThread(mGxsMails, "gxs mail");
|
||||||
|
startServiceThread(gxsmails_ns, "gxs mail ns");
|
||||||
|
# endif // RS_GXS_MAIL
|
||||||
|
|
||||||
#endif // RS_ENABLE_GXS
|
#endif // RS_ENABLE_GXS
|
||||||
|
|
||||||
ftserver->StartupThreads();
|
ftserver->StartupThreads();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue