#!/bin/sh -e

# Versioning
version=2:2.2.0-1.pre9.1

# Use debconf baby
. /usr/share/debconf/confmodule || exit
db_version 2.0

db_input "low" imp/welcome || true
db_go

db_input "critical" "horde/debconf" || true
db_go
db_get "horde/debconf"
if [ "$RET" = "yes" ]; then
  db_input "critical" "imp/server" || true
  db_go
  db_input "critical" "imp/servtype" || true
  db_go
  db_input "high" "imp/port" || true
  db_go
  db_input "critical" "imp/from_server" || true
  db_go
  db_input "medium" "imp/use_server_list" || true
  db_go
  db_input "high" "imp/root_url" || true
  db_go
  db_input "high" "imp/graphics_url" || true
  db_go
  db_input "medium" "imp/include_dir" || true
  db_go
  db_input "high" "imp/folders" || true
  db_go
  db_input "medium" "imp/save_sent_mail" || true
  db_go
  db_input "medium" "imp/sent_mail" || true
  db_go
  db_input "medium" "imp/drafts" || true
  db_go
  db_input "low" "imp/show_dotfiles" || true
  db_go
  db_input "medium" "imp/path_to_mswordview" || true
  db_go
  db_input "medium" "imp/path_to_ispell" || true
  db_go
  db_input "low" "imp/path_to_dpkg" || true
  db_go
  db_input "low" "imp/path_to_rpm" || true
  db_go
  db_input "low" "imp/path_to_unzip" || true
  db_go
  db_input "low" "imp/path_to_tar" || true
  db_go
  db_input "medium" "imp/minimum_popups" || true
  db_go
  db_input "low" "imp/error_level" || true
  db_go
  db_input "low" "imp/max_execution_time" || true
  db_go
  db_input "high" "imp/use_ldap_search" || true
  db_go
  db_input "high" "imp/use_imap_subscribe" || true
  db_go
  db_input "low" "imp/user_change_server" || true
  db_go
  db_input "low" "imp/user_change_port" || true
  db_go
  db_input "low" "imp/user_change_servtype" || true
  db_go
  db_input "low" "imp/user_change_folder" || true
  db_go
  db_input "low" "imp/user_change_from" || true
  db_go
  db_input "low" "imp/user_change_fullname" || true
  db_go
  db_input "low" "imp/user_use_addressbook" || true
  db_go
  db_input "low" "imp/user_use_folders" || true
  db_go
  db_input "low" "imp/custom_from_hook" || true
  db_go
  db_input "medium" "imp/newmail_popup" || true
  db_go
  db_input "low" "imp/refresh_delay" || true
  db_go
  db_input "medium" "imp/append_header" || true
  db_go
  db_input "medium" "imp/append_trailer" || true
  db_go
  db_input "low" "imp/text_parts_inline" || true
  db_go
  db_input "high" "imp/language" || true
  db_go

fi

db_input "critical" "imp/dbconfigured" || true
db_go
db_input "critical" "imp/recheck" || true
db_go

