Simple Email Lists
We have several "simple" email lists for notification-type messages of interest to a limited audience, usually the results of automated tasks. The idea is to keep these notifications off the collboration-wide official mailing lists. Interested parties can subscribe and unsubscribe themselves and others, you need only have privilege to push to the JeffersonLab/simple_email_list repository on GitHub.
The roster of current lists can be found on the Email Lists wiki page.
If you would like to subscribe to one of these lists there are two methods for doing so.
Write an email to firstname.lastname@example.org and say that you want to subscribe.
- Clone the repository:
git clone https://github.com/jeffersonlab/simple_email_list
- Go to the directory for the list of interest:
where <listname> is the name from the list roster.
- Edit the file "list.txt" adding your email address on a new line.
- Add and commit the new "list.txt".
git add list.txt git commit list.txt
- Push your changes back to GitHub on the master branch.
Reverse one of the subscription methods mentioned above.
Creating a New List
- Clone the repository.
- Create a directory, for example my_new_list, under simple_email_list/lists:
cd simple_email_list/lists/ mkdir <new listname>
- Populate that directory with two files:
- subject.txt: one line containing the subject of all mail messages
- list.txt: email addresses, one per line
- Add, commit, and push your changes to the master branch on GitHub.
To install in /home/user/simple_email_list:
cd /home/user git clone https://github.com/jeffersonlab/simple_email_list
At JLab, for the gluex account, the lists are installed in
Sending to a List
Assume in the following that simple_email_list was installed in /home/user/simple_email_list and the email list to which you want to send is mylist.
- Compose a message and call it
message.txt(it must be called this).
- Copy the message into the list directory
cp message.txt /home/user/simple_email_list/lists/mylist/
- cd into the list directory
- send the message to the list by executing the script:
Note that this must be done from inside the mylist directory.
The script will destroy the copy of message.txt that it finds in the local directory. Since the script checks and will not send an empty message, this ensures that repeated invocations of the script will not send the same message over and over unless a new message.txt is explicitly copied into the directory.