* small addition for new SMARTTIME24 token.
[alpine.git] / contrib / utils / sendtoall
blobf929f527248729ce9a031ba97b3b9c12009373ed
1 Date: 13 Sep 1996 22:49:40 GMT
2 From: William Burrow <aa126@fan1.fan.nb.ca>
3 To: pine-info@cac.washington.edu
4 Subject: Re: Composing mail to all entries in addressbook
6 Ari Y. Weintraub (aweintra@umabnet.ab.umd.edu) wrote:
7 : Is there any way in Pine 3.94 to compose mail to all of the entries in my
8 : addressbook. For example, I recently changed my phone number and would
9 : like to send one message to everybody with the new number. I can't find a
10 : way to do this - does anyone out there have any idea? TIA
12 This would be a nice suggestion for Pine, however, you can do pretty much
13 the same in Unix using the following awk script.  Copy everything between the
14 lines into a file named:  everyone 
16 -------------%< clip --------------
18     printf("everyone\tEveryone\t(");  
19   
20     if ( $0 ~ /\(/ )
21         continue
22     else
23         printf("%s", $1);  
25     while ( getline > 0 ) {
26         if ( $0 ~ /\(/ )
27             continue
28         else
29             printf(",%s", $1);
30     }
31     printf(")\n"); 
33 -------------%< clip --------------
35 Now, type the following exactly at the Unix prompt:
37 awk -f everyone < ~/.addressbook >> ~/.addressbook && echo Done.
39 You may wish to first copy your ~/.addressbook file to a backup file, 
40 before executing this command. 
42 If everything went well, it should say Done.  When you start Pine, there
43 should now be a list in your address book with the name:  everyone,
44 containing all of your address book nicknames (but NOT other lists). 
49 William Burrow  --  Fredericton Area Network