]> git.cworth.org Git - sup/blob - doc/NewUserGuide.txt
todo updates
[sup] / doc / NewUserGuide.txt
1 Welcome to Sup! Here's how to get started.
2
3 First, try running 'sup'. Since this is your first time, you'll be
4 confronted with a mostly blank screen, and a notice at the bottom that
5 you have no new messages. That's because Sup doesn't hasn't loaded
6 anything into its index yet, and has no idea where to look for them
7 anyways.
8
9 If you want to play around a little at this point, you can press 'b'
10 to cycle between buffers and 'x' to kill a buffer. There's probably
11 not too much interesting there, but there's a log buffer with some
12 cryptic messages. You can also press '?' at any point to get a list of
13 keyboard commands, but in the absence of any email, these will be
14 mostly useless. When you get bored, press 'q' to quit.
15
16 To use Sup for email, we need to load messages into the index. The
17 index is where Sup stores all message state (e.g. read or unread, any
18 message labels), and all information necessary for searching and for
19 threading messages. Sup only knows about messages in its index.
20
21 We can add messages to the index by telling Sup about the "source"
22 where the messages reside. Sources are things like IMAP folders, mbox
23 folders, maildir directories, and Gmail accounts (in the future). Sup
24 doesn't duplicate the actual message content in the index; it only
25 stores whatever information is necessary for searching, threading and
26 labelling. So when you search for messages or view your inbox, Sup
27 talks only to the index (stored locally on disk). When you view a
28 thread, Sup requests the full content of all the messages from the
29 source.
30
31 The easiest way to set up all your sources is to run "sup-config".
32 This will interactively walk you through some basic configuration,
33 prompt you for all the sources you need, and optionally import
34 messages from them. Sup-config uses two other tools, sup-add and
35 sup-sync, to load messages into the index. In the future you may make
36 use of these tools directly (see below).
37
38 Once you've run sup-config, you're ready to run 'sup'. You should see
39 the most recent unarchived messages appear in your inbox.
40 Congratulations, you've got Sup working!
41
42 If you're coming from the world of traditional MUAs, there are a
43 couple differences you should be aware of at this point. First, Sup
44 has no folders. Instead, you organize and find messages by a
45 combination of search and labels (knowns as 'tags' everywhere else in
46 the world). Search and labels are an integral part of Sup because in
47 Sup, rather than viewing the contents of a folder, you view the
48 results of a search. I mentioned above that your inbox is, by
49 definition, the set of all messages that aren't archived. This means
50 that your inbox is nothing more than the result of the search for all
51 messages with the label "inbox". (It's actually slightly more
52 complicated---we omit messages marked as killed, deleted or spam.)
53
54 You could replicate the folder paradigm easily under this scheme, by
55 giving each message exactly one label and only viewing the results of
56 simple searches for those labels. But you'd quickly find out that life
57 can be easier than that if you just trust the search engine, and use
58 labels judiciously for things that are too hard to find with search.
59 The idea is that a labeling system that allows arbitrary, user-defined
60 labels, supplemented by a quick and easy-to-access search mechanism
61 provides all the functionality that folders does, plus much more, at a
62 far lower cost to the user. (The Sup philosophical treatise has a
63 little more on this.)
64
65 Now let's take a look at your inbox. You'll see that Sup groups
66 messages together into threads: each line in the inbox is a thread,
67 and the number in parentheses is the number of messages in that
68 thread. (If there's no number, there's just one message in the
69 thread.) In Sup, most operations are on threads, not individual
70 messages. The idea is that you rarely want to operate on a message
71 independent of its context. You typically want to view, archive, kill,
72 or label all the messages in a thread at one time.
73
74 Use the up and down arrows to highlight a thread. ('j' and 'k' do the
75 same thing, and 'J' and 'K' will scroll the whole window. Even the
76 left and right arrow keys work.) By default, Sup only loads as many
77 threads as it takes to fill the window; if you'd like to load more,
78 press 'M'. You can hit tab to cycle between only threads with new
79 messages.
80
81 Highlight a thread and press enter to view it. You'll notice that all
82 messages in the thread are displayed together, laid out graphically by
83 their relationship to each other (replies are nested under parents).
84 By default, only the new messages in a thread are expanded, and the
85 others are hidden. You can toggle an individual message's state by
86 highlighting a green line and pressing enter. You can use 'E' to
87 expand or collapse all messages or 'N' to expand only the new
88 messages. You'll also notice that Sup hides quoted text and
89 signatures. If you highlight a particular hidden chunk, you can press
90 enter to expand it, or you can press 'o' to toggle every hidden chunk
91 in a particular message. (Remember, you can hit '?' to see the full
92 list of keyboard commands at any point.)
93
94 A few other useful commands while viewing a thread. Press 'd' to
95 toggle a detailed header for a message. If you've scrolled too far to
96 the right, press '[' to jump all the way to the left. Finally, you can
97 press 'n' and 'p' to jump forward and backward between open messages,
98 aligning the display as necessary.
99
100 Now press 'x' to kill the thread view buffer. You should see the inbox
101 again. If you don't, you can cycle through the buffers by pressing
102 'b', or you can press 'B' to see a list of all buffers and simply
103 select the inbox.
104
105 There are many operations you can perform on threads beyond viewing
106 them. To archive a thread, press 'a'. The thread will disappear from
107 your inbox, but will still appear in search results. If someone
108 replies an archived thread, it will reappear in your inbox. To kill a
109 thread, press '&'. Killed threads will never come back to your inbox,
110 even if people reply, but will still be searchable. (This is useful
111 for those interminable threads that you really have no interest in,
112 but which seem to pop up on every mailing list.)
113
114 If a thread is spam, press 'S'. It will disappear and won't come back.
115 It won't even appear in search results, unless you explicitly search
116 for spam.
117
118 You can star a thread by pressing '*'. Starred threads are displayed
119 with a little yellow asterisk next to them, but otherwise have no
120 special semantics. But you can also search for them easily---we'll see
121 how in a moment.
122
123 To edit the labels for (all the messages in) a thread, press 'l'. Type
124 in the labels as a sequence of space-separated words. To cancel the
125 input, press Ctrl-G.
126
127 Many of these operations can be applied to a group of threads. Press
128 't' to tag a thread. Tag a couple, then press ';' to apply the next
129 command to the set of threads. ';t', of course, will untag all tagged
130 messages.
131
132 Ok, let's try using labels and search. Press 'L' to do a quick label
133 search. You'll be prompted for a label; simply hit enter to bring up
134 scrollable list of all the labels you've ever used, along with some
135 special labels (Draft, Starred, Sent, Spam, etc.). Highlight a label
136 and press enter to view all the messages with that label.
137
138 What you just did was actually a specific search. For a general
139 search, press "/". Now type in your query (again, Ctrl-G to cancel at
140 any point.) You can just type in arbitrary text, which will be matched
141 on a per-word basis against the bodies of all email in the index, or
142 you can make use of the full Ferret query syntax:
143
144 - Phrasal queries using double-quotes, e.g.: "three contiguous words"
145 - Queries against a particular field using <field name>:<query>,
146   e.g.: label:ruby-talk, or from:matz@ruby-lang.org. (Fields include:
147   body, from, to, and subject.)
148 - Force non-occurrence by -, e.g. -body:"hot soup"
149
150 You can combine those all together. For example:
151      label:ruby-talk subject:\[ANN\] -rails
152
153 Play around with the search, and see the Ferret documentation for
154 details on more sophisticated queries (date ranges, "within n words",
155 etc.)
156
157 At this point, you're well on your way to figuring out all the cool
158 things Sup can do. By repeated application of the '?' key, see if you
159 can figure out how to:
160  - List some recent contacts
161  - Easily search for all mail from a recent contact
162  - Easily search for all mail from several recent contacts
163  - Add someone to your address book
164  - Postpone a message (i.e., save a draft)
165  - Quickly re-edit a just-saved draft message
166  - View the raw header of a message
167  - Star an individual message, not just a thread
168
169 There's one last thing to be aware of when using Sup: how it interacts
170 with other email programs. As I described above, Sup stores data about
171 messages in the index, but doesn't duplicate the message contents
172 themselves. The messages remain on the source. If the index and the
173 source every fall out of sync, e.g. due to another email client
174 modifying the source, then Sup will be unable to operate on that
175 source. For example, for mbox files, Sup stores a byte offset into the
176 file for each message. If a message deleted from that file by another
177 client, or even marked as read (yeah, mbox sucks), all succeeding
178 offsets will be wrong.
179
180 That's the bad news. The good news is that Sup is pretty good at being
181 able to detect this type of situation, and fixing it is just a matter
182 of running sup-sync --changed on the source. Sup will even tell you
183 how to invoke sup-sync when it detects a problem. This is a
184 complication you will almost certainly run in to if you use both Sup
185 and another MUA on the same source, so it's good to be aware of it.
186
187 Have fun, and let me know if you have any problems!
188
189 Appending A: sup-add and sup-sync
190 ---------------------------------
191
192 Instead of using sup-config to add a new source, you can manually run
193 'sup-add' with a URI pointing to it. The URI should be of the form:
194 - mbox://path/to/a/filename, for an mbox file on disk.
195 - maildir://path/to/a/filename, for a maildir directory on disk.
196 - imap://imap.server/folder for an unsecure IMAP folder.
197 - imaps://secure.imap.server/folder for a secure IMAP folder.
198 - mbox+ssh://remote.machine/path/to/a/filename for a remote mbox file.
199
200 Before you add the source, you need make three decisions. The first is
201 whether you want Sup to regularly poll this source for new messages.
202 By default it will, but if this is a source that will never have new
203 messages, you can specify --unusual. Sup polls only "usual" sources
204 when checking for new mail (unless you manually invoke sup-sync).
205
206 The second is whether you want messages from the source to be
207 automatically archived. An archived message will not show up in your
208 inbox, but will be found when you search. (Your inbox in Sup is, by
209 definition, the set of all all non-archived messages). Specify
210 --archive to automatically archive all messages from the source. This
211 is useful for sources that contain, for example, high-traffic mailing
212 lists that you don't want polluting your inbox.
213
214 The final decision is whether you want any labels automatically
215 applied to messages from this source. You can use --labels to do this.
216
217 If Sup requires account information, e.g. for IMAP servers and remote
218 mbox files, sup-add will ask for it.
219
220 Now that you've added the source, let's import all the current
221 messages from it, by running sup-sync with the source URI. You can
222 specify --archive to automatically archive all messages in this
223 import; typically you'll want to specify this for every source you
224 import except your actual inbox. You can also specify --read to mark
225 all imported messages as read; the default is to preserve the
226 read/unread status from the source.
227
228 Sup-sync will now load all the messages from the source into the
229 index. Depending on the size of the source, this may take a while.
230 Don't panic! It's a one-time process.
231
232 Appendix B: Handling high-volume mailing lists
233 ----------------------------------------------
234
235 Here's what I recommend:
236 1. Use procmail to filter messages from the list into a distinct source.
237 2. Add that source to Sup as a usual source with auto-archive turned
238    on, and with a label corresponding to the mailing list name.
239    (E.g.: sup-add mbox:/home/me/Mail/ruby-talk -a -l ruby-talk)
240 3. Voila! Sup will load new messages into the index but not into the
241    inbox, and you can browse the mailing list traffic at any point by
242    searching for that label.
243
244
245 Appendix C: Reading blogs with Sup
246 ----------------------------------
247
248 Really, blog posts should be read like emails are read---you should be
249 able to mark them as unread, flag them, label them, etc. Use rss2email
250 to transform RSS feeds into emails, direct them all into a source, and
251 add that source to Sup. Voila!