From: Matthias A. <mat...@gm...> - 2008-10-18 10:53:58
|
Michelle Konzack schrieb am 2008-09-27: > Am 2008-09-22 17:59:18, schrieb Stefano Toni: > > Hello Rob, I would like to know if exist an automatic retrieved. I cannot > > known all the subfolder of all users. > > The only way to do this is to use a smapp perl script using > > "libnet-imap-simple-perl" (Debian Package) > > to get a list of packages and then add them dynamicaly to the command- > line. This is, what I do if I have to migrate a Winsuck server to a > Linux one. > > ----[ '~/bin/get_imap_folders' ]---------------------------------------- ... > my @mb=$imap->mailboxes; > > foreach (@mb){ > print "$_$SEPARATOR"; > } Perl hint, the last three lines are nearly the same as: print join(@mb, $SEPARATOR), "\n"; The latter does not emit a trailing $SEPARATOR and adds a "\n" (line feed). -- Matthias Andree |