Package: mailsyncdir
Version: maildirsync
Severity: minor
Tags: patch upstream

When running mailsyncdir with a command line like this:

maildirsync --recursive \
    -v -v \
    --alg md5 \
    --rsh "ssh -C -i $HOME/.ssh/id_ed25519 -l $USERNAME" \
    $HOME/Maildir \
    mail2.example.org:/var/mail/$USERNAME/Maildir \
    $HOME/state/maildirsync.bz2

The mailsyncdir tools shows multiple (up to 12) times the following message:

mailsyncdir: Use of uninitialized value in string ne at /usr/bin/maildirsync 
line 99.

This is due to line 99 in the maildirsync Perl script:
    if (reftype($OPT{$optname}) ne 'ARRAY') {

Replacing this line with:
    if (!(ref($OPT{$optname}) eq 'ARRAY')) {  

fixes the issue.

-- System Information:
Debian Release: 12.10
  APT prefers stable-security
  APT policy: (999, 'stable-security'), (990, 'stable'), (300, 'oldstable'), 
(299, 'oldoldstable'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-31-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to