Hi,

currently, it is only possible to script one part of the
authentication by using PassCmd for IMAP backends. On some
systems, though, it is not only the password that needs to be
retrieved via a script, but also the user part. This may for
example be the case in systems where the username is derived from
the hostname.

This PR adds a new configuration key UserCmd, which acts the same
as the PassCmd key. So with this patch series, you can for
example use the following configuration to fix the above usecase:

    UserCmd "bash -c \"printf '%s...@example.org' $(hostname)\""

Regards
Patrick


Patrick Steinhardt (3):
  drv_imap: extract function to get command output
  drv_imap: add ability to script user query
  drv_imap: avoid multiple invocations of pass/user command

 NEWS           |  2 ++
 src/drv_imap.c | 91 +++++++++++++++++++++++++++++++++++++---------------------
 src/mbsync.1   | 10 +++++++
 3 files changed, 70 insertions(+), 33 deletions(-)

-- 
2.16.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to