Greetings I am trying to remove a bunch of mails from our mail queue. There are a lot. I know how to do them one by one but in this case it would take very long. all the mail were sent by dealer sales, and getting that list is easy, but I cant capture just the mail IDs. Here is where I am at now maybe there is an easier way :) root@etelgw-pinnacle:/var/spool/exim/input# exim -bp | grep dealer 6d 46K 1D91fW-0002aq-0e <dealers@pinnacle.co.za> 6d 46K 1D91ff-0002cc-EI <dealers@pinnacle.co.za> 6d 46K 1D91hH-0002vW-Ut <dealers@pinnacle.co.za> 6d 46K 1D91in-0003Gh-DX <dealers@pinnacle.co.za> 6d 46K 1D91jR-0003PS-Pu <dealers@pinnacle.co.za> 6d 46K 1D91kn-0003hJ-Kn <dealers@pinnacle.co.za> 6d 46K 1D91kt-0003iC-2X <dealers@pinnacle.co.za> 6d 46K 1D91mH-0003xN-0h <dealers@pinnacle.co.za> 6d 46K 1D91mm-00041p-TI <dealers@pinnacle.co.za> 6d 46K 1D91oq-0004PL-3s <dealers@pinnacle.co.za> 6d 46K 1D91si-00054q-Lo <dealers@pinnacle.co.za> 6d 46K 1D91xW-0005Wx-9S <dealers@pinnacle.co.za> I thought that here I could just add the cut -f command but it does not work What I need to grab here is the third field. root@etelgw-pinnacle:/var/spool/exim/input# exim -bp | grep dealer Of course if you have and easier way would you please share it with me TIA Chad
Try this: exim -bp | grep dealer | awk {'print $3'} -- Jota Omella Developers Corp. http://planetas.net On Tue, 15 Mar 2005 11:35:50 +0200, Chadley Wilson <Chadley@pinteq.co.za> wrote:
Greetings
I am trying to remove a bunch of mails from our mail queue. There are a lot.
I know how to do them one by one but in this case it would take very long.
all the mail were sent by dealer sales, and getting that list is easy, but I cant capture just the mail IDs.
Here is where I am at now maybe there is an easier way :)
root@etelgw-pinnacle:/var/spool/exim/input# exim -bp | grep dealer 6d 46K 1D91fW-0002aq-0e <dealers@pinnacle.co.za> 6d 46K 1D91ff-0002cc-EI <dealers@pinnacle.co.za> 6d 46K 1D91hH-0002vW-Ut <dealers@pinnacle.co.za> 6d 46K 1D91in-0003Gh-DX <dealers@pinnacle.co.za> 6d 46K 1D91jR-0003PS-Pu <dealers@pinnacle.co.za> 6d 46K 1D91kn-0003hJ-Kn <dealers@pinnacle.co.za> 6d 46K 1D91kt-0003iC-2X <dealers@pinnacle.co.za> 6d 46K 1D91mH-0003xN-0h <dealers@pinnacle.co.za> 6d 46K 1D91mm-00041p-TI <dealers@pinnacle.co.za> 6d 46K 1D91oq-0004PL-3s <dealers@pinnacle.co.za> 6d 46K 1D91si-00054q-Lo <dealers@pinnacle.co.za> 6d 46K 1D91xW-0005Wx-9S <dealers@pinnacle.co.za>
I thought that here I could just add the cut -f command but it does not work What I need to grab here is the third field.
root@etelgw-pinnacle:/var/spool/exim/input# exim -bp | grep dealer
Of course if you have and easier way would you please share it with me
TIA Chad
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Tue, Mar 15, 2005 at 10:41:27AM -0400, Javier Omella wrote:
Try this: exim -bp | grep dealer | awk {'print $3'}
That, or use exiqgrep with -i, like exiqgrep -i -r dealers@pinnacle.co.za | xargs exim -Mrm
Jota Omella Developers Corp. http://planetas.net
On Tue, 15 Mar 2005 11:35:50 +0200, Chadley Wilson <Chadley@pinteq.co.za> wrote:
Greetings
I am trying to remove a bunch of mails from our mail queue. There are a lot.
I know how to do them one by one but in this case it would take very long.
all the mail were sent by dealer sales, and getting that list is easy, but I cant capture just the mail IDs.
Here is where I am at now maybe there is an easier way :)
root@etelgw-pinnacle:/var/spool/exim/input# exim -bp | grep dealer 6d 46K 1D91fW-0002aq-0e <dealers@pinnacle.co.za> 6d 46K 1D91ff-0002cc-EI <dealers@pinnacle.co.za> 6d 46K 1D91hH-0002vW-Ut <dealers@pinnacle.co.za> 6d 46K 1D91in-0003Gh-DX <dealers@pinnacle.co.za> 6d 46K 1D91jR-0003PS-Pu <dealers@pinnacle.co.za> 6d 46K 1D91kn-0003hJ-Kn <dealers@pinnacle.co.za> 6d 46K 1D91kt-0003iC-2X <dealers@pinnacle.co.za> 6d 46K 1D91mH-0003xN-0h <dealers@pinnacle.co.za> 6d 46K 1D91mm-00041p-TI <dealers@pinnacle.co.za> 6d 46K 1D91oq-0004PL-3s <dealers@pinnacle.co.za> 6d 46K 1D91si-00054q-Lo <dealers@pinnacle.co.za> 6d 46K 1D91xW-0005Wx-9S <dealers@pinnacle.co.za>
I thought that here I could just add the cut -f command but it does not work What I need to grab here is the third field.
root@etelgw-pinnacle:/var/spool/exim/input# exim -bp | grep dealer
Of course if you have and easier way would you please share it with me
Peter -- the little cardinal imitated the tasty cardinal
participants (3)
-
Chadley Wilson
-
Javier Omella
-
poeml@cmdline.net