mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-06 03:50:08 +02:00
add cli-command for housekeeping
This commit is contained in:
parent
5d70806af1
commit
7938aaf731
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,7 @@ your library */
|
|||
#include "../src/dc_apeerstate.h"
|
||||
#include "../src/dc_key.h"
|
||||
#include "../src/dc_pgp.h"
|
||||
#include "../src/dc_sqlite3.h"
|
||||
|
||||
|
||||
|
||||
|
@ -419,6 +420,7 @@ char* dc_cmdline(dc_context_t* context, const char* cmdline)
|
|||
"connect\n"
|
||||
"disconnect\n"
|
||||
"maybenetwork\n"
|
||||
"housekeeping\n"
|
||||
"help imex (Import/Export)\n"
|
||||
"==============================Chat commands==\n"
|
||||
"listchats [<query>]\n"
|
||||
|
@ -651,6 +653,11 @@ char* dc_cmdline(dc_context_t* context, const char* cmdline)
|
|||
dc_maybe_network(context);
|
||||
ret = COMMAND_SUCCEEDED;
|
||||
}
|
||||
else if (strcmp(cmd, "housekeeping")==0)
|
||||
{
|
||||
dc_housekeeping(context);
|
||||
ret = COMMAND_SUCCEEDED;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* Chat commands
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue