Simple Email Lists

From GlueXWiki
Jump to: navigation, search

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 Lists

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.

Method A

Write an email to and say that you want to subscribe.

Method B

  1. Clone the repository:
    git clone
  2. Go to the directory for the list of interest:
    cd simple_email_list/lists/<listname>

    where <listname> is the name from the list roster.

  3. Edit the file "list.txt" adding your email address on a new line.
  4. Add and commit the new "list.txt".
    git add list.txt
    git commit list.txt
  5. Push your changes back to GitHub on the master branch.
    git push


Reverse one of the subscription methods mentioned above.

Creating a New List

  1. Clone the repository.
  2. Create a directory, for example my_new_list, under simple_email_list/lists:
    cd simple_email_list/lists/
    mkdir <new listname>
  3. Populate that directory with two files:
    • subject.txt: one line containing the subject of all mail messages
    • list.txt: email addresses, one per line
  4. Add, commit, and push your changes to the master branch on GitHub.

Installing simple_email_lists

To install in /home/user/simple_email_list:

cd /home/user
git clone

At JLab, for the gluex account, the lists are installed in /home/gluex/simple_email_list .

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.

  1. Compose a message and call it message.txt (it must be called this).
  2. Copy the message into the list directory
    cp message.txt /home/user/simple_email_list/lists/mylist/
  3. cd into the list directory
    cd /home/user/simple_email_list/lists/mylist/
  4. 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.