285f3c4cf828ebe9ff345080aa1df3755613af29 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Add new "stats dump" command |
6ef83bcdc4e40d6b387857e5f7d58cd86c71ec50 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Renamed stats plugin and service to old-stats |
c5e46dba179864f6f1adf196d46e7a0371b11914 |
|
12-Dec-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: drop unnecessary parens in &(foo)
This makes the code more consistent since most of the repo uses the
no-parens style. These inconsistencies were found using
`git grep '(&([^*]'` and any use of the parens in macros was ignored for
safety reasons. |
d29c67900d3d104e24ed213ed4a10d204decdf18 |
|
28-Oct-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Reorder includes
This makes next commit possible |
b0d00847d0e1ab20662efce5b24f8fee6897c6fe |
|
21-Sep-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: "Extraneous arguments found": Show the args in the error |
98800cb9f53b7cc7b5dbfc78f2803707b9b0d324 |
|
05-Sep-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Make sure positional arguments end up in right place
Otherwise -- is placed into wrong place and breaks command line
reparsing in legacy functions. |
c466bbccb4b8b0026aea13540ebdef3bddbd67dd |
|
22-Mar-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Add exit code/string conversion functions |
235ef8cd3865984cc27f88a18d14ea98adb53f09 |
|
27-Feb-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Ensure -- is added to command line before positional arguments for non-mails commands as well
Was forgotten from 967efe37d1f10a28c0a086cc5919d4ce8917bed8 |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Change string position/length from unsigned int to size_t
Mainly to avoid truncating >4GB strings, which might potentially cause
some security holes. Normally there are other limits, which prevent such
excessive strings from being created in the first place.
I'm sure this didn't find everything. Maybe everything could be found with
compiler warnings. -Wconversion kind of does it, but it gives way too many
unnecessary warnings.
These were mainly found with:
grep " = strlen"
egrep "unsigned int.*(size|len)" |
d78f1ac9dc0f3e6c64cebe9ee331ec6b3c160e89 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
Added "doveadm process status"
This allows asking for processes' current status in master process. |
eba7f36feec8d02c4c394e55ff4effd47e33d311 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
Added "doveadm service status"
This allows asking for services' current status in master process. |
53309922d2ec3321e011966e8f2b210821ecd5e3 |
|
29-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Added "service stop" command to stop specific services. |
a13b1245bee0b6524b4aeb3c8fd9e34af648b746 |
|
29-Jun-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Implement user and auth cache flush to server |
a18ba96c4ecebc9386b92385c546c868f1eae82e |
|
21-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Fixed --long-parameters handling |
e93184a9055c2530366dfe617e07199603c399dd |
|
06-Jun-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: remove autoclose parameter from [io]_stream_create_fd
Use [io]_stream_create_fd_autoclose() for autoclose. |
d9a7e950a9cd21f2b4a90ec7759fca9e8fcc7995 |
|
05-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Fixed mismatched bool vs. int/pointer handling
I don't think these fix any actual bugs. |
68eb16778de5e694e4700c3631fa7f1919f18c49 |
|
29-Apr-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-master, doveadm: remove mountpoint-list.* and doveadm mount commands |
6a8c95b0693c93601e948e06bfe1f89abdd43307 |
|
29-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm-server: Fixed running multi-word commands.
The problem with for example "mailbox status" command is that:
- doveadm cli: argv[0] = "mailbox", argv[1] = "status"
- doveadm-server: argv[0] = "mailbox status"
So with doveadm cli we'll now instead just skip over words until argv[0]
is the last word of the command ("status"). |
36a052b7bd94ccb47abbb6b15c1380f03780ba20 |
|
29-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Code cleanup - always use const char *const[] type for argv.
Needed to fix compiler warnings in the following patch. |
2029c2cb37d7308e74329c9a15b6cf07a3468314 |
|
01-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: A bit nicer way to implement doveadm_cmd_param_array() returning C-string array
So replacement of 4afc67eb9, which I accidentally pushed before remembering
about this other way. |
6eb1a7a7ae2c1dfff6731956ade08f9a4a7c791a |
|
01-Mar-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-kick: Rewrite to ver2 infra |
99819adc9638200bc2ec1b68da9d2c68e8435740 |
|
01-Mar-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-who: Rewrite to ver2 infra |
4afc67eb96f8d6b7dc94d63d3c7fe4f556c4fcee |
|
01-Mar-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Changed doveadm_cmd_param_array() to return C-string array instead of ARRAY()
We could support both with separate functions, but perhaps this one is enough. |
0746d8c498e2bb336399c37715d4fef9d64560c7 |
|
28-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-cmd: Support non-strings in compat wrapper |
aaa1b6bb4cd2d7f8f4e7977d61176ea1c8f7e32b |
|
28-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Changed v2 command APIs to be easier to use. |
3b759465ad5088a8d491b49c9ebb0dc9d3f66f7e |
|
26-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Code cleanup - Removed unnecessary pointer checks.
Originally for some reason added by e16cdc182. |
8fdec34605d98765a9eec3456cbfe6cde6bac477 |
|
26-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Add more consts to avoid a cast breaking strict-aliasing rules. |
79bbb900ffba886779474dfb04c41408f0ba0602 |
|
26-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Added struct doveadm_cmd_attributes, which is passed around instead of argc/argv |
7616a1520f0d8ee5cc96f6b044c7fde1a9f9798c |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-penalty: Convert to ver2 infra |
db8b229230860a6c12daa0017a49396986368897 |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Code cleanup - coding style fixes for doveadm_cmd_param*() accessors |
79ec87ea6861e2dd447f69ab44a7cc4e4fce3fdd |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-cmd: Add CMD_PARAM_IP |
cd75585e26420cef09cc699c6e02ab46e21937d1 |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Remove return value from ver2 cmd() - doveadm_exit_code is enough |
fb8519306c326ba8384280a67479963e583c785a |
|
26-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-cmd: Constify doveadm_cmd_param_*() usage |
7a8ef11587fd50d5888223fc3d91911775a21ba5 |
|
22-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Added doveadm_cmd_get_ver2() helper |
1e8a6a8708b612eee65f83ef6874aab94b15eb50 |
|
22-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Free istream parameters everywhere
Based on patch by Aki Tuomi |
7d500ecf27acc5b65615ee9e72d6da6bacf799d2 |
|
22-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Minor code cleanup - rename doveadm_cmd_find*() to doveadm_cmd_find_with_args*() |
3d27e1102558215203b73c58a2cba84dccf0dd1a |
|
22-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Code cleanup - remove unnecessary NULL sets and checks |
368ec06f20b95d29d0bbd5655030048d060a2582 |
|
22-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Fixed memory leak at deinit |
676d5601a8e087b25eb4dd5509079ab832e66831 |
|
22-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm-stats: Use ver2 structures |
f169d423d8db89e36f764263aa4cfe46c62d5a2b |
|
21-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Fixed using array type parameters. |
9098289766c3658a3e398f8eee81f18d5c2c9d13 |
|
21-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Fixed assert-crash when command with CMD_PARAM_FLAG_DO_NOT_EXPOSE was used. |
25f12bc904278f8ad181a5056e2eee5dd3ab0b6f |
|
21-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Fixed support for --long-option arguments |
0755a3bc18142abe77e932ed94c8d9c360b8f17a |
|
20-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Fix for previous attempt to make static analyzer happier. |
4e96840f7a486d7fc72f8d7069a8b1e47af570c6 |
|
19-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Make static analyzer happier - cptr can't be NULL here. |
14102a0c5db8828ca8c7751ec96587fadc97a0bc |
|
19-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Use char type for short options instead of a string.
The ":" = "has parameters" can be determined from the type.
Also removed "?" checks since it wasn't actually used. |
05128fda80748e107bccdece0a3d23551e99e8f3 |
|
19-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
doveadm: Remove CMD_PARAM_NONE type, since it already defaulted to same as CMD_PARAM_BOOL |
68cc278710182485b6c09e9a9ff8db90a727f343 |
|
19-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Use ver2 structures for stop & reload. |
14af7be4aa26d55c341cd6efe32bb2add2c39830 |
|
19-Feb-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
doveadm: Add infrastructure for doveadm_cmd_ver2
Version 2 commands have named parameters, which also have types. This is
especially useful for reading input from HTTP/JSON API. This also simplifies
the parameter parsing for command line input.
For v2.3 the plan is to replace all the old doveadm_cmds with this new
version and get rid of the _ver2 suffixes. But for now we'll have two
versions of commands.
For backwards compatibility with old commands we have also implemented
wrappers so that v2 structs can be defined and there's a function to convert
the named parameters to old v1 style args[] string, so the old command
handlers can still be run. This will also be removed in v2.3.
This change also adds requirement for getopt_long(). It's already available
in all the Linuxes and BSDs, so this shouldn't be too big of a requirement.
Other systems can install it from an external library. |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
55accf49e32ff93bfdd92961cb54ccc8c329147c |
|
12-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
doveadm: Moved commands related code to doveadm-cmd.[ch]
Commands are already split for command line-only commands and commands that
can be run via doveadm-server also. |