Geert Stappers:
> On Sat, Sep 17, 2016 at 07:55:17PM -0400, Wietse Venema wrote:
> > Geert Stappers:
> > >
> > } wanted
> > >
> > > mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" }
> > > # $7=sender, $8=recipient1, $9=recipient2
> > >
On Sat, Sep 17, 2016 at 07:55:17PM -0400, Wietse Venema wrote:
> Geert Stappers:
> >
> } wanted
> >
> > mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" }
> > # $7=sender, $8=recipient1, $9=recipient2
> > { if ($8 == "u...@example.com" &
Geert Stappers:
>
> Hi,
>
> My goal is to have
>
> mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" }
> # $7=sender, $8=recipient1, $9=recipient2
> { if ($8 == "u...@example.com" && $9 == "")
> print $1 }
>
Hi,
My goal is to have
mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" }
# $7=sender, $8=recipient1, $9=recipient2
{ if ($8 == "u...@example.com" && $9 == "")
print $1 }
' | tr -d '*!' | postsu