X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdirectory.pl;fp=cmd%2Fdirectory.pl;h=d1b91ffa4c23c956756ba2853dd0fefb59f2363d;hb=78ed3f6025103ec1c47c90725e37b417647d83c8;hp=0000000000000000000000000000000000000000;hpb=2663e17b1d546b5b6068825f5964bc684e6131cb;p=spider.git diff --git a/cmd/directory.pl b/cmd/directory.pl new file mode 100644 index 00000000..d1b91ffa --- /dev/null +++ b/cmd/directory.pl @@ -0,0 +1,22 @@ +# +# show the contents of the message directory +# +# Copyright (c) Dirk Koopman G1TLH +# +# $Id$ +# + +my ($self, $line) = @_; +my @f = split /\s+/, $line; +my @ref = DXMsg::get_all(); +my $ref; +my @out; + +foreach $ref (@ref) { + next if $self->priv < 5 && $ref->private && $ref->to ne $self->call; + push @out, sprintf "%6d %s%s%5d %8.8s %8.8s %-6.6s %5.5s %-30.30s", + $ref->msgno, $ref->private ? 'p' : ' ', $ref->read ? '-' : ' ', $ref->size, + $ref->to, $ref->from, cldate($ref->t), ztime($ref->t), $ref->subject; +} + +return (1, @out);