--- trunk/Nos.pm 2005/08/26 05:38:00 80 +++ trunk/Nos.pm 2005/08/29 14:53:53 83 @@ -739,6 +739,9 @@ =back +Date ranges are inclusive, so results will include messages sent on +particular date specified with C or C. + Each element in returned array will have following structure: my $row = { @@ -777,7 +780,7 @@ join users on users.id = user_id }; - my $order = qq{ order by date desc }; + my $order = qq{ order by date asc }; my $where; @@ -863,7 +866,10 @@ $self_path =~ s#/[^/]+$##; $self_path =~ s#/t/*$#/#; - $target .= qq#| cd $self_path && ./sender.pl --inbox="$list"#; + $target .= qq#"| cd $self_path && ./sender.pl --inbox='$list'"#; + + # remove hostname from email to make Postfix's postalias happy + $email =~ s/@.+//; if ($a->exists($email)) { $a->update($email, $target) or croak "can't update alias ".$a->error_check; @@ -1221,29 +1227,12 @@ } else { my $arg = shift; die "need list or email argument" unless ($arg->{'list'} || $arg->{'email'}); - return $nos->received_messages( $arg ); + return $nos->received_messages( %{ $arg } ); } } ### -=head1 UNIMPLEMENTED SOAP FUNCTIONS - -This is a stub for documentation of unimplemented functions. - -=head2 MessagesReceivedByDate - -=head2 MessagesReceivedByDateWithContent - -=head2 ReceivedMessageContent - -Return content of received message. - - my $mail_body = ReceivedMessageContent( id => 42 ); - - - - =head1 NOTE ON ARRAYS IN SOAP Returning arrays from SOAP calls is somewhat fuzzy (at least to me). It