Paul Taylor writes:
> When I use qmail-inject < ./filename it only reads the top of the
> file for the headers and therefore the whole ten messages get sent as
> one to the first recipient.
#!/usr/bin/perl
while(<>) {
if (/^From /) {
open(STDOUT, "|/var/qmail/bin/qmailinject");
next;
}
print;
}
--
-russ <nelson@crynwr.com> http://www.crynwr.com/~nelson
Crynwr Software sells network driver support | PGP ok
521 Pleasant Valley Rd. | +1 315 268 1925 voice | Peace, Justice, Freedom:
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | pick two (only mostly true)
> When I use qmail-inject < ./filename it only reads the top of the
> file for the headers and therefore the whole ten messages get sent as
> one to the first recipient.
#!/usr/bin/perl
while(<>) {
if (/^From /) {
open(STDOUT, "|/var/qmail/bin/qmailinject");
next;
}
print;
}
--
-russ <nelson@crynwr.com> http://www.crynwr.com/~nelson
Crynwr Software sells network driver support | PGP ok
521 Pleasant Valley Rd. | +1 315 268 1925 voice | Peace, Justice, Freedom:
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | pick two (only mostly true)