summaryrefslogtreecommitdiff
path: root/fml/lib/Mail/Message.pm
AgeCommit message (Collapse)Author
2002-02-01remove $ENV{debug} based toggle flagsubdir-basefukachan
2002-01-18__next_message() -> _next_message_is()fukachan
__prev_message() -> _prev_message_is()
2002-01-16oops, forgotten. fix head_message() -> __head_message()fukachan
2002-01-16change Mail::Message naming convention.fukachan
public -> private: o head_message o last_message o next_message o prev_message prefix change: o rfc822_message_ -> whole_message_ o get_first_plaintext_message() -> find_first_plaintext_message() o get_encoding_mechanism() -> encoding_mechanism() o get_data_type() -> data_type() o get_data_type_list() -> data_type_list() renamed: o get_offset() - >offset_pair() o header_in_body_part() -> message_fields() o data_in_body_part() -> message_text() where we use RFC822 flabour naming convention. rfc822 says "message = fields + text" and rfc2047 says "message" as defined in RFC 822, with all header fields optional.
2002-01-13oops, fix typo (not remove =cut before the last 1;)fukachan
2002-01-13remove \s*$fukachan
2002-01-13reorder find() definition locationfukachan
2002-01-13use rfc822_message_ as prefix for method to manipulate the wholefukachan
message.
2002-01-13header_size() -> whole_message_header_size()fukachan
body_size() -> whole_message_body_size()
2002-01-13nuke C<> in =head2 function()fukachan
2002-01-13remove header(), data() methodfukachan
2002-01-13update comments, copyright. FNF-ify.fukachan
fix argument.
2001-12-22remove \s*$fukachan
2001-10-29_get_mime_header() checks offset boundaryfukachan
return default pair if overrun.
2001-10-27oops, should be s///mi to trap encodingefukachan
2001-10-27change method: data() -> data_in_body_part()fukachan
2001-10-21check defined $header->get(content-type)fukachan
2001-10-21check more defined() checkfukachan
2001-10-20bug fix: $InComingMessage should not local scope. modify it to SCALAR REFfukachan
bug fix: data_in_body_part() returns whole data not the first 512 bytes bug if $size is specified as argument, return the first $size bytes. feature: get_data_type_list() returns ARRAY of xxx/yyy by default for other method use. If under $debug mdoe, it shows verbose output.
2001-09-23implement get_offset():fukachan
return offset information in the data. return value is ARRAY
2001-09-23implement get_encoding_mechanism() in Mail::Message.fukachan
return encoding type for specified Mail::Message not whole mail. The return value is one of base64, quoted-printable or undef.
2001-08-23more debug to show {header,body}_sizefukachan
2001-08-02handle buffer (MIME part) without trailing "\n".fukachan
index("\n") can pick up both the last "\n" of the MIME part and "\n" of MIME delimiter string "CRLF delimiter" since index() searches the whole not a part of the mail. We need to identify these two cases restrictly.
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