summaryrefslogtreecommitdiff
path: root/fml/lib/Mail/Message.pm
AgeCommit message (Collapse)Author
2001-06-02clean up documentfukachan
2001-05-18parse() can accpet either file or fd (file descriptor).fukachan
2001-05-06update documents to reflect Mail::Message::*fukachan
2001-05-06replace create($me, $args) with _build_message($me, $args) sincefukachan
create() is ambiguous (what it creates ?). add several comments on what new() and _build_message() do.
2001-05-05nuke data_type().fukachan
replace data_type() with get_data_type(). define header_data_type() method to retrieve the data type of the whole mail message.
2001-04-15fix regexp to extrace type from content-type:fukachan
we check preamble exists or not more rigorously to avoid to misread broken(?) mulitpart data.
2001-04-15smtpsvc returns boundary = "boundary" formatfukachan
2001-04-15mime *type is case insensitive.fukachan
align types to be lowercase
2001-04-13we can handle broken multipart message now, I believe.fukachan
"broken" implies the folloing type message: * It says Content-Type: multipart but has no multipart block within it. * multipart without close-delimiter our analyzer loop does do { alloc a new part + delimiter } while ( not reach the end and non-zero data part ). modify _get_next_pos() which returns (maxlen, maxlen) if broken condition is satisfied. It means the next part has zero data, so the next "alloc a new part" process is ignored in analyzer loop.
2001-04-12corrent how to parse broken multipart messagefukachan
fix "text/rfc822-headers" type handling since duplicated "text/rfc822-headers" parts may appear. we check the duplication always.
2001-04-12enforce to parse broken multipart message ;)fukachan
bug fix to parse Content-Type: ... phrase
2001-04-12debug on if $ENV{'debug'} is defined.fukachan
add several debug codes anywhere. define rfc822_message_body_head() which uses new find() method. It returns the head object of body parts in a chain of Mail::Message objects. define rfc822_message_body() is an alias of rfc822_message_body_head(). Content-Type:.*boundary= is case insenstive. size() checks the given object type. Its check is fundamental but may be effective.
2001-04-10use text/rfc822-headers not a fake rfc822/message.headerfukachan
2001-04-09define nth_paragraph()fukachan
2001-04-08define find() to search specified object.fukachan
modify data_type() to search data_type in $self. define header() and data() methods to retrive $self's header and data (body) part. redefine _header_mime_boundary() and _header_data_type() as internal method and nuke public mime_boundary() method.
2001-04-08fix Content-Type: parsingfukachan
2001-04-08modify object format. It has data_info and align the name syntax tofukachan
data_xxx if could. By default, a chain of objects follows: undef -> header (type == rfc822/message.header) -> body -> undef or undef -> header -> body -> body -> .. -> undef rename %data_type related things: s/%data_type/%virtual_data_type/ s@_multipart_XXX/plain@multipart.XXX/ print() handles the object with the data_type == Mail::Header or FML::Header to print header string. dup_header() duplicates the header and the first object of the body. parse() method parses the given data to a chain of Mail::Message objects which contains the header and body. rfc822_message_header() and rfc822_message_body() return the corrsponding Mail::Message object in a chain. add several utility functions: import mime_boundary(header), data_type(header) from FML::* class. define header_size(), body_size() and envelope_sender().
2001-04-07clena up messagefukachan
2001-04-07change print() output mode to "raw" by default. We preparefukachan
reset_print_mode() and set_print_mode() to control print()'s output mode. modify function nameds as follows: s/head/head_message/ s/last/last_message/ s/next_chain/next_message/ s/prev_chain/prev_message/
2001-04-06correct method name and internal variable names. now we use data andfukachan
data_type mainly by default not content_*.
2001-04-06nuke orphan $imail-message-0-2fukachan
2001-04-06nuke AUTOLOAD to avoid ambiguous methodfukachan
2001-04-06define head() and last() methodfukachan
2001-04-05s/chain/next_chain/fukachan
2001-04-03Initial revisionfukachan