]> code.delx.au - gnu-emacs-elpa/blob - packages/gnorb/gnorb.info
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / gnorb / gnorb.info
1 This is gnorb.info, produced by makeinfo version 5.2 from gnorb.texi.
2
3 INFO-DIR-SECTION Emacs
4 START-INFO-DIR-ENTRY
5 * Gnorb: (gnorb). Glue code for Gnus, Org, and BBDB.
6 END-INFO-DIR-ENTRY
7
8 \1f
9 File: gnorb.info, Node: Top, Next: Introduction, Up: (dir)
10
11 Gnorb Manual
12 ************
13
14 * Menu:
15
16 * Introduction::
17 * Installation::
18 * Setup::
19 * Email Tracking::
20 * Restoring Window Layout::
21 * Recent Mails From BBDB Contacts::
22 * BBDB posting styles::
23 * BBDB Org tagging::
24 * Misc BBDB::
25 * Misc Org::
26 * Misc Gnus::
27 * Suggested Keybindings::
28
29 — The Detailed Node Listing —
30
31 Email Tracking
32
33 * Basic Usage::
34 * Email-Related Commands::
35 * Trigger Actions::
36 * Viewing Tracked Messages in *Summary* Buffers::
37 * Hinting in Gnus::
38 * Message Attachments::
39 * Registry Usage::
40 * Likely Workflow::
41
42 Misc BBDB
43
44 * Searching for messages from BBDB contacts::
45 * Citing BBDB contacts::
46 * User Options::
47
48 Misc Org
49
50 * Inserting BBDB links::
51 * User Options: User Optionsx.
52
53 Misc Gnus
54
55 * Viewing Org headlines relevant to a message::
56 * User Options: User Optionsxx.
57
58 \1f
59 File: gnorb.info, Node: Introduction, Next: Installation, Prev: Top, Up: Top
60
61 1 Introduction
62 **************
63
64 Gnorb provides glue code between the Gnus, Org, and BBDB packages. It’s
65 aimed at supporting email-based project management, and generally making
66 it easier to keep track of email communication.
67
68 Much of the code consists of single-use convenience functions, but
69 tracking email conversations with Org requires is more complicated, and
70 requires a bit of setup.
71
72 Gnorb can be used in a modular fashion, by selectively loading the
73 files “gnorb-org”, “gnorb-gnus” or “gnorb-bbdb” instead of plain old
74 “gnorb”. The package as a whole is rather Org-centric, though, and it
75 won’t do much of interest without “gnorb-org”.
76
77 This means that Gnorb doesn’t have hard requirements to any of the
78 three base libraries. For the libraries you are using, however, you’ll
79 get best results from using the most recent stable version (yes, that
80 means BBDB 3). Some of the features in Gnorb only work with development
81 versions of these libraries (those cases are noted below).
82
83 \1f
84 File: gnorb.info, Node: Installation, Next: Setup, Prev: Introduction, Up: Top
85
86 2 Installation
87 **************
88
89 Gnorb is best installed via the Elpa package manager – look for it in
90 ‘list-packages’.
91
92 You can also clone the source code from
93 <https://github.com/girzel/gnorb>, and put the “gnorb” directory on your
94 load-path. The Github site is also a good place to report bugs and
95 other issues.
96
97 \1f
98 File: gnorb.info, Node: Setup, Next: Email Tracking, Prev: Installation, Up: Top
99
100 3 Setup
101 *******
102
103 Loading “gnorb” will make the basic functions available. Using Gnorb
104 for email tracking takes a bit more setup, however:
105
106 1. Email tracking is done via the Gnus registry, so that must be
107 activated with ‘gnus-registry-initialize’.
108 2. It also requires the org-id package to be loaded, and
109 ‘org-id-track-globally’ set to t (that’s the default value, so
110 simply loading the package should be enough).
111 3. Add a nngnorb entry to your ‘gnus-secondary-select-methods’
112 variable. It will look like (nngnorb “Server name”). This does
113 nothing but provide a place to hang nnir searches.
114 4. Then put a call to ‘gnorb-tracking-initialize’ in your init files,
115 at some point after the Gnus registry is initialized.
116 5. If you’re not using a local archive method for saving your sent
117 messages (ie you’re using IMAP), you’ll also need to tell Gnorb
118 where to find your sent messages. Set the variable
119 ‘gnorb-gnus-sent-groups’ to a list of strings; each string should
120 indicate a fully-qualified group name, eg “nnimap+SERVER:GROUP”.
121
122 Lastly, Gnorb doesn’t bind any keys by default; see the *note
123 Suggested Keybindings: Suggested Keybindings. section below for
124 possibilities.
125
126 \1f
127 File: gnorb.info, Node: Email Tracking, Next: Restoring Window Layout, Prev: Setup, Up: Top
128
129 4 Email Tracking
130 ****************
131
132 The most interesting thing Gnorb does is using Org headings to track
133 email conversations. This can mean anything from reminding yourself to
134 write to your mother, to conducting delicate business negotiations over
135 email, to running an email-based bug tracker.
136
137 Gnorb assists in this process by using the Gnus registry to track
138 correspondences between emails and Org headings – specifically, message
139 IDs are associated with Org heading ids. As a conversation develops,
140 messages are collected on a heading (and/or its children). You can
141 compose new messages directly from the Org heading, and Gnorb will
142 automatically associate your sent message with the conversation. You
143 can open Gnus *Summary* buffers holding all the messages associated with
144 an Org subtree, and reply from there – these groups can be made
145 persistent, if you like. When you receive new messages relevant to a
146 conversation, Gnorb will notice them and prompt you to associate them
147 with the appropriate Org heading. Attachments on incoming messages can
148 be automatically saved as attachments on Org headings, using org-attach.
149
150 In general, the goal is to keep track of whole conversations, reduce
151 friction when moving between Gnus and Org, and keep you in the Org
152 agenda rather than in Gnus.
153 * Menu:
154
155 * Basic Usage::
156 * Email-Related Commands::
157 * Trigger Actions::
158 * Viewing Tracked Messages in *Summary* Buffers::
159 * Hinting in Gnus::
160 * Message Attachments::
161 * Registry Usage::
162 * Likely Workflow::
163
164 \1f
165 File: gnorb.info, Node: Basic Usage, Next: Email-Related Commands, Up: Email Tracking
166
167 4.1 Basic Usage
168 ===============
169
170 The following sections might be a bit confusing to read if you haven’t
171 actually tried using Gnorb. If you don’t want to dive in all the way
172 just yet, you can just dabble your toes. First set up email tracking as
173 specified in *note Setup: Setup, then do the following:
174
175 1. Add “%ug” somewhere appropriate in your ‘gnus-summary-line-format’
176 variable.
177 2. If you don’t use a local archive method, add your sent message
178 groups to ‘gnorb-gnus-sent-groups’ (see the docstring).
179 3. Use Org capture from Gnus summary buffers to create reminders for
180 emails you need to reply to.
181 4. Reply to those emails by pressing “C-c t” on the TODO heading in
182 either the Agenda, or in regular Org files.
183 5. If you ever get confused about what’s associated with an Org
184 heading, press “C-c v” on the heading (works in either the Agenda,
185 or regular Org files).
186
187 That should be enough to get started.
188
189 \1f
190 File: gnorb.info, Node: Email-Related Commands, Next: Trigger Actions, Prev: Basic Usage, Up: Email Tracking
191
192 4.2 Email-Related Commands
193 ==========================
194
195 Email tracking starts in one of three ways:
196
197 1. With an Org heading that represents an email TODO. Call
198 ‘gnorb-org-handle-mail’ (see below) on the heading to compose a new
199 message, and start the tracking process.
200 2. By calling org-capture on a received message. Any heading captured
201 from a message will automatically be associated with that message.
202 3. By calling ‘gnorb-gnus-outgoing-do-todo’ in a message composition
203 buffer – see below.
204
205 There are three main email-related commands:
206
207 1. ‘gnorb-org-handle-mail’ is called on an Org heading to compose a
208 new message. By default, this will begin a reply to the most
209 recent message in the conversation. If there are no associated
210 messages to reply to (or you call the function with a single prefix
211 arg), Gnorb will look for mailto: or bbdb: links in the heading,
212 and compose a new message to them.
213
214 Calling the function with a double prefix arg will ignore all
215 associated messages and links, and compose a blank message.
216
217 Once sent, the message will be associated with the Org heading, and
218 you’ll be brought back to the heading and asked to trigger an
219 action on it.
220
221 ‘gnorb-email-subtree’ is an alternative entry-point to
222 ‘gnorb-org-handle-mail’. It does the same thing as the latter, but
223 first exports the body of the subtree as either text or a file,
224 then inserts the text into the message body, or attaches the file
225 to the message, respectively.
226 2. ‘gnorb-gnus-incoming-do-todo’ is called on a message in a Gnus
227 *Summary* buffer. You’ll be prompted for an Org heading, taken to
228 that heading, and asked to trigger an action on it.
229 3. ‘gnorb-gnus-outgoing-do-todo’ is called in message mode, while
230 composing a new message.
231
232 If called without a prefix arg, a new Org heading will be created
233 after the message is sent, and the sent message associated with it.
234 The new heading will be created as a capture heading, using the
235 template specified by the ‘gnorb-gnus-new-todo-capture-key’ option.
236
237 If you call this function with a single prefix arg, you’ll be
238 prompted to choose an existing Org heading instead. After the the
239 message is sent, you’ll be taken to that heading and prompted to
240 trigger an action on it.
241
242 If you’ve called this function, and then realize you’ve associated
243 the message with the wrong TODO, call it again with a double prefix
244 to clear all associations.
245
246 It’s also possible to call this function *after* a message is sent,
247 in case you forgot. Gnorb saves information about the most
248 recently sent message for this purpose.
249
250 Because these three commands all express a similar intent, but are
251 called in different modes, it can make sense to give each of them the
252 same keybinding in the keymaps for Org mode, Gnus summary mode, and
253 Message mode.
254
255 An additional convenience command is available for use in Gnus
256 summary buffers: ‘gnorb-gnus-quick-reply’. If you don’t want to go
257 through the whole round trip of triggering an action and then starting a
258 new reply, call this command on an incoming message to associate it with
259 a heading, start a reply, and associate your reply with the same
260 heading.
261
262 \1f
263 File: gnorb.info, Node: Trigger Actions, Next: Viewing Tracked Messages in *Summary* Buffers, Prev: Email-Related Commands, Up: Email Tracking
264
265 4.3 Trigger Actions
266 ===================
267
268 After calling ‘gnorb-gnus-incoming-do-todo’ on a message, or after
269 sending a message associated with an Org heading, you’ll be taken to the
270 heading and asked to “trigger an action” on it. At the moment there are
271 six different possibilities: triggering a TODO state-change on the
272 heading, taking a note on the heading (both these options will associate
273 the message with the heading), associating the message but doing nothing
274 else, capturing a new Org heading as a sibling to the tracked heading,
275 capturing a new Org heading as a child, and lastly, doing nothing at
276 all.
277
278 More actions may be added in the future; it’s also possible to
279 rearrange or delete existing actions, and add your own: see the
280 docstring of ‘gnorb-org-trigger-actions’.
281
282 \1f
283 File: gnorb.info, Node: Viewing Tracked Messages in *Summary* Buffers, Next: Hinting in Gnus, Prev: Trigger Actions, Up: Email Tracking
284
285 4.4 Viewing Tracked Messages in *Summary* Buffers
286 =================================================
287
288 Call ‘gnorb-org-view’ on an Org heading to open an nnir summary buffer
289 showing all the messages associated with that heading and child headings
290 (this requires you to have added an nngnorb server to your Gnus
291 backends). A minor mode is in effect, ensuring that any replies you
292 send to messages in this buffer will automatically be associated with
293 the original Org heading. You can also invoke
294 ‘gnorb-summary-disassociate-message’ (“C-c d”) to disassociate the
295 message with the Org heading.
296
297 If you call ‘gnorb-org-view’ with a prefix argument, the search group
298 will be made persistent across Gnus sessions. You can re-run the search
299 and update the group contents by hitting “M-g” on the group in the Gnus
300 *Group* buffer.
301
302 As a bonus, it’s possible to go into Gnus’ *Server* buffer, find the
303 line specifying your nngnorb server, and hit “G” (aka
304 ‘gnus-group-make-nnir-group’). At the query prompt, enter an Org-style
305 tags-todo Agenda query string (eg “+work-computer”, or what have you).
306 Gnorb will find all headings matching this query, scan their subtrees
307 for gnus links, and then give you a Summary buffer containing all the
308 linked messages. This is dog-slow at the moment; it will get faster.
309
310 \1f
311 File: gnorb.info, Node: Hinting in Gnus, Next: Message Attachments, Prev: Viewing Tracked Messages in *Summary* Buffers, Up: Email Tracking
312
313 4.5 Hinting in Gnus
314 ===================
315
316 When you receive new mails that might be relevant to existing Org TODOs,
317 Gnorb can alert you to that fact. When
318 ‘gnorb-gnus-hint-relevant-article’ is t (the default), Gnorb will
319 display a message in the minibuffer when opening potentially relevant
320 messages. You can then use ‘gnorb-gnus-incoming-to-todo’ to trigger an
321 action on the relevant TODO.
322
323 This hinting can happen in the Gnus summary buffer as well. If you
324 use the escape indicated by ‘gnorb-gnus-summary-mark-format-letter’ as
325 part of your ‘gnus-summary-line-format’, articles that may be relevant
326 to TODOs will be marked with a special character in the Summary
327 buffer, as determined by ‘gnorb-gnus-summary-mark’. By default, the
328 format letter is “g” (meaning it is used as “%ug” in the format line),
329 and the mark is “&” for messages that are already tracked, and “¡” for
330 messages that may be relevant.
331
332 \1f
333 File: gnorb.info, Node: Message Attachments, Next: Registry Usage, Prev: Hinting in Gnus, Up: Email Tracking
334
335 4.6 Message Attachments
336 =======================
337
338 Gnorb simplifies the handling of attachments that you receive in emails.
339 When you call ‘gnorb-gnus-incoming-do-todo’ on a message, you’ll be
340 prompted to re-attach the email’s attachments onto the Org heading,
341 using the org-attach library.
342
343 You can also do this as part of the capture process. Set the new
344 :gnus-attachments key to “t” in a capture template that you use on mail
345 messages, and you’ll be queried to re-attach the message’s attachments
346 onto the newly-captured heading. Or set
347 ‘gnorb-gnus-capture-always-attach’ to “t” to have Gnorb do this for all
348 capture templates.
349
350 You can also do this using the regular system of MIME commands,
351 without invoking the email tracking process. See *note Suggested
352 Keybindings: Suggested Keybindings, below.
353
354 The same process works in reverse: when you send a message from an
355 Org heading using ‘gnorb-org-handle-mail’, Gnorb will ask if you want to
356 attach the files in the heading’s org-attach directory to the outgoing
357 message.
358
359 \1f
360 File: gnorb.info, Node: Registry Usage, Next: Likely Workflow, Prev: Message Attachments, Up: Email Tracking
361
362 4.7 Registry Usage
363 ==================
364
365 You can see how many associations you’ve got stored in the registry by
366 calling ‘gnorb-report-tracking-usage’. This will pop up a buffer
367 showing how much of the registry you’re using, and offering keybindings
368 for ‘gnorb-flush-dead-associations’, to help Gnorb clean up after
369 itself.
370
371 \1f
372 File: gnorb.info, Node: Likely Workflow, Prev: Registry Usage, Up: Email Tracking
373
374 4.8 Likely Workflow
375 ===================
376
377 You receive an email from Jimmy, who wants to rent a room in your house.
378 “I’ll respond to this later,” you think.
379
380 You capture an Org TODO from the email, call it “Jimmy renting a
381 room”, and give it a REPLY keyword. Gnorb quietly records the
382 correspondence between the email and the TODO, using the Gnus registry.
383
384 The next day, looking at your Agenda, you see the TODO and decide to
385 respond to the email. You call ‘gnorb-org-handle-mail’ on the heading,
386 and Gnorb opens Jimmy’s email and starts a reply to it.
387
388 You tell Jimmy the room’s available in March, and send the message.
389 Gnorb takes you back to the heading, and asks you to trigger an action
390 on it. You choose “todo state”, and change the heading keyword to WAIT.
391
392 Two days later, Jimmy replies to your message, saying that March is
393 perfect. When you open his response, Gnorb politely reminds you that
394 the message is relevant to an existing TODO. You call
395 ‘gnorb-gnus-incoming-do-todo’ on the message, and are again taken to the
396 TODO and asked to trigger an action. Again you choose “todo state”, and
397 change the heading keyword back to REPLY.
398
399 You get another email, from Samantha, warning you not to rent the
400 room to Jimmy. She even attaches a picture of a room in her house, as
401 it looked after Jimmy had stayed there for six months. It’s bad. You
402 call ‘gnorb-gnus-incoming-do-todo’ on her message, and pick the “Jimmy
403 renting a room” heading. This time, you choose “take note” as the
404 trigger action, and make a brief note about how bad that room looked.
405 Gnorb asks if you’d like to attach the picture to the Org heading. You
406 decide you will.
407
408 Now it’s time to write to Jimmy and say something noncommittal.
409 Calling ‘gnorb-org-handle-mail’ on the heading would respond to
410 Samantha’s email, the most recent of the associated messages, which
411 isn’t what you want. Instead you call ‘gnorb-org-view’ on the heading,
412 which opens up a Gnus *Summary* buffer containing all four messages:
413 Jimmy’s first, your response, his response to that, and Samantha’s
414 message. You pick Jimmy’s second email, and reply to it normally.
415 Gnorb asks if you’d like to send the picture of the room as an
416 attachment. You would not. When you send the reply Gnorb tracks that
417 as well, and does the “trigger an action” trick again.
418
419 In this way Gnorb helps you manage an entire conversation, possibly
420 with multiple threads and multiple participants. Mostly all you need to
421 do is call ‘gnorb-gnus-incoming-do-todo’ on newly-received messages, and
422 ‘gnorb-org-handle-mail’ on the heading when it’s time to compose a new
423 reply.
424
425 \1f
426 File: gnorb.info, Node: Restoring Window Layout, Next: Recent Mails From BBDB Contacts, Prev: Email Tracking, Up: Top
427
428 5 Restoring Window Layout
429 *************************
430
431 Many Gnorb functions alter the window layout and value of point. In
432 most of these cases, you can restore the previous layout using the
433 interactive function ‘gnorb-restore-layout’.
434
435 \1f
436 File: gnorb.info, Node: Recent Mails From BBDB Contacts, Next: BBDB posting styles, Prev: Restoring Window Layout, Up: Top
437
438 6 Recent Mails From BBDB Contacts
439 *********************************
440
441 If you’re using a recent git version of BBDB (circa mid-May 2014 or
442 later), you can give your BBDB contacts a special field which will
443 collect links to recent emails from that contact. The default name of
444 the field is “messages”, but you can customize that name using the
445 ‘gnorb-bbdb-messages-field’ option.
446
447 Gnorb will not collect links by default: you need to call
448 ‘gnorb-bbdb-open-link’ on a contact once to start the process.
449 Thereafter, opening mails from that contact will store a link to the
450 message.
451
452 Once some links are stored, ‘gnorb-bbdb-open-link’ will open them:
453 Use a prefix arg to the function call to select particular messages to
454 open. There are several options controlling how all this works; see the
455 gnorb-bbdb user options section below for details.
456
457 \1f
458 File: gnorb.info, Node: BBDB posting styles, Next: BBDB Org tagging, Prev: Recent Mails From BBDB Contacts, Up: Top
459
460 7 BBDB posting styles
461 *********************
462
463 Gnorb comes with a BBDB posting-style system, inspired by (copied from)
464 gnus-posting-styles. You can specify how messages are composed to
465 specific contacts, by matching on contact field values (the same way
466 gnus-posting-styles matches on group names). See the docstring of
467 ‘gnorb-bbdb-posting-styles’ for details.
468
469 In order not to be too intrusive, Gnorb doesn’t alter the behavior of
470 ‘bbdb-mail’, the usual mail-composition function. Instead it provides
471 an alternate ‘gnorb-bbdb-mail’, which does exactly the same thing, but
472 first processes the new mail according to ‘gnorb-bbdb-posting-styles’.
473 If you want to use this feature regularly, you can remap ‘bbdb-mail’ to
474 ‘gnorb-bbdb-mail’ in the ‘bbdb-mode-map’.
475
476 \1f
477 File: gnorb.info, Node: BBDB Org tagging, Next: Misc BBDB, Prev: BBDB posting styles, Up: Top
478
479 8 BBDB Org tagging
480 ******************
481
482 BBDB contacts can be tagged with the same tags you use in your Org
483 files. This allows you to pop up a *BBDB* buffer alongside your Org
484 Agenda when searching for certain tags. This can happen automatically
485 for all Org tags-todo searches, if you set the option
486 ‘gnorb-org-agenda-popup-bbdb’ to t. Or you can do it manually, by
487 calling the command of the same name. This command only shows TODOs by
488 default: use a prefix argument to show all tagged headings.
489
490 Tags are stored in an xfield named org-tags, by default. You can
491 customize the name of this field using ‘gnorb-bbdb-org-tag-field’.
492
493 \1f
494 File: gnorb.info, Node: Misc BBDB, Next: Misc Org, Prev: BBDB Org tagging, Up: Top
495
496 9 Misc BBDB
497 ***********
498
499 * Menu:
500
501 * Searching for messages from BBDB contacts::
502 * Citing BBDB contacts::
503 * User Options::
504
505 \1f
506 File: gnorb.info, Node: Searching for messages from BBDB contacts, Next: Citing BBDB contacts, Up: Misc BBDB
507
508 9.1 Searching for messages from BBDB contacts
509 =============================================
510
511 Call ‘gnorb-bbdb-mail-search’ to search for all mail messages from the
512 record(s) displayed. Currently supports the notmuch, mairix, and namazu
513 search backends; set ‘gnorb-gnus-mail-search-backend’ to one of those
514 symbol values.
515
516 \1f
517 File: gnorb.info, Node: Citing BBDB contacts, Next: User Options, Prev: Searching for messages from BBDB contacts, Up: Misc BBDB
518
519 9.2 Citing BBDB contacts
520 ========================
521
522 Calling ‘gnorb-bbdb-cite-contact’ will prompt for a BBDB record and
523 insert a string of the type “Bob Smith <bob@smith.com>”.
524
525 \1f
526 File: gnorb.info, Node: User Options, Prev: Citing BBDB contacts, Up: Misc BBDB
527
528 9.3 User Options
529 ================
530
531 ‘`gnorb-bbdb-org-tag-field’
532 The name of the BBDB xfield, as a symbol, that holds Org-related
533 tags. Specified as a string with the “:” separator between tags,
534 same as for Org headings. Defaults to org-tag.
535 ‘`gnorb-bbdb-messages-field'’
536 The name of the BBDB xfield that holds links to recently-received
537 messages from this contact. Defaults to ‘messages.
538 ‘`gnorb-bbdb-collect-N-messages'’
539 Collect at most this many links to messages from this contact.
540 Defaults to 5.
541 ‘`gnorb-bbdb-define-recent'’
542 What does “recently-received” mean? Possible values are the
543 symbols seen and received. When set to seen, the most
544 recently-opened messages are collected. When set to received, the
545 most recently-received (by Date header) messages are collected.
546 Defaults to seen.
547 ‘`gnorb-bbdb-message-link-format-multi'’
548 How is a single message’s link formatted in the multi-line BBDB
549 layout format? Defaults to “%:count. %D: %:subject” (see the
550 docstring for details).
551 ‘` gnorb-bbdb-message-link-format-one'’
552 How is a single message’s link formatted in the one-line BBDB
553 layout format? Defaults to nil (see the docstring for details).
554 ‘`gnorb-bbdb-posting-styles'’
555 Styles to use for influencing the format of mails composed to the
556 BBDB record(s) under point (see the docstring for details).
557
558 \1f
559 File: gnorb.info, Node: Misc Org, Next: Misc Gnus, Prev: Misc BBDB, Up: Top
560
561 10 Misc Org
562 ***********
563
564 * Menu:
565
566 * Inserting BBDB links::
567 * User Options: User Optionsx.
568
569 \1f
570 File: gnorb.info, Node: Inserting BBDB links, Next: User Optionsx, Up: Misc Org
571
572 10.1 Inserting BBDB links
573 =========================
574
575 Calling ‘gnorb-org-contact-link’ will prompt for a BBDB record and
576 insert an Org link to that record at point.
577
578 \1f
579 File: gnorb.info, Node: User Optionsx, Prev: Inserting BBDB links, Up: Misc Org
580
581 10.2 User Options
582 =================
583
584 ‘`gnorb-org-after-message-setup-hook'’
585 Hook run in a message buffer after setting up the message, from
586 ‘gnorb-org-handle-mail’ or ‘gnorb-org-email-subtree’.
587 ‘`gnorb-org-trigger-actions'’
588 List of potential actions that can be taken on headings after a
589 message is sent. See docstring for details.
590 ‘`gnorb-org-mail-scan-scope'’
591 The number of paragraphs to scan for mail-related links. This
592 comes into play when calling ‘gnorb-org-handle-mail’ on a heading
593 with no associated messages, or when ‘gnorb-org-handle-mail’ is
594 called with a prefix arg.
595 ‘`gnorb-org-find-candidates-match'’
596 When searching all Org files for headings to collect messages from,
597 this option can limit which headings are searched. It is used as
598 the second argument to a call to ‘org-map-entries’, and has the
599 same syntax as that used in an agenda tags view.
600 ‘`gnorb-org-email-subtree-text-parameters'’
601 A plist of export parameters corresponding to the EXT-PLIST
602 argument to the export functions, for use when exporting to text.
603 ‘`gnorb-org-email-subtree-file-parameters'’
604 A plist of export parameters corresponding to the EXT-PLIST
605 argument to the export functions, for use when exporting to a file.
606 ‘`gnorb-org-email-subtree-text-options'’
607 A list of ts and nils corresponding to Org’s export options, to be
608 used when exporting to text. The options, in order, are async,
609 subtreep, visible-only, and body-only.
610 ‘`gnorb-org-email-subtree-file-options'’
611 A list of ts and nils corresponding to Org’s export options, to be
612 used when exporting to a file. The options, in order, are async,
613 subtreep, visible-only, and body-only.
614 ‘`gnorb-org-export-extensions'’
615 Correspondence between export backends and their respective (usual)
616 file extensions.
617 ‘`gnorb-org-capture-collect-link-p'’
618 When this is set to t, the capture process will always store a link
619 to the Gnus message or BBDB record under point, even when the link
620 isn’t part of the capture template. It can then be added to the
621 captured heading with org-insert-link, as usual.
622 ‘`gnorb-org-agenda-popup-bbdb'’
623 Set to “t” to automatically pop up the BBDB buffer displaying
624 records corresponding to the Org Agenda tags search underway. If
625 this is nil you can always do it manually with the command of the
626 same name.
627 ‘`gnorb-org-bbdb-popup-layout'’
628 Controls the layout of the Agenda-related BBDB popup, takes the
629 same values as bbdb-pop-up-layout.
630
631 \1f
632 File: gnorb.info, Node: Misc Gnus, Next: Suggested Keybindings, Prev: Misc Org, Up: Top
633
634 11 Misc Gnus
635 ************
636
637 * Menu:
638
639 * Viewing Org headlines relevant to a message::
640 * User Options: User Optionsxx.
641
642 \1f
643 File: gnorb.info, Node: Viewing Org headlines relevant to a message, Next: User Optionsxx, Up: Misc Gnus
644
645 11.1 Viewing Org headlines relevant to a message
646 ================================================
647
648 Call ‘gnorb-gnus-view’ on a message that is associated with an Org
649 heading to jump to that heading.
650
651 \1f
652 File: gnorb.info, Node: User Optionsxx, Prev: Viewing Org headlines relevant to a message, Up: Misc Gnus
653
654 11.2 User Options
655 =================
656
657 ‘`gnorb-gnus-mail-search-backend'’
658 Specifies the search backend that you use for searching mails.
659 Currently supports notmuch, mairix, and namazu: set this option to
660 one of those symbols.
661 ‘`gnorb-gnus-capture-always-attach'’
662 Treat all capture templates as if they had the :gnus-attachments
663 key set to “t”. This only has any effect if you’re capturing from
664 a Gnus summary or article buffer.
665 ‘`gnorb-trigger-todo-default'’
666 Set to either ‘note or ‘todo to tell ‘gnorb-gnus-incoming-do-todo’
667 what to do by default. You can reach the non-default behavior by
668 calling that function with a prefix argument. Alternately, set to
669 ‘prompt to always prompt for the appropriate action.
670 ‘`gnorb-gnus-trigger-refile-targets'’
671 If you use ‘gnorb-gnus-incoming-do-todo’ on an incoming message,
672 Gnorb will try to locate a TODO heading that’s relevant to that
673 message. If it can’t, it will prompt you for one, using the refile
674 interface. This option will be used as the value of
675 ‘org-refile-targets’ during that process: see the docstring of
676 ‘org-refile-targets’ for the appropriate syntax.
677 ‘`gnorb-gnus-new-todo-capture-key'’
678 Set this to a single-character string pointing at an Org capture
679 template to use when creating TODOs from outgoing messages. The
680 template is a regular capture template, with a few exceptions. If
681 Gnus helps you archive outgoing messages (ie you have
682 ‘gnus-message-archive-group’ set to something, and your outgoing
683 messages have a “Fcc” header), a link to that message will be made,
684 and you’ll be able to use all the escapes related to gnus messages.
685 If you don’t archive outgoing messages, you’ll still be able to use
686 the %:subject, %:to, %:toname, %:toaddress, and %:date escapes in
687 the capture template.
688 ‘`gnorb-gnus-hint-relevant-article'’
689 Set to “t” (the default) to have Gnorb give you a hint in the
690 minibuffer when opening messages that might be relevant to existing
691 Org TODOs.
692 ‘`gnorb-gnus-summary-mark-format-letter'’
693 The formatting letter to use as part of your
694 ‘gnus-summary-line-format’, to indicate messages which might be
695 relevant to Org TODOs. Defaults to “g”, meaning it should be used
696 as “%ug” in the format line.
697 ‘`gnorb-gnus-summary-mark'’
698 The mark used to indicate potentially relevant messages in the
699 Summary buffer, when ‘gnorb-gnus-summary-mark-format-letter’ is
700 present in the format line. Defaults to “¡”.
701 ‘`gnorb-gnus-summary-tracked-mark'’
702 The mark used to indicate already-tracked messages in the Summary
703 buffer, when ‘gnorb-gnus-summary-mark-format-letter’ is present in
704 the format line. Defaults to “&”.
705
706 \1f
707 File: gnorb.info, Node: Suggested Keybindings, Prev: Misc Gnus, Up: Top
708
709 12 Suggested Keybindings
710 ************************
711
712 (eval-after-load "gnorb-bbdb"
713 '(progn
714 (define-key bbdb-mode-map (kbd "O") 'gnorb-bbdb-tag-agenda)
715 (define-key bbdb-mode-map (kbd "S") 'gnorb-bbdb-mail-search)
716 (define-key bbdb-mode-map [remap bbdb-mail] 'gnorb-bbdb-mail)
717 (define-key bbdb-mode-map (kbd "l") 'gnorb-bbdb-open-link)
718 (global-set-key (kbd "C-c C") 'gnorb-bbdb-cite-contact)))
719
720 (eval-after-load "gnorb-org"
721 '(progn
722 (org-defkey org-mode-map (kbd "C-c C") 'gnorb-org-contact-link)
723 (org-defkey org-mode-map (kbd "C-c t") 'gnorb-org-handle-mail)
724 (org-defkey org-mode-map (kbd "C-c e") 'gnorb-org-view)
725 (org-defkey org-mode-map (kbd "C-c E") 'gnorb-org-email-subtree)
726 (org-defkey org-mode-map (kbd "C-c V") 'gnorb-org-popup-bbdb)
727 (setq gnorb-org-agenda-popup-bbdb t)
728 (eval-after-load "org-agenda"
729 '(progn (org-defkey org-agenda-mode-map (kbd "C-c t") 'gnorb-org-handle-mail)
730 (org-defkey org-agenda-mode-map (kbd "C-c v") 'gnorb-org-popup-bbdb)
731 (org-defkey org-agenda-mode-map (kbd "V") 'gnorb-org-view)))))
732
733 (eval-after-load "gnorb-gnus"
734 '(progn
735 (define-key gnus-summary-mime-map "a" 'gnorb-gnus-article-org-attach)
736 (define-key gnus-summary-mode-map (kbd "C-c t") 'gnorb-gnus-incoming-do-todo)
737 (push '("attach to org heading" . gnorb-gnus-mime-org-attach)
738 gnus-mime-action-alist)
739 ;; The only way to add mime button command keys is by redefining
740 ;; gnus-mime-button-map, possibly not ideal. Ideal would be a
741 ;; setter function in gnus itself.
742 (push '(gnorb-gnus-mime-org-attach "a" "Attach to Org heading")
743 gnus-mime-button-commands)
744 (setq gnus-mime-button-map
745 (let ((map (make-sparse-keymap)))
746 (define-key map gnus-mouse-2 'gnus-article-push-button)
747 (define-key map gnus-down-mouse-3 'gnus-mime-button-menu)
748 (dolist (c gnus-mime-button-commands)
749 (define-key map (cadr c) (car c)))
750 map))))
751
752 (eval-after-load "message"
753 '(progn
754 (define-key message-mode-map (kbd "C-c t") 'gnorb-gnus-outgoing-do-todo)))
755
756
757 \1f
758 Tag Table:
759 Node: Top\7f194
760 Node: Introduction\7f1044
761 Node: Installation\7f2153
762 Node: Setup\7f2567
763 Node: Email Tracking\7f3934
764 Node: Basic Usage\7f5544
765 Node: Email-Related Commands\7f6617
766 Node: Trigger Actions\7f10112
767 Node: Viewing Tracked Messages in *Summary* Buffers\7f11064
768 Node: Hinting in Gnus\7f12551
769 Node: Message Attachments\7f13647
770 Node: Registry Usage\7f14828
771 Node: Likely Workflow\7f15279
772 Node: Restoring Window Layout\7f18079
773 Node: Recent Mails From BBDB Contacts\7f18443
774 Node: BBDB posting styles\7f19439
775 Node: BBDB Org tagging\7f20355
776 Node: Misc BBDB\7f21101
777 Node: Searching for messages from BBDB contacts\7f21314
778 Node: Citing BBDB contacts\7f21760
779 Node: User Options\7f22081
780 Node: Misc Org\7f23620
781 Node: Inserting BBDB links\7f23795
782 Node: User Optionsx\7f24050
783 Node: Misc Gnus\7f26787
784 Node: Viewing Org headlines relevant to a message\7f27000
785 Node: User Optionsxx\7f27315
786 Node: Suggested Keybindings\7f30322
787 \1f
788 End Tag Table
789
790 \1f
791 Local Variables:
792 coding: utf-8
793 End: