. $GRIMOIRE/config_query_multi.function
#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_multi DOVECOT_MAILSTORE                         \
                  'What mail storage support do you want?'   \
                  all                                        \
                  maildir                                    \
                  mbox                                       \
                  sdbox                                      \
                  mdbox                                      \
                  cydir                                      &&
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"

