Re: Komplettes *nix Maildir versenden?

From: Nicolas Rachinsky <list(at)rachinsky.de>
Date: Mon, 28 Jun 2004 18:47:08 +0200

* Oliver Fromme <olli(at)lurza.secnetix.de> [2004-06-28 11:45 +0200]:
> Nicolas Rachinsky <list(at)rachinsky.de> wrote:
> > [...]
> > find maildir -type f -print0 |sh -c 'sendmail neue(at)adres.se <"$1"' -- --
>
> Das funktioniert so nicht.

Ja, da ist was verlorengegangen, es sollte
find maildir -type f -print0 | xargs -0 -n 1 sh -c 'sendmail neue(at)adres.se <"$1"' -- --
heißen.

Ist aber auch nicht schön.

> Also so ungefähr:
>
> $ cd maildir
> $ for i in `find . -name tmp -prune -or -type f`; do sendmail ...
>
> oder
>
> $ cd maildir
> $ find . -name tmp -prune -or -type f | while read i; do sendmail ...

Sowas meinte ich. Danke.

Nicolas

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 28 Jun 2004 - 18:47:35 CEST

search this site