--- trunk/Nos.pm 2005/08/24 21:27:40 75 +++ trunk/Nos.pm 2005/08/24 22:11:00 76 @@ -727,7 +727,17 @@ email => "john.doe@example.com", ); -This method is used by C when receiving e-mail messages. +Each element in returned array will have following structure: + + { + id => 42, # unique ID of received message + list => 'My list', # useful only of filtering by email + ext_id => 9999, # ext_id from message user + email => 'jdoe@example.com', # e-mail of user + bounced => 0, # true value if message is bounce + date => '2005-08-24 18:57:24', # date of recival in ISO format + } + =cut @@ -741,9 +751,11 @@ $arg->{'list'} = lc($arg->{'list'}); $arg->{'email'} = lc($arg->{'email'}); - my $rcvd = $self->{'loader'}->find_class('received')->search_received(); + my @out; - return $rcvd; + my $sth = $self->{'loader'}->find_class('received')->sql_received; + $sth->execute(); + return $sth->fetchall_hash; } @@ -1152,16 +1164,7 @@ You can specify just C or C or any combination of those. -It will return array of hashes with following structure: - - { - id => 42, # unique ID of received message - list => 'My list', # useful only of filtering by email - ext_id => 9999, # ext_id from message user - email => 'jdoe@example.com', # e-mail of user - bounced => 0, # true value if message is bounce - date => '2005-08-24 18:57:24', # date of recival in ISO format - } +For format of returned array element see C. =head2 MessagesReceivedByDate