Package: dovecot-core
Version: 1:2.2.13-5
Severity: normal

Hi,

in dovecot-core.config you use:
if [ ! -z "`which doveconf > /dev/null 2>&1`" ]; then
which will never be true. As you redirect stderr _and_ stdout of 'which',
the string will always be zero, so the '-z' will always be true and the '!'
will always be false. To fix that, and make stuff more readable, just use:
if which doveconf > /dev/null 2>&1; then
instead. 'which' already returns false if the program does not exist.

If you want to, I can prepare a pull request or even a package, just drop
me a line. I also read you consider redesigning the whole certificate
generation code. If you could articulate your goal of what should happen,
I could try to implement that cleanly.

Cheers,

Mika

-- Package-specific info:

dovecot configuration
---------------------
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.14-2-amd64 x86_64 Debian jessie/sid 
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_location = maildir:~/.Maildir
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  driver = pam
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
protocols = " imap"
ssl = no
userdb {
  driver = passwd
}

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (650, 'testing'), (450, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dovecot-core depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.53
ii  libbz2-1.0             1.0.6-7
ii  libc6                  2.19-11
ii  liblzma5               5.1.1alpha+20120614-2
ii  libpam-runtime         1.1.8-3.1
ii  libpam0g               1.1.8-3.1
ii  libssl1.0.0            1.0.1i-2
ii  libwrap0               7.6.q-25
ii  openssl                1.0.1i-2
ii  ucf                    3.0030
ii  zlib1g                 1:1.2.8.dfsg-2

dovecot-core recommends no packages.

Versions of packages dovecot-core suggests:
ii  dovecot-gssapi        1:2.2.13-5
ii  dovecot-imapd         1:2.2.13-5
ii  dovecot-ldap          1:2.2.13-5
pn  dovecot-lmtpd         <none>
pn  dovecot-lucene        <none>
pn  dovecot-managesieved  <none>
ii  dovecot-mysql         1:2.2.13-5
ii  dovecot-pgsql         1:2.2.13-5
pn  dovecot-pop3d         <none>
ii  dovecot-sieve         1:2.2.13-5
pn  dovecot-solr          <none>
ii  dovecot-sqlite        1:2.2.13-5
ii  ntp                   1:4.2.6.p5+dfsg-3

Versions of packages dovecot-core is related to:
ii  dovecot-core [dovecot-common]  1:2.2.13-5
pn  dovecot-dbg                    <none>
pn  dovecot-dev                    <none>
ii  dovecot-gssapi                 1:2.2.13-5
ii  dovecot-imapd                  1:2.2.13-5
ii  dovecot-ldap                   1:2.2.13-5
pn  dovecot-lmtpd                  <none>
pn  dovecot-managesieved           <none>
ii  dovecot-mysql                  1:2.2.13-5
ii  dovecot-pgsql                  1:2.2.13-5
pn  dovecot-pop3d                  <none>
ii  dovecot-sieve                  1:2.2.13-5
ii  dovecot-sqlite                 1:2.2.13-5

-- debconf information:
* dovecot-core/create-ssl-cert: false
  dovecot-core/ssl-cert-name: localhost
* dovecot-core/ssl-cert-exists:


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to