community/pipermail-archives/sup-talk/2011-10.txt (22875B) - raw
1 From dmishd@gmail.com Sat Oct 1 08:50:56 2011
2 From: dmishd@gmail.com (Hamish D)
3 Date: Sat, 1 Oct 2011 13:50:56 +0100
4 Subject: [sup-talk] Help - sup is garbling characters and chopping off
5 the ends of lines
6 In-Reply-To: <1317409808-sup-8470@os.Home>
7 References: <CAE2xRkEMW67qdoFtN0oLp_ULv1vAtWzwJ+69BRX3tkzznobz0Q@mail.gmail.com>
8 <CAOxvSbdEuzhx7HsryCyvGSGn9h4W-jZ14MHdvR=23SvNDh+sZg@mail.gmail.com>
9 <1317406494-sup-2375@os.Home>
10 <CAOxvSbdS5fJEaXEYNivC83ws3VGFBuvdHWXRFnRFS45Lsg1v+g@mail.gmail.com>
11 <1317409808-sup-8470@os.Home>
12 Message-ID: <CAOxvSbcUazUWFnH9pobLAtpt2NihuZYTdqnaPRoeASoPVpnNQA@mail.gmail.com>
13
14 On 30 September 2011 20:10, Colin Yates <colin.yates at gmail.com> wrote:
15 > ?gem1.9.1 install ?ncursesw
16 > Building native extensions. ?This could take a while...
17 > ERROR: ?Error installing ncursesw:
18 > ? ? ? ?ERROR: Failed to build gem native extension.
19 >
20 > /usr/bin/ruby1.9.1 extconf.rb
21 > checking for unistd.h... yes
22 > checking for locale.h... yes
23 > checking for ncurses.h... no
24 > checking for ncurses/curses.h... no
25 > checking for curses.h... no
26 > *** extconf.rb failed ***
27
28 This means you don't have the development library of ncurses
29 installed, so you need to do:
30
31 sudo aptitude install libncurses5-dev libncursesw5-dev
32
33 (From http://sup.rubyforge.org/wiki/wiki.pl?Debian/Ubuntu_Hints )
34
35 Hamish
36
37 From hollunder@lavabit.com Wed Oct 5 15:18:49 2011
38 From: hollunder@lavabit.com (Philipp)
39 Date: Wed, 05 Oct 2011 21:18:49 +0200
40 Subject: [sup-talk] Adding string to 'missing attachment detection'
41 Message-ID: <1317841994-sup-3161@eris>
42
43 Hi there,
44 I sometimes need to write mails in German and need to attach some files
45 to those mails. I also tend to send mails before attaching the files.
46 I have the 'mentioned "attachment" but it's missing'-option enabled, but
47 it doesn't help me in German mails.
48
49 All I'd need is a way to add the word 'Anhang' to that mechanism. Can
50 you tell me where to do this? I tried a web search and looked through
51 some source files but couldn't find the right place so far.
52
53 Regards,
54 Philipp
55
56
57 From bwalton@artsci.utoronto.ca Wed Oct 5 20:00:00 2011
58 From: bwalton@artsci.utoronto.ca (Ben Walton)
59 Date: Wed, 05 Oct 2011 20:00:00 -0400
60 Subject: [sup-talk] Adding string to 'missing attachment detection'
61 In-Reply-To: <1317841994-sup-3161@eris>
62 References: <1317841994-sup-3161@eris>
63 Message-ID: <1317859138-sup-1659@pinkfloyd.chass.utoronto.ca>
64
65 Excerpts from Philipp's message of Wed Oct 05 15:18:49 -0400 2011:
66
67 Hi Philipp,
68
69 > All I'd need is a way to add the word 'Anhang' to that mechanism. Can
70 > you tell me where to do this? I tried a web search and looked through
71 > some source files but couldn't find the right place so far.
72
73 You want to write a 'mentions-attachments' hook. You'll get the
74 variables header, and body. Scan the body for whatever terms you
75 want/need and return true/false as desired.
76
77 HTH.
78 -Ben
79 --
80 Ben Walton
81 Systems Programmer - CHASS
82 University of Toronto
83 C:416.407.5610 | W:416.978.4302
84
85
86 From hollunder@lavabit.com Thu Oct 6 03:04:27 2011
87 From: hollunder@lavabit.com (=?utf-8?q?Philipp_=C3=9Cberbacher?=)
88 Date: Thu, 06 Oct 2011 09:04:27 +0200
89 Subject: [sup-talk] Adding string to 'missing attachment detection'
90 In-Reply-To: <1317859138-sup-1659@pinkfloyd.chass.utoronto.ca>
91 References: <1317841994-sup-3161@eris>
92 <1317859138-sup-1659@pinkfloyd.chass.utoronto.ca>
93 Message-ID: <1317884224-sup-31@eris>
94
95 Excerpts from Ben Walton's message of 2011-10-06 02:00:00 +0200:
96 > Excerpts from Philipp's message of Wed Oct 05 15:18:49 -0400 2011:
97 >
98 > Hi Philipp,
99 >
100 > > All I'd need is a way to add the word 'Anhang' to that mechanism. Can
101 > > you tell me where to do this? I tried a web search and looked through
102 > > some source files but couldn't find the right place so far.
103 >
104 > You want to write a 'mentions-attachments' hook. You'll get the
105 > variables header, and body. Scan the body for whatever terms you
106 > want/need and return true/false as desired.
107 >
108 > HTH.
109 > -Ben
110
111 Thanks,
112 but sup does this already, it should be possible to add this single Word
113 in the appropriate place and be done with this. After all, ruby is an
114 interpreted language. The sup releases are infrequent, if another one
115 follows at all, and thus modifying a file is no problem. I don't have
116 the time to dig deep enough into ruby and sup either. I see that
117 http://sup.rubyforge.org/wiki/wiki.pl?Hooks lists such a hook but sadly
118 no example.
119 Guess I can live without that.
120
121
122 From tero@tilus.net Thu Oct 6 08:17:30 2011
123 From: tero@tilus.net (Tero Tilus)
124 Date: Thu, 06 Oct 2011 15:17:30 +0300
125 Subject: [sup-talk] Adding string to 'missing attachment detection'
126 In-Reply-To: <1317884224-sup-31@eris>
127 References: <1317841994-sup-3161@eris>
128 <1317859138-sup-1659@pinkfloyd.chass.utoronto.ca>
129 <1317884224-sup-31@eris>
130 Message-ID: <1317903242-sup-784@tilus.net>
131
132 Philipp ?berbacher, 2011-10-06 10:04:
133 > the time to dig deep enough into ruby and sup either. I see that
134 > http://sup.rubyforge.org/wiki/wiki.pl?Hooks lists such a hook but sadly
135 > no example.
136
137 Oh my! Need to fix it. My ~/.sup/hooks/mentions-attachments looks like
138
139 body.any? { |l| l =~ /^[^>]/ && l =~ /\b(attach|liite|liittee|ohessa|oheise|oheist)[^ ]*\b/i }
140
141 Not pretty but works.
142
143 --
144 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
145
146 From bwalton@artsci.utoronto.ca Thu Oct 6 08:55:07 2011
147 From: bwalton@artsci.utoronto.ca (Ben Walton)
148 Date: Thu, 06 Oct 2011 08:55:07 -0400
149 Subject: [sup-talk] Adding string to 'missing attachment detection'
150 In-Reply-To: <1317884224-sup-31@eris>
151 References: <1317841994-sup-3161@eris>
152 <1317859138-sup-1659@pinkfloyd.chass.utoronto.ca>
153 <1317884224-sup-31@eris>
154 Message-ID: <1317905615-sup-8302@pinkfloyd.chass.utoronto.ca>
155
156 Excerpts from Philipp ?berbacher's message of Thu Oct 06 03:04:27 -0400 2011:
157
158 > but sup does this already, it should be possible to add this single Word
159 > in the appropriate place and be done with this. After all, ruby is
160 > an
161
162 Sure, lib/sup/modes/edit-message-mode.rb on line 473 (my version of
163 sup is fairly old, but this should be close).
164
165 The hook is cleaner, but if you want to hack it in directly, that's
166 where you'd do it.
167
168 Thanks
169 -Ben
170 --
171 Ben Walton
172 Systems Programmer - CHASS
173 University of Toronto
174 C:416.407.5610 | W:416.978.4302
175
176
177 From hollunder@lavabit.com Thu Oct 6 09:33:29 2011
178 From: hollunder@lavabit.com (=?utf-8?q?Philipp_=C3=9Cberbacher?=)
179 Date: Thu, 06 Oct 2011 15:33:29 +0200
180 Subject: [sup-talk] Adding string to 'missing attachment detection'
181 In-Reply-To: <1317903242-sup-784@tilus.net>
182 References: <1317841994-sup-3161@eris>
183 <1317859138-sup-1659@pinkfloyd.chass.utoronto.ca>
184 <1317884224-sup-31@eris> <1317903242-sup-784@tilus.net>
185 Message-ID: <1317907930-sup-3325@eris>
186
187 Excerpts from Tero Tilus's message of 2011-10-06 14:17:30 +0200:
188 > Philipp ?berbacher, 2011-10-06 10:04:
189 > > the time to dig deep enough into ruby and sup either. I see that
190 > > http://sup.rubyforge.org/wiki/wiki.pl?Hooks lists such a hook but sadly
191 > > no example.
192 >
193 > Oh my! Need to fix it. My ~/.sup/hooks/mentions-attachments looks like
194 >
195 > body.any? { |l| l =~ /^[^>]/ && l =~ /\b(attach|liite|liittee|ohessa|oheise|oheist)[^ ]*\b/i }
196 >
197 > Not pretty but works.
198
199 Thanks, this works. I don't understand what this line is doing but it
200 looks very similar in the source and this line is simply easier to hack
201 for me, so I go with this solution.
202
203 Thanks for sharing,
204 Philipp
205
206
207 From hollunder@lavabit.com Thu Oct 6 09:34:53 2011
208 From: hollunder@lavabit.com (=?utf-8?q?Philipp_=C3=9Cberbacher?=)
209 Date: Thu, 06 Oct 2011 15:34:53 +0200
210 Subject: [sup-talk] Adding string to 'missing attachment detection'
211 In-Reply-To: <1317905615-sup-8302@pinkfloyd.chass.utoronto.ca>
212 References: <1317841994-sup-3161@eris>
213 <1317859138-sup-1659@pinkfloyd.chass.utoronto.ca>
214 <1317884224-sup-31@eris>
215 <1317905615-sup-8302@pinkfloyd.chass.utoronto.ca>
216 Message-ID: <1317908015-sup-657@eris>
217
218 Excerpts from Ben Walton's message of 2011-10-06 14:55:07 +0200:
219 > Excerpts from Philipp ?berbacher's message of Thu Oct 06 03:04:27 -0400 2011:
220 >
221 > > but sup does this already, it should be possible to add this single Word
222 > > in the appropriate place and be done with this. After all, ruby is
223 > > an
224 >
225 > Sure, lib/sup/modes/edit-message-mode.rb on line 473 (my version of
226 > sup is fairly old, but this should be close).
227 >
228 > The hook is cleaner, but if you want to hack it in directly, that's
229 > where you'd do it.
230 >
231 > Thanks
232 > -Ben
233 > --
234 > Ben Walton
235 > Systems Programmer - CHASS
236 > University of Toronto
237 > C:416.407.5610 | W:416.978.4302
238
239 Thanks,
240 I looked it up, it looks similar to the suggested hook line, but the
241 hook line was easier to modify without risking to mess stuff up.
242 Thanks for your help.
243
244 Regards,
245 Philipp
246
247
248 From witsquash@lavabit.com Fri Oct 7 23:50:07 2011
249 From: witsquash@lavabit.com (Martin Miller)
250 Date: Fri, 07 Oct 2011 22:50:07 -0500
251 Subject: [sup-talk] Adding maildir folder with a space
252 Message-ID: <1318045500-sup-149@boots>
253
254 Hi I'm trying to add a source folder that has a space in the name, but I can't
255 find the right way escape the space in my URI. Currently I have this in my
256 sources.yaml and it's not working:
257
258 - !masanjin.net,2006-10-01/Redwood/Maildir
259 uri: maildir:/home/marty/lavabit/Acct%20Dtls
260 usual: true
261 archived: false
262 id: 7
263 labels:
264 - register
265
266 This is the error I get in the log:
267 WARNING: problem getting messages from maildir:/home/marty/lavabit/Acct%20Dtls:
268 /home/marty/lavabit/Acct%20Dtls/cur not a directory
269
270 Is it possible to use a folder name with a space?
271
272 Martin
273 --
274 Martin Miller
275 witsquash.com
276
277
278 From dmishd@gmail.com Sat Oct 8 07:48:15 2011
279 From: dmishd@gmail.com (Hamish D)
280 Date: Sat, 8 Oct 2011 12:48:15 +0100
281 Subject: [sup-talk] Adding maildir folder with a space
282 In-Reply-To: <1318045500-sup-149@boots>
283 References: <1318045500-sup-149@boots>
284 Message-ID: <CAOxvSbfeZUfzQ5hzfJdawHwt0T5QFLd1YfAU_Qq8bg4vnZ91WQ@mail.gmail.com>
285
286 > find the right way escape the space in my URI.
287
288 The URI is a file path in this case, so the usual way of putting a
289 space in is to put a backslash in front of the space. So for
290 sources.yaml you could do:
291
292 uri: maildir:/home/marty/lavabit/Acct\ Dtls
293
294 Hamish
295
296 From witsquash@lavabit.com Sat Oct 8 13:14:34 2011
297 From: witsquash@lavabit.com (Martin Miller)
298 Date: Sat, 08 Oct 2011 12:14:34 -0500
299 Subject: [sup-talk] Adding maildir folder with a space
300 In-Reply-To: <CAOxvSbfeZUfzQ5hzfJdawHwt0T5QFLd1YfAU_Qq8bg4vnZ91WQ@mail.gmail.com>
301 References: <1318045500-sup-149@boots>
302 <CAOxvSbfeZUfzQ5hzfJdawHwt0T5QFLd1YfAU_Qq8bg4vnZ91WQ@mail.gmail.com>
303 Message-ID: <1318093920-sup-7623@boots>
304
305 > The URI is a file path in this case, so the usual way of putting a
306 > space in is to put a backslash in front of the space. So for
307 > sources.yaml you could do:
308 >
309 > uri: maildir:/home/marty/lavabit/Acct\ Dtls
310
311 I should have mentioned that I tried that before. The error looks like this:
312 --- URI::InvalidURIError from thread: main
313 bad URI(is not URI?): maildir:/home/marty/lavabit/Acct\ Dtls
314 /usr/lib/ruby/1.9.1/uri/common.rb:156:in `split'
315 /usr/lib/ruby/1.9.1/uri/common.rb:174:in `parse'
316 /usr/lib/ruby/1.9.1/uri/common.rb:628:in `parse'
317 /usr/lib/ruby/1.9.1/uri/common.rb:854:in `URI'
318
319 --
320 Martin Miller
321 witsquash.com
322
323
324 From eg@gaute.vetsj.com Sat Oct 8 13:53:55 2011
325 From: eg@gaute.vetsj.com (Gaute Hope)
326 Date: Sat, 08 Oct 2011 19:53:55 +0200
327 Subject: [sup-talk] Adding maildir folder with a space
328 In-Reply-To: <1318093920-sup-7623@boots>
329 References: <1318045500-sup-149@boots>
330 <CAOxvSbfeZUfzQ5hzfJdawHwt0T5QFLd1YfAU_Qq8bg4vnZ91WQ@mail.gmail.com>
331 <1318093920-sup-7623@boots>
332 Message-ID: <1318096369-sup-9918@qwerzila>
333
334 Excerpts from Martin Miller's message of 2011-10-08 19:14:34 +0200:
335 > > The URI is a file path in this case, so the usual way of putting a
336 > > space in is to put a backslash in front of the space. So for
337 > > sources.yaml you could do:
338 > >
339 > > uri: maildir:/home/marty/lavabit/Acct\ Dtls
340 >
341 > I should have mentioned that I tried that before. The error looks like this:
342 > --- URI::InvalidURIError from thread: main
343 > bad URI(is not URI?): maildir:/home/marty/lavabit/Acct\ Dtls
344 > /usr/lib/ruby/1.9.1/uri/common.rb:156:in `split'
345 > /usr/lib/ruby/1.9.1/uri/common.rb:174:in `parse'
346 > /usr/lib/ruby/1.9.1/uri/common.rb:628:in `parse'
347 > /usr/lib/ruby/1.9.1/uri/common.rb:854:in `URI'
348 >
349
350 Don't you need to have three slashes: maildir:///path/to/dir
351
352 - Gaute
353
354 From witsquash@lavabit.com Sun Oct 9 19:52:37 2011
355 From: witsquash@lavabit.com (Martin Miller)
356 Date: Sun, 09 Oct 2011 18:52:37 -0500
357 Subject: [sup-talk] External address books
358 Message-ID: <1318202891-sup-755@boots>
359
360 I've nearly got sup setup just they way I want. GPG's getting there,
361 messages are being labeled.
362
363 I found a hook in the mailing list archive to use abook for address
364 auto-completion, which was a big help with my migration.
365
366 I'm using text files with addresses for auto-labeling, there's a family
367 file, friends file, work file, etc.
368
369 It'd be nice if I could export Contacts out of sup either into abook, or
370 into a text file. Is there anything out there that can assist in doing
371 that?
372
373 Thanks
374 --
375 Martin Miller
376 witsquash.com
377
378 From jim@gonzul.net Sun Oct 9 23:36:45 2011
379 From: jim@gonzul.net (Jim Cheetham)
380 Date: Mon, 10 Oct 2011 16:36:45 +1300
381 Subject: [sup-talk] mis-identified signature block in message body
382 Message-ID: <CA+2knquF3sVRcetVB7OuQaCURPMLw8_WveFx-kDYBpfJti_9Lg@mail.gmail.com>
383
384 I have a set of emails that contain a chunk of text at the end that
385 seems very much like a signature block :- it is in fact a formatted
386 list of things from a DB query.
387
388 sup identified this as a signature, and displays it folded by default.
389 It isn't very difficult to just press 'o' to display the content, but
390 it would be nicer if I could prevent it from happening in the first
391 place.
392
393 Is there a hook that would allow me to intercept the message display,
394 and make my own decision about these?
395
396 -jim
397
398 From stl@koffein.net Mon Oct 10 00:38:49 2011
399 From: stl@koffein.net (Steven Lawrance)
400 Date: Mon, 10 Oct 2011 14:38:49 +1000
401 Subject: [sup-talk] mis-identified signature block in message body
402 In-Reply-To: <CA+2knquF3sVRcetVB7OuQaCURPMLw8_WveFx-kDYBpfJti_9Lg@mail.gmail.com>
403 References: <CA+2knquF3sVRcetVB7OuQaCURPMLw8_WveFx-kDYBpfJti_9Lg@mail.gmail.com>
404 Message-ID: <1318221253-sup-6406@soma.koffein.net>
405
406 Excerpts from Jim Cheetham's message of Mon Oct 10 13:36:45 +1000 2011:
407 > I have a set of emails that contain a chunk of text at the end that
408 > seems very much like a signature block :- it is in fact a formatted
409 > list of things from a DB query.
410 >
411 > Is there a hook that would allow me to intercept the message display,
412 > and make my own decision about these?
413
414 There's no hook but FWIW I have run into the same issue but with
415 Bugzilla mails. I just tweaked the matching in message.rb to check
416 for a "real" signature marker after a match:
417
418 http://gitorious.org/~stl/sup/stl-sup/commit/48b397f2a82d32992eb6d48e845762200c4c5fd0
419
420 It's not the perfect solution, but it works for me.
421
422 cheers,
423 --
424 Steven Lawrance
425 stl at koffein.net
426
427 From dmishd@gmail.com Sun Oct 16 08:09:41 2011
428 From: dmishd@gmail.com (Hamish D)
429 Date: Sun, 16 Oct 2011 13:09:41 +0100
430 Subject: [sup-talk] Preparing for sup 0.13
431 Message-ID: <CAOxvSbcBz11N1Ac_fr970dPRqDv=e89xzicZoLbH+zTSJTEpcg@mail.gmail.com>
432
433 I've merged the next branch into master in preparation for releasing
434 sup 0.13. So this is a call for people to try it out and report any
435 problems they have before we push it out the door. For basic details
436 about running from git see
437 http://sup.rubyforge.org/wiki/wiki.pl?Running_From_Git
438
439 The major changes since sup 0.12 are:
440
441 * crypto stuff rewritten to use the gpgme library, leading to smoother
442 operations with encrypted email.
443 * add an option for whether sent mail is archived
444 * added an account selector when composing email for those who have
445 multiple possible from addresses
446 * added an asynchronous edit mode - this allows you to carry on using
447 sup while composing a message in an external editor
448
449 along with various bug fixes large and small.
450
451 I'm hoping we can push out 0.13 in November.
452
453 Hamish
454
455 From marka@pobox.com Tue Oct 18 09:46:27 2011
456 From: marka@pobox.com (Mark Alexander)
457 Date: Tue, 18 Oct 2011 09:46:27 -0400
458 Subject: [sup-talk] Preparing for sup 0.13
459 In-Reply-To: <CAOxvSbcBz11N1Ac_fr970dPRqDv=e89xzicZoLbH+zTSJTEpcg@mail.gmail.com>
460 References: <CAOxvSbcBz11N1Ac_fr970dPRqDv=e89xzicZoLbH+zTSJTEpcg@mail.gmail.com>
461 Message-ID: <1318945224-sup-126@bloovis.org>
462
463 Excerpts from Hamish D's message of Sun Oct 16 08:09:41 -0400 2011:
464 > * added an asynchronous edit mode - this allows you to carry on using
465 > sup while composing a message in an external editor
466
467 I'm not having much luck with this feature. I was able to write an
468 async-edit hook that spawned my editor in a separate gnome-terminal
469 window. But when I exited async-edit mode, sup started responding to
470 keystrokes weirdly. I tried to discard the message I had just
471 composed using 'x', so sup asked if I wanted to discard the message,
472 and when I hit 'y', it sent the message instead of discarding it.
473 After that, sup behaved as if every other keystroke was being
474 discarded, and I had to quit and restart.
475
476 Other than that, things look good.
477
478 From dmishd@gmail.com Tue Oct 18 13:58:40 2011
479 From: dmishd@gmail.com (Hamish D)
480 Date: Tue, 18 Oct 2011 18:58:40 +0100
481 Subject: [sup-talk] Preparing for sup 0.13
482 In-Reply-To: <1318945224-sup-126@bloovis.org>
483 References: <CAOxvSbcBz11N1Ac_fr970dPRqDv=e89xzicZoLbH+zTSJTEpcg@mail.gmail.com>
484 <1318945224-sup-126@bloovis.org>
485 Message-ID: <CAOxvSbchWGomtdFSv1yATD1=PvQ0zHZjfrdYx1uJk7RgTqb=CA@mail.gmail.com>
486
487 On 18 October 2011 14:46, Mark Alexander <marka at pobox.com> wrote:
488 > Excerpts from Hamish D's message of Sun Oct 16 08:09:41 -0400 2011:
489 >> * added an asynchronous edit mode - this allows you to carry on using
490 >> sup while composing a message in an external editor
491 >
492 > I'm not having much luck with this feature. ?I was able to write an
493 > async-edit hook that spawned my editor in a separate gnome-terminal
494 > window. ?But when I exited async-edit mode, sup started responding to
495 > keystrokes weirdly. ?I tried to discard the message I had just
496 > composed using 'x', so sup asked if I wanted to discard the message,
497 > and when I hit 'y', it sent the message instead of discarding it.
498 > After that, sup behaved as if every other keystroke was being
499 > discarded, and I had to quit and restart.
500
501 Could you email me your hook so I can check if there is anything in it
502 that might cause trouble? I've used the mode myself a bit and not hit
503 that issue.
504
505 I guess it's not really a regression as the feature didn't exist in
506 sup 0.12, but would still be good to sort it out ...
507
508 Hamish
509
510 From marka@pobox.com Wed Oct 19 10:31:29 2011
511 From: marka@pobox.com (Mark Alexander)
512 Date: Wed, 19 Oct 2011 10:31:29 -0400
513 Subject: [sup-talk] Preparing for sup 0.13
514 In-Reply-To: <CAOxvSbcBz11N1Ac_fr970dPRqDv=e89xzicZoLbH+zTSJTEpcg@mail.gmail.com>
515 References: <CAOxvSbcBz11N1Ac_fr970dPRqDv=e89xzicZoLbH+zTSJTEpcg@mail.gmail.com>
516 Message-ID: <1319034152-sup-5416@bloovis.org>
517
518 Excerpts from Hamish D's message of Sun Oct 16 08:09:41 -0400 2011:
519 > * added an account selector when composing email for those who have
520 > multiple possible from addresses
521
522 I'm having a problem with this feature, too.
523
524 I have two main email accounts, one for personal email and one for
525 work email. My before-edit.rb hook figures out which account to use
526 as the sender (the "From" header) by looking at the recipients (the
527 "To" header). This worked with sup 0.12, but with 0.13 the sender is
528 changed back to the default as soon as I exit the editor.
529
530 I see that Sascha Silbe said something about this seven months ago:
531
532 > This one would possibly break my workflow. My From address is chosen in
533 > the before-edit hook based on the set of recipients. Since you only
534 > call before-edit once with headers_full as headers, whatever From
535 > address gets chosen for the initial reply mode will "stick".
536
537 Here's the sanitized before-edit.rb hook, in case that helps:
538
539 unless header["In-reply-to"]
540 if header["To"] =~ /widgets/
541 to = header["To"]
542 info "Sending as widgets, to = #{to}"
543 header["From"] = "Mark Alexander <marka at widgets.com>"
544 else
545 to = header["To"]
546 info "Sending as pobox, to = #{to}"
547 header["From"] = "Mark Alexander <marka at pobox.com>"
548 end
549 end
550
551 From marka@pobox.com Thu Oct 20 09:18:01 2011
552 From: marka@pobox.com (Mark Alexander)
553 Date: Thu, 20 Oct 2011 09:18:01 -0400
554 Subject: [sup-talk] Preparing for sup 0.13
555 In-Reply-To: <1319034152-sup-5416@bloovis.org>
556 References: <CAOxvSbcBz11N1Ac_fr970dPRqDv=e89xzicZoLbH+zTSJTEpcg@mail.gmail.com>
557 <1319034152-sup-5416@bloovis.org>
558 Message-ID: <1319116525-sup-839@bloovis.org>
559
560 Excerpts from Mark Alexander's message of Wed Oct 19 10:31:29 -0400 2011:
561 > Excerpts from Hamish D's message of Sun Oct 16 08:09:41 -0400 2011:
562 > > * added an account selector when composing email for those who have
563 > > multiple possible from addresses
564 >
565 > I'm having a problem with this feature, too.
566 >
567 > I have two main email accounts, one for personal email and one for
568 > work email. My before-edit.rb hook figures out which account to use
569 > as the sender (the "From" header) by looking at the recipients (the
570 > "To" header). This worked with sup 0.12, but with 0.13 the sender is
571 > changed back to the default as soon as I exit the editor.
572
573 I'm trying out the attached fix, and so far it seems to work.
574 it simply moves the calling of the before-edit hook before
575 the creation of the account selector.
576 -------------- next part --------------
577 A non-text attachment was scrubbed...
578 Name: before-edit.patch
579 Type: application/octet-stream
580 Size: 877 bytes
581 Desc: not available
582 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20111020/5c9b47e7/attachment.obj>
583
584 From felix.kaiser@fxkr.net Sat Oct 29 16:16:39 2011
585 From: felix.kaiser@fxkr.net (Felix Kaiser)
586 Date: Sat, 29 Oct 2011 22:16:39 +0200
587 Subject: [sup-talk] A few questions
588 Message-ID: <4eac5f25.8dcfe30a.51f0.1df8@mx.google.com>
589
590 Hi,
591
592 first of all, a big thanks to everyone who contributed to sup: it is pretty awesome.
593
594 I have a few questions though:
595
596 1. How can I trigger a new-email notification only when a personal email
597 (as in: marked with ">" in the thread list view) has been received?
598 Unfortunately the after-poll hook doesnt get the actual message objects.
599
600 (I think it would be best if the parameters of the after-poll hook
601 were changed to include the message object and if some of the logic
602 in Message.do_poll was extracted into a Message.for_me? method.
603 Comments?)
604
605 2. How can I change the background color of the cursor line?
606 Its grey right now with light foreground colors, basically unreadable,
607 but in the screenshots on sup.rubyforge.org its cyan. *want*.
608
609 3. How can I run before-add-message.rb over all messages in the index?
610
611 Oh and just in case you haven't noticed: your bugtracker is down.
612
613 Cheers
614 Felix
615
616
617 --
618