From 1c2661f1c3d5750f8f82f0b51b42eb64093e6d58 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 8 Dec 2013 23:36:00 +0000 Subject: Added clear command to /account for password clearing fixes #267 --- src/config/accounts.c | 9 +++++++++ src/config/accounts.h | 1 + 2 files changed, 10 insertions(+) (limited to 'src/config') diff --git a/src/config/accounts.c b/src/config/accounts.c index 6bfc7bef..0422a991 100644 --- a/src/config/accounts.c +++ b/src/config/accounts.c @@ -443,6 +443,15 @@ accounts_set_password(const char * const account_name, const char * const value) } } +void +accounts_clear_password(const char * const account_name) +{ + if (accounts_account_exists(account_name)) { + g_key_file_remove_key(accounts, account_name, "password", NULL); + _save_accounts(); + } +} + void accounts_set_muc_service(const char * const account_name, const char * const value) { diff --git a/src/config/accounts.h b/src/config/accounts.h index 118b5c80..96289952 100644 --- a/src/config/accounts.h +++ b/src/config/accounts.h @@ -80,5 +80,6 @@ void accounts_set_priority_dnd(const char * const account_name, const gint value void accounts_set_priority_all(const char * const account_name, const gint value); gint accounts_get_priority_for_presence_type(const char * const account_name, resource_presence_t presence_type); +void accounts_clear_password(const char * const account_name); #endif -- cgit 1.4.1-2-gfad0 4a77'>tree commit diff stats
path: root/doc/aerc-search.1.scd
blob: b90a934b25833188bc69f7519fc39d4b5d9a99d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91