Re: Script had stoped working after Perl update
Mark Overmeer <[email protected]> Tue, 11 Jan 2005 16:03:07 +0100
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Organization | MARKOV Solutions |
| Message-ID | <[email protected]> |
* Asta Adomaityte ([email protected]) [050111 15:49]: > 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, No, that is how maildir works. It adds the status flags to the filename, so you can see the message's status by simply doing an 'ls'. That is smart, because it is fast. > 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? This may be a case of double quoting: sometimes you see "'thing'" Catch the e-mail address before an insert attempt is being made. When you use my $to = $msg->study('to'); my @to = defined $to ? $to->addresses : (); you will have much better address parsing. The default uses Mail::Address as parser, which doesn't understand a lot of the more complex address syntax, like address groups. -- MarkOv ------------------------------------------------------------------------ drs Mark A.C.J. Overmeer MARKOV Solutions [email protected] [email protected] http://Mark.Overmeer.net http://solutions.overmeer.net