Package: mb2md
Version: 3.20-2
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -r option does not do anything (it should remove an extension while
creating maldir name).
If you use such directory/mailbox structure :
[EMAIL PROTECTED]: test]$ ls -alR /tmp/test/Mail
/tmp/test/Mail:
total 24
drwxr-xr-x 3 bast bast 4096 2005-10-11 19:28 .
drwxr-xr-x 4 bast bast 4096 2005-10-11 19:36 ..
- -rw-r--r-- 1 bast bast 9886 2005-10-11 19:33 Local.sbd
and convert it
[EMAIL PROTECTED]: test]$ /usr/bin/mb2md -s /tmp/test/Mail/ -R -d
/tmp/test/Maildir -r sbd
convertit(.,"")
Skipping . : name begins with a '.'
convertit(..,"")
Skipping .. : name begins with a '.'
convertit(): Converting Local.sbd in /tmp/test/Mail/ to
/tmp/test/Maildir/.Local_sbd
destination = .Local_sbd
Source Mbox is /tmp/test/Mail//Local.sbd
Target Maildir is /tmp/test/Maildir/.Local_sbd
2 messages.
1 files processed.
the new maildir is created with "_extension" in its name :
[EMAIL PROTECTED]: test]$ ls -al /tmp/test/Maildir/
total 24
drwx------ 6 bast bast 4096 2005-10-12 09:59 .
drwxr-xr-x 4 bast bast 4096 2005-10-12 09:59 ..
drwx------ 2 bast bast 4096 2005-10-12 09:59 cur
drwx------ 5 bast bast 4096 2005-10-12 09:59 .Local_sbd
drwx------ 2 bast bast 4096 2005-10-12 09:59 new
drwx------ 2 bast bast 4096 2005-10-12 09:59 tmp
Looking at mb2md code, while creating maildir name, mb2md first
replaces all . with _, and then it tries to remove pattern \.$strip_ext$
from this name. As no dot is found, this pattern never matches.
Attached quick patch make -r option works, but it may not be the best
solution. ^_^
thanks.
- -- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (500,
'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages mb2md depends on:
ii libtimedate-perl 1.1600-5 Time and date functions for Perl
ii perl [perl5] 5.8.7-3 Larry Wall's Practical Extraction
mb2md recommends no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDTMXvilgeBOdeKhcRAgVoAKCI5tY7z5eYD5c7nJp8//cBNQY+RwCgkYLf
zCD8Ij4zAAJNi93FXd7857g=
=HhWK
-----END PGP SIGNATURE-----
--- /usr/bin/mb2md 2005-07-04 22:38:47.000000000 +0200
+++ /tmp/mb2md 2005-10-11 19:05:35.000000000 +0200
@@ -677,7 +677,7 @@
#
# if $strip_extension is defined,
# strip it off the $targetfile
- defined($strip_ext) && ($destinationdir =~ s/\.$strip_ext$//);
+ defined($strip_ext) && ($destinationdir =~ s/\_$strip_ext$//);
&convert("$mbroot/$oldpath/$dir","$dest/$destinationdir");
$mailboxcount++;
}