Re: $head->get issues possibly.
Mark Overmeer <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Organization | MARKOV Solutions |
| Message-ID | <[email protected]> |
* Roderick A. Anderson ([email protected]) [040405 21:41]: > On Mon, 5 Apr 2004, David A Golden wrote: > Well since an empty From is OK (I don't think a missing From though) then > in that case it should return and empty string but in the case of missing > headers I agree it should be undef'd. Even if it is not OK, you probably still have to accept it. The only way to get things to work is to follow the RFCs as closely as you can when producing data, and be as flexible as you can in accepting it. The worst e-mail clients are the worst in following the standards (do I have to give names?) So: even if a message should contain a From field, you still need to accept messages without them. Not only spam, but also many other automatically generated messages, lack this line.... I hope you found enough solutions to get your program to work. -- MarkOv ------------------------------------------------------------------------ drs Mark A.C.J. Overmeer MARKOV Solutions [email protected] [email protected] http://Mark.Overmeer.net http://solutions.overmeer.net