community/pipermail-archives/sup-talk/2010-12.txt (104656B) - raw
1 From plutek@infinity.net Wed Dec 1 14:05:37 2010
2 From: plutek@infinity.net (Peter Lutek)
3 Date: Wed, 1 Dec 2010 14:05:37 -0500
4 Subject: [sup-talk] sup crashing on start
5 Message-ID: <11028.1291230337@infinity.net>
6
7 BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;
8 }greetings!
9 just this morning, i have been unable to start sup -- it is crashing
10 as soon as i try to start. the inbox buffer starts to show briefly,
11 but then sup immediately crashes. this is after a "sup-sync -a", but
12 i've been running this setup and doing "sup-sync -a" for many months
13 without issue.
14 any help would be greatly appreciated -- i'm currently resorting to
15 webmail. yuck!
16 sup 0.11
17 ruby 1.8
18 i've submitted a report at the sup bug tracker, and my
19 .sup/exception-log.txt is attached there -- see ID 135.
20 thanks in advance.... cheers!
21 .pltk.
22 -------------- next part --------------
23 An HTML attachment was scrubbed...
24 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101201/9d17f023/attachment.html>
25
26 From dmishd@gmail.com Wed Dec 1 19:18:08 2010
27 From: dmishd@gmail.com (Hamish D)
28 Date: Thu, 2 Dec 2010 00:18:08 +0000
29 Subject: [sup-talk] sup leaves unencrypted emails in /tmp
30 Message-ID: <AANLkTikzfKZ9573c+NOiYA3UWjFhWpohhcGroS0Zz19F@mail.gmail.com>
31
32 I noticed that sup appears to leave the unencrypted contents of emails
33 in /tmp - at least it did on my system. This is a pretty serious issue
34 on shared computers. I'm not sure why - my attempts at a quick fix
35 failed. The files are created using Tempfile.new and close is called,
36 but after that the files are written to by gpg. I'm not sure if this
37 means that the tempfile system then doesn't delete them later for some
38 reason.
39
40 The tempfile stuff does seem to work for the files containing the
41 output from gpg. They do (eventually) get deleted. But the "temporary"
42 files that gpg puts the plaintext into seem to hang around even after
43 I've done a clean exit from sup.
44
45 If anyone has got good ideas about how to fix this for sup 0.12 I
46 think that would be a fine thing to do.
47
48 Note that this is the mainline version of sup, not the gpgme version
49 I've been developing - using gpgme means the plaintexts never have to
50 be written to disk, so if we move to gpgme (once I've got it up to
51 scratch) then these problems will go away.
52
53 Thought people ought to know.
54 Hamish Downer
55
56 From shadowfirebird@gmail.com Thu Dec 2 05:06:16 2010
57 From: shadowfirebird@gmail.com (Shadowfirebird)
58 Date: Thu, 2 Dec 2010 10:06:16 +0000
59 Subject: [sup-talk] Can't start Sup, allegedly because of a locked index.
60 Message-ID: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
61
62 Anyone got any ideas how I get out of this?
63
64 >>>>
65 $ sup
66 Error: the index is locked by another process! User '' on
67 host '' is running with pid .
68 The process was alive as of at least 4216 minutes ago.
69 Should I ask that process to kill itself (y/n)? n
70 Sorry, couldn't unlock the index.
71 $
72 $ sup
73 Error: the index is locked by another process! User '' on
74 host '' is running with pid .
75 The process was alive as of at least 4216 minutes ago.
76 Should I ask that process to kill itself (y/n)? y
77 Ok, trying to kill process...
78 Terminated
79 $
80 $ sup
81 Error: the index is locked by another process! User '' on
82 host '' is running with pid .
83 The process was alive as of at least 4217 minutes ago.
84 Should I ask that process to kill itself (y/n)?
85 <<<<
86
87 --
88 What a tangled web we weave / Go 'round with circumstance / Someone show me
89 how to tell / The dancer from the dance...
90 -------------- next part --------------
91 An HTML attachment was scrubbed...
92 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101202/adf9a586/attachment.html>
93
94 From michael+sup@stapelberg.de Thu Dec 2 05:53:35 2010
95 From: michael+sup@stapelberg.de (Michael Stapelberg)
96 Date: Thu, 02 Dec 2010 11:53:35 +0100
97 Subject: [sup-talk] Can't start Sup, allegedly because of a locked index.
98 In-Reply-To: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
99 References: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
100 Message-ID: <1291287153-sup-8966@midna.zekjur.net>
101
102 Hi Shadowfirebird,
103
104 Excerpts from Shadowfirebird's message of 2010-12-02 11:06:16 +0100:
105 > Anyone got any ideas how I get out of this?
106 Do an 'strace -fF -s2048 -o /tmp/sup.log sup' and check the resulting
107 /tmp/sup.log for errors (searching from the very bottom), like -EPERM or
108 something. If that doesn?t help, bzip2 that file, upload it somewhere, and send
109 us/me a link to it.
110
111 Best regards,
112 Michael
113
114 From shadowfirebird@gmail.com Thu Dec 2 07:36:21 2010
115 From: shadowfirebird@gmail.com (Shadowfirebird)
116 Date: Thu, 2 Dec 2010 12:36:21 +0000
117 Subject: [sup-talk] Can't start Sup, allegedly because of a locked index.
118 In-Reply-To: <1291287153-sup-8966@midna.zekjur.net>
119 References: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
120 <1291287153-sup-8966@midna.zekjur.net>
121 Message-ID: <AANLkTinRRBOHh=zp3DQXSWvXBnYeABJ6zO1My+SNBfCj@mail.gmail.com>
122
123 Well, I'm not seeing any errors. But the log file does explain what is
124 going on, I think. Sup says the other process that it is trying to kill
125 .... is itself; the process that is doing the killing.
126
127 I can still try and upload the log file if anyone is interested; not sure
128 where right now. Would a public folder on Dropbox be okay?
129
130 Relevant last few lines pasted below. Note, three from the bottom,
131 "kill(18723, SIGTERM)". 18723 is the *current* process number, so if I'm
132 reading this right, it's self-destructing.
133
134 >>>>
135 write(2, "Error: the index is locked by another process! User '' on\nhost ''
136 is running with pid .\nThe process was alive as of at least 4365 minutes
137 ago.\n\n"..., 145) = 145
138 write(2, "Should I ask that process to kill itself (y/n)? "..., 48) = 48
139 fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
140 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
141 0x7f7d384bc000
142 read(0, "y\n"..., 1024) = 2
143 write(2, "Ok, trying to kill process..."..., 29) = 29
144 write(2, "\n"..., 1) = 1
145 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
146 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
147 kill(0, SIGTERM) = 0
148 --- SIGTERM (Terminated) @ 0 (0) ---
149 rt_sigreturn(0xf) = 0
150 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
151 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
152 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
153 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
154 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
155 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
156 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
157 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
158 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
159 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
160 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
161 rt_sigaction(SIGINT, {SIG_DFL}, {0x7f7d380483e0, [INT],
162 SA_RESTORER|SA_RESTART, 0x7f7d37391040}, 8) = 0
163 rt_sigaction(SIGTERM, {SIG_DFL}, {0x7f7d380483e0, [], SA_RESTORER,
164 0x7f7d37da0080}, 8) = 0
165 kill(18723, SIGTERM) = 0
166 --- SIGTERM (Terminated) @ 0 (0) ---
167 +++ killed by SIGTERM +++
168 <<<<
169 -------------- next part --------------
170 An HTML attachment was scrubbed...
171 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101202/dd4c68e4/attachment-0001.html>
172
173 From paul.a.grove@gmail.com Thu Dec 2 07:56:28 2010
174 From: paul.a.grove@gmail.com (Paul Grove)
175 Date: Thu, 02 Dec 2010 12:56:28 +0000
176 Subject: [sup-talk] Can't start Sup, allegedly because of a locked index.
177 In-Reply-To: <AANLkTinRRBOHh=zp3DQXSWvXBnYeABJ6zO1My+SNBfCj@mail.gmail.com>
178 References: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
179 <1291287153-sup-8966@midna.zekjur.net>
180 <AANLkTinRRBOHh=zp3DQXSWvXBnYeABJ6zO1My+SNBfCj@mail.gmail.com>
181 Message-ID: <1291294378-sup-282@localhost>
182
183 I had this problem myself, exactly as described by Shadowfirebird.
184
185 I cant 100% recall the steps it took to resolve it, but I know I had to
186 delete the ~/.sup/lock file, and then I manually killed all instances of
187 sup just to be sure. Maybe I did something else as well - maybe I didn't,
188 It was only a few weeks ago but I got such a bad memory.
189
190 Hope this helps,
191
192 Paul Grove
193
194 Excerpts from Shadowfirebird's message of Thu Dec 02 12:36:21 +0000 2010:
195 > Well, I'm not seeing any errors. But the log file does explain what is
196 > going on, I think. Sup says the other process that it is trying to kill
197 > .... is itself; the process that is doing the killing.
198 >
199 > I can still try and upload the log file if anyone is interested; not sure
200 > where right now. Would a public folder on Dropbox be okay?
201 >
202 > Relevant last few lines pasted below. Note, three from the bottom,
203 > "kill(18723, SIGTERM)". 18723 is the *current* process number, so if I'm
204 > reading this right, it's self-destructing.
205 >
206 > >>>>
207 > write(2, "Error: the index is locked by another process! User '' on\nhost ''
208 > is running with pid .\nThe process was alive as of at least 4365 minutes
209 > ago.\n\n"..., 145) = 145
210 > write(2, "Should I ask that process to kill itself (y/n)? "..., 48) = 48
211 > fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
212 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
213 > 0x7f7d384bc000
214 > read(0, "y\n"..., 1024) = 2
215 > write(2, "Ok, trying to kill process..."..., 29) = 29
216 > write(2, "\n"..., 1) = 1
217 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
218 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
219 > kill(0, SIGTERM) = 0
220 > --- SIGTERM (Terminated) @ 0 (0) ---
221 > rt_sigreturn(0xf) = 0
222 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
223 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
224 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
225 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
226 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
227 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
228 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
229 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
230 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
231 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
232 > rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
233 > rt_sigaction(SIGINT, {SIG_DFL}, {0x7f7d380483e0, [INT],
234 > SA_RESTORER|SA_RESTART, 0x7f7d37391040}, 8) = 0
235 > rt_sigaction(SIGTERM, {SIG_DFL}, {0x7f7d380483e0, [], SA_RESTORER,
236 > 0x7f7d37da0080}, 8) = 0
237 > kill(18723, SIGTERM) = 0
238 > --- SIGTERM (Terminated) @ 0 (0) ---
239 > +++ killed by SIGTERM +++
240 > <<<<
241 -------------- next part --------------
242 A non-text attachment was scrubbed...
243 Name: signature.asc
244 Type: application/pgp-signature
245 Size: 490 bytes
246 Desc: not available
247 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101202/d4d7e3d9/attachment.bin>
248
249 From michael+sup@stapelberg.de Thu Dec 2 08:00:01 2010
250 From: michael+sup@stapelberg.de (Michael Stapelberg)
251 Date: Thu, 02 Dec 2010 14:00:01 +0100
252 Subject: [sup-talk] Can't start Sup, allegedly because of a locked index.
253 In-Reply-To: <AANLkTinRRBOHh=zp3DQXSWvXBnYeABJ6zO1My+SNBfCj@mail.gmail.com>
254 References: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
255 <1291287153-sup-8966@midna.zekjur.net>
256 <AANLkTinRRBOHh=zp3DQXSWvXBnYeABJ6zO1My+SNBfCj@mail.gmail.com>
257 Message-ID: <1291294755-sup-8801@midna.zekjur.net>
258
259 Hi Shadowfirebird,
260
261 Excerpts from Shadowfirebird's message of 2010-12-02 13:36:21 +0100:
262 > Relevant last few lines pasted below. Note, three from the bottom,
263 > "kill(18723, SIGTERM)". 18723 is the *current* process number, so if I'm
264 > reading this right, it's self-destructing.
265 Heh, right. Passing 0 as pid to kill() is not such a good idea.
266
267 In your case, I would suggest deleting the lock files manually (use ls -la
268 .sup/xapian to find them)
269
270 Best regards,
271 Michael
272
273 From rhomunuq+ml_sup@gmail.com Thu Dec 2 07:54:11 2010
274 From: rhomunuq+ml_sup@gmail.com (Iain)
275 Date: Thu, 02 Dec 2010 12:54:11 +0000
276 Subject: [sup-talk] Can't start Sup, allegedly because of a locked index.
277 In-Reply-To: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
278 References: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
279 Message-ID: <1291294338-sup-7754@leda>
280
281 > Anyone got any ideas how I get out of this?
282 >
283 > >>>>
284 > $ sup
285 > Error: the index is locked by another process! User '' on
286 > host '' is running with pid .
287 > The process was alive as of at least 4216 minutes ago.
288 > Should I ask that process to kill itself (y/n)? n
289 > Sorry, couldn't unlock the index.
290
291 Something similar happened to me once. I just did "rm ~/.sup/lock", then
292 started sup as normal. Does that work for you?
293
294 From shadowfirebird@gmail.com Thu Dec 2 08:07:44 2010
295 From: shadowfirebird@gmail.com (Shadowfirebird)
296 Date: Thu, 2 Dec 2010 13:07:44 +0000
297 Subject: [sup-talk] Can't start Sup, allegedly because of a locked index.
298 In-Reply-To: <1291294338-sup-7754@leda>
299 References: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
300 <1291294338-sup-7754@leda>
301 Message-ID: <AANLkTimai1E437LCNrE=5fqQfwu+fS8hsEMCwxnC1zGV@mail.gmail.com>
302
303 Yes!! Thank you!
304
305 On Thu, Dec 2, 2010 at 12:54 PM, Iain
306 <rhomunuq+ml_sup at gmail.com<rhomunuq%2Bml_sup at gmail.com>
307 > wrote:
308
309 > > Anyone got any ideas how I get out of this?
310 > >
311 > > >>>>
312 > > $ sup
313 > > Error: the index is locked by another process! User '' on
314 > > host '' is running with pid .
315 > > The process was alive as of at least 4216 minutes ago.
316 > > Should I ask that process to kill itself (y/n)? n
317 > > Sorry, couldn't unlock the index.
318 >
319 > Something similar happened to me once. I just did "rm ~/.sup/lock", then
320 > started sup as normal. Does that work for you?
321 > _______________________________________________
322 > sup-talk mailing list
323 > sup-talk at rubyforge.org
324 > http://rubyforge.org/mailman/listinfo/sup-talk
325 >
326
327
328
329 --
330 What a tangled web we weave / Go 'round with circumstance / Someone show me
331 how to tell / The dancer from the dance...
332 -------------- next part --------------
333 An HTML attachment was scrubbed...
334 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101202/c71a2568/attachment.html>
335
336 From david@rysdam.org Thu Dec 2 08:13:35 2010
337 From: david@rysdam.org (David Rysdam)
338 Date: Thu, 02 Dec 2010 08:13:35 -0500
339 Subject: [sup-talk] Can't start Sup, allegedly because of a locked index.
340 In-Reply-To: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
341 References: <AANLkTi=0mcFSCJyJJSqvRuZw60GA9A0aX3MmVRp8hEsP@mail.gmail.com>
342 Message-ID: <1291295519-sup-2688@hero>
343
344 An agent or agents purporting to be Shadowfirebird said:
345 > Anyone got any ideas how I get out of this?
346 >
347 > >>>>
348 > $ sup
349 > Error: the index is locked by another process! User '' on
350 > host '' is running with pid .
351 > The process was alive as of at least 4216 minutes ago.
352 > Should I ask that process to kill itself (y/n)? n
353 > Sorry, couldn't unlock the index.
354
355 I don't have this exact problem, but I have had problems where sup has
356 claimed to be unable to kill another instance because of a lock
357 problem. I get a different message, but I'm running an old version.
358
359 I find that sometimes Xapian has left a lockfile. If I delete
360 .sup/xapian/flintlock then I can start sup just fine.
361
362 From sup@maseinet.de Thu Dec 2 19:41:22 2010
363 From: sup@maseinet.de (Marc Seibert)
364 Date: Fri, 03 Dec 2010 01:41:22 +0100
365 Subject: [sup-talk] run sup (or sup-sync) as daemon Hello everybody,
366 Message-ID: <1291336288-sup-8394@maseinet.de>
367
368 I am very new in using sup - and I am glad to find this nice tool for my console :-)
369 So I wonder if its a good idea to remove my procmail rules and manage the whole thing in ruby over sup.
370 There is no daemon mode built in - if I got it right - so I want to write a cron job to sup-sync every ten minutes.
371 For this I have to write a script, that checks if there is a sup lock or not.
372 I just want too know, if there is a better solution.
373
374 Regards
375 Marc
376
377 From tero@tilus.net Fri Dec 3 00:52:24 2010
378 From: tero@tilus.net (Tero Tilus)
379 Date: Fri, 03 Dec 2010 07:52:24 +0200
380 Subject: [sup-talk] run sup (or sup-sync) as daemon Hello everybody,
381 In-Reply-To: <1291336288-sup-8394@maseinet.de>
382 References: <1291336288-sup-8394@maseinet.de>
383 Message-ID: <1291354461-sup-2909@tilus.net>
384
385 Marc Seibert, 2010-12-03 02:41:
386 > So I wonder if its a good idea to remove my procmail rules and
387 > manage the whole thing in ruby over sup.
388
389 I did exactly that. Hooks (especially before-add-message) are your
390 best friends.
391
392 > There is no daemon mode built in - if I got it right - so I want to
393 > write a cron job to sup-sync every ten minutes.
394
395 Why would you want to do that? When sup is running, it polls
396 periodically for new mail. When its not, why would you care?
397
398 You can think of sup-sync as parameterized way of doing what sup
399 itself does when it polls for new mail (only from sources that are
400 marked "usua", i.e. they are expected to receive new mail) and does
401 indexing. Sup-sync comes handy when you start with sup and want to
402 index all the sources or want to restore a dump. Other than that, sup
403 maintains index by itself by polling on start and periodically after
404 that.
405
406 --
407 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
408
409 From marka@pobox.com Fri Dec 3 08:33:12 2010
410 From: marka@pobox.com (Mark Alexander)
411 Date: Fri, 03 Dec 2010 08:33:12 -0500
412 Subject: [sup-talk] run sup (or sup-sync) as daemon Hello everybody,
413 In-Reply-To: <1291336288-sup-8394@maseinet.de>
414 References: <1291336288-sup-8394@maseinet.de>
415 Message-ID: <1291382774-sup-9612@bloovis.org>
416
417 Excerpts from Marc Seibert's message of Thu Dec 02 19:41:22 -0500 2010:
418 > I am very new in using sup - and I am glad to find this nice tool for my console :-)
419 > So I wonder if its a good idea to remove my procmail rules and manage the whole thing in ruby over sup.
420
421 You can keep using procmail; I had been using that long before I
422 started using sup, along with fetchmail. My filters would put messages
423 in various directories based on From lines and so forth, and I just
424 made each of those directories a separate source in sup. Now I'm
425 using maildrop instead of procmail but the overall idea is the same.
426
427 I also used to have fechmail running as a daemon, but at one point
428 over a year ago, while debugging some maildir problems in sup, I
429 switched to having sup initiate the polling by writing a before-poll
430 hook that invoked fetchmail. That has been working well.
431
432 From sup@maseinet.de Fri Dec 3 09:16:16 2010
433 From: sup@maseinet.de (Marc Seibert)
434 Date: Fri, 03 Dec 2010 15:16:16 +0100
435 Subject: [sup-talk] run sup (or sup-sync) as daemon Hello everybody,
436 In-Reply-To: <1291382774-sup-9612@bloovis.org>
437 References: <1291336288-sup-8394@maseinet.de> <1291382774-sup-9612@bloovis.org>
438 Message-ID: <1291385110-sup-7331@maseinet.de>
439
440 Excerpts from Mark Alexander's message of Fr Dez 03 14:33:12 +0100 2010:
441 > Excerpts from Marc Seibert's message of Thu Dec 02 19:41:22 -0500 2010:
442 > > I am very new in using sup - and I am glad to find this nice tool for my console :-)
443 > > So I wonder if its a good idea to remove my procmail rules and manage the whole thing in ruby over sup.
444 >
445 > You can keep using procmail; I had been using that long before I
446 > started using sup, along with fetchmail. My filters would put messages
447 > in various directories based on From lines and so forth, and I just
448 > made each of those directories a separate source in sup. Now I'm
449 > using maildrop instead of procmail but the overall idea is the same.
450 >
451 > I also used to have fechmail running as a daemon, but at one point
452 > over a year ago, while debugging some maildir problems in sup, I
453 > switched to having sup initiate the polling by writing a before-poll
454 > hook that invoked fetchmail. That has been working well.
455
456 Yes, thanks alot.
457 I think I wil keep using procmail for the base filtering.
458 Ruby Filters would be fine, but procmail still works :-)
459
460 From cam+sup@cammunism.org Sat Dec 4 02:16:22 2010
461 From: cam+sup@cammunism.org (Cameron Matheson)
462 Date: Sat, 04 Dec 2010 00:16:22 -0700
463 Subject: [sup-talk] sup leaves unencrypted emails in /tmp
464 In-Reply-To: <AANLkTikzfKZ9573c+NOiYA3UWjFhWpohhcGroS0Zz19F@mail.gmail.com>
465 References: <AANLkTikzfKZ9573c+NOiYA3UWjFhWpohhcGroS0Zz19F@mail.gmail.com>
466 Message-ID: <1291445874-sup-7444@cammunism.org>
467
468 Excerpts from Hamish D's message of Wed Dec 01 17:18:08 -0700 2010:
469 > I noticed that sup appears to leave the unencrypted contents of emails
470 > in /tmp - at least it did on my system. This is a pretty serious issue
471 > on shared computers. I'm not sure why - my attempts at a quick fix
472 > failed. The files are created using Tempfile.new and close is called,
473 > but after that the files are written to by gpg. I'm not sure if this
474 > means that the tempfile system then doesn't delete them later for some
475 > reason.
476
477 Tempfile is interesting because the file is not deleted until the object
478 is garbage-collected. From the Tempfile.close rdoc:
479
480 If you don't explicitly unlink the temporary file, the removal will
481 be delayed until the object is finalized.
482
483 So if I'm understanding this correctly, the tempfiles may or may not be
484 cleaned up, depending on when the garbage collector runs (e.g., if the
485 GC runs before gpg is run, the original tempfile will have already been
486 deleted, and the new file created by gpg will live on indefinitely).
487
488 I was going to write a patch, but I don't do anything use gpg often so
489 it wasn't convenient to test. I think an easy solution would just be to
490 add a 'File.unlink whatever.path' call after each call to gpg (this
491 would need to be done in encrypt/decrypt/sign/etc.).
492
493 Cam
494
495 From shadowfirebird@gmail.com Thu Dec 9 07:34:34 2010
496 From: shadowfirebird@gmail.com (Shadowfirebird)
497 Date: Thu, 09 Dec 2010 12:34:34 +0000
498 Subject: [sup-talk] search '-label:' fails
499 Message-ID: <1291897830-sup-3354@blake>
500
501
502 I want to search for all non-list mail. It so happens that I have a label "list", so in theory I should just be able to type '\-label:list'.
503
504 But in fact this produces exactly the same result as '\label:list'. Presumably this is a known bug (on 0.11)? Or am I doing something stupid?
505
506 Does anyone have a workaround? Ideally I want to see just those mails that Sup tags with a '>', but any suggestions would be an improvement.
507
508 --
509 How come wrong numbers are never busy?
510
511 From wael.nasreddine@gmail.com Fri Dec 10 13:10:44 2010
512 From: wael.nasreddine@gmail.com (Wael M. Nasreddine)
513 Date: Fri, 10 Dec 2010 19:10:44 +0100
514 Subject: [sup-talk] before-add-message.rb <-> Gmail Filters
515 Message-ID: <AANLkTimbEFpL35xdiwc6BVF921+H1Hgu_JRqNJN0O9hN@mail.gmail.com>
516
517 Hello,
518
519 First I would like to thank all and everyone who has contributed to
520 the PERFECT email client, the client I was looking for, for a very
521 long time... I love it...
522
523 My gmail account is, at the same time, my primary email address and
524 the storage for all my emails, all email aliases, work-related or not,
525 ends up one way or another in my gmail, even the sent mail, and to
526 keep track of everything, I use gmail filters to, well, hide, label,
527 mark as read, mark as Crap :)
528
529 So I have more than 100 filters already setup, fortunately gmail let's
530 you export those filters as an XML (c.f below for an example) through
531 one of the labs extensions, however I couldn't find any information on
532 before-add-message.rb hook using mailFilters.xml..
533
534 So my question is, did anyone write a hook to reads that XML file and
535 work on the message object ? Otherwise, did anyone make a dynamic
536 before-add-message.rb I could follow? I know ruby, but not that much
537 so I would appreciate an example to follow..
538
539 Thank you all,,
540
541 Regards,
542 Wael Nasreddine
543
544
545
546
547 -------------------------------------- mailFilters.xml
548 <?xml version='1.0' encoding='UTF-8'?><feed
549 xmlns='http://www.w3.org/2005/Atom'
550 xmlns:apps='http://schemas.google.com/apps/2006'>
551 <title>Mail Filters</title>
552 <id>tag:mail.google.com,2008:filters:1226589431861,1237145025938,1244162662829,1244162696287</id>
553 <updated>2010-12-10T15:01:45Z</updated>
554 <author>
555 <name>Wael Nasreddine</name>
556 <email>my.email at gmail.com</email>
557 </author>
558 <entry>
559 <category term='filter'></category>
560 <title>Mail Filter</title>
561 <id>tag:mail.google.com,2008:filter:1226589431861</id>
562 <updated>2010-12-10T15:01:45Z</updated>
563 <content></content>
564 <apps:property name='from' value='customersupport at somecompany.com OR
565 support at somecompany.com OR supporttestv3 at somecompany.com'/>
566 <apps:property name='label' value='SomeCompany'/>
567 <apps:property name='shouldNeverSpam' value='true'/>
568 </entry>
569 <entry>
570 <category term='filter'></category>
571 <title>Mail Filter</title>
572 <id>tag:mail.google.com,2008:filter:1237145025938</id>
573 <updated>2010-12-10T15:01:45Z</updated>
574 <content></content>
575 <apps:property name='to' value='zsh-workers at sunsite.dk'/>
576 <apps:property name='label' value='ML/Zsh-Workers'/>
577 <apps:property name='shouldArchive' value='true'/>
578 </entry>
579 <entry>
580 <category term='filter'></category>
581 <title>Mail Filter</title>
582 <id>tag:mail.google.com,2008:filter:1244162662829</id>
583 <updated>2010-12-10T15:01:45Z</updated>
584 <content></content>
585 <apps:property name='subject' value='[Something Test][PASS]'/>
586 <apps:property name='label' value='Something Test'/>
587 <apps:property name='shouldMarkAsRead' value='true'/>
588 <apps:property name='shouldArchive' value='true'/>
589 <apps:property name='shouldNeverSpam' value='true'/>
590 </entry>
591 <entry>
592 <category term='filter'></category>
593 <title>Mail Filter</title>
594 <id>tag:mail.google.com,2008:filter:1244162696287</id>
595 <updated>2010-12-10T15:01:45Z</updated>
596 <content></content>
597 <apps:property name='subject' value='[Something Test][FAIL]'/>
598 <apps:property name='label' value='Something Test'/>
599 <apps:property name='shouldNeverSpam' value='true'/>
600 <apps:property name='shouldAlwaysMarkAsImportant' value='true'/>
601 </entry>
602 </feed>
603 -------------------------------------- mailFilters.xml
604
605 --
606 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
607 Wa?l Nasreddine
608 TechnoGate www.technogate.fr
609 mobile :? 06.32.94.70.13
610 agence : 09.70.444.236
611 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
612
613 From wael.nasreddine@gmail.com Fri Dec 10 13:17:41 2010
614 From: wael.nasreddine@gmail.com (Wael M. Nasreddine)
615 Date: Fri, 10 Dec 2010 19:17:41 +0100
616 Subject: [sup-talk] Gmail Contacts
617 Message-ID: <AANLkTi=1VO0FgOTnJ34E3wLm87szJwZZvt3GmoXEV-P=@mail.gmail.com>
618
619 Hello again,
620
621 I was just wondering, were anyone able to get contacts from gmail
622 directly? I used to export gmail contact through a command to a plain
623 text file to use with mutt, but I can't recall which command it was.
624
625 Regards,
626 Wael Nasreddine
627
628 --
629 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
630 Wa?l Nasreddine
631 TechnoGate www.technogate.fr
632 mobile :? 06.32.94.70.13
633 agence : 09.70.444.236
634 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
635
636 From vallentin@icsi.berkeley.edu Wed Dec 15 02:57:14 2010
637 From: vallentin@icsi.berkeley.edu (Matthias Vallentin)
638 Date: Tue, 14 Dec 2010 23:57:14 -0800
639 Subject: [sup-talk] deleting files from source
640 In-Reply-To: <1287950838-sup-5470@mailer>
641 References: <1287452900-sup-9784@maullin> <1287916961-sup-4654@difference.lan>
642 <1287950838-sup-5470@mailer>
643 Message-ID: <20101215075714.GE568@icsi.berkeley.edu>
644
645 On Sun, Oct 24, 2010 at 10:11:49PM +0200, Damien Leone wrote:
646 > However this thread reminds me to add an option to whether delete
647 > emails from Maildirs or just mark them as deleted (the T flag) and let
648 > another software (such as offlineimap) handle them.
649
650 Adding the T flag appears to be the current behavior. Having an option
651 in sup to delete the actual file would be great. How do you delete a
652 mail marked as deleted with offlineimap by the way?
653
654 I am looking forward to seeing this functionality in master!
655
656 Matthias
657
658 From vallentin@icsi.berkeley.edu Wed Dec 15 03:19:55 2010
659 From: vallentin@icsi.berkeley.edu (Matthias Vallentin)
660 Date: Wed, 15 Dec 2010 00:19:55 -0800
661 Subject: [sup-talk] current state of synching upstream?
662 In-Reply-To: <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
663 References: <Pine.LNX.4.64.1004080235530.8539@snarfed.org>
664 <1271023429-sup-9851@zyrg.net> <1271249704-sup-1088@masanjin.net>
665 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
666 <1271260552-sup-9153@masanjin.net>
667 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
668 Message-ID: <20101215081955.GF568@icsi.berkeley.edu>
669
670 On Wed, Apr 14, 2010 at 12:08:14PM -0400, Ben Walton wrote:
671 > Big (notice the size of the new/ directory), but not huge. Poll times
672 > increase linearly though, which one drawback to the current approach
673 > of not moving mail into cur/ when it's detected.
674
675 Does the current version of sup still keep mail in new? As a fairly new
676 sup user, I am trying to understand the limitations of maildir support
677 and this one seems to be one.
678
679 My traditional mindest is still similar to logrotate, i.e., regularly
680 copying maildirs into an archive. If this is still an issue, what about
681 an where mail directories with more than X messages are being
682 automatically copied to an archive? This would bound the linear poll
683 times at a configurable threshold. I don't know how this would look like
684 (adding a new source per rotated maildir does not seem a nice solution)
685 and how it would interplay with Xapian. For example, I worry that
686 maildir rotation could involve major index rebuilding.
687
688 Matthias
689
690 From damien.leone@fensalir.fr Wed Dec 15 06:53:32 2010
691 From: damien.leone@fensalir.fr (Damien Leone)
692 Date: Wed, 15 Dec 2010 12:53:32 +0100
693 Subject: [sup-talk] deleting files from source
694 In-Reply-To: <20101215075714.GE568@icsi.berkeley.edu>
695 References: <1287452900-sup-9784@maullin> <1287916961-sup-4654@difference.lan>
696 <1287950838-sup-5470@mailer>
697 <20101215075714.GE568@icsi.berkeley.edu>
698 Message-ID: <1292413755-sup-2166@mailer>
699
700 Hello,
701
702 Excerpts from Matthias Vallentin's message of mer. d?c. 15 08:57:14 +0100 2010:
703 > Adding the T flag appears to be the current behavior. Having an option
704 > in sup to delete the actual file would be great. How do you delete a
705 > mail marked as deleted with offlineimap by the way?
706
707 It depends on the configuration, AFAIK by default there is "realdelete
708 = no", see offlineimap documentation for more information. [0]
709
710 > I am looking forward to seeing this functionality in master!
711
712 I will try to work on it as soon as my exams are finished (late
713 January).
714
715 Cheers,
716
717 [0] : http://www.docunext.com/wiki/Example_OfflineIMAP_configuration_file
718
719 --
720 Damien Leone <damien.leone at fensalir.fr>
721
722 Web: http://dleone.fensalir.fr/
723 GPG: 0x82EB4DDF
724
725 From piotr.kempa@sigarden.com Wed Dec 15 10:59:06 2010
726 From: piotr.kempa@sigarden.com (Piotr Kempa)
727 Date: Wed, 15 Dec 2010 16:59:06 +0100
728 Subject: [sup-talk] search by message size (incl. attachments)
729 Message-ID: <1292428060-sup-9071@pk-desktop>
730
731 'sup dear users of sup
732 (see the little joke I made there?)
733
734 So anyway, my question is this: is there any way to search (or sort) by
735 message size? E.g. find all emails bigger than 20MB.
736
737 Background: I've been using sup for a little over a year now and already
738 my work maildir is close to 2GB, and while sup works blazingly fast (I
739 love it for that) and I have plenty of space on my HDD, I need to backup
740 my maildir regularly, have it zipped, encrypted and sent away, and it's
741 taking more and more time. And backup space on our company central
742 server, per user, is not as large as on my own HDD. So I'm gonna have to
743 face the problem sooner or later.
744
745 So I was thinking that some time in the future I'll have to find all
746 those huge (20meg+) emails and possibly delete some of them. I know
747 there's no sync-back to maildir in the main trunk now, but maybe there
748 will be before I get to 5 gig maildir. AFAIK there's something working
749 quite alright in the branches for some time now, so I guess it's gonna
750 make it to main sooner or later.
751
752 And if all else fails I can always kick up the ruby interpreter, import
753 the index and generate a list of files with the 'Deleted' tag and just
754 'rm' that (it doesn't sound very safe maybe but I have backup:)
755 But still I first need to find those large messages, right?
756
757 tl;dr: can you search by message size? or sort by that?
758
759 Thanks!
760
761 From james@jamestaylor.org Wed Dec 15 12:06:54 2010
762 From: james@jamestaylor.org (James Taylor)
763 Date: Wed, 15 Dec 2010 17:06:54 +0000
764 Subject: [sup-talk] current state of synching upstream?
765 In-Reply-To: <20101215081955.GF568@icsi.berkeley.edu>
766 References: <Pine.LNX.4.64.1004080235530.8539@snarfed.org>
767 <1271023429-sup-9851@zyrg.net> <1271249704-sup-1088@masanjin.net>
768 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
769 <1271260552-sup-9153@masanjin.net>
770 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
771 <20101215081955.GF568@icsi.berkeley.edu>
772 Message-ID: <1292432651-sup-6834@jamestaylor.org>
773
774 Excerpts from Matthias Vallentin's message of Wed Dec 15 08:19:55 +0000 2010:
775
776 > Does the current version of sup still keep mail in new? As a fairly new
777 > sup user, I am trying to understand the limitations of maildir support
778 > and this one seems to be one.
779
780 For what it is worth, I've been using maildir-sync for almost six months
781 every day, no problems. I exercise it pretty hard since I usually have
782 at least four imap clients (mobile devices and such) accessing the
783 maildir simultaneously via dovecot imap. Everything works fine.
784
785 Currently using Damien's latest sync up with the mainline from here:
786
787 http://git.fensalir.fr/?p=dleone/sup.git;a=shortlog;h=refs/heads/maildir-sync-master
788
789 Anybody else using this? It seems ready to integrate.
790
791 -- jt
792
793 From marc.hartstein@alum.vassar.edu Wed Dec 15 16:15:14 2010
794 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
795 Date: Wed, 15 Dec 2010 16:15:14 -0500
796 Subject: [sup-talk] search by message size (incl. attachments)
797 In-Reply-To: <1292428060-sup-9071@pk-desktop>
798 References: <1292428060-sup-9071@pk-desktop>
799 Message-ID: <1292447511-sup-8924@cabinet>
800
801 Excerpts from Piotr Kempa's message of Wed Dec 15 10:59:06 -0500 2010:
802 > tl;dr: can you search by message size? or sort by that?
803
804 Not sure, but maildir is one-file-per-message, so you could go ahead and
805 use your favorite tool which lets you inspect the filesystem and
806 identify large files.
807
808 You'd still have to work around sup potentially getting cranky that you
809 removed a file it was expecting to still be there. I forget how that all
810 works out.
811 -------------- next part --------------
812 A non-text attachment was scrubbed...
813 Name: signature.asc
814 Type: application/pgp-signature
815 Size: 198 bytes
816 Desc: not available
817 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101215/f1c5ef57/attachment-0001.bin>
818
819 From tero@tilus.net Wed Dec 15 17:03:11 2010
820 From: tero@tilus.net (Tero Tilus)
821 Date: Thu, 16 Dec 2010 00:03:11 +0200
822 Subject: [sup-talk] search by message size (incl. attachments)
823 In-Reply-To: <1292428060-sup-9071@pk-desktop>
824 References: <1292428060-sup-9071@pk-desktop>
825 Message-ID: <1292450230-sup-1708@tilus.net>
826
827 Piotr Kempa, 2010-12-15 17:59:
828 > I need to backup my maildir regularly, have it zipped, encrypted and
829 > sent away, and it's taking more and more time.
830
831 I'd go with incremental backups in that scenario. Daily backup size
832 is gonna be a tiny fraction of the whole mail archive.
833
834 Repeatedly sending stuff that has not changed (as most of your mail in
835 current backup were in the previous too) is plain waste of resources.
836 No matter if the zip is a gig or five.
837
838 --
839 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
840
841 From piotr.kempa@sigarden.com Thu Dec 16 04:22:03 2010
842 From: piotr.kempa@sigarden.com (Piotr Kempa)
843 Date: Thu, 16 Dec 2010 10:22:03 +0100
844 Subject: [sup-talk] search by message size (incl. attachments)
845 In-Reply-To: <1292447511-sup-8924@cabinet>
846 References: <1292428060-sup-9071@pk-desktop> <1292447511-sup-8924@cabinet>
847 Message-ID: <1292491046-sup-2372@pk-desktop>
848
849 Excerpts from Marc Hartstein's message of 2010-12-15 22:15:14 +0100:
850 > Excerpts from Piotr Kempa's message of Wed Dec 15 10:59:06 -0500 2010:
851 > > tl;dr: can you search by message size? or sort by that?
852 >
853 > Not sure, but maildir is one-file-per-message, so you could go ahead and
854 > use your favorite tool which lets you inspect the filesystem and
855 > identify large files.
856 >
857 > You'd still have to work around sup potentially getting cranky that you
858 > removed a file it was expecting to still be there. I forget how that all
859 > works out.
860
861 Thanks for the suggestions, I thought about just finding the large
862 files, inspecting and removing but I'm afraid sup's will panic. But I
863 think I saw some way to sync it again to a changed source, so maybe
864 there's that.
865
866 Re incremental backup - that's something I'll have to do, true, but
867 since I want it to be encrypted on the backup server (with no other
868 users or root getting a peek:) I settled on just bzipping, encrypting
869 and uploading one huge file. Even when there are small changes, when
870 it's one file and it's encrypted, it changes the whole file.
871
872 I could think about getting some loopfile and cryptsetup a LUKS on it on
873 the server, or maybe encfs (I'm not sure they have encfs the server
874 though...).
875
876 Thanks again!
877
878 From moritz+sup@wzff.de Thu Dec 16 07:49:31 2010
879 From: moritz+sup@wzff.de (Moritz Wilhelmy)
880 Date: Thu, 16 Dec 2010 13:49:31 +0100
881 Subject: [sup-talk] search by message size (incl. attachments)
882 In-Reply-To: <1292491046-sup-2372@pk-desktop>
883 References: <1292428060-sup-9071@pk-desktop> <1292447511-sup-8924@cabinet>
884 <1292491046-sup-2372@pk-desktop>
885 Message-ID: <1292503648-sup-6880@niflheimr>
886
887 Excerpts from Piotr Kempa's message of Thu Dec 16 10:22:03 +0100 2010:
888 > Re incremental backup - that's something I'll have to do, true, but
889 > since I want it to be encrypted on the backup server (with no other
890 > users or root getting a peek:) I settled on just bzipping, encrypting
891 > and uploading one huge file. Even when there are small changes, when
892 > it's one file and it's encrypted, it changes the whole file.
893 >
894 > I could think about getting some loopfile and cryptsetup a LUKS on it on
895 > the server, or maybe encfs (I'm not sure they have encfs the server
896 > though...).
897
898 You could use encfs locally and just rsync the encrypted encfs on the server?
899 Also, see rsnapshot for incrememtal backups.
900
901 Cheers,
902
903 Moritz
904
905 From piotr.kempa@sigarden.com Thu Dec 16 08:19:30 2010
906 From: piotr.kempa@sigarden.com (Piotr Kempa)
907 Date: Thu, 16 Dec 2010 14:19:30 +0100
908 Subject: [sup-talk] search by message size (incl. attachments)
909 In-Reply-To: <1292503648-sup-6880@niflheimr>
910 References: <1292428060-sup-9071@pk-desktop> <1292447511-sup-8924@cabinet>
911 <1292491046-sup-2372@pk-desktop> <1292503648-sup-6880@niflheimr>
912 Message-ID: <1292505513-sup-3596@pk-desktop>
913
914 Excerpts from Moritz Wilhelmy's message of 2010-12-16 13:49:31 +0100:
915 > Excerpts from Piotr Kempa's message of Thu Dec 16 10:22:03 +0100 2010:
916 > > Re incremental backup - that's something I'll have to do, true, but
917 > > since I want it to be encrypted on the backup server (with no other
918 > > users or root getting a peek:) I settled on just bzipping, encrypting
919 > > and uploading one huge file. Even when there are small changes, when
920 > > it's one file and it's encrypted, it changes the whole file.
921 > >
922 > > I could think about getting some loopfile and cryptsetup a LUKS on it on
923 > > the server, or maybe encfs (I'm not sure they have encfs the server
924 > > though...).
925 >
926 > You could use encfs locally and just rsync the encrypted encfs on the server?
927 > Also, see rsnapshot for incrememtal backups.
928 >
929 Thanks, all great suggestions (especially rsyncing the encrypted encfs,
930 why didn't I think of that!).
931
932 But from all the answers I gather there's no way to search or sort by
933 mail size in sup, correct?
934
935 Piotr
936
937 From rhomunuq+ml_sup@gmail.com Thu Dec 16 08:21:10 2010
938 From: rhomunuq+ml_sup@gmail.com (Iain)
939 Date: Thu, 16 Dec 2010 13:21:10 +0000
940 Subject: [sup-talk] search by message size (incl. attachments)
941 In-Reply-To: <1292503648-sup-6880@niflheimr>
942 References: <1292428060-sup-9071@pk-desktop> <1292447511-sup-8924@cabinet>
943 <1292491046-sup-2372@pk-desktop> <1292503648-sup-6880@niflheimr>
944 Message-ID: <1292505575-sup-8039@leda>
945
946 Excerpts from Moritz Wilhelmy's message of Thu Dec 16 12:49:31 +0000 2010:
947 > You could use encfs locally and just rsync the encrypted encfs on the server?
948 > Also, see rsnapshot for incrememtal backups.
949
950 Another approach is duplicity, "Encrypted bandwidth-efficient backup
951 using the rsync algorithm": <http://duplicity.nongnu.org/>.
952
953 ~Iain
954
955 From rthrd@web.de Fri Dec 17 08:36:52 2010
956 From: rthrd@web.de (Ruthard Baudach)
957 Date: Fri, 17 Dec 2010 14:36:52 +0100
958 Subject: [sup-talk] change automagicaly inserted line in reply messages
959 Message-ID: <1292592960-sup-9518@ruthard-mini>
960
961
962 If I reply to a message sup automagicaly inserts the original message
963 and a headline "excerpts from..."
964
965 Is it possible to costumize this headline?
966
967 Ruthard Baudach
968
969 From tero@tilus.net Fri Dec 17 08:54:05 2010
970 From: tero@tilus.net (Tero Tilus)
971 Date: Fri, 17 Dec 2010 15:54:05 +0200
972 Subject: [sup-talk] change automagicaly inserted line in reply messages
973 In-Reply-To: <1292592960-sup-9518@ruthard-mini>
974 References: <1292592960-sup-9518@ruthard-mini>
975 Message-ID: <1292593794-sup-5905@tilus.net>
976
977 Ruthard Baudach, 2010-12-17 15:36:
978 > Is it possible to costumize this headline?
979
980 Customize? Yes. Write ~/.sup/hooks/attribution.rb to build
981 attribution line to your taste. Mine looks like
982
983 == ~/.sup/hooks/attribution.rb ==
984 message.from.name + ', ' + message.date.strftime('%Y-%m-%d %H:%M') + ':'
985 ==
986
987 --
988 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
989
990 From bwalton@artsci.utoronto.ca Fri Dec 17 08:54:50 2010
991 From: bwalton@artsci.utoronto.ca (Ben Walton)
992 Date: Fri, 17 Dec 2010 08:54:50 -0500
993 Subject: [sup-talk] change automagicaly inserted line in reply messages
994 In-Reply-To: <1292592960-sup-9518@ruthard-mini>
995 References: <1292592960-sup-9518@ruthard-mini>
996 Message-ID: <1292594064-sup-1011@pinkfloyd.chass.utoronto.ca>
997
998 Excerpts from Ruthard Baudach's message of Fri Dec 17 08:36:52 -0500 2010:
999
1000 Hi Ruthard,
1001
1002 > Is it possible to costumize this headline?
1003
1004 You're looking for the attribution hook.
1005
1006 http://sup.rubyforge.org/wiki/wiki.pl?Hooks
1007
1008 HTH.
1009 -Ben
1010 --
1011 Ben Walton
1012 Systems Programmer - CHASS
1013 University of Toronto
1014 C:416.407.5610 | W:416.978.4302
1015
1016
1017 From snaipperi@gmail.com Fri Dec 17 09:03:38 2010
1018 From: snaipperi@gmail.com (Matti Eiden)
1019 Date: Fri, 17 Dec 2010 16:03:38 +0200
1020 Subject: [sup-talk] Hook for in-reply-to
1021 Message-ID: <AANLkTikBr_82a9=28kzmePD8jgMksGrCa6FfMyy2G-iP@mail.gmail.com>
1022
1023 Hey folks,
1024
1025 I gave up using sup a while ago (read half a year) when I began
1026 getting a lot of email from my university's Moodle. Moodle has/had a
1027 rather stupid bug (now fixed, but it's gonna take years to reach my
1028 university), which was that every email that wasn't based on a reply
1029 (For example a new forum thread notification at moodle), received a
1030 default In-Reply-To header of "moodlepost0 at moodle.tamk.fi".
1031
1032 You can probably imagine what happens: Every email coming from moodle
1033 gets threaded under non-existing email "moodlepost0". In fact, they
1034 wont appear in my inbox at all.
1035
1036 So I'd need a hook to kill this moodlepost0 from every email I
1037 receive. I found this on pastebin, which looks like sup stuff:
1038
1039 http://pastebin.com/vzuXu9gr
1040
1041 In what file should I use it in? And is there a way to make the whole
1042 index go through the hook, so I can recover all my old moodle emails
1043 and get them threaded properly too?
1044
1045
1046 Thanks,
1047 Matti Eiden
1048
1049 From bwalton@artsci.utoronto.ca Fri Dec 17 09:30:49 2010
1050 From: bwalton@artsci.utoronto.ca (Ben Walton)
1051 Date: Fri, 17 Dec 2010 09:30:49 -0500
1052 Subject: [sup-talk] Hook for in-reply-to
1053 In-Reply-To: <AANLkTikBr_82a9=28kzmePD8jgMksGrCa6FfMyy2G-iP@mail.gmail.com>
1054 References: <AANLkTikBr_82a9=28kzmePD8jgMksGrCa6FfMyy2G-iP@mail.gmail.com>
1055 Message-ID: <1292596203-sup-4988@pinkfloyd.chass.utoronto.ca>
1056
1057 Excerpts from Matti Eiden's message of Fri Dec 17 09:03:38 -0500 2010:
1058
1059 Hi Matti,
1060
1061 > In what file should I use it in? And is there a way to make the
1062 > whole index go through the hook, so I can recover all my old moodle
1063 > emails and get them threaded properly too?
1064
1065 I _think_ you'd want to apply that in the before-add-message hook
1066 (~/.sup/hooks/before-add-message.rb). That type of things makes me
1067 want to cry...glad moodle fixed it though.
1068
1069 Thanks
1070 -Ben
1071 --
1072 Ben Walton
1073 Systems Programmer - CHASS
1074 University of Toronto
1075 C:416.407.5610 | W:416.978.4302
1076
1077
1078 From snaipperi@gmail.com Fri Dec 17 14:04:27 2010
1079 From: snaipperi@gmail.com (Matti Eiden)
1080 Date: Fri, 17 Dec 2010 21:04:27 +0200
1081 Subject: [sup-talk] Hook for in-reply-to
1082 In-Reply-To: <1292596203-sup-4988@pinkfloyd.chass.utoronto.ca>
1083 References: <AANLkTikBr_82a9=28kzmePD8jgMksGrCa6FfMyy2G-iP@mail.gmail.com>
1084 <1292596203-sup-4988@pinkfloyd.chass.utoronto.ca>
1085 Message-ID: <AANLkTi=24+QodANv51K=BzXkJJNRihvvM1HQa_zwQpWd@mail.gmail.com>
1086
1087 For anyone concerned, here's what worked for me. It was important to
1088 delete the reference too, which included the same thing, as I guess
1089 the threading function of sup automatically sets the reference to
1090 in-reply-to if it's missing.
1091
1092 Here's also the original bug report at Moodle;
1093 http://tracker.moodle.org/browse/MDL-22551
1094
1095 Thanks Ben for pointing me in the right direction.
1096
1097
1098 ##hooks/before-add-message.rb
1099
1100 fail_replyto = "moodlepost0 at moodle.tamk.fi"
1101 if message.replytos.include?(fail_replyto)
1102 message.replytos.delete(fail_replyto)
1103 end
1104
1105 if message.refs.include?(fail_replyto)
1106 message.refs.delete(fail_replyto)
1107 end
1108
1109 From vallentin@icsi.berkeley.edu Fri Dec 17 23:09:41 2010
1110 From: vallentin@icsi.berkeley.edu (Matthias Vallentin)
1111 Date: Fri, 17 Dec 2010 20:09:41 -0800
1112 Subject: [sup-talk] deleting files from source
1113 In-Reply-To: <1292413755-sup-2166@mailer>
1114 References: <1287452900-sup-9784@maullin> <1287916961-sup-4654@difference.lan>
1115 <1287950838-sup-5470@mailer>
1116 <20101215075714.GE568@icsi.berkeley.edu>
1117 <1292413755-sup-2166@mailer>
1118 Message-ID: <20101218040941.GR60419@icsi.berkeley.edu>
1119
1120 On Wed, Dec 15, 2010 at 12:53:32PM +0100, Damien Leone wrote:
1121 > It depends on the configuration, AFAIK by default there is "realdelete
1122 > = no", see offlineimap documentation for more information. [0]
1123
1124 That does the trick, thanks.
1125
1126 > I will try to work on it as soon as my exams are finished (late
1127 > January).
1128
1129 Sounds great, good luck on your exams! (I just finished mine last week.)
1130
1131 Matthias
1132
1133 From vallentin@ICSI.Berkeley.EDU Sat Dec 18 00:12:16 2010
1134 From: vallentin@ICSI.Berkeley.EDU (Matthias Vallentin)
1135 Date: Fri, 17 Dec 2010 21:12:16 -0800
1136 Subject: [sup-talk] current state of synching upstream?
1137 In-Reply-To: <1292432651-sup-6834@jamestaylor.org>
1138 References: <Pine.LNX.4.64.1004080235530.8539@snarfed.org>
1139 <1271023429-sup-9851@zyrg.net> <1271249704-sup-1088@masanjin.net>
1140 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
1141 <1271260552-sup-9153@masanjin.net>
1142 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
1143 <20101215081955.GF568@icsi.berkeley.edu>
1144 <1292432651-sup-6834@jamestaylor.org>
1145 Message-ID: <20101218051216.GS60419@icsi.berkeley.edu>
1146
1147 On Wed, Dec 15, 2010 at 05:06:54PM +0000, James Taylor wrote:
1148 > For what it is worth, I've been using maildir-sync for almost six months
1149 > every day, no problems. I exercise it pretty hard since I usually have
1150 > at least four imap clients (mobile devices and such) accessing the
1151 > maildir simultaneously via dovecot imap.
1152
1153 This looks like the scenario I envision. Two questions:
1154
1155 - Do you use the IMAP clients as read-only clients or do you invoke
1156 sup-sync after the devices modify the maildir (or before polling
1157 in sup)?
1158
1159 - Do you use sup-sync-back when changing message state via sup? From
1160 what I understand, this would be desirable to copy messages from
1161 new to cur in order to avoid a linear increase in poll times with
1162 growing number of mails in new.
1163
1164 Matthias
1165
1166 From james@jamestaylor.org Sat Dec 18 00:25:05 2010
1167 From: james@jamestaylor.org (James Taylor)
1168 Date: Sat, 18 Dec 2010 05:25:05 +0000
1169 Subject: [sup-talk] current state of synching upstream?
1170 In-Reply-To: <20101218051216.GS60419@icsi.berkeley.edu>
1171 References: <Pine.LNX.4.64.1004080235530.8539@snarfed.org>
1172 <1271023429-sup-9851@zyrg.net> <1271249704-sup-1088@masanjin.net>
1173 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
1174 <1271260552-sup-9153@masanjin.net>
1175 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
1176 <20101215081955.GF568@icsi.berkeley.edu>
1177 <1292432651-sup-6834@jamestaylor.org>
1178 <20101218051216.GS60419@icsi.berkeley.edu>
1179 Message-ID: <1292649662-sup-8863@jamestaylor.org>
1180
1181 Excerpts from Matthias Vallentin's message of Sat Dec 18 05:12:16 +0000 2010:
1182
1183 > This looks like the scenario I envision. Two questions:
1184 >
1185 > - Do you use the IMAP clients as read-only clients or do you invoke
1186 > sup-sync after the devices modify the maildir (or before polling
1187 > in sup)?
1188 >
1189 > - Do you use sup-sync-back when changing message state via sup? From
1190 > what I understand, this would be desirable to copy messages from
1191 > new to cur in order to avoid a linear increase in poll times with
1192 > growing number of mails in new.
1193
1194 Neither. The imap clients are read write, the only time this becomes a
1195 problem is when the imap client moves a message from new to cur. Sup
1196 will not be able to find the message until the next time it polls (but
1197 this is mostly seamless, if I use the imap client I just poll and
1198 refresh in sup). This does imply that sup must be polling cur as well as
1199 new.
1200
1201 Similarly, sup-sync-back is not needed because messages are synced back
1202 to the maildir immediately.
1203
1204 From kljohann@gmail.com Sat Dec 18 09:39:59 2010
1205 From: kljohann@gmail.com (=?utf-8?q?Johann_Kl=C3=A4hn?=)
1206 Date: Sat, 18 Dec 2010 15:39:59 +0100
1207 Subject: [sup-talk] Hook for in-reply-to
1208 In-Reply-To: <AANLkTi=24+QodANv51K=BzXkJJNRihvvM1HQa_zwQpWd@mail.gmail.com>
1209 References: <AANLkTikBr_82a9=28kzmePD8jgMksGrCa6FfMyy2G-iP@mail.gmail.com>
1210 <1292596203-sup-4988@pinkfloyd.chass.utoronto.ca>
1211 <AANLkTi=24+QodANv51K=BzXkJJNRihvvM1HQa_zwQpWd@mail.gmail.com>
1212 Message-ID: <1292682785-sup-3227@ahoi>
1213
1214 FYI you can create a small script to fix already indexed mails.
1215 Be sure to quit sup before you do this and change the moodlepost address.
1216
1217 require 'sup'
1218 include Redwood
1219 start
1220 i = Index.init
1221 i.load
1222
1223 moodle_junk = "moodlepost0 at whatever.org"
1224
1225 i.each_message do |m|
1226 if m.replytos.include?(moodle_junk)
1227 m.replytos.delete(moodle_junk)
1228 i.update_message_state m
1229 end
1230
1231 if m.refs.include?(moodle_junk)
1232 m.refs.delete(moodle_junk)
1233 i.update_message_state m
1234 end
1235 end
1236
1237 i.save
1238
1239 From vallentin@ICSI.Berkeley.EDU Sat Dec 18 14:04:27 2010
1240 From: vallentin@ICSI.Berkeley.EDU (Matthias Vallentin)
1241 Date: Sat, 18 Dec 2010 11:04:27 -0800
1242 Subject: [sup-talk] current state of synching upstream?
1243 In-Reply-To: <1292649662-sup-8863@jamestaylor.org>
1244 References: <Pine.LNX.4.64.1004080235530.8539@snarfed.org>
1245 <1271023429-sup-9851@zyrg.net> <1271249704-sup-1088@masanjin.net>
1246 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
1247 <1271260552-sup-9153@masanjin.net>
1248 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
1249 <20101215081955.GF568@icsi.berkeley.edu>
1250 <1292432651-sup-6834@jamestaylor.org>
1251 <20101218051216.GS60419@icsi.berkeley.edu>
1252 <1292649662-sup-8863@jamestaylor.org>
1253 Message-ID: <20101218190427.GU60419@icsi.berkeley.edu>
1254
1255 On Sat, Dec 18, 2010 at 05:25:05AM +0000, James Taylor wrote:
1256 > Neither. The imap clients are read write, the only time this becomes a
1257 > problem is when the imap client moves a message from new to cur.
1258
1259 Is that the only operation the imap clients do? What happens if they
1260 delete messages (or moved them to another source) and sup has that
1261 message already in the index.
1262
1263 > Sup will not be able to find the message until the next time it polls
1264 > (but this is mostly seamless, if I use the imap client I just poll and
1265 > refresh in sup). This does imply that sup must be polling cur as well
1266 > as new.
1267
1268 If sup polls both cur and new then there is no more benefit in keeping
1269 new small to avoid long poll times for large maildirs.
1270
1271 This brings me to my main sup question. What is the best strategy to
1272 avoid overly large maildirs? Say I have around 10 maildirs, each of
1273 which represent a separate source. The classic scheme that comes to mind
1274 (and that I use with Mutt and Mairix) would be some horizontal
1275 partitioning scheme according to time, i.e., creating a new tree of
1276 maildirs at a certain time interval (e.g., quarterly could imply a
1277 naming scheme for the top-level directories like mail-2010-1 to
1278 mail-2010-4). Then, only the most recent partition needs to be polled.
1279
1280 The downside appears to be that each rotation adds, in the above
1281 example, 10 new source entries to sources.yaml and requires switching
1282 of polling in the non-current sources.
1283
1284 Does that sound tractable and aligned with sup's mail philosophy?
1285
1286 Matthias
1287
1288 From bwalton@artsci.utoronto.ca Sat Dec 18 14:21:40 2010
1289 From: bwalton@artsci.utoronto.ca (Ben Walton)
1290 Date: Sat, 18 Dec 2010 14:21:40 -0500
1291 Subject: [sup-talk] current state of synching upstream?
1292 In-Reply-To: <20101218190427.GU60419@icsi.berkeley.edu>
1293 References: <Pine.LNX.4.64.1004080235530.8539@snarfed.org>
1294 <1271023429-sup-9851@zyrg.net> <1271249704-sup-1088@masanjin.net>
1295 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
1296 <1271260552-sup-9153@masanjin.net>
1297 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
1298 <20101215081955.GF568@icsi.berkeley.edu>
1299 <1292432651-sup-6834@jamestaylor.org>
1300 <20101218051216.GS60419@icsi.berkeley.edu>
1301 <1292649662-sup-8863@jamestaylor.org>
1302 <20101218190427.GU60419@icsi.berkeley.edu>
1303 Message-ID: <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
1304
1305 Excerpts from Matthias Vallentin's message of Sat Dec 18 14:04:27 -0500 2010:
1306
1307 > The downside appears to be that each rotation adds, in the above
1308 > example, 10 new source entries to sources.yaml and requires
1309 > switching of polling in the non-current sources.
1310
1311 Here's my current approach that I've been happy with since I
1312 implemented it back in the summer:
1313
1314 1. Procmail files all mail (regardless of originating source) into
1315 Maildirs like .incoming.%Y.%m. This gives me a new maildir each month
1316 that holds all incoming mail for that month. The basics of the
1317 .procmailrc to do this are:
1318
1319 --snip--
1320
1321 MAILDIR=$HOME/Maildir/
1322 DATEDIR=`date +%Y.%m`
1323
1324 :0
1325 $MAILDIR/.incoming.$DATEDIR/
1326
1327 --snip--
1328
1329 2. I have the following hook setup as after-poll:
1330
1331 --snip--
1332 s = "maildir:/path/to/Maildir/.incoming.#{Date.today.strftime("%Y.%m")}"
1333
1334 unless Redwood::SourceManager.source_for(s)
1335 Redwood::Logger.force_message "Adding new source: #{s}"
1336 Redwood::SourceManager.add_source Recoverable.new(Redwood::Maildir.new(s))
1337 end
1338 --snip--
1339
1340 3. I have almost all of my labelling done via the before-add-message
1341 hook. This gets me the per-mailing-list tags that I would have
1342 applied based on source originally. I almost never apply tags
1343 manually any more.
1344
1345 The only downside to this is that my sources.yaml file needs manual
1346 twiddling at restart to add the sources that were added during
1347 runtime. I've yet to be annoyed enough by this to figure out how to
1348 make these dynamic additions sticky across restarts.
1349
1350 HTH.
1351 -Ben
1352 --
1353 Ben Walton
1354 Systems Programmer - CHASS
1355 University of Toronto
1356 C:416.407.5610 | W:416.978.4302
1357
1358
1359 From tero@tilus.net Sat Dec 18 15:02:46 2010
1360 From: tero@tilus.net (Tero Tilus)
1361 Date: Sat, 18 Dec 2010 22:02:46 +0200
1362 Subject: [sup-talk] current state of synching upstream?
1363 In-Reply-To: <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
1364 References: <Pine.LNX.4.64.1004080235530.8539@snarfed.org>
1365 <1271023429-sup-9851@zyrg.net> <1271249704-sup-1088@masanjin.net>
1366 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
1367 <1271260552-sup-9153@masanjin.net>
1368 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
1369 <20101215081955.GF568@icsi.berkeley.edu>
1370 <1292432651-sup-6834@jamestaylor.org>
1371 <20101218051216.GS60419@icsi.berkeley.edu>
1372 <1292649662-sup-8863@jamestaylor.org>
1373 <20101218190427.GU60419@icsi.berkeley.edu>
1374 <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
1375 Message-ID: <1292702329-sup-1169@tilus.net>
1376
1377 Ben Walton, 2010-12-18 21:21:
1378 > The only downside to this is that my sources.yaml file needs manual
1379 > twiddling at restart to add the sources that were added during
1380 > runtime.
1381
1382 How come? For what I know sup should save sources.yml (the call to
1383 SoureManager.save_sources is in Index.save) upon graceful exit.
1384 That's exactly how sup-add modifies sources.yml.
1385
1386 --
1387 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
1388
1389 From bwalton@artsci.utoronto.ca Sat Dec 18 15:12:34 2010
1390 From: bwalton@artsci.utoronto.ca (Ben Walton)
1391 Date: Sat, 18 Dec 2010 15:12:34 -0500
1392 Subject: [sup-talk] current state of synching upstream?
1393 In-Reply-To: <1292702329-sup-1169@tilus.net>
1394 References: <Pine.LNX.4.64.1004080235530.8539@snarfed.org>
1395 <1271023429-sup-9851@zyrg.net> <1271249704-sup-1088@masanjin.net>
1396 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
1397 <1271260552-sup-9153@masanjin.net>
1398 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
1399 <20101215081955.GF568@icsi.berkeley.edu>
1400 <1292432651-sup-6834@jamestaylor.org>
1401 <20101218051216.GS60419@icsi.berkeley.edu>
1402 <1292649662-sup-8863@jamestaylor.org>
1403 <20101218190427.GU60419@icsi.berkeley.edu>
1404 <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
1405 <1292702329-sup-1169@tilus.net>
1406 Message-ID: <1292703012-sup-2641@pinkfloyd.chass.utoronto.ca>
1407
1408 Excerpts from Tero Tilus's message of Sat Dec 18 15:02:46 -0500 2010:
1409 > Ben Walton, 2010-12-18 21:21:
1410 > > The only downside to this is that my sources.yaml file needs manual
1411 > > twiddling at restart to add the sources that were added during
1412 > > runtime.
1413 >
1414 > How come? For what I know sup should save sources.yml (the call to
1415 > SoureManager.save_sources is in Index.save) upon graceful exit.
1416 > That's exactly how sup-add modifies sources.yml.
1417
1418 I'm not sure as I haven't had the time to look into it. I only
1419 discovered this after the first time sup restarted after adding this
1420 hook (a few months later). I rarely restart sup and when I do, I
1421 don't usually have time to poke at the problem (work mail and
1422 all...). I might be able to just make the SourceManager.save_sources
1423 call manually.
1424
1425 Thanks
1426 -Ben
1427
1428
1429
1430 --
1431 Ben Walton
1432 Systems Programmer - CHASS
1433 University of Toronto
1434 C:416.407.5610 | W:416.978.4302
1435
1436
1437 From jonas@lophus.org Sun Dec 19 17:57:33 2010
1438 From: jonas@lophus.org (Jonas H.)
1439 Date: Sun, 19 Dec 2010 23:57:33 +0100
1440 Subject: [sup-talk] Help me getting started.
1441 Message-ID: <4D0E8DDD.20505@lophus.org>
1442
1443 Hello Sup-ers!
1444
1445 I want to get rid of Thunderbird. :)
1446
1447 The following questions surely are of this
1448 same-pesky-newbie-questions-every-day kind, but I have them, anyway ;)
1449
1450 1. `sup-configure` asked me for my primary e-mail address. I have no
1451 primary e-mail address. In fact, I have several "personalities" being
1452 myself in in different contexts. It is very important to me to make
1453 sure those personalities, represented by different e-mail addresses,
1454 will *never* be accidentally mixed. Can Sup make me force to chose the
1455 e-mail address I want to send from for every mail I start writing? (Of
1456 course, when answering a mail, I would answer with the address it was
1457 sent to.)
1458
1459 2. How can I display my own email bodies in thread view? Sometimes
1460 someone digs up thread so ancient I don't remember what I wrote back then.
1461
1462 3. I hate mbox. Can I use other mailbox formats for sent e-mails?
1463
1464 4. For incoming mails, I used to use POP3, and I want keep storing my
1465 mail locally (only). Which MDA solution is the best as far as
1466 performance is concerned? My netbook has very poor CPU and HDD
1467 performance (loooong HDD wakeup times), so that's what matters most in
1468 this regard.
1469
1470 5. As it worth using Ruby 1.9 for Sup? I have no idea about Ruby 1.8 vs
1471 Ruby 1.9 -- any bug fixes, performance improvements, ... affecting Sup?
1472
1473 6. Vertical scrolling is *very* laggy. The terminal emulator doesn't
1474 matter; as soon as I do a vertical scroll CPU usage jumps up to 100%. Am
1475 I missing any important tweaks?
1476
1477 That's all! ;)
1478 Hoping to be able to join sup pack soon,
1479 thanks in advance,
1480 Jonas
1481
1482 From bwalton@artsci.utoronto.ca Sun Dec 19 18:34:35 2010
1483 From: bwalton@artsci.utoronto.ca (Ben Walton)
1484 Date: Sun, 19 Dec 2010 18:34:35 -0500
1485 Subject: [sup-talk] Help me getting started.
1486 In-Reply-To: <4D0E8DDD.20505@lophus.org>
1487 References: <4D0E8DDD.20505@lophus.org>
1488 Message-ID: <1292801467-sup-5115@pinkfloyd.chass.utoronto.ca>
1489
1490 Excerpts from Jonas H.'s message of Sun Dec 19 17:57:33 -0500 2010:
1491
1492 Hi Jonas,
1493
1494 > 1. `sup-configure` asked me for my primary e-mail address. I have no
1495 > primary e-mail address. In fact, I have several "personalities"
1496 > being myself in in different contexts. It is very important to me
1497 > to make sure those personalities, represented by different e-mail
1498 > addresses, will *never* be accidentally mixed. Can Sup make me
1499 > force to chose the e-mail address I want to send from for every mail
1500 > I start writing? (Of course, when answering a mail, I would answer
1501 > with the address it was sent to.)
1502
1503 You can add and use multiple email accounts. The 'primary' label is
1504 more of a 'default' than a primary. You'll want to use the various
1505 hooks to automatically set the email address used. You can also
1506 change this while editing the message you're sending.
1507
1508 > 2. How can I display my own email bodies in thread view? Sometimes
1509 > someone digs up thread so ancient I don't remember what I wrote back
1510 > then.
1511
1512 Sup does this automatically.
1513
1514 > 3. I hate mbox. Can I use other mailbox formats for sent e-mails?
1515
1516 Maildir is an option.
1517
1518 > 4. For incoming mails, I used to use POP3, and I want keep storing
1519 > my mail locally (only). Which MDA solution is the best as far as
1520 > performance is concerned? My netbook has very poor CPU and HDD
1521 > performance (loooong HDD wakeup times), so that's what matters most
1522 > in this regard.
1523
1524 I'd say fetchmail, but I think it still requires a local mail delivery
1525 system. There is likely some pop3 fetch tool, but I'm not familiar
1526 with any of them.
1527
1528 > 5. As it worth using Ruby 1.9 for Sup? I have no idea about Ruby 1.8
1529 > vs Ruby 1.9 -- any bug fixes, performance improvements,
1530 > ... affecting Sup?
1531
1532 I'm still using a really old 1.8. I've tried to go to 1.9, but I
1533 don't have xapian working yet...
1534
1535 > 6. Vertical scrolling is *very* laggy. The terminal emulator doesn't
1536 > matter; as soon as I do a vertical scroll CPU usage jumps up to
1537 > 100%. Am I missing any important tweaks?
1538
1539 Not sure.
1540
1541 Thanks
1542 -Ben
1543 --
1544 Ben Walton
1545 Systems Programmer - CHASS
1546 University of Toronto
1547 C:416.407.5610 | W:416.978.4302
1548
1549
1550 From tero@tilus.net Mon Dec 20 02:57:04 2010
1551 From: tero@tilus.net (Tero Tilus)
1552 Date: Mon, 20 Dec 2010 09:57:04 +0200
1553 Subject: [sup-talk] Help me getting started.
1554 In-Reply-To: <4D0E8DDD.20505@lophus.org>
1555 References: <4D0E8DDD.20505@lophus.org>
1556 Message-ID: <1292830767-sup-1667@tilus.net>
1557
1558 Jonas H., 2010-12-20 00:57:
1559 > 2. How can I display my own email bodies in thread view?
1560
1561 They should be there. If they aren't they eithere aren't properly
1562 indexed, aren't referenced by the reply (reply is missing both
1563 In-reply-to and References -headers, there are evil mailclients out
1564 there which do this) or there's a bug in sup.
1565
1566 > 6. Vertical scrolling is *very* laggy.
1567
1568 Is there any chance you are talking about paging down in thread index?
1569 Sup is lazy. It only lists a screenfull of results at first by
1570 default. It continues loading messages if you scroll further down.
1571 Once the loading is done scrolling should be instantaneous.
1572
1573 Tags and search make paging thru "mail folders" pretty much obsolete.
1574
1575 --
1576 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
1577
1578 From wael.nasreddine@gmail.com Mon Dec 20 06:07:40 2010
1579 From: wael.nasreddine@gmail.com (Wael Nasreddine)
1580 Date: Mon, 20 Dec 2010 12:07:40 +0100
1581 Subject: [sup-talk] change automagicaly inserted line in reply messages
1582 In-Reply-To: <1292593794-sup-5905@tilus.net>
1583 References: <1292592960-sup-9518@ruthard-mini> <1292593794-sup-5905@tilus.net>
1584 Message-ID: <1292843168-sup-2290@Phoenix>
1585
1586 This one time, at SUP Camp, Tero Tilus said, On 2010-12-17 14:54:
1587 > Ruthard Baudach, 2010-12-17 15:36:
1588 > > Is it possible to costumize this headline?
1589
1590 > Customize? Yes. Write ~/.sup/hooks/attribution.rb to build
1591 > attribution line to your taste. Mine looks like
1592
1593 > == ~/.sup/hooks/attribution.rb ==
1594 > message.from.name + ', ' + message.date.strftime('%Y-%m-%d %H:%M') + ':'
1595 > ==
1596
1597 Very cool tip, Read mine lol
1598
1599 there's nothing beside the name of this hook on the
1600 wiki so it was hard to figure it out on my own..
1601 --
1602 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1603 Wa?l Nasreddine
1604 website http://wael.nasreddine.com
1605 Blog http://emxyptlk.com
1606 TechnoGate http://technogate.fr
1607 mobile 06.32.94.70.13
1608 landline 09.70.444.236
1609 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1610
1611 From tero@tilus.net Mon Dec 20 06:28:12 2010
1612 From: tero@tilus.net (Tero Tilus)
1613 Date: Mon, 20 Dec 2010 13:28:12 +0200
1614 Subject: [sup-talk] change automagicaly inserted line in reply messages
1615 In-Reply-To: <1292843168-sup-2290@Phoenix>
1616 References: <1292592960-sup-9518@ruthard-mini> <1292593794-sup-5905@tilus.net>
1617 <1292843168-sup-2290@Phoenix>
1618 Message-ID: <1292844390-sup-7943@tilus.net>
1619
1620 Wael Nasreddine, 2010-12-20 13:07:
1621 > there's nothing beside the name of this hook on the
1622 > wiki so it was hard to figure it out on my own..
1623
1624 As the wiki-page says right at the beginning
1625
1626 To see documentation on the available hooks, just run "sup -l".
1627
1628 ;)
1629
1630 --
1631 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
1632
1633 From wael.nasreddine@gmail.com Mon Dec 20 06:45:39 2010
1634 From: wael.nasreddine@gmail.com (Wael Nasreddine)
1635 Date: Mon, 20 Dec 2010 12:45:39 +0100
1636 Subject: [sup-talk] Hook before-add-message,
1637 any way to know if this message is in a topic I replied to ?
1638 Message-ID: <1292845256-sup-6025@Phoenix>
1639
1640 Hello,
1641
1642 I filter all email from a mailing list out of my inbox into the
1643 list_XXX where XXX is the name of the list, this is fine however I
1644 would like to see at glance emails in topic I replied to, for instance
1645 a reply to this email ends up in the list_sup_talk Label, which forces
1646 me to look for updates, what would be cool is a way to read emails to
1647 the list whenever I have time but replies to my questions or to any of
1648 answers should stay in the inbox (have the inbox label)
1649
1650 Any way to do that? Is there any method in the message variable that
1651 can be called to know that?
1652
1653 BTW, how can I run a console from within a hook with all the
1654 environment loaded? This actually allows me to call message.methods
1655 myself and interact with it..
1656
1657 Regards,
1658 Wael Nasreddine
1659 --
1660 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1661 Wa?l Nasreddine
1662 website http://wael.nasreddine.com
1663 Blog http://emxyptlk.com
1664 TechnoGate http://technogate.fr
1665 mobile 06.32.94.70.13
1666 landline 09.70.444.236
1667 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1668
1669 From tero@tilus.net Mon Dec 20 08:12:52 2010
1670 From: tero@tilus.net (Tero Tilus)
1671 Date: Mon, 20 Dec 2010 15:12:52 +0200
1672 Subject: [sup-talk] Hook before-add-message,
1673 any way to know if this message is in a topic I replied to ?
1674 In-Reply-To: <1292845256-sup-6025@Phoenix>
1675 References: <1292845256-sup-6025@Phoenix>
1676 Message-ID: <1292846110-sup-9522@tilus.net>
1677
1678 Wael Nasreddine, 2010-12-20 13:45:
1679 > I would like to see at glance emails in topic I replied to
1680
1681 You'd basically check all the messages in the same thread with the
1682 received mail and see if you appear in from. I think it could look
1683 something like
1684
1685 ts = ThreadSet.new(...something...)
1686 ts.load_thread_for_message message
1687 participated = ts.thread_for(message).authors.include? 'my at email'
1688 message.add_label :inbox if participated
1689
1690 More advanced suppers please step in and correct.
1691
1692 --
1693 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
1694
1695 From marka@pobox.com Mon Dec 20 08:41:36 2010
1696 From: marka@pobox.com (Mark Alexander)
1697 Date: Mon, 20 Dec 2010 08:41:36 -0500
1698 Subject: [sup-talk] Help me getting started.
1699 In-Reply-To: <4D0E8DDD.20505@lophus.org>
1700 References: <4D0E8DDD.20505@lophus.org>
1701 Message-ID: <1292851798-sup-1112@bloovis.org>
1702
1703 Excerpts from Jonas H.'s message of Sun Dec 19 17:57:33 -0500 2010:
1704 > 4. For incoming mails, I used to use POP3, and I want keep storing my
1705 > mail locally (only). Which MDA solution is the best as far as
1706 > performance is concerned? My netbook has very poor CPU and HDD
1707 > performance (loooong HDD wakeup times), so that's what matters most in
1708 > this regard.
1709
1710 Fetchmail would be a good choice, and you can use it with procmail or
1711 maildrop to deliver the mail to your local maildir(s). The
1712 configuration language for maildrop is somewhat easier to learn than
1713 procmail's.
1714
1715 I once tried using offlineimap, but had to stop because our Exchange
1716 mail server at work would occasionally cause mails to be deleted and
1717 that would mess up sup. (I think was a "feature" of Exchange or Outlook
1718 that allowed people to recall messages after they'd been sent. I am
1719 not sure, though; I don't use Windows.)
1720
1721 In case this would be useful, I've attached sanitized examples of my
1722 fetchmail and maildrop config files. I've got them set up to use two
1723 different incoming mail accounts, one for personal mail (gmail) and
1724 one for work mail (a bogus company, widgets.com), with separate
1725 maildirs for each.
1726 -------------- next part --------------
1727 A non-text attachment was scrubbed...
1728 Name: .fetchmailrc
1729 Type: application/octet-stream
1730 Size: 386 bytes
1731 Desc: not available
1732 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101220/7b59c285/attachment.obj>
1733 -------------- next part --------------
1734 A non-text attachment was scrubbed...
1735 Name: .mailfilter
1736 Type: application/octet-stream
1737 Size: 235 bytes
1738 Desc: not available
1739 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101220/7b59c285/attachment-0001.obj>
1740 -------------- next part --------------
1741 A non-text attachment was scrubbed...
1742 Name: .mailfilter.widgets
1743 Type: application/octet-stream
1744 Size: 91 bytes
1745 Desc: not available
1746 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101220/7b59c285/attachment-0002.obj>
1747
1748 From jonas@lophus.org Mon Dec 20 08:39:50 2010
1749 From: jonas@lophus.org (Jonas H.)
1750 Date: Mon, 20 Dec 2010 14:39:50 +0100
1751 Subject: [sup-talk] Help me getting started.
1752 In-Reply-To: <1292830767-sup-1667@tilus.net>
1753 References: <4D0E8DDD.20505@lophus.org> <1292830767-sup-1667@tilus.net>
1754 Message-ID: <4D0F5CA6.7070001@lophus.org>
1755
1756 On 12/20/2010 08:57 AM, Tero Tilus wrote:
1757 > Jonas H., 2010-12-20 00:57:
1758 >> 2. How can I display my own email bodies in thread view?
1759 >
1760 > They should be there. If they aren't they eithere aren't properly
1761 > indexed, aren't referenced by the reply (reply is missing both
1762 > In-reply-to and References -headers, there are evil mailclients out
1763 > there which do this) or there's a bug in sup.
1764
1765 Humm... all replies have both the In-Reply-To and the References
1766 headers. Just to clarify this - I see the headers of my messages, can
1767 expand them, but never see the body. (This does not only apply to
1768 responses but to messages in general.)
1769
1770 >> 6. Vertical scrolling is *very* laggy.
1771 >
1772 > Is there any chance you are talking about paging down in thread index?
1773
1774 Sorry, I meant horizontal scolling using left/right arrows.
1775
1776 [ Why doesn't this mailing list set the Reply-To header :'( ]
1777
1778 From tero@tilus.net Mon Dec 20 08:57:34 2010
1779 From: tero@tilus.net (Tero Tilus)
1780 Date: Mon, 20 Dec 2010 15:57:34 +0200
1781 Subject: [sup-talk] Help me getting started.
1782 In-Reply-To: <4D0F5C5E.7030809@lophus.org>
1783 References: <4D0E8DDD.20505@lophus.org> <1292830767-sup-1667@tilus.net>
1784 <4D0F5C5E.7030809@lophus.org>
1785 Message-ID: <1292853433-sup-364@tilus.net>
1786
1787 Jonas H., 2010-12-20 15:38:
1788 > Just to clarify this - I see the headers of my messages, can expand
1789 > them, but never see the body. (This does not only apply to responses
1790 > but to messages in general.)
1791
1792 You mean you don't see any mail bodies at all!? Something has really
1793 gone haywire during indexing/polling then. Could you describe the
1794 behavior more closely? Screenshots?
1795
1796 > Sorry, I meant horizontal scolling using left/right arrows.
1797
1798 I've never had any problems with that. Not even with really lo-fi hw.
1799 Could you try profiling if? (gem install ruby-prof, launch sup using
1800 ruby-prof and do scrolling, preferably a lot of it and then exit)
1801
1802
1803 --
1804 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
1805
1806 From shadowfirebird@gmail.com Mon Dec 20 09:10:11 2010
1807 From: shadowfirebird@gmail.com (Shadowfirebird)
1808 Date: Mon, 20 Dec 2010 14:10:11 +0000
1809 Subject: [sup-talk] Help me getting started.
1810 In-Reply-To: <1292851798-sup-1112@bloovis.org>
1811 References: <4D0E8DDD.20505@lophus.org> <1292851798-sup-1112@bloovis.org>
1812 Message-ID: <1292854085-sup-6276@blake>
1813
1814 > Fetchmail would be a good choice, and you can use it with procmail or
1815 > maildrop to deliver the mail to your local maildir(s). The
1816 > configuration language for maildrop is somewhat easier to learn than
1817 > procmail's.
1818
1819 I use Getmail because it's slightly more Google-friendly, but essentially similar to Fetchmail. Worth considering.
1820
1821 --
1822 If a listener nods his head when you're explaining your program, wake him up.
1823
1824 From marc.hartstein@alum.vassar.edu Mon Dec 20 13:24:27 2010
1825 From: marc.hartstein@alum.vassar.edu (Marc Hartstein)
1826 Date: Mon, 20 Dec 2010 13:24:27 -0500
1827 Subject: [sup-talk] Help me getting started.
1828 In-Reply-To: <4D0F5CA6.7070001@lophus.org>
1829 References: <4D0E8DDD.20505@lophus.org> <1292830767-sup-1667@tilus.net>
1830 <4D0F5CA6.7070001@lophus.org>
1831 Message-ID: <1292869298-sup-8785@cabinet>
1832
1833 Excerpts from Jonas H.'s message of Mon Dec 20 08:39:50 -0500 2010:
1834 > [ Why doesn't this mailing list set the Reply-To header :'( ]
1835
1836 Because net standards require that mailing lists not override Reply-To
1837 to set it to the mailing list. Reply-To is intended to always be the
1838 proper address for a reply directly to the author. There are other
1839 semi-official headers for mailing lists to use to instruct an MUA of the
1840 correct address for mailing list replies. sup honors those and should
1841 offer you the option of replying to the list.
1842
1843 From vallentin@ICSI.Berkeley.EDU Tue Dec 21 01:44:45 2010
1844 From: vallentin@ICSI.Berkeley.EDU (Matthias Vallentin)
1845 Date: Mon, 20 Dec 2010 22:44:45 -0800
1846 Subject: [sup-talk] current state of synching upstream?
1847 In-Reply-To: <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
1848 References: <1271249704-sup-1088@masanjin.net>
1849 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
1850 <1271260552-sup-9153@masanjin.net>
1851 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
1852 <20101215081955.GF568@icsi.berkeley.edu>
1853 <1292432651-sup-6834@jamestaylor.org>
1854 <20101218051216.GS60419@icsi.berkeley.edu>
1855 <1292649662-sup-8863@jamestaylor.org>
1856 <20101218190427.GU60419@icsi.berkeley.edu>
1857 <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
1858 Message-ID: <20101221064445.GZ60419@icsi.berkeley.edu>
1859
1860 On Sat, Dec 18, 2010 at 02:21:40PM -0500, Ben Walton wrote:
1861 > Here's my current approach that I've been happy with since I
1862 > implemented it back in the summer:
1863
1864 Cool, this is exactly how I expected it to look like!
1865
1866 > --snip--
1867 > s = "maildir:/path/to/Maildir/.incoming.#{Date.today.strftime("%Y.%m")}"
1868 >
1869 > unless Redwood::SourceManager.source_for(s)
1870 > Redwood::Logger.force_message "Adding new source: #{s}"
1871 > Redwood::SourceManager.add_source Recoverable.new(Redwood::Maildir.new(s))
1872 > end
1873 > --snip--
1874
1875 Neither master nor Damien's Maildir clone contain the class Recoverable.
1876 Is this code you added somewhere else?
1877
1878 The only (conceptual) issue I see with this code that you miss sources
1879 when having more than a month of idleness. Say the suffix of s is
1880 2012.10 and the next time you check back is in December, then you'll
1881 miss 2012.11. Now whether anyone of us has the freedom to not check
1882 email for that long is a different question :-).
1883
1884 > The only downside to this is that my sources.yaml file needs manual
1885 > twiddling at restart to add the sources that were added during
1886 > runtime.
1887
1888 As Tilo mentioned, this is weird indeed since sup calls Index.save which
1889 in turn should call SourceManager.save_sources. I'll look into this when
1890 I get a chance.
1891
1892 Matthias
1893
1894 From vallentin@ICSI.Berkeley.EDU Tue Dec 21 01:48:32 2010
1895 From: vallentin@ICSI.Berkeley.EDU (Matthias Vallentin)
1896 Date: Mon, 20 Dec 2010 22:48:32 -0800
1897 Subject: [sup-talk] current state of synching upstream?
1898 In-Reply-To: <20101221064445.GZ60419@icsi.berkeley.edu>
1899 References: <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
1900 <1271260552-sup-9153@masanjin.net>
1901 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
1902 <20101215081955.GF568@icsi.berkeley.edu>
1903 <1292432651-sup-6834@jamestaylor.org>
1904 <20101218051216.GS60419@icsi.berkeley.edu>
1905 <1292649662-sup-8863@jamestaylor.org>
1906 <20101218190427.GU60419@icsi.berkeley.edu>
1907 <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
1908 <20101221064445.GZ60419@icsi.berkeley.edu>
1909 Message-ID: <20101221064832.GA60419@icsi.berkeley.edu>
1910
1911 On Mon, Dec 20, 2010 at 10:44:45PM -0800, Matthias Vallentin wrote:
1912 > As Tilo mentioned [..]
1913
1914 I was referring to Tero, sorry about the confusion.
1915
1916 Matthias
1917
1918 From vallentin@icsi.berkeley.edu Tue Dec 21 02:12:30 2010
1919 From: vallentin@icsi.berkeley.edu (Matthias Vallentin)
1920 Date: Mon, 20 Dec 2010 23:12:30 -0800
1921 Subject: [sup-talk] Maildir sent_source
1922 Message-ID: <20101221071230.GE60419@icsi.berkeley.edu>
1923
1924 It seems that qualifying sent_source with maildir in config.yaml does
1925 not have an effect, e.g., the sent source is still mbox despite an
1926
1927 :sent_source: maildir:~/.mail/sent
1928
1929 entry. Briefly crawling through the source, I don't see support for
1930 Maildir as sent source anyway. Am I missing a patch or am I in the wrong
1931 branch (currently Damien's maildir clone)?
1932
1933 Matthias
1934
1935 From tero@tilus.net Tue Dec 21 05:56:23 2010
1936 From: tero@tilus.net (Tero Tilus)
1937 Date: Tue, 21 Dec 2010 12:56:23 +0200
1938 Subject: [sup-talk] Maildir sent_source
1939 In-Reply-To: <20101221071230.GE60419@icsi.berkeley.edu>
1940 References: <20101221071230.GE60419@icsi.berkeley.edu>
1941 Message-ID: <1292928629-sup-4367@tilus.net>
1942
1943 Matthias Vallentin, 2010-12-21 09:12:
1944 > It seems that qualifying sent_source with maildir in config.yaml does
1945 > not have an effect, e.g., the sent source is still mbox despite an
1946 >
1947 > :sent_source: maildir:~/.mail/sent
1948 >
1949 > entry. Briefly crawling through the source, I don't see support for
1950 > Maildir as sent source anyway.
1951
1952 I do see it. ;) Open bin/sup and look for
1953
1954 if(s = Redwood::SourceManager.source_for SentManager.source_uri)
1955 SentManager.source = s
1956 else
1957 Redwood::SourceManager.add_source SentManager.default_source
1958 end
1959
1960 Judging by the code it looks like you also need to sup-add your
1961 maildir in addition to adding it to config. If
1962 Redwood::SourceManager.source_for doesn't find the source it silently
1963 drops back to default sent source. IMO it should complain about
1964 invalid config or something.
1965
1966 --
1967 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
1968
1969 From tero@tilus.net Tue Dec 21 06:01:59 2010
1970 From: tero@tilus.net (Tero Tilus)
1971 Date: Tue, 21 Dec 2010 13:01:59 +0200
1972 Subject: [sup-talk] current state of synching upstream?
1973 In-Reply-To: <20101221064445.GZ60419@icsi.berkeley.edu>
1974 References: <1271249704-sup-1088@masanjin.net>
1975 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
1976 <1271260552-sup-9153@masanjin.net>
1977 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
1978 <20101215081955.GF568@icsi.berkeley.edu>
1979 <1292432651-sup-6834@jamestaylor.org>
1980 <20101218051216.GS60419@icsi.berkeley.edu>
1981 <1292649662-sup-8863@jamestaylor.org>
1982 <20101218190427.GU60419@icsi.berkeley.edu>
1983 <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
1984 <20101221064445.GZ60419@icsi.berkeley.edu>
1985 Message-ID: <1292929122-sup-7072@tilus.net>
1986
1987 Matthias Vallentin, 2010-12-21 08:44:
1988 >> The only downside to this is that my sources.yaml file needs manual
1989 >> twiddling at restart to add the sources that were added during
1990 >> runtime.
1991 >
1992 > As Tero mentioned, this is weird indeed since sup calls Index.save
1993 > which in turn should call SourceManager.save_sources. I'll look into
1994 > this when I get a chance.
1995 ...
1996 > Neither master nor Damien's Maildir clone contain the class
1997 > Recoverable. Is this code you added somewhere else?
1998
1999 This sources not getting saved might be because of that Recoverable
2000 wrapper class. YAML marshalling might not be able to digest it.
2001
2002 --
2003 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2004
2005 From bwalton@artsci.utoronto.ca Tue Dec 21 09:11:42 2010
2006 From: bwalton@artsci.utoronto.ca (Ben Walton)
2007 Date: Tue, 21 Dec 2010 09:11:42 -0500
2008 Subject: [sup-talk] current state of synching upstream?
2009 In-Reply-To: <1292929122-sup-7072@tilus.net>
2010 References: <1271249704-sup-1088@masanjin.net>
2011 <1271254358-sup-3024@pinkfloyd.chass.utoronto.ca>
2012 <1271260552-sup-9153@masanjin.net>
2013 <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
2014 <20101215081955.GF568@icsi.berkeley.edu>
2015 <1292432651-sup-6834@jamestaylor.org>
2016 <20101218051216.GS60419@icsi.berkeley.edu>
2017 <1292649662-sup-8863@jamestaylor.org>
2018 <20101218190427.GU60419@icsi.berkeley.edu>
2019 <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
2020 <20101221064445.GZ60419@icsi.berkeley.edu>
2021 <1292929122-sup-7072@tilus.net>
2022 Message-ID: <1292940403-sup-7858@pinkfloyd.chass.utoronto.ca>
2023
2024 Excerpts from Tero Tilus's message of Tue Dec 21 06:01:59 -0500 2010:
2025
2026 > > Neither master nor Damien's Maildir clone contain the class
2027 > > Recoverable. Is this code you added somewhere else?
2028 >
2029 > This sources not getting saved might be because of that Recoverable
2030 > wrapper class. YAML marshalling might not be able to digest it.
2031
2032 When I wrote the hook, I referenced the following from
2033 lib/sup/source.rb:
2034
2035 def load_sources fn=Redwood::SOURCE_FN
2036 source_array = (Redwood::load_yaml_obj(fn) || []).map { |o| Recoverable.new o }
2037 @source_mutex.synchronize do
2038 @sources = Hash[*(source_array).map { |s| [s.id, s] }.flatten]
2039 @sources_dirty = false
2040 end
2041 end
2042
2043 So, after de-marshalling the yaml file, it wraps the object in a
2044 Recoverable. This class is defined in lib/sup/util.rb.
2045
2046 I'm looking at the code again right now as the Recoverable may be the
2047 key as to why this doesn't get saved...
2048
2049 Thanks
2050 -Ben
2051 --
2052 Ben Walton
2053 Systems Programmer - CHASS
2054 University of Toronto
2055 C:416.407.5610 | W:416.978.4302
2056
2057
2058 From vallentin@icsi.berkeley.edu Wed Dec 22 09:34:41 2010
2059 From: vallentin@icsi.berkeley.edu (Matthias Vallentin)
2060 Date: Wed, 22 Dec 2010 06:34:41 -0800
2061 Subject: [sup-talk] Maildir sent_source
2062 In-Reply-To: <1292928629-sup-4367@tilus.net>
2063 References: <20101221071230.GE60419@icsi.berkeley.edu>
2064 <1292928629-sup-4367@tilus.net>
2065 Message-ID: <20101222143441.GF60419@icsi.berkeley.edu>
2066
2067 On Tue, Dec 21, 2010 at 12:56:23PM +0200, Tero Tilus wrote:
2068 > I do see it. ;)
2069
2070 Yeah, me too now :-).
2071
2072 > Judging by the code it looks like you also need to sup-add your
2073 > maildir in addition to adding it to config. If
2074 > Redwood::SourceManager.source_for doesn't find the source it silently
2075 > drops back to default sent source. IMO it should complain about
2076 > invalid config or something.
2077
2078 I agree, this inconsistency should not go through without flagging it
2079 and terminating with an error.
2080
2081 Alternatively, the patch below would allow for adding a maildir source
2082 before the default logic kicks in.
2083
2084 Matthias
2085
2086 --- a/bin/sup
2087 +++ b/bin/sup
2088 @@ -158,6 +158,9 @@ begin
2089 trap("TERM") { |x| $die = true }
2090 trap("WINCH") { |x| BufferManager.sigwinch_happened! }
2091
2092 + HookManager.run "startup"
2093 + Redwood::Keymap.run_hook global_keymap
2094 +
2095 if(s = Redwood::SourceManager.source_for DraftManager.source_name)
2096 DraftManager.source = s
2097 else
2098 @@ -171,9 +174,6 @@ begin
2099 Redwood::SourceManager.add_source SentManager.default_source
2100 end
2101
2102 - HookManager.run "startup"
2103 - Redwood::Keymap.run_hook global_keymap
2104 -
2105 debug "starting curses"
2106 Redwood::Logger.remove_sink $stderr
2107 start_cursing
2108
2109
2110 From vallentin@icsi.berkeley.edu Wed Dec 22 09:42:22 2010
2111 From: vallentin@icsi.berkeley.edu (Matthias Vallentin)
2112 Date: Wed, 22 Dec 2010 06:42:22 -0800
2113 Subject: [sup-talk] current state of synching upstream?
2114 In-Reply-To: <1292940403-sup-7858@pinkfloyd.chass.utoronto.ca>
2115 References: <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
2116 <20101215081955.GF568@icsi.berkeley.edu>
2117 <1292432651-sup-6834@jamestaylor.org>
2118 <20101218051216.GS60419@icsi.berkeley.edu>
2119 <1292649662-sup-8863@jamestaylor.org>
2120 <20101218190427.GU60419@icsi.berkeley.edu>
2121 <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
2122 <20101221064445.GZ60419@icsi.berkeley.edu>
2123 <1292929122-sup-7072@tilus.net>
2124 <1292940403-sup-7858@pinkfloyd.chass.utoronto.ca>
2125 Message-ID: <20101222144222.GG60419@icsi.berkeley.edu>
2126
2127 On Tue, Dec 21, 2010 at 09:11:42AM -0500, Ben Walton wrote:
2128 > I'm looking at the code again right now as the Recoverable may be the
2129 > key as to why this doesn't get saved...
2130
2131 I did some printf-debugging at shutdown time and am now really puzzled
2132 why SourceManager.save_source is not invoked. The function Index.save
2133 and SourceManager.save_source look as follows:
2134
2135 def save
2136 debug "saving index and sources..."
2137 FileUtils.mkdir_p @dir unless File.exists? @dir
2138 -> debug "*** Index.save"
2139 SourceManager.save_sources
2140 save_index
2141 end
2142
2143
2144 def save_sources fn=Redwood::SOURCE_FN
2145 -> debug "*** SourceManager.save_sources"
2146 @source_mutex.synchronize do
2147 ...
2148 end
2149 end
2150
2151
2152 Adding the with -> marked statement in Index.save printed, however, not
2153 the debug statement in SourceManager.save_sources! Any ideas how this is
2154 possible?
2155
2156 Matthias
2157
2158 From tero@tilus.net Wed Dec 22 11:27:30 2010
2159 From: tero@tilus.net (Tero Tilus)
2160 Date: Wed, 22 Dec 2010 18:27:30 +0200
2161 Subject: [sup-talk] current state of synching upstream?
2162 In-Reply-To: <20101222144222.GG60419@icsi.berkeley.edu>
2163 References: <1271261164-sup-4109@pinkfloyd.chass.utoronto.ca>
2164 <20101215081955.GF568@icsi.berkeley.edu>
2165 <1292432651-sup-6834@jamestaylor.org>
2166 <20101218051216.GS60419@icsi.berkeley.edu>
2167 <1292649662-sup-8863@jamestaylor.org>
2168 <20101218190427.GU60419@icsi.berkeley.edu>
2169 <1292699674-sup-8221@pinkfloyd.chass.utoronto.ca>
2170 <20101221064445.GZ60419@icsi.berkeley.edu>
2171 <1292929122-sup-7072@tilus.net>
2172 <1292940403-sup-7858@pinkfloyd.chass.utoronto.ca>
2173 <20101222144222.GG60419@icsi.berkeley.edu>
2174 Message-ID: <1293035040-sup-5469@tilus.net>
2175
2176 Matthias Vallentin, 2010-12-22 16:42:
2177 > Adding the with -> marked statement in Index.save printed, however, not
2178 > the debug statement in SourceManager.save_sources! Any ideas how this is
2179 > possible?
2180
2181 I think I have a hunch. SourceManager is a singleton, which (see
2182 util.rb) silently drops all the calls if it is in deinstantiated
2183 state. Could you inject some debugging in Singleton#method_missing to
2184 see if SourceManager is already deinstantiated when #save_sources is
2185 called.
2186
2187 --
2188 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2189
2190 From vallentin@icsi.berkeley.edu Wed Dec 22 12:14:44 2010
2191 From: vallentin@icsi.berkeley.edu (Matthias Vallentin)
2192 Date: Wed, 22 Dec 2010 09:14:44 -0800
2193 Subject: [sup-talk] Maildir sent_source
2194 In-Reply-To: <1292928629-sup-4367@tilus.net>
2195 References: <20101221071230.GE60419@icsi.berkeley.edu>
2196 <1292928629-sup-4367@tilus.net>
2197 Message-ID: <20101222171444.GH60419@icsi.berkeley.edu>
2198
2199 On Tue, Dec 21, 2010 at 12:56:23PM +0200, Tero Tilus wrote:
2200 > Judging by the code it looks like you also need to sup-add your
2201 > maildir in addition to adding it to config.
2202
2203 Yup, the following configuration works for me:
2204
2205 - !masanjin.net,2006-10-01/Redwood/Maildir
2206 uri: maildir:~/.mail/sent
2207 usual: false
2208 archived: true
2209 id: 1
2210 labels:
2211 - sent
2212
2213 This works only if the source is added before the first launch. As you
2214 mentioned earlier, the cleanest solution would be to patch bin/sup such
2215 that it respects the sent_source configuration (and in particular the
2216 URI scheme and location).
2217
2218 Matthias
2219
2220 From jonas@lophus.org Thu Dec 23 05:17:06 2010
2221 From: jonas@lophus.org (Jonas H.)
2222 Date: Thu, 23 Dec 2010 11:17:06 +0100
2223 Subject: [sup-talk] Help me getting started.
2224 In-Reply-To: <1292853433-sup-364@tilus.net>
2225 References: <4D0E8DDD.20505@lophus.org>
2226 <1292830767-sup-1667@tilus.net> <4D0F5C5E.7030809@lophus.org>
2227 <1292853433-sup-364@tilus.net>
2228 Message-ID: <4D1321A2.9070206@lophus.org>
2229
2230 (Unfortunately it seems like my original mail was swallowed because of
2231 the attachments, so I'm re-sending it without any. You can find the
2232 attachments here: http://jonas.lophus.org/sup-attachments.tar.bz2)
2233
2234 On 12/20/2010 02:57 PM, Tero Tilus wrote:
2235 > Jonas H., 2010-12-20 15:38:
2236 >> Just to clarify this - I see the headers of my messages, can expand
2237 >> them, but never see the body. (This does not only apply to responses
2238 >> but to messages in general.)
2239 >
2240 > You mean you don't see any mail bodies at all!? Something has really
2241 > gone haywire during indexing/polling then. Could you describe the
2242 > behavior more closely? Screenshots?
2243
2244 Pressing enter/E simply does not show any body for my messages.
2245 Screenshots attached.
2246
2247 >> Sorry, I meant horizontal scolling using left/right arrows.
2248 >
2249 > I've never had any problems with that. Not even with really lo-fi hw.
2250 > Could you try profiling if? (gem install ruby-prof, launch sup using
2251 > ruby-prof and do scrolling, preferably a lot of it and then exit)
2252
2253 Results attached; the 'short' log is without lines that only consist of
2254 0.0[012] 0.0[012] ... 0.0[012].
2255
2256 I also made up a video. Watch the screen when I stop thrashing the
2257 left/right arrow keys. Feels like scrolling on Windows without a proper
2258 graphics driver installed ;-)
2259
2260 http://fileshare.itratos.org/video/4d0fb9362b9afb3bf4000002/VIDEO0006.3gp/
2261
2262 (Direct WebM version link for the lazy:
2263 http://fileshare.itratos.org/uploads/videos/0/VIDEO0006-Iv0cY.3gp/VIDEO0006-Iv0cY-original.webm)
2264
2265 Jonas
2266
2267
2268 From wael.nasreddine@gmail.com Thu Dec 23 07:04:48 2010
2269 From: wael.nasreddine@gmail.com (Wael Nasreddine)
2270 Date: Thu, 23 Dec 2010 13:04:48 +0100
2271 Subject: [sup-talk] Hook before-add-message,
2272 any way to know if this message is in a topic I replied to ?
2273 In-Reply-To: <1292846110-sup-9522@tilus.net>
2274 References: <1292845256-sup-6025@Phoenix> <1292846110-sup-9522@tilus.net>
2275 Message-ID: <1293105681-sup-7985@Phoenix>
2276
2277 This one time, at SUP Camp, Tero Tilus said, On 2010-12-20 14:12:
2278 > Wael Nasreddine, 2010-12-20 13:45:
2279 > > I would like to see at glance emails in topic I replied to
2280
2281 > You'd basically check all the messages in the same thread with the
2282 > received mail and see if you appear in from. I think it could look
2283 > something like
2284
2285 > ts = ThreadSet.new(...something...)
2286 > ts.load_thread_for_message message
2287 > participated = ts.thread_for(message).authors.include? 'my at email'
2288 > message.add_label :inbox if participated
2289
2290 > More advanced suppers please step in and correct.
2291
2292 I added this method to my before-add-message hook and I call it at the
2293 very end of the before-add-hook (so it's executed at the end)
2294
2295 ------- CUT
2296 def show_if_participated(message)
2297 return if message.has_label? :inbox
2298
2299 my_emails = ['wael.nasreddine at gmail.com', 'anotheremail at example.com']
2300 ts = ThreadSet.new Index.instance, $config[:thread_by_subject]
2301 ts.load_thread_for_message message
2302 message_thread = ts.thread_for message
2303 return unless message_thread
2304 message.add_label :inbox if my_emails.any? { |email|
2305 message_thread.authors.include? email }
2306 end
2307 ------- CUT
2308
2309 However it's not working, I remove ~/.sup/xapian and ran sup-sync,
2310 this email does not have the inbox label however it's one of the
2311 thread that I replied to in a mailing list, what's wrong with my
2312 function?
2313
2314 Regards,
2315 Wael Nasreddine
2316 --
2317 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2318 Wa?l Nasreddine
2319 website http://wael.nasreddine.com
2320 Blog http://emxyptlk.com
2321 TechnoGate http://technogate.fr
2322 mobile 06.32.94.70.13
2323 landline 09.70.444.236
2324 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2325
2326 From snaipperi@gmail.com Fri Dec 24 16:44:08 2010
2327 From: snaipperi@gmail.com (Matti Eiden)
2328 Date: Fri, 24 Dec 2010 23:44:08 +0200
2329 Subject: [sup-talk] Running sup on Ruby 1.9.2 (Arch Linux)
2330 Message-ID: <AANLkTik9gqBwR29aUO0KMR5wvqOJ2OB18yZKoG72jrAb@mail.gmail.com>
2331
2332 Hey folks,
2333
2334 I somehow broke my Ruby 1.8 installation a few days ago and ended up
2335 trying to run sup with Ruby 1.9.2. I grabbed it from git, however the
2336 rake would fail for not finding "sup-files" and "sup-version". I
2337 changed these two lines in the Rakefile
2338
2339 from
2340
2341 require 'sup-files'
2342 require 'sup-version'
2343
2344 to
2345
2346 require './sup-files.rb'
2347 require './sup-version.rb'
2348
2349 and a nice gem came out. Does anyone know what caused this? Has Ruby
2350 syntax for requiring local files changed or is my system just being
2351 weird?
2352
2353 Also, after installing the gem it failed to run because rubygems was
2354 nagging I didn't have two other gems: ncurses and xapian-full.
2355 (xapian-full is provided in arch linux by xapian-ruby-bindings).
2356 Ncurses for 1.9.2.. I don't know if that even exists. And ncursesw
2357 works just fine. I guess there's a method to compile the gem to ignore
2358 dependencies? Anyway I just removed those dependencies to get it to
2359 work. I cloned earlier my own repository of sup where I made these
2360 changes if anybody wants to look (or get sup run on arch+ruby 1.9.2).
2361 It's available here: http://gitorious.org/sup/ruby192-arch
2362
2363 Other than that, sup seems to work very well under 1.9.2! Nice job!
2364 Matti Eiden
2365
2366 From vallentin@icsi.berkeley.edu Mon Dec 27 04:51:22 2010
2367 From: vallentin@icsi.berkeley.edu (Matthias Vallentin)
2368 Date: Mon, 27 Dec 2010 01:51:22 -0800
2369 Subject: [sup-talk] Sharing code and data between hooks
2370 Message-ID: <20101227095122.GK60419@icsi.berkeley.edu>
2371
2372 What is the best way to share code and state between hooks? Say I define
2373 a class in the startup hook and create an instance of it. When executing
2374 before-poll, I want to reference that instance. How would I do this?
2375
2376 Matthias
2377
2378 From vallentin@icsi.berkeley.edu Mon Dec 27 05:07:18 2010
2379 From: vallentin@icsi.berkeley.edu (Matthias Vallentin)
2380 Date: Mon, 27 Dec 2010 02:07:18 -0800
2381 Subject: [sup-talk] message.list_address weirdness
2382 Message-ID: <20101227100718.GL60419@icsi.berkeley.edu>
2383
2384 I cannot get message.list_address to match to add labels before adding
2385 messages although the messages definitively have the List-Post header.
2386 I found that message.list_address is sometimes a Person instance, which
2387 suggest a bug in the code assigning the instance variable @list_address
2388 (reformatted):
2389
2390 @list_address = if header["list-post"]
2391 address = if header["list-post"] =~ /mailto:(.*?)[>\s$]/
2392 $1
2393 elsif header["list-post"] =~ /@/
2394 header["list-post"] # just try the whole fucking thing
2395 end
2396 address && Person.from_address(address)
2397 elsif header["x-mailing-list"]
2398 Person.from_address header["x-mailing-list"]
2399 end
2400
2401 This code looks erroneous in that Person.from_address returns a Person
2402 instance in the elsif branch. Shouldn't that be a string of the address
2403 instead, i.e.,
2404
2405 Person.from_address(header["x-mailing-list"]).email
2406
2407 ? The same problem seems to appear in the conjunction
2408
2409 address && Person.from_address(address)
2410
2411 which should in my opinion be
2412
2413 address && Person.from_address(address).email
2414
2415 . Does that makes sense?
2416
2417 Matthias
2418
2419 From mnjagadeesh@gmail.com Wed Dec 29 10:00:40 2010
2420 From: mnjagadeesh@gmail.com (Jagadeesh N. Malakannavar)
2421 Date: Wed, 29 Dec 2010 20:30:40 +0530
2422 Subject: [sup-talk] appending domain names
2423 Message-ID: <AANLkTikuph+JhoqBY38B9kXTCCJH=eDHLwwMLCHy8rx-@mail.gmail.com>
2424
2425 Hi,
2426
2427 How can I append domain name to the email recipient?
2428
2429 Thanks
2430 -------------- next part --------------
2431 An HTML attachment was scrubbed...
2432 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101229/9e83a7e0/attachment.html>
2433
2434 From bwalton@artsci.utoronto.ca Wed Dec 29 10:10:37 2010
2435 From: bwalton@artsci.utoronto.ca (Ben Walton)
2436 Date: Wed, 29 Dec 2010 10:10:37 -0500
2437 Subject: [sup-talk] appending domain names
2438 In-Reply-To: <AANLkTikuph+JhoqBY38B9kXTCCJH=eDHLwwMLCHy8rx-@mail.gmail.com>
2439 References: <AANLkTikuph+JhoqBY38B9kXTCCJH=eDHLwwMLCHy8rx-@mail.gmail.com>
2440 Message-ID: <1293635283-sup-9377@pinkfloyd.chass.utoronto.ca>
2441
2442 Excerpts from Jagadeesh N. Malakannavar's message of Wed Dec 29 10:00:40 -0500 2010:
2443
2444 > How can I append domain name to the email recipient?
2445
2446 Is this a general question (eg: $domain might be somewhere.net or
2447 something.com?) or a specific question (eg: always append mydomain.org
2448 to unqualified addresses)?
2449
2450 If the former, try the before-edit hook to scan the message recipients
2451 and modify as required. You could also use aliases/contacts depending
2452 on your situation.
2453
2454 If the latter, have your MTA configuration do it for you and don't
2455 worry about it from sup.
2456
2457 HTH.
2458 -Ben
2459 --
2460 Ben Walton
2461 Systems Programmer - CHASS
2462 University of Toronto
2463 C:416.407.5610 | W:416.978.4302
2464
2465
2466 From mnjagadeesh@gmail.com Wed Dec 29 10:44:34 2010
2467 From: mnjagadeesh@gmail.com (Jagadeesh N. Malakannavar)
2468 Date: Wed, 29 Dec 2010 21:14:34 +0530
2469 Subject: [sup-talk] appending domain names
2470 In-Reply-To: <1293635283-sup-9377@pinkfloyd.chass.utoronto.ca>
2471 References: <AANLkTikuph+JhoqBY38B9kXTCCJH=eDHLwwMLCHy8rx-@mail.gmail.com>
2472 <1293635283-sup-9377@pinkfloyd.chass.utoronto.ca>
2473 Message-ID: <AANLkTinVrrLcruQbaQ93PS9YD9DrpZ9GH++ZA0M1ow4H@mail.gmail.com>
2474
2475 Mine is always append mydomain.org case. Thanks for the reply.
2476
2477 Thanks
2478
2479 On Wed, Dec 29, 2010 at 8:40 PM, Ben Walton <bwalton at artsci.utoronto.ca>wrote:
2480
2481 > Excerpts from Jagadeesh N. Malakannavar's message of Wed Dec 29 10:00:40
2482 > -0500 2010:
2483 >
2484 > > How can I append domain name to the email recipient?
2485 >
2486 > Is this a general question (eg: $domain might be somewhere.net or
2487 > something.com?) or a specific question (eg: always append mydomain.org
2488 > to unqualified addresses)?
2489 >
2490 > If the former, try the before-edit hook to scan the message recipients
2491 > and modify as required. You could also use aliases/contacts depending
2492 > on your situation.
2493 >
2494 > If the latter, have your MTA configuration do it for you and don't
2495 > worry about it from sup.
2496 >
2497 > HTH.
2498 > -Ben
2499 > --
2500 > Ben Walton
2501 > Systems Programmer - CHASS
2502 > University of Toronto
2503 > C:416.407.5610 | W:416.978.4302
2504 >
2505 > _______________________________________________
2506 > sup-talk mailing list
2507 > sup-talk at rubyforge.org
2508 > http://rubyforge.org/mailman/listinfo/sup-talk
2509 >
2510 -------------- next part --------------
2511 An HTML attachment was scrubbed...
2512 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20101229/159342d8/attachment.html>
2513
2514 From jonas@lophus.org Thu Dec 30 08:14:21 2010
2515 From: jonas@lophus.org (Jonas H.)
2516 Date: Thu, 30 Dec 2010 14:14:21 +0100
2517 Subject: [sup-talk] Help me getting started.
2518 In-Reply-To: <4D1321A2.9070206@lophus.org>
2519 References: <4D0E8DDD.20505@lophus.org>
2520 <1292830767-sup-1667@tilus.net> <4D0F5C5E.7030809@lophus.org>
2521 <1292853433-sup-364@tilus.net> <4D1321A2.9070206@lophus.org>
2522 Message-ID: <4D1C85AD.9040301@lophus.org>
2523
2524 *bump* any news on these issues?
2525
2526 From tero@tilus.net Thu Dec 30 10:31:43 2010
2527 From: tero@tilus.net (Tero Tilus)
2528 Date: Thu, 30 Dec 2010 17:31:43 +0200
2529 Subject: [sup-talk] Help me getting started.
2530 In-Reply-To: <4D1321A2.9070206@lophus.org>
2531 References: <4D0E8DDD.20505@lophus.org> <1292830767-sup-1667@tilus.net>
2532 <4D0F5C5E.7030809@lophus.org> <1292853433-sup-364@tilus.net>
2533 <4D1321A2.9070206@lophus.org>
2534 Message-ID: <1293722265-sup-2399@tilus.net>
2535
2536 Jonas H., 2010-12-23 12:17:
2537 > On 12/20/2010 02:57 PM, Tero Tilus wrote:
2538 > > I've never had any problems with that. Not even with really lo-fi hw.
2539 > > Could you try profiling if? (gem install ruby-prof, launch sup using
2540 > > ruby-prof and do scrolling, preferably a lot of it and then exit)
2541 >
2542 > Results attached; the 'short' log is without lines that only consist of
2543 > 0.0[012] 0.0[012] ... 0.0[012].
2544
2545 The biggest problem seems to be String#display_length with ruby
2546 versions < 1.9.1. Manually calculating display lenght using
2547 scan(/./u) is definitely not nice, but I don't know how could you make
2548 it faster. Maybe caching calculated display_lengths?
2549
2550 Looks like I just haven't done enough scrolling to find that out. :-O
2551
2552 --
2553 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2554
2555 From tero@tilus.net Thu Dec 30 16:33:05 2010
2556 From: tero@tilus.net (Tero Tilus)
2557 Date: Thu, 30 Dec 2010 23:33:05 +0200
2558 Subject: [sup-talk] Help me getting started.
2559 In-Reply-To: <1293722265-sup-2399@tilus.net>
2560 References: <4D0E8DDD.20505@lophus.org> <1292830767-sup-1667@tilus.net>
2561 <4D0F5C5E.7030809@lophus.org> <1292853433-sup-364@tilus.net>
2562 <4D1321A2.9070206@lophus.org> <1293722265-sup-2399@tilus.net>
2563 Message-ID: <1293740777-sup-5080@tilus.net>
2564
2565 Tero Tilus, 2010-12-30 17:31:
2566 > Maybe caching calculated display_lengths?
2567
2568 Caching cuts down String#scan calls by ~30% and produces no
2569 perceivable difference in scrolling responsivenes.
2570
2571 After String#display_length caching the main cpu hog is
2572 Ncurses::WINDOW#method_missing, which dispatches calls to wide char or
2573 ordinary Ncurses methods depending what's available. Gonna try to
2574 hardwire Ncurses::WINDOW#mvaddstr next.
2575
2576 > Looks like I just haven't done enough scrolling to find that out. :-O
2577
2578 Now that I really look into this. The performance I see (sup runnin
2579 screened on Bytemark VPS) is considerably better that what is seen on
2580 the video. It is definitely not fast, but otoh I can't make it lag
2581 behind like it does on the video.
2582
2583 --
2584 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2585
2586 From tero@tilus.net Thu Dec 30 18:03:40 2010
2587 From: tero@tilus.net (Tero Tilus)
2588 Date: Fri, 31 Dec 2010 01:03:40 +0200
2589 Subject: [sup-talk] Help me getting started.
2590 In-Reply-To: <4D1321A2.9070206@lophus.org>
2591 References: <4D0E8DDD.20505@lophus.org> <1292830767-sup-1667@tilus.net>
2592 <4D0F5C5E.7030809@lophus.org> <1292853433-sup-364@tilus.net>
2593 <4D1321A2.9070206@lophus.org>
2594 Message-ID: <1293749950-sup-6919@tilus.net>
2595
2596 Jonas H., 2010-12-23 12:17:
2597 > Pressing enter/E simply does not show any body for my messages.
2598 > Screenshots attached.
2599
2600 Thats plain weird. Are these mails you have sent using sup? If so,
2601 your mails prolly displayed ok when sending? Could you look into sent
2602 mailbox (~/.sup/sent.mbox) to see if the mails are OK there.
2603
2604 --
2605 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2606
2607 From tero@tilus.net Thu Dec 30 18:09:07 2010
2608 From: tero@tilus.net (Tero Tilus)
2609 Date: Fri, 31 Dec 2010 01:09:07 +0200
2610 Subject: [sup-talk] Help me getting started.
2611 In-Reply-To: <1293740777-sup-5080@tilus.net>
2612 References: <4D0E8DDD.20505@lophus.org> <1292830767-sup-1667@tilus.net>
2613 <4D0F5C5E.7030809@lophus.org> <1292853433-sup-364@tilus.net>
2614 <4D1321A2.9070206@lophus.org> <1293722265-sup-2399@tilus.net>
2615 <1293740777-sup-5080@tilus.net>
2616 Message-ID: <1293750256-sup-6120@tilus.net>
2617
2618 Tero Tilus, 2010-12-30 23:33:
2619 > After String#display_length caching the main cpu hog is
2620 > Ncurses::WINDOW#method_missing, which dispatches calls to wide char or
2621 > ordinary Ncurses methods depending what's available. Gonna try to
2622 > hardwire Ncurses::WINDOW#mvaddstr next.
2623
2624 That cut the average per call total time for Redwood::Buffer#write to
2625 almost half of what it was. Although I'm still unable to actually
2626 feel any difference. ;) Responsiveness prolly depends in my case
2627 mostly on the network speed and latency.
2628
2629 --
2630 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2631
2632 From jonas@lophus.org Thu Dec 30 18:37:32 2010
2633 From: jonas@lophus.org (Jonas H.)
2634 Date: Fri, 31 Dec 2010 00:37:32 +0100
2635 Subject: [sup-talk] Help me getting started.
2636 In-Reply-To: <1293749950-sup-6919@tilus.net>
2637 References: <4D0E8DDD.20505@lophus.org>
2638 <1292830767-sup-1667@tilus.net> <4D0F5C5E.7030809@lophus.org>
2639 <1292853433-sup-364@tilus.net> <4D1321A2.9070206@lophus.org>
2640 <1293749950-sup-6919@tilus.net>
2641 Message-ID: <4D1D17BC.8050006@lophus.org>
2642
2643 On 12/31/2010 12:03 AM, Tero Tilus wrote:
2644 > Jonas H., 2010-12-23 12:17:
2645 >> Pressing enter/E simply does not show any body for my messages.
2646 >> Screenshots attached.
2647 >
2648 > Thats plain weird. Are these mails you have sent using sup?
2649
2650 Nope, they are from the Thunderbird-generated mbox files.
2651
2652 If you want I could make up a small test mbox file (new Thunderbird
2653 profile) and send it?
2654
2655 From tero@tilus.net Thu Dec 30 19:45:08 2010
2656 From: tero@tilus.net (Tero Tilus)
2657 Date: Fri, 31 Dec 2010 02:45:08 +0200
2658 Subject: [sup-talk] Help me getting started.
2659 In-Reply-To: <4D1D17BC.8050006@lophus.org>
2660 References: <4D0E8DDD.20505@lophus.org> <1292830767-sup-1667@tilus.net>
2661 <4D0F5C5E.7030809@lophus.org> <1292853433-sup-364@tilus.net>
2662 <4D1321A2.9070206@lophus.org> <1293749950-sup-6919@tilus.net>
2663 <4D1D17BC.8050006@lophus.org>
2664 Message-ID: <1293755723-sup-3842@tilus.net>
2665
2666 Jonas H., 2010-12-31 01:37:
2667 > If you want I could make up a small test mbox file (new Thunderbird
2668 > profile) and send it?
2669
2670 Please do. File a bug <http://masanjin.net/sup-bugs/> and attach a
2671 (minimal) mbox to trigger it.
2672
2673 --
2674 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
2675
2676 From jonas@lophus.org Fri Dec 31 05:14:10 2010
2677 From: jonas@lophus.org (Jonas H.)
2678 Date: Fri, 31 Dec 2010 11:14:10 +0100
2679 Subject: [sup-talk] Help me getting started.
2680 In-Reply-To: <1293755723-sup-3842@tilus.net>
2681 References: <4D0E8DDD.20505@lophus.org>
2682 <1292830767-sup-1667@tilus.net> <4D0F5C5E.7030809@lophus.org>
2683 <1292853433-sup-364@tilus.net> <4D1321A2.9070206@lophus.org>
2684 <1293749950-sup-6919@tilus.net> <4D1D17BC.8050006@lophus.org>
2685 <1293755723-sup-3842@tilus.net>
2686 Message-ID: <4D1DACF2.3000400@lophus.org>
2687
2688 On 12/31/2010 01:45 AM, Tero Tilus wrote:
2689 > Jonas H., 2010-12-31 01:37:
2690 >> If you want I could make up a small test mbox file (new Thunderbird
2691 >> profile) and send it?
2692 >
2693 > Please do. File a bug<http://masanjin.net/sup-bugs/> and attach a
2694 > (minimal) mbox to trigger it.
2695 >
2696
2697 http://masanjin.net/sup-bugs/issue141
2698