Re: Script had stoped working after Perl update
Mark Overmeer <[email protected]> Tue, 11 Jan 2005 12:49:16 +0100
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Organization | MARKOV Solutions |
| Message-ID | <[email protected]> |
* Asta Adomaityte ([email protected]) [050111 11:15]: > Does somebody can say what changes I should do to make script workable > again with a MailBoxManager 2.059??? There have been some changes to Maildir is recent releases, but your report is not compact enough to be able to replay it at my system. The basics of Maildir must work because many tests are run on iti, although a test-set is never complete so mistakes can exist. > Cannot rename > /home/mail_users/failed_emails/new/002-00:00:00.1104550027.12918_0.newmail.eiendomsnett.no > to /new/:2,: No such file or directory at > /usr/lib/perl5/site_perl/5.8.2/Mail/Box/Maildir/Message.pm line 109. Your filename contains colons ':', which have a special meaning in maildir filenames. The last ':' is followed by the flags. Your problem will disappear if the filenames get an trailing ':' to start with. > my @messages = $folder->messages(0); my $message = $folder->message(0); > sub collect_to($) > if(my $to = $part->head->get('to')) > { push @to, $to->addresses; push @to, $part->to; -- MarkOv ------------------------------------------------------------------------ drs Mark A.C.J. Overmeer MARKOV Solutions [email protected] [email protected] http://Mark.Overmeer.net http://solutions.overmeer.net