Package: mailagent
Version: 1:3.1-81-2
Severity: normal
Tags: upstream patch
When the LEAVE command is used, messages should be dropped into the
system mailbox of the user (/var/spool/mail/$user, which is the value of
the $mailfile variable, defined in /usr/bin/mailagent ). Instead of
that, the messages are dropped into ~/mbox.$user. The patch attached to
this bug report fixes the problem. The bug comes clearly from a typo and
it is surprising that it has not yet been noticed.
Rafael
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.10.62-xenU-25-0e6777a-i386 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages mailagent depends on:
ii debconf [debconf-2.0] 1.5.58
ii exim4 4.86-7
ii exim4-daemon-heavy [mail-transport-agent] 4.86-7+b1
ii libc6 2.21-6
ii libperl4-corelibs-perl 0.003-2
ii perl 5.22.1-4
mailagent recommends no packages.
mailagent suggests no packages.
-- debconf information:
shared/news/organization: --none--
--- mailagent-3.1-81.orig/agent/magent.sh
+++ mailagent-3.1-81/agent/magent.sh
@@ -717,7 +717,7 @@
$mailbox =~ s/%~/$cf'home/go; # %~ stands for the user directory
$mailbox =~ s/%L/$cf'user/go; # %L stands for the user login name
$mailbox =~ m|(.*)/.*|; # Extract dirname
- $mailbox = "$cf'home/mbox.$cf'user" unless (-f "mailbox" || -w "$1");
+ $mailbox = "$cf'home/mbox.$cf'user" unless (-f "$mailbox" || -w "$1");
&add_log("WARNING using $mailbox for mailbox") if $loglvl > 5;
}
$mailbox;