Re: Script had stoped working after Perl update
Asta Adomaityte <[email protected]> Tue, 11 Jan 2005 16:49:42 +0200
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
Mark Overmeer wrote: >* 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. > > I removed all ':' and had added trailing ':' maildir did very strange thing for my eyes. It renaimed files like that: original 366-000000.1104384875.16463_0.newmail.eiendomsnett.no: after proceed 366-000000.1104384875.16463_0.newmail.eiendomsnett.no:2, But it works less-more if only add ':' at the filename end without removing ':' in the filename. > > >>my @messages = $folder->messages(0); >> >> > >my $message = $folder->message(0); > > This will be only single first message. For the all list it should be my @messages = $folder->messages(); > > >>sub collect_to($) >> if(my $to = $part->head->get('to')) >> { push @to, $to->addresses; >> >> > > push @to, $part->to; > > Thanks, after all scripts works and I found another problem. one of subscribers use to enter his mail like [email protected]' When mySQL (4.0.x) reports problem of course: "....check right syntax to use near ''[email protected]''' " Does anybody has such kind of problem? Thanks in advance Asta