Great Circle Associates Majordomo-Users
(February 2005)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: List maintenance
From: Casey Hatch <casey @ gvt . gvturf . com>
Date: Thu, 24 Feb 2005 13:35:38 +0000
To: majordomo-users @ greatcircle . com
In-reply-to: <3.0.1.32.20050224092017.00e3e210@sage-american.com>
References: <3.0.1.32.20050224092017.00e3e210@sage-american.com>
User-agent: Mutt/1.4i

On Thu, Feb 24, 2005 at 09:20:17AM -0600, Jack L. Stone wrote:
[snip]
> After a mailing, I have succeeded in running scripts with "sort", "diffs"
> and "uniq" and can wind up with a clean list of the bads that need
> deletion. I haven't found a way yet to just wind up with just the "goods"
> though. Just beyond the reach of my scripting ability I guess.
> 
> Does anyone have any such working scripts that will delete bad addresses in
> bulk?
[snip]

Jack

if you have a file of all of the bad addresses just substitute 
"approve <password> unsubscribe Listname" before each address.

I do it in vi/vim like this:

:%s/^/approve <password> unsubscribe Listname/

or if multiple listnames are involved:

:25,56s/^/approve <password> unsubscribe Listname_1/ 

This prepends from the beginning of the line (^) 
"approve <password> unsubscribe Listname_1" on lines 25 through 56

:57,123/^/approve <password> unsubscribe Listname_2/

This prepends from the beginning of the line (^) 
"approve <password> unsubscribe Listname_2" on lines 57 through 123

This way you send one email and unsubscribe as many emails as you like.

Help for those with less vi experiance:

: = go into EX mode
#,# = gives the lines of the file you want to execute commands on
/ = separator fields /from/to/
% = every line in file
^ = Beginning of line

*shrug I hope that helps.

BTW I LOVE vi! :)

-- 
Casey Hatch
president: Z-Olite Inc.
phone: 435.563.1460
email: casey@gvturf.com
web: www.z-oliteinc.com



References:
Indexed By Date Previous: Fw: List maintenance
From: "Tom Patterson" <pattersontom@earthlink.net>
Next: Re: The daily digest for majordomo-users. V6
From: "Jack L. Stone" <jacks@sage-american.com>
Indexed By Thread Previous: Re: List maintenance
From: "Roger B.A. Klorese" <rogerk@queernet.org>
Next: Fw: List maintenance
From: "Tom Patterson" <pattersontom@earthlink.net>

Google
 
Search Internet Search www.greatcircle.com