On 01/23/2013 03:10 PM, Herwin Weststrate wrote:
Here is what I came up with, if this seems to make sense and is
considered as a patch, *please do proofread and test it, I did no
such thing on my end.*

One small remark: the "+" after ssl_key and ssl_cert (lines 122+123) mean "match one or more of the last character". Thus, a config line like "ssl_certttttt=/foo/bar" would match too. The line should be fine without the "+" here. And it will break if the filename contains whitespace, but I'm not sure if dovecot supports this (and imho it's a stupid idea anyway).


Yes you're right, it makes no sense, that + sign should be omitted. Sorry.

awk is probably faster anyway:
$(awk -F '/\s|=|<' '/^\s*ssl_cert/ {print $3; exit}' /etc/dovecot/conf.d/10-ssl.conf) $(awk -F '/\s|=|<' '/^\s*ssl_key/ {print $3; exit}' /etc/dovecot/conf.d/10-ssl.conf)


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to