Re: The daily digest for majordomo-users. V6
"Jack L. Stone" <[email protected]>
| Newsgroups | gmane.mail.majordomo.general |
|---|---|
| Message-ID | <[email protected]> |
At 05:20 PM 2.24.2005 -0800, [email protected] wrote: >The daily digest for majordomo-users. >Volume 6 : Issue 459 : "text" Format > >Messages in this Issue: > Re: List maintenance > >---------------------------------------------------------------------- > >Date: Thu, 24 Feb 2005 13:35:38 +0000 >From: Casey Hatch <[email protected]> >To: [email protected] >Subject: Re: List maintenance >Message-ID: <[email protected]> > >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. Blush! Ah yes! It's just that simple. The thing is, I had tried a similar approach, but must have left something out on the lines. For years, to help manage adds/deletes on single requests, I been using templates made up for each list, so all I have to do is paste in the email address and send to MJ. It does the work from that point, including a check for duplicates. Just could't get the multiples to work -- from your example shows that I forgot to put the password on each line. Many thanks! Happy trails, Jack L. Stone System Admin Sage-american