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:
|
|