. $GRIMOIRE/config_query_multi.function

# drop obsolete configuration options
persistent_remove DOVECOT_MAILSTORE &&

#if spell_ok gnutls ; then
#config_query_list DOVECOT_SSL 'Which SSL provider do you want?' \
#                  gnutls openssl none
#else
#config_query_list DOVECOT_SSL 'Which SSL provider do you want?' \
#                  openssl gnutls none
#fi                                                           &&

if [[ $DOVECOT_PIGEONHOLE == y ]]; then
config_query_option DOVECOT_PIGEONHOLE_OPTS                  \
                    'Do you want to use managesieve?'        \
                    y                                        \
                    "--with-managesieve"                     \
                    "--without-managesieve"
fi                                                           &&

config_query_list DOVECOT_NOTIFY                             \
                  'What filesystem notification method do you want?' \
                  inotify                                    \
                  dnotify                                    \
                  none                                       &&
config_query_list DOVECOT_IOLOOP                             \
                  'What ioloop do you want'                  \
                  poll                                       \
                  epoll                                      &&
config_query_option DOVECOT_OPTS                             \
                    'Build with GENERIC SQL support'         \
                    y                                        \
                    "--with-sql"                             \
                    "--without-sql"                          &&
config_query_option DOVECOT_OPTS                             \
                    'Build with NSS support'                 \
                    y                                        \
                    "--with-nss"                             \
                    "--without-nss"                          &&
config_query_option DOVECOT_OPTS                             \
                    'Install documentation'                  \
                    y                                        \
                    "--with-docs"                            \
                    "--without-docs"

