community/pipermail-archives/sup-talk/2011-05.txt (74546B) - raw
1 From felix.glaser@rwth-aachen.de Sun May 1 12:09:28 2011
2 From: felix.glaser@rwth-aachen.de (Felix Glaser)
3 Date: Sun, 01 May 2011 18:09:28 +0200
4 Subject: [sup-talk] sup crashes while opening a big email thread
5 Message-ID: <1304265892-sup-7165@alpha>
6
7 Hi *,
8
9 I am running sup v0.12.1 with ruby 1.8.7 (2011-02-18 patchlevel 334)
10 [x86_64-linux] on gentoo. Sup was installed via rubygems, gem 1.3.7.
11
12 Haven't had any trouble with sup until one of my email threads grew up to
13 almost 200 emails, right now the thread holds 202 mails. Whenever I try to
14 open the thread sup crashes, error log is attached as tar.gz.
15
16 Aside from this bug I have a question/feature request, is there a way to open
17 just the last 5 emails of a thread, because it takes rather long to open a
18 huge mail thread.
19
20 cheers and thanks for developing sup
21 leex
22 -------------- next part --------------
23 A non-text attachment was scrubbed...
24 Name: error.tar.gz
25 Type: application/x-gzip
26 Size: 1240 bytes
27 Desc: not available
28 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110501/8011ee0a/attachment.gz>
29
30 From dmishd@gmail.com Sun May 1 13:25:28 2011
31 From: dmishd@gmail.com (Hamish D)
32 Date: Sun, 1 May 2011 18:25:28 +0100
33 Subject: [sup-talk] sup crashes while opening a big email thread
34 In-Reply-To: <1304265892-sup-7165@alpha>
35 References: <1304265892-sup-7165@alpha>
36 Message-ID: <BANLkTim+04UHcQtzeNg-HtAyEU7q=2Cudw@mail.gmail.com>
37
38 > Haven't had any trouble with sup until one of my email threads grew up to
39 > almost 200 emails, right now the thread holds 202 mails. Whenever I try to
40 > open the thread sup crashes, error log is attached as tar.gz.
41
42 The simplest way to solve this would be to increase your stack limit a little:
43
44 http://dalibornasevic.com/posts/5-ruby-stack-level-too-deep-systemstackerror
45
46 Hamish
47
48 From felix.glaser@rwth-aachen.de Sun May 1 14:07:41 2011
49 From: felix.glaser@rwth-aachen.de (Felix Glaser)
50 Date: Sun, 01 May 2011 20:07:41 +0200
51 Subject: [sup-talk] sup crashes while opening a big email thread
52 In-Reply-To: <BANLkTim+04UHcQtzeNg-HtAyEU7q=2Cudw@mail.gmail.com>
53 References: <1304265892-sup-7165@alpha>
54 <BANLkTim+04UHcQtzeNg-HtAyEU7q=2Cudw@mail.gmail.com>
55 Message-ID: <1304272885-sup-665@alpha>
56
57 Hi Hamish,
58
59 thanks, i just created an alias that takes care of resizing the stack before
60 starting sup.
61
62 cheers leex
63
64 From dmishd@gmail.com Sun May 1 14:51:20 2011
65 From: dmishd@gmail.com (Hamish)
66 Date: Sun, 01 May 2011 19:51:20 +0100
67 Subject: [sup-talk] Sending Encrypted and Signed emails with gpg
68 In-Reply-To: <1304115809-sup-4326@localhost>
69 References: <1304115809-sup-4326@localhost>
70 Message-ID: <1304272466-sup-6692@whisper>
71
72 Excerpts from Paul Grove's message of Fri Apr 29 23:29:42 +0100 2011:
73 > Hi, I'm using git://gitorious.org/sup/mainline.git and am uptodate as of
74 > 29/04/2011
75
76 Are you using the master branch? Or next? I've done a lot of work on
77 sup's gpg support recently. The next branch uses the gpgme library
78 rather than the gpg binary. If you're using master, then try switching
79 to next (git checkout next) and see if that fixes your issues.
80
81 > I'm not entirely sure how long it has been like this for me, but I know
82 > it used to work. I use a mailing list that only accepts encrypted and
83 > signed emails which used to work fine but it is currently rejecting my
84 > emails.
85
86 I also use a list like that, and sup works fine for me, so I'd like it
87 to work for you aswell.
88
89 Hamish
90
91 From support@plecavalier.com Fri May 6 12:39:06 2011
92 From: support@plecavalier.com (Philippe LeCavalier)
93 Date: Fri, 06 May 2011 11:39:06 -0500
94 Subject: [sup-talk] nvalid number of options error msg
95 Message-ID: <20110506113906.t0it7o860csckgk8@webmail.plecavalier.com>
96
97 Anyone know what that means? I get that error randomly throughout the
98 day when polling for new messages.
99
100 Thanks,
101 Phil
102
103 From andrew@pimlott.net Fri May 6 18:06:50 2011
104 From: andrew@pimlott.net (Andrew Pimlott)
105 Date: Fri, 6 May 2011 15:06:50 -0700
106 Subject: [sup-talk] DatabaseCorruptError
107 Message-ID: <20110506220650.GA23223@pimlott.net>
108
109 Sup had been running for a while, and I just came back to my terminal to
110 find it dead:
111
112 --- IOError from thread: periodic poll
113 DatabaseError: Error reading block 4279173482: got end of file
114 ./lib/sup/index.rb:271:in `_dangerous_allterms_begin'
115 ./lib/sup/index.rb:271:in `each_prefixed_term'
116 ./lib/sup/index.rb:284:in `each_source_info'
117 ./lib/sup/mbox.rb:147:in `each'
118 ./lib/sup/mbox.rb:147:in `map'
119 ./lib/sup/mbox.rb:147:in `last_indexed_message'
120 ./lib/sup/util.rb:204:in `call'
121 ./lib/sup/util.rb:204:in `benchmark'
122 /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
123 ./lib/sup/util.rb:204:in `benchmark'
124 ./lib/sup/mbox.rb:147:in `last_indexed_message'
125 ./lib/sup/mbox.rb:152:in `first_new_message'
126 ./lib/sup/mbox.rb:124:in `poll'
127 ./lib/sup/poll.rb:154:in `poll_from'
128 ./lib/sup/poll.rb:113:in `do_poll'
129 ./lib/sup/poll.rb:103:in `each'
130 ./lib/sup/poll.rb:103:in `do_poll'
131 ./lib/sup/poll.rb:102:in `synchronize'
132 ./lib/sup/poll.rb:102:in `do_poll'
133 ./lib/sup/util.rb:609:in `send'
134 ./lib/sup/util.rb:609:in `method_missing'
135 ./lib/sup/modes/poll-mode.rb:15:in `poll'
136 ./lib/sup/poll.rb:49:in `poll_with_sources'
137 ./lib/sup/poll.rb:68:in `poll'
138 ./lib/sup/poll.rb:86:in `start'
139 ./lib/sup.rb:78:in `reporting_thread'
140 ./lib/sup.rb:76:in `initialize'
141 ./lib/sup.rb:76:in `new'
142 ./lib/sup.rb:76:in `reporting_thread'
143 ./lib/sup/poll.rb:83:in `start'
144 ./lib/sup/util.rb:609:in `send'
145 ./lib/sup/util.rb:609:in `method_missing'
146 bin/sup:222
147
148 I tried to start it again, and got
149
150 --- IOError from thread: poll after loading inbox
151 DatabaseCorruptError: Db block overwritten - are there multiple writers?
152 /usr/lib/ruby/1.8/xapian.rb:259:in `_dangerous_postlist_begin'
153 /usr/lib/ruby/1.8/xapian.rb:259:in `postlist'
154 ./lib/sup/index.rb:530:in `term_docids'
155 ./lib/sup/index.rb:717:in `index_message_threading'
156 ./lib/sup/index.rb:633:in `sync_message'
157 ./lib/sup/util.rb:609:in `send'
158 ./lib/sup/util.rb:609:in `method_missing'
159 ./lib/sup/poll.rb:168:in `poll_from'
160 ./lib/sup/mbox.rb:127:in `poll'
161 ./lib/sup/poll.rb:154:in `poll_from'
162 ./lib/sup/poll.rb:113:in `do_poll'
163 ./lib/sup/poll.rb:103:in `each'
164 ./lib/sup/poll.rb:103:in `do_poll'
165 ./lib/sup/poll.rb:102:in `synchronize'
166 ./lib/sup/poll.rb:102:in `do_poll'
167 ./lib/sup/util.rb:609:in `send'
168 ./lib/sup/util.rb:609:in `method_missing'
169 ./lib/sup/modes/poll-mode.rb:15:in `poll'
170 ./lib/sup/poll.rb:49:in `poll_with_sources'
171 ./lib/sup/poll.rb:68:in `poll'
172 ./lib/sup/util.rb:609:in `send'
173 ./lib/sup/util.rb:609:in `method_missing'
174 bin/sup:212
175 ./lib/sup.rb:78:in `reporting_thread'
176 ./lib/sup.rb:76:in `initialize'
177 ./lib/sup.rb:76:in `new'
178 ./lib/sup.rb:76:in `reporting_thread'
179 bin/sup:212
180 ./lib/sup/modes/thread-index-mode.rb:684:in `call'
181 ./lib/sup/modes/thread-index-mode.rb:684:in `__unprotected_load_threads'
182 ./lib/sup/modes/thread-index-mode.rb:625:in `call'
183 ./lib/sup/modes/thread-index-mode.rb:625:in `load_n_threads_background'
184 ./lib/sup.rb:78:in `reporting_thread'
185 ./lib/sup.rb:76:in `initialize'
186 ./lib/sup.rb:76:in `new'
187 ./lib/sup.rb:76:in `reporting_thread'
188 ./lib/sup/modes/thread-index-mode.rb:623:in `load_n_threads_background'
189 ./lib/sup/modes/thread-index-mode.rb:694:in `__unprotected_load_threads'
190 (eval):12:in `load_threads'
191 bin/sup:212
192
193 My xapian dir looks like:
194
195 total 334396
196 -rw------- 1 andrew andrew 0 May 6 14:43 flintlock
197 -rw-rw-r-- 1 andrew andrew 12 May 31 2010 iamflint
198 -rw-rw-r-- 1 andrew andrew 103014400 May 6 13:09 position.DB
199 -rw-rw-r-- 1 andrew andrew 1594 May 6 11:22 position.baseA
200 -rw-rw-r-- 1 andrew andrew 161333248 May 6 13:29 postlist.DB
201 -rw-rw-r-- 1 andrew andrew 2475 May 6 11:22 postlist.baseA
202 -rw-rw-r-- 1 andrew andrew 20807680 May 6 13:04 record.DB
203 -rw-rw-r-- 1 andrew andrew 339 May 6 11:22 record.baseA
204 -rw-rw-r-- 1 andrew andrew 50692096 May 6 13:29 termlist.DB
205 -rw-rw-r-- 1 andrew andrew 795 May 6 11:22 termlist.baseA
206 -rw-rw-r-- 1 andrew andrew 6184960 May 6 13:04 value.DB
207 -rw-rw-r-- 1 andrew andrew 115 May 6 11:22 value.baseA
208
209 I'm running an old git pull from next, commit 1bafcf6 dated 2010-10-12.
210 Anything I should do to try to diagnose and recover this? Or just load
211 from sup-dump?
212
213 Andrew
214
215 From akaihola@gmail.com Tue May 10 03:07:13 2011
216 From: akaihola@gmail.com (Antti Kaihola)
217 Date: Tue, 10 May 2011 10:07:13 +0300
218 Subject: [sup-talk] Word wrap for quoted lines
219 Message-ID: <BANLkTimTBRbHOTPDpE=qFZetZyccdCdt6w@mail.gmail.com>
220
221 Hi,
222
223
224 When reading messages in Sup and expanding quoted lines, long quoted
225 lines are not word wrapped and thus I can't read all the content.
226 Non-quoted content wraps as expected.
227
228 Is this a known issue or could it be a misconfiguration or problem in
229 my build? I'm currently using commit 7e2bb88 from Sun Jan 23 21:05:39
230 2011 -0800 on Ubuntu 10.10.
231
232
233 -Antti
234
235
236
237 Here is a "screenshot" of the issue:
238 ------------
239 - John Smith to Antti May? 6 (4 days ago)
240 Begin forwarded message:
241
242 - (3 quoted lines)
243 > Thanks for your message. Nice to hear from you again. Hope to m
244 >
245 > Cheers,
246
247 John
248
249 + (4-line signature)
250 x Attachment: sup-attachment-1305010003-1158.html (text/html; 2k)
251
252 From d.t.k@gmx.de Tue May 10 16:17:00 2011
253 From: d.t.k@gmx.de (dtk)
254 Date: Tue, 10 May 2011 22:17:00 +0200
255 Subject: [sup-talk] multiple accounts
256 Message-ID: <1305058093-sup-1016@minibox>
257
258 Hey folks,
259
260 I've been test driving sup with my main mail account for some weeks now, and
261 have to admit that my other accounts didn't get too much love during that time,
262 due to the clunky handling of thunderbird. So I'd like to manage my other
263 accounts in sup now as well.
264
265 I do have a problem, though, since I can't seem to find a way to define seperate
266 :sent_sources per account. And I really don't want to get private/work mails to
267 get mixed up :|
268
269 Is there a way to define :sent_source: entries per account?
270
271 tia
272 dtk
273
274 From wirtwolff@gmail.com Tue May 10 17:36:25 2011
275 From: wirtwolff@gmail.com (Wirt Wolff)
276 Date: Tue, 10 May 2011 15:36:25 -0600
277 Subject: [sup-talk] multiple accounts
278 In-Reply-To: <1305058093-sup-1016@minibox>
279 References: <1305058093-sup-1016@minibox>
280 Message-ID: <1305063169-sup-9131@chigamba>
281
282 Excerpts from dtk's message of Tue May 10 14:17:00 -0600 2011:
283 > I've been test driving sup with my main mail account for some weeks now, and
284 > have to admit that my other accounts didn't get too much love during that time,
285 > due to the clunky handling of thunderbird. So I'd like to manage my other
286 > accounts in sup now as well.
287 >
288 > I do have a problem, though, since I can't seem to find a way to define seperate
289 > :sent_sources per account. And I really don't want to get private/work mails to
290 > get mixed up :|
291 >
292 > Is there a way to define :sent_source: entries per account?
293
294 Is this what you mean?
295
296 http://sup.rubyforge.org/wiki/wiki.pl?MultipleAccountsAndReply
297
298 i.e. get a mail to dtk at private.net replies from a private acct and mails
299 to my_boss_is_watching at foozle.com replies are from you at foozle.com?
300
301 --
302 wmw
303
304 From d.t.k@gmx.de Tue May 10 18:52:19 2011
305 From: d.t.k@gmx.de (dtk)
306 Date: Wed, 11 May 2011 00:52:19 +0200
307 Subject: [sup-talk] multiple accounts
308 In-Reply-To: <1305063169-sup-9131@chigamba>
309 References: <1305058093-sup-1016@minibox> <1305063169-sup-9131@chigamba>
310 Message-ID: <1305067227-sup-4227@minibox>
311
312 Excerpts from Wirt Wolff's message of Di Mai 10 23:36:25 +0200 2011:
313 > Excerpts from dtk's message of Tue May 10 14:17:00 -0600 2011:
314 > > I've been test driving sup with my main mail account for some weeks now, and
315 > > have to admit that my other accounts didn't get too much love during that time,
316 > > due to the clunky handling of thunderbird. So I'd like to manage my other
317 > > accounts in sup now as well.
318 > >
319 > > I do have a problem, though, since I can't seem to find a way to define seperate
320 > > :sent_sources per account. And I really don't want to get private/work mails to
321 > > get mixed up :|
322 > >
323 > > Is there a way to define :sent_source: entries per account?
324 >
325 > Is this what you mean?
326 >
327 > http://sup.rubyforge.org/wiki/wiki.pl?MultipleAccountsAndReply
328 >
329 > i.e. get a mail to dtk at private.net replies from a private acct and mails
330 > to my_boss_is_watching at foozle.com replies are from you at foozle.com?
331 not exactly. My local maildir sources are synced back to two different imap
332 servers (hosting my two different mail addresses) via offlineimap.
333
334 What I want is mails sent via dtk at foozle.com to end up in the
335 'Sent' folder on foozle.com while mails sent via dtk at private.net end up in the
336 'Sent' folder on private.net.
337
338 But so far (at least as far as I can tell) I can specify only /one/ maildir as
339 /the/ :sent_source, which means copies of sent mails (independent of the account
340 they were sent over) will end up on /one/ imap server.
341
342 hope that made it any clearer? :/
343
344 thanks anyway
345 dtk
346
347 From matthieu.rakotojaona@gmail.com Tue May 10 19:23:02 2011
348 From: matthieu.rakotojaona@gmail.com (Matthieu Rakotojaona)
349 Date: Wed, 11 May 2011 01:23:02 +0200
350 Subject: [sup-talk] multiple accounts
351 In-Reply-To: <1305067227-sup-4227@minibox>
352 References: <1305058093-sup-1016@minibox> <1305063169-sup-9131@chigamba>
353 <1305067227-sup-4227@minibox>
354 Message-ID: <BANLkTin03XSrPG-Ck1ThNd8+1uAsVARL2g@mail.gmail.com>
355
356 On Wed, May 11, 2011 at 12:52 AM, dtk <d.t.k at gmx.de> wrote:
357
358 > Excerpts from Wirt Wolff's message of Di Mai 10 23:36:25 +0200 2011:
359 > > Excerpts from dtk's message of Tue May 10 14:17:00 -0600 2011:
360 > > > I've been test driving sup with my main mail account for some weeks
361 > now, and
362 > > > have to admit that my other accounts didn't get too much love during
363 > that time,
364 > > > due to the clunky handling of thunderbird. So I'd like to manage my
365 > other
366 > > > accounts in sup now as well.
367 > > >
368 > > > I do have a problem, though, since I can't seem to find a way to define
369 > seperate
370 > > > :sent_sources per account. And I really don't want to get private/work
371 > mails to
372 > > > get mixed up :|
373 > > >
374 > > > Is there a way to define :sent_source: entries per account?
375 > >
376 > > Is this what you mean?
377 > >
378 > > http://sup.rubyforge.org/wiki/wiki.pl?MultipleAccountsAndReply
379 > >
380 > > i.e. get a mail to dtk at private.net replies from a private acct and mails
381 > > to my_boss_is_watching at foozle.com replies are from you at foozle.com?
382 > not exactly. My local maildir sources are synced back to two different imap
383 > servers (hosting my two different mail addresses) via offlineimap.
384 >
385 > What I want is mails sent via dtk at foozle.com to end up in the
386 > 'Sent' folder on foozle.com while mails sent via dtk at private.net end up in
387 > the
388 > 'Sent' folder on private.net.
389 >
390 > But so far (at least as far as I can tell) I can specify only /one/ maildir
391 > as
392 > /the/ :sent_source, which means copies of sent mails (independent of the
393 > account
394 > they were sent over) will end up on /one/ imap server.
395 >
396 > hope that made it any clearer? :/
397 >
398 > thanks anyway
399 > dtk
400 > _______________________________________________
401 > sup-talk mailing list
402 > sup-talk at rubyforge.org
403 > http://rubyforge.org/mailman/listinfo/sup-talk
404 >
405
406 My 2 cents :
407
408 I know that when you send an email from Google smtp, you don't have to save
409 it anywhere. It will automagically be saved with a GMail/Send tag (most of
410 the time 'Send' only'). You don't configure your GMail account to save
411 anything in msmtp; it happens on Google side.
412 Isn't there a way to do so with msmtp ? I know you can choose an account to
413 send from, but after a quick looking you can't choose a folder where to save
414 the sent email. Maybe you'd have to choose another MTA to save the sending
415 mail ? Simple relays like msmtp or nbsmtp (in the example) can't save in a
416 specific folder. sup is just like mutt, an MUA, and HAPPENS to be able to
417 save your sent mail to a specific folder. But I think it's not the main
418 purpose of it, or am I wrong ?
419
420 --
421 Matthieu RAKOTOJAONA
422 -------------- next part --------------
423 An HTML attachment was scrubbed...
424 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110511/c96a5b03/attachment.html>
425
426 From d.t.k@gmx.de Tue May 10 20:16:03 2011
427 From: d.t.k@gmx.de (dtk)
428 Date: Wed, 11 May 2011 02:16:03 +0200
429 Subject: [sup-talk] multiple accounts
430 In-Reply-To: <BANLkTin03XSrPG-Ck1ThNd8+1uAsVARL2g@mail.gmail.com>
431 References: <1305058093-sup-1016@minibox> <1305063169-sup-9131@chigamba>
432 <1305067227-sup-4227@minibox>
433 <BANLkTin03XSrPG-Ck1ThNd8+1uAsVARL2g@mail.gmail.com>
434 Message-ID: <1305072191-sup-3288@minibox>
435
436 Excerpts from Matthieu Rakotojaona's message of Mi Mai 11 01:23:02 +0200 2011:
437 > I know that when you send an email from Google smtp, you don't have to save
438 > it anywhere. It will automagically be saved with a GMail/Send tag (most of
439 > the time 'Send' only'). You don't configure your GMail account to save
440 > anything in msmtp; it happens on Google side.
441 > Isn't there a way to do so with msmtp ? I know you can choose an account to
442 > send from, but after a quick looking you can't choose a folder where to save
443 > the sent email. Maybe you'd have to choose another MTA to save the sending
444 > mail ? Simple relays like msmtp or nbsmtp (in the example) can't save in a
445 > specific folder.
446 hmm, actually I don't think it's usually an smtp feature but rather an IMAP one?
447
448 > sup is just like mutt, an MUA, and HAPPENS to be able to
449 > save your sent mail to a specific folder. But I think it's not the main
450 > purpose of it, or am I wrong ?
451 well, as an MUA I feel it is its task to manage mails, and that certainly
452 includes accessing my mailbox. Admittedly stressing the comparison, speaking
453 proper maildir e.g. means moving mails from new/ to cur/, so I feel like copying
454 sent mails into a destined directory sounds rather appropriate, as does deleting
455 mails, etc...
456
457 Besides, sup /does/ it, so why not do it properly? Making the sent source
458 account dependent feels natural to me. And I don't see why I would need a more
459 complex MTA for that (which according to my understanding is responsible for
460 transferring mails between systems rather than shuffling around mails locally).
461
462 ready to be educated
463 dtk ;)
464
465 From wmorgan-sup@masanjin.net Tue May 10 20:36:54 2011
466 From: wmorgan-sup@masanjin.net (William Morgan)
467 Date: Wed, 11 May 2011 00:36:54 +0000
468 Subject: [sup-talk] DatabaseCorruptError
469 In-Reply-To: <20110506220650.GA23223@pimlott.net>
470 References: <20110506220650.GA23223@pimlott.net>
471 Message-ID: <1305074074-sup-8794@masanjin.net>
472
473 Reformatted excerpts from Andrew Pimlott's message of 2011-05-06:
474 > Sup had been running for a while, and I just came back to my terminal to
475 > find it dead:
476 >
477 > --- IOError from thread: periodic poll
478 > DatabaseError: Error reading block 4279173482: got end of file
479 > I'm running an old git pull from next, commit 1bafcf6 dated 2010-10-12.
480
481 Yipes. Are you out of disk space, or anything like that?
482
483 > Anything I should do to try to diagnose and recover this? Or just
484 > load from sup-dump?
485
486 Not knowing very much about Xapian, I suggest sup-dump. Not a great
487 solution, I know. Wait for heliotrope to solve your problems (or at
488 least be something I understand and can fix).
489 --
490 William <wmorgan-sup at masanjin.net>
491
492 From andrew@pimlott.net Wed May 11 02:14:01 2011
493 From: andrew@pimlott.net (Andrew Pimlott)
494 Date: Tue, 10 May 2011 23:14:01 -0700
495 Subject: [sup-talk] DatabaseCorruptError
496 In-Reply-To: <1305074074-sup-8794@masanjin.net>
497 References: <20110506220650.GA23223@pimlott.net>
498 <1305074074-sup-8794@masanjin.net>
499 Message-ID: <1305093702-sup-3221@pimlott.net>
500
501 Excerpts from William Morgan's message of Tue May 10 17:36:54 -0700 2011:
502 > Reformatted excerpts from Andrew Pimlott's message of 2011-05-06:
503 > > Sup had been running for a while, and I just came back to my terminal to
504 > > find it dead:
505 > >
506 > > --- IOError from thread: periodic poll
507 > > DatabaseError: Error reading block 4279173482: got end of file
508 > > I'm running an old git pull from next, commit 1bafcf6 dated 2010-10-12.
509 >
510 > Yipes. Are you out of disk space, or anything like that?
511
512 I wasn't out of space--unless possibly Xapian caused some transient
513 spike in disk use that was freed when it died. The system does run
514 without a ton of free space though, maybe 100 MB for a Xapian database
515 that is ~300 MB total.
516
517 I didn't get any disk errors either. This is on a VPS that could
518 conceivably be hiding some errors.
519
520 > > Anything I should do to try to diagnose and recover this? Or just
521 > > load from sup-dump?
522 >
523 > Not knowing very much about Xapian, I suggest sup-dump. Not a great
524 > solution, I know.
525
526 It turned out that sup-dump still worked. Probably some index was
527 corrupt but the data could still be walked. So I was able to restore
528 without losing any data. (Well, it did use most of the 160 MB of memory
529 on the VPS.)
530
531 > Wait for heliotrope to solve your problems (or at
532 > least be something I understand and can fix).
533
534 Dum de dum dum...
535
536 Andrew
537
538 From patricktotzke@googlemail.com Wed May 11 05:41:44 2011
539 From: patricktotzke@googlemail.com (Patrick Totzke)
540 Date: Wed, 11 May 2011 10:41:44 +0100
541 Subject: [sup-talk] multiple accounts
542 In-Reply-To: <1305072191-sup-3288@minibox>
543 References: <1305058093-sup-1016@minibox> <1305063169-sup-9131@chigamba>
544 <1305067227-sup-4227@minibox>
545 <BANLkTin03XSrPG-Ck1ThNd8+1uAsVARL2g@mail.gmail.com>
546 <1305072191-sup-3288@minibox>
547 Message-ID: <1305105912-sup-2960@brick>
548
549 Hiya!
550 I agree: a single send-sink seems totally unnatural.
551 In fact, we have the same problem with drafts. Has anyone of you managed
552 to store drafts anywhere else than in ~/.sup/drafts ? let alone
553 in different locations for different accounts?
554 I recently mentioned both shortcomings on sup-devel
555 (http://rubyforge.org/pipermail/sup-devel/2011-May/001095.html).
556 As you say: a quick glance at the code confirms that one can only
557 specify one send-sink, as well as draft-sink.
558 However, there is some sort of "DraftManager" object. I guess one can
559 play with that..
560
561 Anyhow, my current solution is to use a local mbox as send-sink
562 and use a bcc to myself. Then I use server-side filters to
563 mark incoming mails from myself as read and move it to sent.
564 offlineimap then syncs the sent folder, which is then included in
565 sources.yaml with archived:true and autoadd label:sent.
566
567 The problem with this is, that despite different sup's on different
568 hosts both can read the send mails wich are stored on the correct
569 servers, the sup-instance that was used to compose the mail actually
570 displays its local version and somehow skips the one from the server.
571 BUT: I cannot prevent my mailhost from adding another signature to the
572 mail and therefore, the mail sup stores is different from the one I
573 sent! To conclude: different send-sinks for different accounts are
574 the sensible solution in my view.
575 cheers'
576 /p
577
578 Excerpts from dtk's message of Wed May 11 01:16:03 +0100 2011:
579 > Excerpts from Matthieu Rakotojaona's message of Mi Mai 11 01:23:02 +0200 2011:
580 > > I know that when you send an email from Google smtp, you don't have to save
581 > > it anywhere. It will automagically be saved with a GMail/Send tag (most of
582 > > the time 'Send' only'). You don't configure your GMail account to save
583 > > anything in msmtp; it happens on Google side.
584 > > Isn't there a way to do so with msmtp ? I know you can choose an account to
585 > > send from, but after a quick looking you can't choose a folder where to save
586 > > the sent email. Maybe you'd have to choose another MTA to save the sending
587 > > mail ? Simple relays like msmtp or nbsmtp (in the example) can't save in a
588 > > specific folder.
589 > hmm, actually I don't think it's usually an smtp feature but rather an IMAP one?
590 >
591 > > sup is just like mutt, an MUA, and HAPPENS to be able to
592 > > save your sent mail to a specific folder. But I think it's not the main
593 > > purpose of it, or am I wrong ?
594 > well, as an MUA I feel it is its task to manage mails, and that certainly
595 > includes accessing my mailbox. Admittedly stressing the comparison, speaking
596 > proper maildir e.g. means moving mails from new/ to cur/, so I feel like copying
597 > sent mails into a destined directory sounds rather appropriate, as does deleting
598 > mails, etc...
599 >
600 > Besides, sup /does/ it, so why not do it properly? Making the sent source
601 > account dependent feels natural to me. And I don't see why I would need a more
602 > complex MTA for that (which according to my understanding is responsible for
603 > transferring mails between systems rather than shuffling around mails locally).
604 >
605 > ready to be educated
606 > dtk ;)
607 -------------- next part --------------
608 A non-text attachment was scrubbed...
609 Name: signature.asc
610 Type: application/pgp-signature
611 Size: 198 bytes
612 Desc: not available
613 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110511/bff0886c/attachment.bin>
614
615 From d.t.k@gmx.de Wed May 11 06:41:14 2011
616 From: d.t.k@gmx.de (d.t.k)
617 Date: Wed, 11 May 2011 12:41:14 +0200
618 Subject: [sup-talk] multiple accounts
619 In-Reply-To: <1305105912-sup-2960@brick>
620 References: <1305058093-sup-1016@minibox> <1305063169-sup-9131@chigamba>
621 <1305067227-sup-4227@minibox>
622 <BANLkTin03XSrPG-Ck1ThNd8+1uAsVARL2g@mail.gmail.com>
623 <1305072191-sup-3288@minibox> <1305105912-sup-2960@brick>
624 Message-ID: <1305109172-sup-2288@minibox>
625
626 Hi,
627
628 Excerpts from Patrick Totzke's message of Mi Mai 11 11:41:44 +0200 2011:
629 > I agree: a single send-sink seems totally unnatural.
630 > In fact, we have the same problem with drafts.
631 yeah, actually I can think of some more situations in which I would wish for
632 account specific sources: I'd love to add a :spam_source (e.g. 'Junk') and a :ham_source (e.g. INBOX) where mails
633 are moved when the 'spam' label is set/removed, so that operation is mapped onto
634 folders (I use a server side spamassassin to automagically learn from specified
635 folders)
636
637 > I recently mentioned both shortcomings on sup-devel
638 > (http://rubyforge.org/pipermail/sup-devel/2011-May/001095.html).
639 > As you say: a quick glance at the code confirms that one can only
640 > specify one send-sink, as well as draft-sink.
641 > However, there is some sort of "DraftManager" object. I guess one can
642 > play with that..
643 actually, as a dirty hack it shouldn't be too hard to do: message objects know
644 about their sources. Now we could reference the account a source belongs to in
645 every source in addition to fields like labels, usual, archived, etc. Et voila.
646 >From the related account we could then get any required sink: draft, sent, spam,
647 ham, ...
648
649 I don't think it's too beautiful if sources know what account they belong to. I
650 feel like it should rather be the other way around (an acct knows its srcs).
651 Specifying the sources of an account in the config.yaml might seriously clutter
652 that file up, though, especially for users with many imap folder. So we could
653 either reference a file containing the sources for an account in config.yaml
654 (per account) or name the file by some convention (sources_<account-name>.yaml)
655 and have it parsed automagically (convention over configuration?).
656
657 Thinking about it, if we could correlate mails and accounts (via the source) we
658 might just store the belonging account in a message field.
659
660 > Anyhow, my current solution is to use a local mbox as send-sink
661 > and use a bcc to myself. Then I use server-side filters to
662 > mark incoming mails from myself as read and move it to sent.
663 > offlineimap then syncs the sent folder, which is then included in
664 > sources.yaml with archived:true and autoadd label:sent.
665 >
666 > The problem with this is, that despite different sup's on different
667 > hosts both can read the send mails wich are stored on the correct
668 > servers, the sup-instance that was used to compose the mail actually
669 > displays its local version and somehow skips the one from the server.
670 > BUT: I cannot prevent my mailhost from adding another signature to the
671 > mail and therefore, the mail sup stores is different from the one I
672 > sent! To conclude: different send-sinks for different accounts are
673 > the sensible solution in my view.
674 I agree. Your solution may provide a work around for now, but it feels rather
675 hacky. I'd prefer having account specific sources handled properly (as I have
676 other applications in mind, see above) as much as I imagine you would.
677
678 dtk
679
680 From rthrd@web.de Wed May 11 08:10:25 2011
681 From: rthrd@web.de (Ruthard Baudach)
682 Date: Wed, 11 May 2011 14:10:25 +0200
683 Subject: [sup-talk] multiple accounts
684 In-Reply-To: <1305058093-sup-1016@minibox>
685 References: <1305058093-sup-1016@minibox>
686 Message-ID: <1305115211-sup-2468@PrxServer3>
687
688 > === dtk schrieb am 2011-05-10 22:17: === <
689 > Hey folks,
690 >
691 > I've been test driving sup with my main mail account for some weeks now, and
692 > have to admit that my other accounts didn't get too much love during that time,
693 > due to the clunky handling of thunderbird. So I'd like to manage my other
694 > accounts in sup now as well.
695 >
696 > I do have a problem, though, since I can't seem to find a way to define seperate
697 > :sent_sources per account. And I really don't want to get private/work mails to
698 > get mixed up :|
699 >
700 > Is there a way to define :sent_source: entries per account?
701
702 This sounds sort of "unsupish". The main idea of sup is to separate
703 the physical storage of emails (maildirs, imap folders, mbox and so on)
704 from the logical structure needed to archive (and access) the emails.
705
706 Sup organizes emails by indexing them and searching the index, so it's
707 completely unimportant where the emails are stored. An email labeled
708 "inbox" will be shown in the inbox regardless where it is stored, and
709 the same is true for emails labeled "draft" or "sent".
710
711 This means, that, according to sup's philosophy, if you want to
712 differentiate between private and business mail, you would tag the
713 threads the mail belongs to with the label "private" resp. "business"
714 (or even both).
715
716 Actually, the mere existence of an :sent_source: is astonishing, as sup
717 could store sent messages anywhere, it would not matter to the sup user.
718
719 This separation of physical storage and logical structure is ingenial,
720 and the reason why sup is so good organizing emails.
721
722 The downside is, that it's almost impossible to use other email clients
723 beside of sup.
724
725 OK, this is not really helpfull, but might help to understand, why sup
726 does not do things which seem to be natural for a MUA - like deleting
727 or copying emails or storing sent emails in different sources.
728 It's just not necessary.
729
730 One idea, that might help: there is an "sendmail" hook and an
731 "before-edit" hook. "before-edit" might be used to automize the creation
732 of a bcc to oneself, and the sendmail hook could probably be used
733 intercept the message and store it in an additional sent-source before
734 calling the actual sendmail command. But I'm affraid my Ruby is not
735 good enough to do that.
736
737 Ruthard Baudach
738
739 From patricktotzke@googlemail.com Wed May 11 09:20:04 2011
740 From: patricktotzke@googlemail.com (Patrick Totzke)
741 Date: Wed, 11 May 2011 14:20:04 +0100
742 Subject: [sup-talk] multiple accounts
743 In-Reply-To: <1305115211-sup-2468@PrxServer3>
744 References: <1305058093-sup-1016@minibox> <1305115211-sup-2468@PrxServer3>
745 Message-ID: <1305118404-sup-8314@optimusprime>
746
747 Excerpts from Ruthard Baudach's message of Wed May 11 13:10:25 +0100 2011:
748 > > === dtk schrieb am 2011-05-10 22:17: === <
749 > > Hey folks,
750 > >
751 > > I've been test driving sup with my main mail account for some weeks now, and
752 > > have to admit that my other accounts didn't get too much love during that time,
753 > > due to the clunky handling of thunderbird. So I'd like to manage my other
754 > > accounts in sup now as well.
755 > >
756 > > I do have a problem, though, since I can't seem to find a way to define seperate
757 > > :sent_sources per account. And I really don't want to get private/work mails to
758 > > get mixed up :|
759 > >
760 > > Is there a way to define :sent_source: entries per account?
761 >
762 > This sounds sort of "unsupish". The main idea of sup is to separate
763 > the physical storage of emails (maildirs, imap folders, mbox and so on)
764 > from the logical structure needed to archive (and access) the emails.
765 >
766 > Sup organizes emails by indexing them and searching the index, so it's
767 > completely unimportant where the emails are stored. An email labeled
768 > "inbox" will be shown in the inbox regardless where it is stored, and
769 > the same is true for emails labeled "draft" or "sent".
770 >
771 > This means, that, according to sup's philosophy, if you want to
772 > differentiate between private and business mail, you would tag the
773 > threads the mail belongs to with the label "private" resp. "business"
774 > (or even both).
775
776 I know thats the idea, but it only makes sense if you use sup for
777 nothing else than reading your mail:
778 Call me old-fashioned, but for me it is an integral part of the MUA to
779 be able to manipulate mail. I want to use it as a frontend for all my
780 (local) mail-organization: it should let me read, delete and respond to
781 mails and handle crypto transparently.
782 Hence, I consider it the responsibility of the mua to _physically_
783 manipulate mboxes and maildirs and storing my outgoing mail should also be
784 done by the mua, not my transport agent.
785
786 > Actually, the mere existence of an :sent_source: is astonishing, as sup
787 > could store sent messages anywhere, it would not matter to the sup user.
788 I guess every user would want to store outgoing mail _somewhere_?
789 The question is where? letting the user choose this in the settings is
790 a good idea, almost certainly better than hardcoding this to be sup:/sent
791 (or sup:/drafts for that matter *cough* ). But of course, his choice may
792 depend on the message in some way, most likely on the From: field.
793 How about a hook "choose-sent-sink" that takes a msg and decides
794 which source to store it in?
795
796 > This separation of physical storage and logical structure is ingenial,
797 > and the reason why sup is so good organizing emails.
798 > The downside is, that it's almost impossible to use other email clients
799 > beside of sup.
800 The point is that using this "pure" approach - sup does no physical
801 manipulation whatsoever - lets you no choice as to use other tools
802 to physically organize your mail, obviously cousing inconsistancies in
803 the index.
804
805 > OK, this is not really helpfull, but might help to understand, why sup
806 > does not do things which seem to be natural for a MUA - like deleting
807 > or copying emails or storing sent emails in different sources.
808 > It's just not necessary.
809 disagree: much discussed use-case: my personal outmails should not be
810 stored on the company mailserver, nor the other way around.
811
812 > One idea, that might help: there is an "sendmail" hook and an
813 > "before-edit" hook. "before-edit" might be used to automize the creation
814 > of a bcc to oneself,
815 Bcc to oneself is discussed below, is definately a workaround for
816 mua shortcomings.
817 > and the sendmail hook could probably be used
818 > intercept the message and store it in an additional sent-source before
819 > calling the actual sendmail command. But I'm affraid my Ruby is not
820 > good enough to do that.
821 Unfortunately, I too feel uncomfortable with ruby, otherwise I would
822 definately give more constructive feedback instead of just complaining
823 here 8)
824 Cheers,
825 /p
826 -------------- next part --------------
827 A non-text attachment was scrubbed...
828 Name: signature.asc
829 Type: application/pgp-signature
830 Size: 198 bytes
831 Desc: not available
832 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110511/48852dc0/attachment.bin>
833
834 From d.t.k@gmx.de Wed May 11 09:50:02 2011
835 From: d.t.k@gmx.de (dtk)
836 Date: Wed, 11 May 2011 15:50:02 +0200
837 Subject: [sup-talk] multiple accounts
838 In-Reply-To: <1305115211-sup-2468@PrxServer3>
839 References: <1305058093-sup-1016@minibox> <1305115211-sup-2468@PrxServer3>
840 Message-ID: <1305120470-sup-4951@minibox>
841
842 Excerpts from Ruthard Baudach's message of Mi Mai 11 14:10:25 +0200 2011:
843 > > === dtk schrieb am 2011-05-10 22:17: === <
844 > > Hey folks,
845 > >
846 > > I've been test driving sup with my main mail account for some weeks now, and
847 > > have to admit that my other accounts didn't get too much love during that time,
848 > > due to the clunky handling of thunderbird. So I'd like to manage my other
849 > > accounts in sup now as well.
850 > >
851 > > I do have a problem, though, since I can't seem to find a way to define seperate
852 > > :sent_sources per account. And I really don't want to get private/work mails to
853 > > get mixed up :|
854 > >
855 > > Is there a way to define :sent_source: entries per account?
856 >
857 > This sounds sort of "unsupish".
858 I know what you mean. It deals with folders, and sup doesn't. And still I tend
859 to regard that kind of behavior rather as an extension, an improvement than a
860 contradiction. Here's why:
861
862 > The main idea of sup is to separate
863 > the physical storage of emails [...]
864 > from the logical structure needed to archive (and access) the emails.
865 >
866 > This separation of physical storage and logical structure is [...] the reason
867 > why sup is so good organizing emails.
868 true
869
870 > The downside is, that it's almost impossible to use other email clients
871 > beside of sup.
872 false. As you say
873
874 > Sup organizes emails by indexing them and searching the index, so it's
875 > completely unimportant where the emails are stored.
876 So why not store it in a folder that makes it compatible with all those plain
877 old MUAs (like that webmail client I need when not at my machine or that stupid
878 GUI MUA my boss forces me to use so he can send me exchange invites)?
879
880 > Actually, the mere existence of an :sent_source: is astonishing
881 I wouldn't call it so much 'astonishing' but rather a well founded compromise,
882 since first it makes sup compatible with plain old MUAs and second
883 > sup could store sent messages anywhere, it would not matter to the sup user.
884
885 > OK, this is not really helpfull, but might help to understand, why sup
886 > does not do things which seem to be natural for a MUA - like deleting
887 > or copying emails
888 it doesn't!? o_O
889 I've been using Damien's branch[0] for basically what is the entire time I'm
890 using sup and it plays really, really nice with all my other MUAs without losing
891 /any/ of the great innovative advantages of a plain sup, at least as far as I
892 can tell. So I really fail to see how that would be considered a bad thing ;)
893
894 > It's just not necessary.
895 As you can probably see from my argumentation so far, I'd beg to differ ;P
896
897 > One idea, that might help: there is an "sendmail" hook and an
898 > "before-edit" hook. "before-edit" might be used to automize the creation
899 > of a bcc to oneself, and the sendmail hook could probably be used
900 > intercept the message and store it in an additional sent-source before
901 > calling the actual sendmail command.
902 yeah, thx for the hints!! Bs as I already stated, not only do I consider that a
903 rather hacky work around, but I also have other applications in mind plus I would
904 prefer to just do it the right way^TM ;)
905
906 Thanks for your clarifications
907 dtk
908
909
910 ----------
911 [0]http://rubyforge.org/pipermail/sup-devel/2010-July/000631.html
912
913 From d.t.k@gmx.de Wed May 11 11:08:48 2011
914 From: d.t.k@gmx.de (dtk)
915 Date: Wed, 11 May 2011 17:08:48 +0200
916 Subject: [sup-talk] multiple accounts
917 In-Reply-To: <1305109172-sup-2288@minibox>
918 References: <1305058093-sup-1016@minibox> <1305063169-sup-9131@chigamba>
919 <1305067227-sup-4227@minibox>
920 <BANLkTin03XSrPG-Ck1ThNd8+1uAsVARL2g@mail.gmail.com>
921 <1305072191-sup-3288@minibox> <1305105912-sup-2960@brick>
922 <1305109172-sup-2288@minibox>
923 Message-ID: <1305126047-sup-8239@minibox>
924
925 Excerpts from d.t.k's message of Mi Mai 11 12:41:14 +0200 2011:
926 > Excerpts from Patrick Totzke's message of Mi Mai 11 11:41:44 +0200 2011:
927 > > I agree: a single send-sink seems totally unnatural.
928 > > In fact, we have the same problem with drafts.
929 > yeah, actually I can think of some more situations in which I would wish for
930 > account specific sources: I'd love to add a :spam_source (e.g. 'Junk') and a :ham_source (e.g. INBOX) where mails
931 > are moved when the 'spam' label is set/removed, so that operation is mapped onto
932 > folders (I use a server side spamassassin to automagically learn from specified
933 > folders)
934 >
935 > > I recently mentioned both shortcomings on sup-devel
936 > > (http://rubyforge.org/pipermail/sup-devel/2011-May/001095.html).
937 > > As you say: a quick glance at the code confirms that one can only
938 > > specify one send-sink, as well as draft-sink.
939 > > However, there is some sort of "DraftManager" object. I guess one can
940 > > play with that..
941 > actually, as a dirty hack it shouldn't be too hard to do: message objects know
942 > about their sources. Now we could reference the account a source belongs to in
943 > every source in addition to fields like labels, usual, archived, etc. Et voila.
944 > From the related account we could then get any required sink: draft, sent, spam,
945 > ham, ...
946 uah, what was I thinking? Actually, for the first two cases (draft, sent), it
947 should be /way/ easier. There already /is/ a mechanism for correllating those
948 messages to an account. I think it is acceptable to assume that sent mails as
949 well as drafts have the from: header (which is most probably where the acct
950 correllation hooks in) set (this may not be true for the spam/ham scenario). So
951 since there is a mechanism to get the account to such a mail, all we would need
952 to do is to provide account objects with a :sent_source and a :draft_source of
953 type location. Case solved.
954
955 Now that's gonna be easy ;)
956 dtk
957
958 PS depending on the direction this discussion is taking, I wonder whether I
959 should subscribe to and include sup-devel :|
960
961 From johnbent@lanl.gov Wed May 11 23:28:39 2011
962 From: johnbent@lanl.gov (John Bent)
963 Date: Wed, 11 May 2011 21:28:39 -0600
964 Subject: [sup-talk] git co old version
965 In-Reply-To: <1303842631-sup-8740@tilus.net>
966 References: <1303482546-sup-7257@guava.lanl.gov>
967 <1303488368-sup-7145@tilus.net> <1303502527-sup-8162@guava.lanl.gov>
968 <1303550452-sup-7133@tilus.net> <1303834843-sup-1995@guava.lanl.gov>
969 <1303842631-sup-8740@tilus.net>
970 Message-ID: <1305170697-sup-9267@barista.lanl.gov>
971
972 Excerpts from Tero Tilus's message of Tue Apr 26 12:33:14 -0600 2011:
973 > John Bent, 2011-04-26 19:30:
974 > > Sadly however, I still can't get sup-convert-ferret-index to run.
975 >
976 > I've got no idea whats wrong with your sup-convert-ferret-index. I'm
977 > not 100% sure, but I assume you could just try to sup-dump with old
978 > enough sup (preferably the one you've been using) and reindex +
979 > restore using current.
980 >
981 Just a follow-up. I am finally off ferret and am all the way onto
982 0.12.1! I'm not sure why it was so difficult but I could never
983 successfully convert from ferret to xapian on an OS X box. On 10.5.8, I
984 couldn't ever get xapian working and on 10.6 I couldn't get ferret
985 working. I finally just migrated to a real linux box and am happily
986 sup'ing again! Thanks to everyone who chimed in trying to help me.
987
988 From jdugan@es.net Mon May 16 13:30:50 2011
989 From: jdugan@es.net (Jon Dugan)
990 Date: Mon, 16 May 2011 12:30:50 -0500
991 Subject: [sup-talk] Multiple documents for a single docid in Xapian?
992 Message-ID: <1305566071-sup-6625@arrakis.es.net>
993
994 Recently I've gotten into a situation where sup is crashing. The traceback is
995 at the end. The first time I did a little digging, a git pull and finallly
996 gave up and rebuilt my index. It happened again this morning and I dug in a
997 bit more. (What follows is based on a pull from master as of a few minutes
998 ago.)
999
1000 I added a bit of debugging at the point of the crash: (around line 555 of
1001 index.rb)
1002
1003 def find_docid id
1004 docids = term_docids(mkterm(:msgid,id))
1005 #fail unless docids.size <= 1
1006 warn "got #{docids.size} (expected 1 or less) for #{id}" unless docids.size <= 1
1007 docids.first
1008 end
1009
1010 Basically instead of failing I log a warning and move on. For some reason I
1011 am seeing 2 entries in the index for that particular docid. Any idea how this
1012 could happen? Is there a recommended way to fix this? My little warning hack
1013 makes me nervous. I assume I can just delete one of them from the index but I
1014 haven't spent much time understanding how the index is set up and I'm
1015 concerned about unintended consequences...
1016
1017 Interestingly I get the warning 4 times:
1018
1019 [Mon May 16 12:14:26 -0500 2011] WARNING: got 2 (expected 1 or less) for 1305558622-sup-33 at arrakis.es.net
1020 [Mon May 16 12:14:26 -0500 2011] WARNING: got 2 (expected 1 or less) for 1305558622-sup-33 at arrakis.es.net
1021 [Mon May 16 12:14:29 -0500 2011] WARNING: got 2 (expected 1 or less) for 1305558622-sup-33 at arrakis.es.net
1022 [Mon May 16 12:14:29 -0500 2011] WARNING: got 2 (expected 1 or less) for 1305558622-sup-33 at arrakis.es.net
1023
1024 I originally got this after an offline IMAP run when it was scanning for new
1025 messages to add to the index. The message in question is actually in my
1026 ~/.sup/sent.mbox file and so it wasn't pulled from IMAP -- I'm guessing it
1027 must have just checked the sent mbox file after it finished checking the
1028 offline IMAP directories. I'm not really sure.
1029
1030 Any ideas?
1031
1032 Thanks,
1033
1034 Jon
1035
1036
1037 --- RuntimeError from thread: poll after loading inbox
1038
1039 /Users/jdugan/projects/sup/mainline/lib/sup/index.rb:556:in `find_docid'
1040 /Users/jdugan/projects/sup/mainline/lib/sup/index.rb:562:in `find_doc'
1041 /Users/jdugan/projects/sup/mainline/lib/sup/index.rb:572:in `get_entry'
1042 /Users/jdugan/projects/sup/mainline/lib/sup/index.rb:200:in `build_message'
1043 /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
1044 /Users/jdugan/projects/sup/mainline/lib/sup/index.rb:581:in `synchronize'
1045 /Users/jdugan/projects/sup/mainline/lib/sup/index.rb:200:in `build_message'
1046 /Users/jdugan/projects/sup/mainline/lib/sup/util.rb:618:in `send'
1047 /Users/jdugan/projects/sup/mainline/lib/sup/util.rb:618:in `method_missing'
1048 /Users/jdugan/projects/sup/mainline/lib/sup/poll.rb:159:in `poll_from'
1049 /Users/jdugan/projects/sup/mainline/lib/sup/maildir.rb:106:in `poll'
1050 /Users/jdugan/projects/sup/mainline/lib/sup/util.rb:615:in `each_with_index'
1051 /Users/jdugan/projects/sup/mainline/lib/sup/maildir.rb:105:in `each'
1052 /Users/jdugan/projects/sup/mainline/lib/sup/maildir.rb:105:in `each_with_index'
1053 /Users/jdugan/projects/sup/mainline/lib/sup/maildir.rb:105:in `poll'
1054 /Users/jdugan/projects/sup/mainline/lib/sup/maildir.rb:90:in `each'
1055 /Users/jdugan/projects/sup/mainline/lib/sup/maildir.rb:90:in `poll'
1056 /Users/jdugan/projects/sup/mainline/lib/sup/poll.rb:155:in `poll_from'
1057 /Users/jdugan/projects/sup/mainline/lib/sup/poll.rb:113:in `do_poll'
1058 /Users/jdugan/projects/sup/mainline/lib/sup/poll.rb:103:in `each'
1059 /Users/jdugan/projects/sup/mainline/lib/sup/poll.rb:103:in `do_poll'
1060 /Users/jdugan/projects/sup/mainline/lib/sup/poll.rb:102:in `synchronize'
1061 /Users/jdugan/projects/sup/mainline/lib/sup/poll.rb:102:in `do_poll'
1062 /Users/jdugan/projects/sup/mainline/lib/sup/util.rb:618:in `send'
1063 /Users/jdugan/projects/sup/mainline/lib/sup/util.rb:618:in `method_missing'
1064 /Users/jdugan/projects/sup/mainline/lib/sup/modes/poll-mode.rb:15:in `poll'
1065 /Users/jdugan/projects/sup/mainline/lib/sup/poll.rb:49:in `poll_with_sources'
1066 /Users/jdugan/projects/sup/mainline/lib/sup/poll.rb:68:in `poll'
1067 /Users/jdugan/projects/sup/mainline/lib/sup/util.rb:618:in `send'
1068 /Users/jdugan/projects/sup/mainline/lib/sup/util.rb:618:in `method_missing'
1069 /Users/jdugan/projects/sup/mainline/bin/sup:223
1070 /Users/jdugan/projects/sup/mainline/lib/sup.rb:78:in `reporting_thread'
1071 /Users/jdugan/projects/sup/mainline/lib/sup.rb:76:in `initialize'
1072 /Users/jdugan/projects/sup/mainline/lib/sup.rb:76:in `new'
1073 /Users/jdugan/projects/sup/mainline/lib/sup.rb:76:in `reporting_thread'
1074 /Users/jdugan/projects/sup/mainline/bin/sup:223
1075 /Users/jdugan/projects/sup/mainline/lib/sup/modes/thread-index-mode.rb:684:in `call'
1076 /Users/jdugan/projects/sup/mainline/lib/sup/modes/thread-index-mode.rb:684:in `__unprotected_load_threads'
1077 /Users/jdugan/projects/sup/mainline/lib/sup/modes/thread-index-mode.rb:625:in `call'
1078 /Users/jdugan/projects/sup/mainline/lib/sup/modes/thread-index-mode.rb:625:in `load_n_threads_background'
1079 /Users/jdugan/projects/sup/mainline/lib/sup.rb:78:in `reporting_thread'
1080 /Users/jdugan/projects/sup/mainline/lib/sup.rb:76:in `initialize'
1081 /Users/jdugan/projects/sup/mainline/lib/sup.rb:76:in `new'
1082 /Users/jdugan/projects/sup/mainline/lib/sup.rb:76:in `reporting_thread'
1083 /Users/jdugan/projects/sup/mainline/lib/sup/modes/thread-index-mode.rb:623:in `load_n_threads_background'
1084 /Users/jdugan/projects/sup/mainline/lib/sup/modes/thread-index-mode.rb:694:in `__unprotected_load_threads'
1085 (eval):12:in `load_threads'
1086 /Users/jdugan/projects/sup/mainline/bin/sup:223
1087
1088 From f.unglaub@googlemail.com Wed May 18 03:44:25 2011
1089 From: f.unglaub@googlemail.com (Florian Unglaub)
1090 Date: Wed, 18 May 2011 09:44:25 +0200
1091 Subject: [sup-talk] Sup + offlineimap + Gmail
1092 Message-ID: <1305704218-sup-213@btmwxn>
1093
1094 Hey guys,
1095
1096 I approaching an almost ideal setup for a good gmail integration into
1097 sup using offlineimap. My offlineimap setup pulls all Gmail folders
1098 (aka Gmail labels) into seperate maildirs. I found a nice startup-hook
1099 for sup to add sources dynamicly:
1100
1101 Dir[ENV['HOME']+'/.maildir/gmail/*'].map do |d|
1102 uri = "maildir:"+d
1103 log "Processing source #{uri}"
1104 unless SourceManager.source_for uri
1105 source = Maildir.new uri, true, false, nil, [LabelManager.label_for(File.basename(d))]
1106 SourceManager.add_source source
1107 log "Added source #{d}"
1108 end
1109 end
1110
1111 This snippet of code checks for any directories in
1112 $HOME/.maildir/gmail and adds them as a new source with the
1113 corresponding label. This allows me to make changes in the gmail
1114 web interface which will be reflected in sup.
1115
1116 Now there's a small issue I encountered today. If I star a message in
1117 Sup, offlineimap claims that it adds the 'S' flag to that message, but
1118 this won't be synced to Gmail for some reason. The other direction
1119 (star it on my mobile phone or in the web interface) works fine,
1120 i.e. the message can be seen in the 'Starred' label in sup.
1121
1122 Is there any way to make this work?
1123
1124 Regards,
1125 Florian
1126
1127 From damien.leone@fensalir.fr Wed May 18 03:59:43 2011
1128 From: damien.leone@fensalir.fr (Damien Leone)
1129 Date: Wed, 18 May 2011 09:59:43 +0200
1130 Subject: [sup-talk] Sup + offlineimap + Gmail
1131 In-Reply-To: <1305704218-sup-213@btmwxn>
1132 References: <1305704218-sup-213@btmwxn>
1133 Message-ID: <1305705194-sup-5588@mailer>
1134
1135 Hello,
1136
1137 Are you sure that reading a e-mail from sup marks it as read in Gmail
1138 after having executed offlineimap? Because this should not work,
1139 apparently you are using sup 0.12.1 which does not support backward
1140 synchronization. [0]
1141
1142 And by the way, starring a message in sup should update the 'F'
1143 (flagged) flag not the 'S' (seen) flag.
1144
1145 Cheers,
1146
1147 [0] http://www.mail-archive.com/sup-devel at rubyforge.org/msg00983.html
1148
1149 Excerpts from Florian Unglaub's message of mer. mai 18 09:44:25 +0200 2011:
1150 > Hey guys,
1151 >
1152 > I approaching an almost ideal setup for a good gmail integration into
1153 > sup using offlineimap. My offlineimap setup pulls all Gmail folders
1154 > (aka Gmail labels) into seperate maildirs. I found a nice startup-hook
1155 > for sup to add sources dynamicly:
1156 >
1157 > Dir[ENV['HOME']+'/.maildir/gmail/*'].map do |d|
1158 > uri = "maildir:"+d
1159 > log "Processing source #{uri}"
1160 > unless SourceManager.source_for uri
1161 > source = Maildir.new uri, true, false, nil, [LabelManager.label_for(File.basename(d))]
1162 > SourceManager.add_source source
1163 > log "Added source #{d}"
1164 > end
1165 > end
1166 >
1167 > This snippet of code checks for any directories in
1168 > $HOME/.maildir/gmail and adds them as a new source with the
1169 > corresponding label. This allows me to make changes in the gmail
1170 > web interface which will be reflected in sup.
1171 >
1172 > Now there's a small issue I encountered today. If I star a message in
1173 > Sup, offlineimap claims that it adds the 'S' flag to that message, but
1174 > this won't be synced to Gmail for some reason. The other direction
1175 > (star it on my mobile phone or in the web interface) works fine,
1176 > i.e. the message can be seen in the 'Starred' label in sup.
1177 >
1178 > Is there any way to make this work?
1179 >
1180 > Regards,
1181 > Florian
1182
1183 --
1184 Damien Leone <damien.leone at fensalir.fr>
1185
1186 GPG: 0x82EB4DDF
1187
1188 From john.wyzer@gmx.de Thu May 19 11:11:31 2011
1189 From: john.wyzer@gmx.de (john.wyzer)
1190 Date: Thu, 19 May 2011 17:11:31 +0200
1191 Subject: [sup-talk] Word wrap for quoted lines
1192 In-Reply-To: <BANLkTimTBRbHOTPDpE=qFZetZyccdCdt6w@mail.gmail.com>
1193 References: <BANLkTimTBRbHOTPDpE=qFZetZyccdCdt6w@mail.gmail.com>
1194 Message-ID: <1305817664-sup-572@localhost>
1195
1196 Excerpts from Antti Kaihola's message of Tue May 10 09:07:13 +0200 2011:
1197 > Hi,
1198 >
1199 > When reading messages in Sup and expanding quoted lines, long quoted
1200 > lines are not word wrapped and thus I can't read all the content.
1201 > Non-quoted content wraps as expected.
1202 >
1203 > Is this a known issue or could it be a misconfiguration or problem in
1204 > my build? I'm currently using commit 7e2bb88 from Sun Jan 23 21:05:39
1205 > 2011 -0800 on Ubuntu 10.10.
1206
1207
1208 I do have the same problem; very annoying.
1209 I'm on the mainline/next branch.
1210
1211 From john.wyzer@gmx.de Thu May 19 11:16:51 2011
1212 From: john.wyzer@gmx.de (john.wyzer)
1213 Date: Thu, 19 May 2011 17:16:51 +0200
1214 Subject: [sup-talk] Word wrap for quoted lines
1215 In-Reply-To: <1305817664-sup-572@localhost>
1216 References: <BANLkTimTBRbHOTPDpE=qFZetZyccdCdt6w@mail.gmail.com>
1217 <1305817664-sup-572@localhost>
1218 Message-ID: <1305818177-sup-9473@localhost>
1219
1220 Excerpts from john.wyzer's message of Thu May 19 17:11:31 +0200 2011:
1221 > Excerpts from Antti Kaihola's message of Tue May 10 09:07:13 +0200 2011:
1222 > > Hi,
1223 > >
1224 > > When reading messages in Sup and expanding quoted lines, long quoted
1225 > > lines are not word wrapped and thus I can't read all the content.
1226 > > Non-quoted content wraps as expected.
1227 > >
1228 > > Is this a known issue or could it be a misconfiguration or problem in
1229 > > my build? I'm currently using commit 7e2bb88 from Sun Jan 23 21:05:39
1230 > > 2011 -0800 on Ubuntu 10.10.
1231 >
1232 >
1233 > I do have the same problem; very annoying.
1234 > I'm on the mainline/next branch.
1235
1236 Ah. Here's a fix:
1237 https://github.com/rburchell/sup/commit/a60dd01fe297bf3cd5a12c17a40849219c7f8a91
1238
1239 From f.unglaub@googlemail.com Thu May 19 17:17:20 2011
1240 From: f.unglaub@googlemail.com (Florian Unglaub)
1241 Date: Thu, 19 May 2011 23:17:20 +0200
1242 Subject: [sup-talk] Sup + offlineimap + Gmail
1243 In-Reply-To: <1305705194-sup-5588@mailer>
1244 References: <1305704218-sup-213@btmwxn> <1305705194-sup-5588@mailer>
1245 Message-ID: <1305839702-sup-8270@hal>
1246
1247 Excerpts from Damien Leone's message of 2011-05-18 09:59:43 +0200:
1248 > Hello,
1249 >
1250 > Are you sure that reading a e-mail from sup marks it as read in Gmail
1251 > after having executed offlineimap? Because this should not work,
1252 > apparently you are using sup 0.12.1 which does not support backward
1253 > synchronization. [0]
1254
1255 You are right. It doesn't sync back at all. I will try to figure out
1256 how to achieve this with the git version.
1257
1258 Regards,
1259 Florian.
1260
1261 From rthd@web.de Wed May 11 08:19:25 2011
1262 From: rthd@web.de (Ruthard Baudach)
1263 Date: Wed, 11 May 2011 14:19:25 +0200
1264 Subject: [sup-talk] Word wrap for quoted lines
1265 In-Reply-To: <BANLkTimTBRbHOTPDpE=qFZetZyccdCdt6w@mail.gmail.com>
1266 References: <BANLkTimTBRbHOTPDpE=qFZetZyccdCdt6w@mail.gmail.com>
1267 Message-ID: <1305116205-sup-2345@PrxServer3>
1268
1269 > === Antti Kaihola schrieb am 2011-05-10 09:07: === <
1270 > Hi,
1271 >
1272 >
1273 > When reading messages in Sup and expanding quoted lines, long quoted
1274 > lines are not word wrapped and thus I can't read all the content.
1275 > Non-quoted content wraps as expected.
1276
1277 The left and right arrow keys give you access to text right or left of
1278 your screen.
1279
1280 Of course it would be nice, if sup would wrap these lines as well.
1281
1282 Ruthard
1283
1284 From jonathanipser@gmail.com Sat May 21 10:49:59 2011
1285 From: jonathanipser@gmail.com (Jonathan Ipser)
1286 Date: Sat, 21 May 2011 10:49:59 -0400
1287 Subject: [sup-talk] Adding hooks to sup-mail
1288 Message-ID: <1305988436-sup-5041@jon-laptop>
1289
1290 Hello All,
1291
1292 I have recently started using sup-mail, and have found the simplicity of the user-interface a refreshing change from other email-clients.
1293
1294 One problem I am having though has to do with adding hooks to sup-mail. When I run "sup-mail -l", I am presented with a list of 30 hooks that are registered on my system (see output below). None of these scripts are found in the location listed, however (the .sup/hooks directory is empty). Running the 'find' command does not detect the scripts elsewhere on my system, either. Also, nothing changes when I try to overwrite the listed hooks by adding scripts to the .sup/hooks directory.
1295
1296 Any information on how to add/modify hooks with sup-mail would be much appreciated. FYI, I installed sup-mail (v. 0.11) using the standard installation procedure for my Xubuntu OS. I am running sup-mail as the root user.
1297
1298 Regards,
1299 Jonathan
1300
1301
1302
1303
1304 -------output of 'sup-mail -l'
1305 Have 30 registered hooks:
1306
1307 after-poll
1308 ----------
1309 File: ~/.sup/hooks/after-poll.rb
1310 Executes immediately after a poll for new messages completes.
1311 Variables:
1312 num: the total number of new messages added in this poll
1313 num_inbox: the number of new messages added in this poll which
1314 appear in the inbox (i.e. were not auto-archived).
1315 num_inbox_total_unread: the total number of unread messages in the inbox
1316 from_and_subj: an array of (from email address, subject) pairs
1317 from_and_subj_inbox: an array of (from email address, subject) pairs for
1318 only those messages appearing in the inbox
1319
1320 attribution
1321 -----------
1322 File: ~/.sup/hooks/attribution.rb
1323 Generates an attribution ("Excerpts from Joe Bloggs's message of Fri Jan 11 09:54:32 -0500 2008:").
1324 Variables:
1325 message: a message object representing the message being replied to
1326 (useful values include message.from.name and message.date)
1327 Return value:
1328 A string containing the text of the quote line (can be multi-line)
1329
1330 before-add-message
1331 ------------------
1332 File: ~/.sup/hooks/before-add-message.rb
1333 Executes immediately before a message is added to the index.
1334 Variables:
1335 message: the new message
1336
1337 before-edit
1338 -----------
1339 File: ~/.sup/hooks/before-edit.rb
1340 Modifies message body and headers before editing a new message. Variables
1341 should be modified in place.
1342 Variables:
1343 header: a hash of headers. See 'signature' hook for documentation.
1344 body: an array of lines of body text.
1345 Return value:
1346 none
1347
1348 before-poll
1349 -----------
1350 File: ~/.sup/hooks/before-poll.rb
1351 Executes immediately before a poll for new messages commences.
1352 No variables.
1353
1354 bounce-command
1355 --------------
1356 File: ~/.sup/hooks/bounce-command.rb
1357 Determines the command used to bounce a message.
1358 Variables:
1359 from: The From header of the message being bounced
1360 (eg: likely _not_ your address).
1361 to: The addresses you asked the message to be bounced to as an array.
1362 Return value:
1363 A string representing the command to pipe the mail into. This
1364 should include the entire command except for the destination addresses,
1365 which will be appended by sup.
1366
1367 crypto-mode
1368 -----------
1369 File: ~/.sup/hooks/crypto-mode.rb
1370 Modifies cryptography settings based on header and message content, before
1371 editing a new message. This can be used to set, for example, default cryptography
1372 settings.
1373 Variables:
1374 header: a hash of headers. See 'signature' hook for documentation.
1375 body: an array of lines of body text.
1376 crypto_selector: the UI element that controls the current cryptography setting.
1377 Return value:
1378 none
1379
1380 custom-search
1381 -------------
1382 File: ~/.sup/hooks/custom-search.rb
1383 Executes before a string search is applied to the index,
1384 returning a new search string.
1385 Variables:
1386 subs: The string being searched.
1387
1388 detailed-headers
1389 ----------------
1390 File: ~/.sup/hooks/detailed-headers.rb
1391 Add or remove headers from the detailed header display of a message.
1392 Variables:
1393 message: The message whose headers are to be formatted.
1394 headers: A hash of header (name, value) pairs, initialized to the default
1395 headers.
1396 Return value:
1397 None. The variable 'headers' should be modified in place.
1398
1399 extra-contact-addresses
1400 -----------------------
1401 File: ~/.sup/hooks/extra-contact-addresses.rb
1402 A list of extra addresses to propose for tab completion, etc. when the
1403 user is entering an email address. Can be plain email addresses or can
1404 be full "User Name <email at domain.tld>" entries.
1405
1406 Variables: none
1407 Return value: an array of email address strings.
1408
1409 gpg-args
1410 --------
1411 File: ~/.sup/hooks/gpg-args.rb
1412 Runs before gpg is executed, allowing you to modify the arguments (most
1413 likely you would want to add something to certain commands, like
1414 --trust-model always to signing/encrypting a message, but who knows).
1415
1416 Variables:
1417 args: arguments for running GPG
1418
1419 Return value: the arguments for running GPG
1420
1421 index-mode-date-widget
1422 ----------------------
1423 File: ~/.sup/hooks/index-mode-date-widget.rb
1424 Generates the per-thread date widget for each thread.
1425 Variables:
1426 thread: The message thread to be formatted.
1427
1428 index-mode-size-widget
1429 ----------------------
1430 File: ~/.sup/hooks/index-mode-size-widget.rb
1431 Generates the per-thread size widget for each thread.
1432 Variables:
1433 thread: The message thread to be formatted.
1434
1435 keybindings
1436 -----------
1437 File: ~/.sup/hooks/keybindings.rb
1438 Add custom keybindings.
1439 Methods:
1440 modes: Hash from mode names to mode classes.
1441 global_keymap: The top-level keymap.
1442
1443 label-list-filter
1444 -----------------
1445 File: ~/.sup/hooks/label-list-filter.rb
1446 Filter the label list, typically to sort.
1447 Variables:
1448 counted: an array of counted labels.
1449 Return value:
1450 An array of counted labels with sort_by output structure.
1451
1452 label-list-format
1453 -----------------
1454 File: ~/.sup/hooks/label-list-format.rb
1455 Create the sprintf format string for label-list-mode.
1456 Variables:
1457 width: the maximum label width
1458 tmax: the maximum total message count
1459 umax: the maximum unread message count
1460 Return value:
1461 A format string for sprintf
1462
1463 mark-as-spam
1464 ------------
1465 File: ~/.sup/hooks/mark-as-spam.rb
1466 This hook is run when a thread is marked as spam
1467 Variables:
1468 thread: The message thread being marked as spam.
1469
1470 mentions-attachments
1471 --------------------
1472 File: ~/.sup/hooks/mentions-attachments.rb
1473 Detects if given message mentions attachments the way it is probable
1474 that there should be files attached to the message.
1475 Variables:
1476 header: a hash of headers. See 'signature' hook for documentation.
1477 body: an array of lines of body text.
1478 Return value:
1479 True if attachments are mentioned.
1480
1481 mime-decode
1482 -----------
1483 File: ~/.sup/hooks/mime-decode.rb
1484 Decodes a MIME attachment into text form. The text will be displayed
1485 directly in Sup. For attachments that you wish to use a separate program
1486 to view (e.g. images), you should use the mime-view hook instead.
1487
1488 Variables:
1489 content_type: the content-type of the attachment
1490 charset: the charset of the attachment, if applicable
1491 filename: the filename of the attachment as saved to disk
1492 sibling_types: if this attachment is part of a multipart MIME attachment,
1493 an array of content-types for all attachments. Otherwise,
1494 the empty array.
1495 Return value:
1496 The decoded text of the attachment, or nil if not decoded.
1497
1498 mime-view
1499 ---------
1500 File: ~/.sup/hooks/mime-view.rb
1501 Views a non-text MIME attachment. This hook allows you to run
1502 third-party programs for attachments that require such a thing (e.g.
1503 images). To instead display a text version of the attachment directly in
1504 Sup, use the mime-decode hook instead.
1505
1506 Note that by default (at least on systems that have a run-mailcap command),
1507 Sup uses the default mailcap handler for the attachment's MIME type. If
1508 you want a particular behavior to be global, you may wish to change your
1509 mailcap instead.
1510
1511 Variables:
1512 content_type: the content-type of the attachment
1513 filename: the filename of the attachment as saved to disk
1514 Return value:
1515 True if the viewing was successful, false otherwise. If false, calling
1516 /usr/bin/run-mailcap will be tried.
1517
1518 publish
1519 -------
1520 File: ~/.sup/hooks/publish.rb
1521 Executed when a message or a chunk is requested to be published.
1522 Variables:
1523 chunk: Redwood::Message or Redwood::Chunk::* to be published.
1524 Return value:
1525 None.
1526
1527 reply-from
1528 ----------
1529 File: ~/.sup/hooks/reply-from.rb
1530 Selects a default address for the From: header of a new reply.
1531 Variables:
1532 message: a message object representing the message being replied to
1533 (useful values include message.recipient_email, message.to, and message.cc)
1534 Return value:
1535 A Person to be used as the default for the From: header, or nil to use the
1536 default behavior.
1537
1538 reply-to
1539 --------
1540 File: ~/.sup/hooks/reply-to.rb
1541 Set the default reply-to mode.
1542 Variables:
1543 modes: array of valid modes to choose from, which will be a subset of
1544 [:sender, :recipient, :list, :all, :user]
1545 The default behavior is equivalent to
1546 ([:list, :sender, :recipent] & modes)[0]
1547 Return value:
1548 The reply mode you desire, or nil to use the default behavior.
1549
1550 search-list-filter
1551 ------------------
1552 File: ~/.sup/hooks/search-list-filter.rb
1553 Filter the search list, typically to sort.
1554 Variables:
1555 counted: an array of counted searches.
1556 Return value:
1557 An array of counted searches with sort_by output structure.
1558
1559 search-list-format
1560 ------------------
1561 File: ~/.sup/hooks/search-list-format.rb
1562 Create the sprintf format string for search-list-mode.
1563 Variables:
1564 n_width: the maximum search name width
1565 tmax: the maximum total message count
1566 umax: the maximum unread message count
1567 s_width: the maximum search string width
1568 Return value:
1569 A format string for sprintf
1570
1571 shutdown
1572 --------
1573 File: ~/.sup/hooks/shutdown.rb
1574 Executes when sup is shutting down. May be run when sup is crashing,
1575 so don't do anything too important. Run before the label, contacts,
1576 and people are saved.
1577 No variables.
1578 No return value.
1579
1580 signature
1581 ---------
1582 File: ~/.sup/hooks/signature.rb
1583 Generates a message signature.
1584 Variables:
1585 header: an object that supports string-to-string hashtable-style access
1586 to the raw headers for the message. E.g., header["From"],
1587 header["To"], etc.
1588 from_email: the email part of the From: line, or nil if empty
1589 Return value:
1590 A string (multi-line ok) containing the text of the signature, or nil to
1591 use the default signature, or :none for no signature.
1592
1593 startup
1594 -------
1595 File: ~/.sup/hooks/startup.rb
1596 Executes at startup
1597 No variables.
1598 No return value.
1599
1600 status-bar-text
1601 ---------------
1602 File: ~/.sup/hooks/status-bar-text.rb
1603 Sets the status bar. The default status bar contains the mode name, the buffer
1604 title, and the mode status. Note that this will be called at least once per
1605 keystroke, so excessive computation is discouraged.
1606
1607 Variables:
1608 num_inbox: number of messages in inbox
1609 num_inbox_unread: total number of messages marked as unread
1610 num_total: total number of messages in the index
1611 num_spam: total number of messages marked as spam
1612 title: title of the current buffer
1613 mode: current mode name (string)
1614 status: current mode status (string)
1615 Return value: a string to be used as the status bar.
1616
1617 terminal-title-text
1618 -------------------
1619 File: ~/.sup/hooks/terminal-title-text.rb
1620 Sets the title of the current terminal, if applicable. Note that this will be
1621 called at least once per keystroke, so excessive computation is discouraged.
1622
1623 Variables: the same as status-bar-text hook.
1624 Return value: a string to be used as the terminal title.
1625
1626
1627
1628
1629 From michael+sup@stapelberg.de Mon May 23 05:29:15 2011
1630 From: michael+sup@stapelberg.de (Michael Stapelberg)
1631 Date: Mon, 23 May 2011 11:29:15 +0200
1632 Subject: [sup-talk] Adding hooks to sup-mail
1633 In-Reply-To: <1305988436-sup-5041@jon-laptop>
1634 References: <1305988436-sup-5041@jon-laptop>
1635 Message-ID: <1306142903-sup-802@midna.zekjur.net>
1636
1637 Hi Jonathan,
1638
1639 Excerpts from Jonathan Ipser's message of 2011-05-21 16:49:59 +0200:
1640 > registered on my system (see output below). None of these scripts are found
1641 > in the location listed, however (the .sup/hooks directory is empty). Running
1642 You should create these files :).
1643
1644 > Any information on how to add/modify hooks with sup-mail would be much
1645 > appreciated. FYI, I installed sup-mail (v. 0.11) using the standard
1646 > installation procedure for my Xubuntu OS. I am running sup-mail as the root
1647 > user.
1648 You really shouldn?t run it as root, that?s dangerous.
1649
1650 Best regards,
1651 Michael
1652
1653 From akaihola@gmail.com Mon May 23 14:38:56 2011
1654 From: akaihola@gmail.com (Antti Kaihola)
1655 Date: Mon, 23 May 2011 21:38:56 +0300
1656 Subject: [sup-talk] Word wrap for quoted lines
1657 In-Reply-To: <1305818177-sup-9473@localhost>
1658 References: <BANLkTimTBRbHOTPDpE=qFZetZyccdCdt6w@mail.gmail.com>
1659 <1305817664-sup-572@localhost> <1305818177-sup-9473@localhost>
1660 Message-ID: <BANLkTinb5qq5t67TSkPGF6mrExaHV=GYCw@mail.gmail.com>
1661
1662 Excerpts from Antti Kaihola's message of Tue May 10 09:07:13 +0200 2011:
1663 >> > Hi,
1664 >> >
1665 >> > When reading messages in Sup and expanding quoted lines, long quoted
1666 >> > lines are not word wrapped and thus I can't read all the content.
1667
1668 2011/5/19 john.wyzer <john.wyzer at gmx.de>:
1669 > Ah. Here's a fix:
1670 > https://github.com/rburchell/sup/commit/a60dd01fe297bf3cd5a12c17a40849219c7f8a91
1671
1672 Thanks, it works perfectly! It also seems to live in the wrap_quoted
1673 branch of the sup repository.
1674
1675 From d.t.k@gmx.de Tue May 24 06:26:40 2011
1676 From: d.t.k@gmx.de (dtk)
1677 Date: Tue, 24 May 2011 12:26:40 +0200
1678 Subject: [sup-talk] Word wrap for quoted lines
1679 In-Reply-To: <BANLkTinb5qq5t67TSkPGF6mrExaHV=GYCw@mail.gmail.com>
1680 References: <BANLkTimTBRbHOTPDpE=qFZetZyccdCdt6w@mail.gmail.com>
1681 <1305817664-sup-572@localhost> <1305818177-sup-9473@localhost>
1682 <BANLkTinb5qq5t67TSkPGF6mrExaHV=GYCw@mail.gmail.com>
1683 Message-ID: <b41ea76b8df833e63d844ce1efae0ba3@jadE-Hamburg.de>
1684
1685
1686 On Mon, 23 May 2011 21:38:56 +0300, Antti Kaihola <akaihola at gmail.com>
1687 wrote:
1688 > Excerpts from Antti Kaihola's message of Tue May 10 09:07:13 +0200 2011:
1689 >>> > When reading messages in Sup and expanding quoted lines, long quoted
1690 >>> > lines are not word wrapped and thus I can't read all the content.
1691 >
1692 > 2011/5/19 john.wyzer <john.wyzer at gmx.de>:
1693 >> Ah. Here's a fix:
1694 >>
1695 https://github.com/rburchell/sup/commit/a60dd01fe297bf3cd5a12c17a40849219c7f8a91
1696 >
1697 > It also seems to live in the wrap_quoted
1698 > branch of the sup repository.
1699 cool! Does that mean there is a chance it will finally make it into
1700 master? Or will it like forever be necessary to apply the patch manually?
1701 Just asking, since that patch in the original repo is from september last
1702 year, what /feels/ like a rather longish time to merge a rather basic
1703 patch. Am I mistaken?
1704
1705 thx for ur support!
1706 dtk
1707
1708
1709 From rthrd@web.de Thu May 26 07:58:38 2011
1710 From: rthrd@web.de (Ruthard Baudach)
1711 Date: Thu, 26 May 2011 13:58:38 +0200
1712 Subject: [sup-talk] change order in thread manually
1713 Message-ID: <1306410889-sup-2968@PrxServer3>
1714
1715 Hello everybody,
1716
1717 Sometimes I have to add messages to a thread manually (my sister's using
1718 a blackberry, my wife never uses the repeat-function...)
1719
1720 If I do so by tagging messages with t and pressing # in inbox mode, the
1721 messages form one thread, but not in logical order.
1722
1723 Is there any method to change the order of messages in a thread
1724 manually?
1725
1726 Ruthard Baudach
1727
1728 From dmishd@gmail.com Sun May 29 13:34:41 2011
1729 From: dmishd@gmail.com (Hamish)
1730 Date: Sun, 29 May 2011 18:34:41 +0100
1731 Subject: [sup-talk] Word wrap for quoted lines
1732 In-Reply-To: <b41ea76b8df833e63d844ce1efae0ba3@jadE-Hamburg.de>
1733 References: <BANLkTimTBRbHOTPDpE=qFZetZyccdCdt6w@mail.gmail.com>
1734 <1305817664-sup-572@localhost> <1305818177-sup-9473@localhost>
1735 <BANLkTinb5qq5t67TSkPGF6mrExaHV=GYCw@mail.gmail.com>
1736 <b41ea76b8df833e63d844ce1efae0ba3@jadE-Hamburg.de>
1737 Message-ID: <1306690367-sup-9151@whisper>
1738
1739 Excerpts from dtk's message of Tue May 24 11:26:40 +0100 2011:
1740 > On Mon, 23 May 2011 21:38:56 +0300, Antti Kaihola <akaihola at gmail.com>
1741 > > Excerpts from Antti Kaihola's message of Tue May 10 09:07:13 +0200 2011:
1742 > >>> > When reading messages in Sup and expanding quoted lines, long quoted
1743 > >>> > lines are not word wrapped and thus I can't read all the content.
1744 > >
1745 > > It also seems to live in the wrap_quoted branch of the sup repository.
1746
1747 Yes, I created that branch next weekend. I've now merged it into the
1748 next branch, so go update from git and enjoy :)
1749
1750 And I may get around to reviewing other patches from the same github
1751 fork at some point, but if you spot any you particularly want merged
1752 then shout out and they'll get reviewed sooner ...
1753
1754 Hamish Downer
1755
1756 From afarrell@MIT.EDU Tue May 31 23:54:37 2011
1757 From: afarrell@MIT.EDU (Andrew Farrell)
1758 Date: Tue, 31 May 2011 20:54:37 -0700
1759 Subject: [sup-talk] before-poll.rb does not appear to be run. Where is
1760 PollManager defined?
1761 Message-ID: <BANLkTikaFJ1B3DrsDyERJvmhU5QH-fwk1Q@mail.gmail.com>
1762
1763 Hello all,
1764
1765 I've just installed sup 0.8.1 from macports on OSX 10.6 with ruby version
1766 1.8.7
1767 It opens my maildir fine and I am pleased with its ability to organize mail
1768 quickly.
1769 I'm trying to add a before-poll.rb hook, but this appears not to be run.
1770 At least, it is not running offlineIMAP and if I insert a divide-by-zero,
1771 nothing explodes.
1772 (If you care, I've attached that file.)
1773 So, I went source-diving
1774 into /opt/local/lib/ruby/gems/1.8/gems/sup-0.8.1/bin/sup,
1775 but failed to find where PollManager or its method .poll is defined.
1776 I strongly suspect it is in the gem referenced by "require 'sup' "
1777 However, the only files so named that are in my PATH are this file itself
1778 and a wrapper script that invokes it.
1779 Do you know where else I might look for the definition of PollManager or
1780 where I might look to find where it is requiring sup from?
1781
1782 context:
1783 - I've never written a line of ruby.
1784 - I'm inferring that "require 'sup' " is the equivalent of python's "from
1785 sup import *"
1786
1787 thank you,
1788 Andrew Farrell
1789 -------------- next part --------------
1790 An HTML attachment was scrubbed...
1791 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110531/ef77a0b5/attachment-0001.html>
1792 -------------- next part --------------
1793 A non-text attachment was scrubbed...
1794 Name: before-poll.rb
1795 Type: application/octet-stream
1796 Size: 758 bytes
1797 Desc: not available
1798 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110531/ef77a0b5/attachment-0001.obj>
1799