Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

ARCHIVED: At IU, using Pine, how do I convert a class roster I receive via email to a list of email addresses?

Note: In June 2006, UITS retired the IUIS mainframe from service. All IUIS accounts were disabled on April 1, 2006. All applications previously located in the mainframe environment have been moved to new Unix or Windows platforms. If you have specific questions regarding the retirement of IUIS, contact your University Information Systems application development team manager.

At Indiana University, you can view and download electronic rosters for classes you're teaching (including student email addresses) using Oncourse:

Alternatively, if you have an IUIS account, you can use the IUIS system to request a roster of students. However, you must then follow the instructions below to create a properly formatted listing for your distribution list.

To convert a class roster you received from IUIS via email into a list of email addresses, using Pine on a Unix system (e.g., Steel), follow these steps:

Note: For explanations of the special Emacs keystroke notation, see the Knowledge Base document In Emacs, how are keystrokes denoted?

  1. Extract the roster from the email message to a file on your account. To do this with Pine, while viewing the message, or from the index screen with the message selected, press  e . Pine will present a prompt: EXPORT: (copy message) to file in home directory:
  2. Enter a filename for the message.

  3. To exit to the Unix shell, in Pine, from the Main Menu, press Ctrl-z .

  4. Enter: emacs filename Replace filename with the name you chose. This loads Emacs and opens your roster file for editing.

  5. Edit out all email message headers so that the top line of the buffer begins with the first name in the roster. If you need help with editing in Emacs, please see the Knowledge Base document In Emacs, how can I learn about basic editing?

  6. With your cursor on the first character of the first line of the buffer, press C-SPC to set a mark at this point.

  7. Move the cursor to the end of the buffer by pressing M-> .

  8. With the cursor at the end of the roster, move your cursor so it is over the first letter of the username field. For example, if the last line of the roster looks something like the following, your cursor should be on the letter that is in bold type (the J in JANEDOE): 197,BL,0000,000000000,DOE, JANE MARY ,JANEDOE ,INDIANA.EDU
  9. To eliminate all of the data to the left of the usernames, enter: M-x delete-rectangle
  10. Move the cursor back to the top of the buffer by pressing M-< .

  11. All that should remain of the list now are the usernames (e.g., JANEDOE) and the domains (e.g., INDIANA.EDU). To combine these into proper email addresses, you must convert the delimiting commas into @ signs. To do this, start a query-replace function by pressing M-% (the percent sign).

  12. At the Query replace: prompt, press the  ,  (comma) key, then press RET. At the with: prompt, press  @  (the at sign), then press RET. Finally, press  !  (the exclamation mark) to replace all occurrences at once.

  13. You need to use the query-replace function again, this time to remove all of the extra spaces. Press M-< to move back to the top of the buffer, then press M-% (the percent sign).

  14. At the Query replace: prompt, press SPC, then press RET. At the with: prompt, press RET. Finally, press  !  (the exclamation mark) to remove all the spaces. Your file of email addresses should now be formatted correctly.

  15. To save your file, press C-x C-s . To exit Emacs, press C-x C-c .

  16. To return to Pine, at the Unix prompt, enter exit .

With this file, you can create a LISTSERV list, or import it into your email as a distribution list. See the relevant Knowledge Base documents below for information on how to do this.

This is document aeao in domain all.
Last modified on November 01, 2008.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.