Mercurial > dovecot > core-2.2
changeset 18528:956e152467de
script: Another comment update about protocol - the previous one was wrong.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 06 May 2015 14:14:09 +0300 |
parents | cf9e0cbf55a9 |
children | 5fce0eaa75d6 |
files | src/util/script.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/util/script.c Wed May 06 11:10:09 2015 +0300 +++ b/src/util/script.c Wed May 06 14:14:09 2015 +0300 @@ -79,7 +79,7 @@ VERSION .. <lf> [alarm=<secs> <lf>] - [noreply <lf>] + "noreply" | "-" (or anything really) <lf> arg 1 <lf> arg 2 <lf> @@ -87,8 +87,9 @@ <lf> DATA - It could be thought of either as a feature or a bug that alarm and - noreply settings are mixed together with regular args.. + This is quite a horrible protocol. If alarm is specified, it MUST be + before "noreply". If "noreply" isn't given, something other string + (typically "-") must be given which is eaten away. */ alarm(SCRIPT_READ_TIMEOUT_SECS); scanpos = 1;