How do I manage my IMAP and AFS Folders in Pine?
Introduction
By default, Pine stores your folders (i.e. sent-mail, saved-messages, etc.) to your IMAP space on the email server. You are also given a local folder collection in your AFS home directory, in a directory called mail, for example:
/afs/umich.edu/user/l1/l2/uniqname/mail/sent-mail
where l1 and l2 are the first and second letters of your uniqname respectively.
Changing the Default Folder Collection
If you wish, you can configure Pine to only use AFS Folders, just as you could configure it to only use IMAP Folders. This is not recommended. It is preferred that users use their IMAP server space as their default folder collection to take advantage of the extra space on the email server. Using IMAP Folders frees up space in AFS for your personal files, and can help prevent you from going over quota.
You can, however, change which folder collection is used as the default. This is where Pine would save your folders and list your INBOX. See the following FAQ for more information:
Adding and Removing Folder Collections
If you would like to add a folder collection (e.g. to access IMAP folders on another server), follow these steps:
- Run Pine
- Type s for Setup
- Type L for Collection Lists
- Type a for Add Collection
- Enter a Nickname for your new collection (e.g. My ITCS Folders or My Exchange Folders)
- Next, enter a Server. In most cases, you will need to make sure you are using SSL to connect (e.g. mail.umich.edu/ssl or exchange.umich.edu/ssl)
- Type Ctrl-x to save your collection, and e to Exit
If you to remove a folder collection, follow these steps:
- Run Pine
- Type s for Setup
- Type L for Collection Lists
- Highlight the folder collection you want to remove
- Type d to Delete the collection
- Type e for Exit
- Quit and restart Pine
Moving Messages from One Folder Collection to Another
When you view your folder list, you should see entries for your AFS Folders (in mail/), IMAP Folders, and any other folder collections that you've added. Unfortunately, there is no easy way to move your folders from one collection to another. If you would like to move folders to a different folder collection, you will first need to create and name empty folders in that collection that match the folders you'd like to move, and then transfer the messages between these folders. To move messages between folders:
- Type m to go to the Main Menu
- Type s for Setup
- Type c for Config
- Type Ctrl-w for Whereis
- Type agg and press Enter. This will search for the enable-aggregate-command-set function
- Type x to select it
- Type e to Exit Setup and y to Save Changes
- Type i to go to your INBOX message list (or go into one of your folders, so you see the list of messages)
- Type ;
- Type a to Select All
- Type a and then s to Save the messages to a folder
- When Pine asks where you would like to save the messages, type Ctrl-T to obtain the list of folders. Pine will list your current folder collection, so you will need to press the < key to return to your folder collection list. Navigate your way into the proper destination folder, and press Enter.
These steps will need to be repeated for every folder you would like to move from one collection to another.


