Package: sa-learn-cyrus Version: 0.3.2-2 Severity: normal These settings cause sa-learn-cyrus to fail: spam_folder = 'Junk.Learn.Spam' ham_folder = 'Junk.Learn.Ham'
This is because the substitution that converts from cyrus "." notation to unix "/" notation isn't global so it only changes the first ".". The following patch fixes the issue for me: --- sa-learn-cyrus.orig 2010-10-10 19:46:20.000000000 -0700 +++ sa-learn-cyrus 2010-10-10 19:45:48.000000000 -0700 @@ -262,9 +262,9 @@ for my $learn ('spam' , 'ham') { my $learn_folder = $conf{"mailbox:$learn" . '_folder'}; # if unixhierarchy is set, veryify folderstring [FM] - $learn_folder =~ s/\./\// if $conf{'imap:unixhierarchysep'} =~ /^[yY]/; + $learn_folder =~ s/\./\//g if $conf{'imap:unixhierarchysep'} =~ /^[yY]/; my $learn_path = $learn_folder; - $learn_path =~ s/\./\//; + $learn_path =~ s/\./\//g; $learn_folder = "$imap_mail_box$imap_unixhierarchysep$learn_folder"; $learn_path = $imap_mail_path . '/' . $learn_path; Thanks, David -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.35-trunk-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages sa-learn-cyrus depends on: ii cyrus-imapd-2.2 2.2.13-19 Cyrus mail system - IMAP support ii perl 5.10.1-14 Larry Wall's Practical Extraction ii spamassassin 3.3.1-1 Perl-based spam filter using text sa-learn-cyrus recommends no packages. sa-learn-cyrus suggests no packages. -- Configuration Files: /etc/mail/spamassassin/sa-learn-cyrus.conf changed: [global] tmp_dir = /tmp lock_file = /var/lock/sa-learn-cyrus.lock verbose = 1 simulate = no [mailbox] include_list = '' include_regexp = '.*' exclude_list = '' exclude_regexp = '' spam_folder = 'Junk.Learn.Spam' ham_folder = 'Junk.Learn.Ham' remove_spam = yes remove_ham = yes [sa] site_config_path = /etc/spamassassin prefs_file = /etc/spamassassin/local.cf learn_cmd = /usr/bin/sa-learn user = mail group = spam-bayes debug = no [imap] base_dir = /var/spool/cyrus/mail initial_letter = yes domains = '' unixhierarchysep = no purge_cmd = /usr/sbin/ipurge user = cyrus -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org