30 Nov
2010
30 Nov
'10
2:19 a.m.
On 27.11.2010, at 23.17, Axel Luttgens wrote:
"doveadm auth user" could be an alternative, but it imperatively requires a tty, which may not always easily nor efficiently be available in a scripting environment.
- // A very crude attempt... this supposes that STDIN not being a tty
- // may never happen outside of "doveadm auth", and that STDIN will
- // always be clean.
I'm also not sure if there's any better way to do this.. There is anyway only two users of askpass() and in both situations it should be pretty safe to just use stdin. Committed:
http://hg.dovecot.org/dovecot-2.0/rev/6ea1671108f1 http://hg.dovecot.org/dovecot-2.0/rev/719ce27f9955