if  spell_ok  courier
then
    if  [[  `gaze DETAILS courier | grep VERSION= | cut -d= -f2`  <  "0.48.0"  ]]
    then
        config_query  CAUTHLIB_MIGRATE                                                             \
                      "Do you want to migrate the existing courier authentication configuration?"  \
                      y
    fi
elif  spell_ok  courier-imap
then
    if  [[  `gaze DETAILS courier-imap | grep VERSION= | cut -d= -f2`  <  "4.0.0"  ]]
    then
        config_query  CAUTHLIB_MIGRATE                                                                  \
                      "Do you want to migrate the existing courier-imap authentication configuration?"  \
                      y
    fi
fi                                                                                    &&

config_query_list  CAUTHLIB_AUTHDB                                                    \
                   "Which userdb database would you like to use for authentication?"  \
                   db  gdbm

