community/pipermail-archives/sup-talk/2009-01.txt (32742B) - raw
1 From wmorgan-sup@masanjin.net Fri Jan 2 07:53:24 2009
2 From: wmorgan-sup@masanjin.net (William Morgan)
3 Date: Fri, 02 Jan 2009 04:53:24 -0800
4 Subject: [sup-talk] a few sup newbie questions
5 In-Reply-To: <1230630305-sup-9424@audrey>
6 References: <1229548441-sup-531@audrey> <1229552235-sup-1046@entry>
7 <1230571384-sup-9910@audrey> <1230573934-sup-5232@cabinet>
8 <1230630305-sup-9424@audrey>
9 Message-ID: <1230900174-sup-3836@entry>
10
11 Reformatted excerpts from marianne.promberger+sup-talk's message of 2008-12-30:
12 > Thanks. Any chance you could give me a pointer on how I can get it to
13 > "return a person"?
14 >
15 > I've tried stuff like ... (in ~/.sup/hook/reply-from.rb)
16 >
17 > if message.to =~ /rubyforge/
18 > hook_reply_from = "My Name <email at domain.com>"
19 > end
20 >
21 > if message.recipient_email =~ /rubyforge/
22 > return "My name <email at domain.com>"
23 > end
24 >
25 > ... with different variations of patterns I'm testing for and with
26 > different returned strings.
27
28 You can create a person from a string by using this method:
29
30 PersonManager.person_for "My name <email at domain.com>"
31
32 You can give it any valid email address, and it takes care of returning
33 the same Person object for duplicate addresses.
34
35 Brief Ruby aside: If you're going to be doing a lot of such comparisons,
36 you can structure the hook like:
37
38 PersonManager.person_for case
39 when message.to =~ /rubyforge/
40 "My name <email at email1.org>"
41 when message.recipient_email =~ /rubyforge/
42 "My name <email at email2.org>"
43 else
44 "My name <default at default.org>"
45 end
46
47 Note that the return statement isn't required (the final value of the
48 hook is used), and multiple if-then's can be collapsed into a case
49 statement.
50
51 > Any pointers appreciated! (Including general information where I could
52 > RTFM .. I looked at "sup -l" but that's pretty brief.
53
54 Sadly, there's no good documentation for this right now beyond asking on
55 the mailing list. (Well besides learning Ruby and looking at the code.)
56 I'm sorry about that.
57 --
58 William <wmorgan-sup at masanjin.net>
59
60 From marianne.promberger+sup-talk@gmail.com Tue Jan 6 09:49:07 2009
61 From: marianne.promberger+sup-talk@gmail.com (Marianne)
62 Date: Tue, 06 Jan 2009 15:49:07 +0100
63 Subject: [sup-talk] questions about reply-from & before-edit hooks and
64 accounts
65 Message-ID: <1231252310-sup-6112@audrey>
66
67 Hi,
68
69 I'm now successfully using two hooks to use my sup-talk specific e-mail address
70 for mail to this list:
71
72 reply-from.rb:
73
74 PersonManager.person_for case
75 when message.recipient_email =~ /rubyforge/
76 "my.name+sup-talk at gmail.com"
77 end
78 before-edit.rb:
79
80 if header["To"] =~ /rubyforge/
81 header["From"] = "Marianne <my.name+sup-talk at gmail.com>"
82 end
83
84 It seems that the "Person" returned by the reply-from hook matches to some
85 extent, but not completely, an account in my ~/.sup/config.yaml, where I have a
86 :sup-talk: section with its own e-mail, sendmail, and signature. The hook picks
87 not just the correct e-mail, but also the corresponding sendmail, but not the
88 signature of that section.
89
90 For before-edit.rb, I have found no way to switch the signature and sendmail
91 along with the "from" address. I know there is a signature hook which I could
92 use for the first, but how to do the latter.
93
94 Maybe I'm missing something, but ideally, I'd love to see something where I
95 could define different accounts in the config.yaml, then have a way that works
96 both for replying and for new mail to pick *all* settings of that account from
97 config.yaml.
98
99 An additional question: For friends & family recipients, I'd like to use my
100 private settings. I maintain a list of such e-mail addresses in an external text
101 file, and I think that's neater than listing them all in each hook when needed.
102
103 In before-add-message.rb, I use this:
104
105 privatfile = File.open("/home/mpromber/.mutt/privataddr","r")
106 if ! privatfile.grep(/#{message.from.email}/).empty?
107 message.add_label :privat
108 end
109
110 but it seems "message.from.email" is not available for before-edit.rb.
111
112 I'm currently using this as a workaround:
113
114 privatfile = File.open("/home/mpromber/.mutt/privataddr","r")
115 toaddr = header["To"].scan(/[a-z0-9+._-]+@[a-z0-9.-]+\.[a-z]{2,4}/).join(sep="")
116 regexaddr = "^" + toaddr + "$"
117 if ! privatfile.grep(/#{regexaddr}/).empty?
118 header["From"] = "Marianne <myprivate at address.com>"
119 end
120
121 Is there an easier mail to access the recipient e-mail address? And I also guess
122 I have to rewrite this to handle the case of several recipients, which
123 definitely would be easier if there's already and array of recipient addresses I
124 can refer to.
125
126 Thanks,
127
128 Marianne
129
130 --
131 Marianne Promberger
132 PGP/GnuPG public key ID 80AD9916
133
134 From marcus-sup@bar-coded.net Tue Jan 6 15:13:53 2009
135 From: marcus-sup@bar-coded.net (Marcus Williams)
136 Date: Tue, 06 Jan 2009 20:13:53 +0000
137 Subject: [sup-talk] questions about reply-from & before-edit hooks and
138 accounts
139 In-Reply-To: <1231252310-sup-6112@audrey>
140 References: <1231252310-sup-6112@audrey>
141 Message-ID: <1231272504-sup-1247@tomsk>
142
143 On 6.1.2009, marianne.promberger+sup-talk wrote:
144 > reply-from.rb:
145 >
146 > PersonManager.person_for case
147 > when message.recipient_email =~ /rubyforge/
148 > "my.name+sup-talk at gmail.com"
149 > end
150 > before-edit.rb:
151 >
152 > if header["To"] =~ /rubyforge/
153 > header["From"] = "Marianne <my.name+sup-talk at gmail.com>"
154 > end
155 [snip]
156
157 > Maybe I'm missing something, but ideally, I'd love to see something where I
158 > could define different accounts in the config.yaml, then have a way that works
159 > both for replying and for new mail to pick *all* settings of that account from
160 > config.yaml.
161
162 You might want to look through the archives for the regexen option - I
163 use it for this purpose (although it only solves your reply-to case).
164
165 Add something like
166
167 :regexen:
168 - my.name+.*@gmail.com
169
170 to your settings on an account (you can use regexes here and have more
171 than one if you want, but the one above will work in your case). This
172 allows sup to recognise your mail "aliases" and replies to incoming
173 mails addressed to these emails with the correct from address
174 automagically.
175
176 It wont help for mails you compose (ie "new" mails, not replies), but
177 it works well for replies.
178
179 HTH
180
181 Marcus
182
183
184 From lee@writequit.org Thu Jan 8 09:55:09 2009
185 From: lee@writequit.org (Lee Hinman)
186 Date: Thu, 08 Jan 2009 07:55:09 -0700
187 Subject: [sup-talk] Selectionbar movement on new messages
188 Message-ID: <1231426230-sup-3131@Cartographer>
189
190 Hi Sup-talkers,
191 I was wondering if there was a way to make sure the selection bar *didn't*
192 change what email it was over when a new email is loaded?
193
194 There is nothing more frustrating than going to delete or kill an email only
195 to have Sup load a new message to the inbox and shift all the messages so that
196 I kill the message right above the one I wanted to delete.
197
198 So, is it possible to set up Sup to do this?
199
200 Thanks,
201 Lee
202
203 From johnbent@lanl.gov Thu Jan 8 10:33:14 2009
204 From: johnbent@lanl.gov (John Bent)
205 Date: Thu, 08 Jan 2009 08:33:14 -0700
206 Subject: [sup-talk] proxy settings
207 Message-ID: <1231428609-sup-582@tangerine.lanl.gov>
208
209 My work place has instituted a new proxy system and since then I've been
210 unable to use either git or gem (I'm using 0.5 still). Does anyone
211 please know any way around this? Is sup also available as a tarball
212 somewhere perhaps?
213
214 I'm missing out on all sorts of new sup goodness. :(
215
216 Thanks,
217
218 John
219
220 From johnbent@lanl.gov Thu Jan 8 10:28:03 2009
221 From: johnbent@lanl.gov (John Bent)
222 Date: Thu, 08 Jan 2009 08:28:03 -0700
223 Subject: [sup-talk] Selectionbar movement on new messages
224 In-Reply-To: <1231426230-sup-3131@Cartographer>
225 References: <1231426230-sup-3131@Cartographer>
226 Message-ID: <1231428437-sup-8726@tangerine.lanl.gov>
227
228 Excerpts from Lee Hinman's message of Thu Jan 08 07:55:09 -0700 2009:
229 > I was wondering if there was a way to make sure the selection bar *didn't*
230 > change what email it was over when a new email is loaded?
231 >
232 > There is nothing more frustrating than going to delete or kill an email only
233 > to have Sup load a new message to the inbox and shift all the messages so that
234 > I kill the message right above the one I wanted to delete.
235 >
236 > So, is it possible to set up Sup to do this?
237 >
238 Second! Thanks Lee.
239
240 John
241 > Thanks,
242 > Lee
243
244 From marianne.promberger+sup-talk@gmail.com Thu Jan 8 14:51:37 2009
245 From: marianne.promberger+sup-talk@gmail.com (Marianne)
246 Date: Thu, 08 Jan 2009 20:51:37 +0100
247 Subject: [sup-talk] Availability of key presses in different modes
248 Message-ID: <1231444262-sup-3650@audrey>
249
250 Hi,
251
252 Is there a specific reason why certain key presses are not available in some
253 modes?
254
255 I'm thinking specifically about using "&" to kill a thread from thread-view
256 mode, and of "A" or "a" to archive a thread from search-results-mode.
257
258 The first would save me killing the buffer before killing the thread, since I
259 sometimes have to at least glance at a thread before deciding I want to kill it.
260
261 The second is much more important, really. I go through mail by mailing list, so
262 I use "L" to search for mail with a specific label. It seems I cannot then
263 archive threads from that view. Am I missing something?
264
265 Thanks,
266
267 Marianne
268
269 --
270 Marianne Promberger
271 PGP/GnuPG public key ID 80AD9916
272
273 From lee@writequit.org Thu Jan 8 23:51:30 2009
274 From: lee@writequit.org (Lee Hinman)
275 Date: Thu, 08 Jan 2009 21:51:30 -0700
276 Subject: [sup-talk] proxy settings
277 In-Reply-To: <1231428609-sup-582@tangerine.lanl.gov>
278 References: <1231428609-sup-582@tangerine.lanl.gov>
279 Message-ID: <1231476664-sup-1535@Cartographer>
280
281 Excerpts from John Bent's message of Thu Jan 08 08:33:14 -0700 2009:
282 > My work place has instituted a new proxy system and since then I've been
283 > unable to use either git or gem (I'm using 0.5 still). Does anyone
284 > please know any way around this? Is sup also available as a tarball
285 > somewhere perhaps?
286 >
287 > I'm missing out on all sorts of new sup goodness. :(
288 >
289 > Thanks,
290 >
291 > John
292
293 You should be able to download either a tgz or a gem from this link:
294
295 http://rubyforge.org/frs/?group_id=2603&release_id=24444
296
297 - Lee
298
299 From andrew@pimlott.net Tue Jan 13 13:37:25 2009
300 From: andrew@pimlott.net (Andrew Pimlott)
301 Date: Tue, 13 Jan 2009 10:37:25 -0800
302 Subject: [sup-talk] fixing mbox+ssh
303 Message-ID: <20090113183725.GK11701@pimlott.net>
304
305 As far as I can tell, mbox+ssh access has not been maintained recently.
306 I wanted to use it, so I figured out how to make it work using Net::SFTP
307 instead of Net:SSH directly. Below is what I have ligthly tested so
308 far. I have never written Ruby before, so hints are welcome.
309
310 Using SFTP looks like it should simplify the whole module such that it
311 could largely be rewritten. Would this be ok? The thing I don't
312 understand since I haven't really looked at the whole sup source (and
313 don't know Ruby norms) is what the synchronization is for. What
314 concurrency do we have, and do we expect Net:SSH to be concurrency-safe?
315
316 Andrew
317
318 diff --git a/lib/sup/mbox/ssh-file.rb b/lib/sup/mbox/ssh-file.rb
319 index d474636..2f3a4e6 100644
320 --- a/lib/sup/mbox/ssh-file.rb
321 +++ b/lib/sup/mbox/ssh-file.rb
322 @@ -1,4 +1,4 @@
323 -require 'net/ssh'
324 +require 'net/sftp'
325
326 module Redwood
327 module MBox
328 @@ -114,7 +114,7 @@ class SSHFile
329 def to_s; "mbox+ssh://#@host/#@fn"; end ## TODO: remove this EVILness
330
331 def connect
332 - do_remote nil
333 + unsafe_connect
334 end
335
336 def eof?; @offset >= size; end
337 @@ -125,9 +125,10 @@ class SSHFile
338 def path; @fn end
339
340 def size
341 + unsafe_connect
342 if @file_size.nil? || (Time.now - @last_size_check) > SIZE_CHECK_INTERVAL
343 @last_size_check = Time.now
344 - @file_size = do_remote("wc -c #@fn").split.first.to_i
345 + @file_size = @shell.stat!(@fn).size
346 end
347 @file_size
348 end
349 @@ -170,49 +171,25 @@ private
350 @shell, @shell_mutex = @@shells_mutex.synchronize do
351 unless @@shells.member? @key
352 say "Opening SSH connection to #{@host} for #@fn..."
353 - session = Net::SSH.start @host, @ssh_opts
354 - say "Starting SSH shell..."
355 - @@shells[@key] = [session.shell.sync, Mutex.new]
356 + session = Net::SFTP.start @host, @ssh_opts
357 + @@shells[@key] = [session, Mutex.new]
358 end
359 @@shells[@key]
360 end
361
362 say "Checking for #@fn..."
363 - @shell_mutex.synchronize { raise Errno::ENOENT, @fn unless @shell.test("-e #@fn").status == 0 }
364 + @shell_mutex.synchronize { raise Errno::ENOENT, @fn unless @shell.stat!(@fn) }
365 ensure
366 shutup
367 end
368 end
369
370 - def do_remote cmd, expected_size=0
371 - retries = 0
372 - result = nil
373 -
374 - begin
375 - unsafe_connect
376 - if cmd
377 - # MBox::debug "sending command: #{cmd.inspect}"
378 - result = @shell_mutex.synchronize { x = @shell.send_command cmd; sleep 0.25; x }
379 - raise SSHFileError, "Failure during remote command #{cmd.inspect}: #{(result.stderr || result.stdout || "")[0 .. 100]}" unless result.status == 0
380 - end
381 - ## Net::SSH::Exceptions seem to happen every once in a while for
382 - ## no good reason.
383 - rescue Net::SSH::Exception, *RECOVERABLE_ERRORS
384 - if (retries += 1) <= 3
385 - @@shells_mutex.synchronize do
386 - @shell = nil
387 - @@shells[@key] = nil
388 - end
389 - retry
390 - end
391 - raise
392 - end
393 -
394 - result.stdout if cmd
395 - end
396 -
397 def get_bytes offset, size
398 - do_remote "tail -c +#{offset + 1} #@fn | head -c #{size}", size
399 + unsafe_connect
400 + h = @shell.open!(@fn)
401 + r = @shell.read!(h, offset, size)
402 + @shell.close!(h)
403 + r
404 end
405
406 def expand_buf_forward n=REASONABLE_TRANSFER_SIZE
407
408 From daniel@wagner-home.com Tue Jan 13 18:36:09 2009
409 From: daniel@wagner-home.com (Daniel Wagner)
410 Date: Tue, 13 Jan 2009 18:36:09 -0500
411 Subject: [sup-talk] Availability of key presses in different modes
412 Message-ID: <1231889727-sup-2774@buckwheat>
413
414 I hope this isn't a repeat. My mail hasn't been going out for a few
415 days (for reasons totally unrelated to sup ;-), and I'm not sure exactly
416 which was the last one that made it through...
417
418 Excerpts from marianne.promberger+sup-talk's message of Thu Jan 08 14:51:37 -0500 2009:
419 > I'm thinking specifically about using "&" to kill a thread from thread-view
420
421 Try hitting '.' or ',' first. There are two reasonable actions after
422 dealing with a message, either returning to the inbox or moving to the
423 next message. '.' selects the former; ',' the latter.
424
425 > mode, and of "A" or "a" to archive a thread from search-results-mode.
426
427 Are you sure this doesn't work? It works here (admittedly on an ancient
428 version of sup, so the keybindings may have changed). Keep in mind that
429 for the change to be applied, you must press '$' to write the changes to
430 disk (or exit the view with 'x') and press '@' in your other buffers to
431 update the view with the changes.
432
433 Good luck!
434 ~d
435
436 From marianne.promberger+sup-talk@gmail.com Wed Jan 14 13:13:11 2009
437 From: marianne.promberger+sup-talk@gmail.com (Marianne)
438 Date: Wed, 14 Jan 2009 18:13:11 +0000
439 Subject: [sup-talk] Availability of key presses in different modes
440 In-Reply-To: <1231889727-sup-2774@buckwheat>
441 References: <1231444262-sup-3650@audrey> <1231889727-sup-2774@buckwheat>
442 Message-ID: <1231956668-sup-456@audrey>
443
444
445
446 Excerpts from Daniel Wagner's message of Tue Jan 13 23:36:09 +0000 2009:
447 > Excerpts from marianne.promberger+sup-talk's message of Thu Jan 08 14:51:37 -0500 2009:
448 > > I'm thinking specifically about using "&" to kill a thread from thread-view
449 >
450 > Try hitting '.' or ',' first. There are two reasonable actions after
451 > dealing with a message, either returning to the inbox or moving to the
452 > next message. '.' selects the former; ',' the latter.
453
454 No, it doesn't work for killing the thread, that key is not available in
455 thread-view-mode on my sup 0.6. I can do other things after hitting "." or ",",
456 like archiving or marking as read, but not kill a thread.
457
458 Incidentally, I'd also think it would be even better to have either returning
459 to the inbox or moving to the next message the default and let the user use keys
460 like "a" directly, in addition to being able to pick a desired behavior by
461 prepending "." or "," explicitly. It's just much harder to be aware all the
462 time of which mode you're in than always hitting "a" to archive.
463
464 Similarly, I think it's a terrible idea that "S" is bound to "mark as spam" when
465 I'm in the inbox or search-results mode, but search for messages from that
466 person when I'm in thread-view mode. It's not all that unreasonable to want to
467 search for mail from a particular person directly on a single message in the
468 inbox or when viewing search results. Marking as spam would be particularly bad
469 if that is hooked to some behavior like piping the message to train
470 spamassassin.
471
472 > > mode, and of "A" or "a" to archive a thread from search-results-mode.
473 >
474 > Are you sure this doesn't work? It works here (admittedly on an ancient
475 > version of sup, so the keybindings may have changed).
476
477 Sorry, I only tested "A", since I always use that from the inbox mode. "a"
478 works, "A" doesn't.
479
480 Thanks,
481
482 Marianne
483
484 From marianne.promberger+sup-talk@gmail.com Wed Jan 14 13:34:31 2009
485 From: marianne.promberger+sup-talk@gmail.com (Marianne)
486 Date: Wed, 14 Jan 2009 18:34:31 +0000
487 Subject: [sup-talk] questions about reply-from & before-edit hooks and
488 accounts
489 In-Reply-To: <1231272504-sup-1247@tomsk>
490 References: <1231252310-sup-6112@audrey> <1231272504-sup-1247@tomsk>
491 Message-ID: <1231957899-sup-8229@audrey>
492
493 Excerpts from Marcus Williams's message of Tue Jan 06 20:13:53 +0000 2009:
494 >
495 > You might want to look through the archives for the regexen option - I
496 > use it for this purpose (although it only solves your reply-to case).
497 >
498
499 Thanks for that tip. I've tried it and it works, although as you note it only
500 works for replying. For me, it also unfortunately does not set my name to the
501 :name: set in that account, but instead uses the part of the e-mail in front of
502 the "@" as my name.
503
504 However, I have to correct myself when I wrote that picking a person with the
505 reply-from.rb doesn't pick the correct sig from that account. While I still
506 think I tested this and it didn't work, this is now the second post to sup-talk
507 where sup picks the correct sig from my sup-talk account in config.yaml.
508
509 So that's great; I just miss being able to handle this in before-edit.rb in a
510 similar way as in reply-from.rb, i.e, by having access to things like
511 "message.recipient_email", and return a person from config.yaml
512
513 Sorry for all the nagging, I know sup is beta. Take it as a compliment that sup
514 has so many nice features that it raises the standards to which it will be held :)
515
516 Marianne
517
518 From apmanine@free.fr Tue Jan 20 08:41:49 2009
519 From: apmanine@free.fr (apmanine at free.fr)
520 Date: Tue, 20 Jan 2009 14:41:49 +0100
521 Subject: [sup-talk] New user IMAP question
522 Message-ID: <1232458852-sup-2019@eveque.lipn.univ-paris13.fr>
523
524 First of all, thank you for sup. I'm a long-time user of the mail
525 client of opera, which shares the same "anti-folder" philosophy than
526 sup, and this is the first time I found another mail client with similar
527 functionalities. I'm very pleased by sup, especially as it uses console,
528 and as it allows VIM integration.
529
530 I have a very usual question, for which I was not able to find a
531 definitive answer in the mailing-list archives.
532
533 I understood that sup does not synchronise deleted e-mails with IMAP,
534 but does it exists a third-party way to achieve such a synchronization?
535 OfflineIMAP appears to be well-fitted, but it exports mails in "maildir"
536 format, which is not handled by sup-sync-back. As only mbox files are
537 supported, I assumed that perhaps it may exist some tools to synchronize
538 mbox with IMAP accounts?
539
540 Thanks.
541
542 AP
543
544 From admin@clockingit.com Mon Jan 19 15:53:56 2009
545 From: admin@clockingit.com (Erlend Simonsen)
546 Date: Mon, 19 Jan 2009 21:53:56 +0100
547 Subject: [sup-talk] sup regexp exception..
548 Message-ID: <1232398436.461.2.camel@localhost.localdomain>
549
550 I got this with 0.6:
551
552 [Mon Jan 19 21:41:31 +0100 2009] fetching IMAP headers 1..3672
553 [Mon Jan 19 21:41:32 +0100 2009] done fetching IMAP headers
554 [Mon Jan 19 21:42:15 +0100 2009] warning: error (Iconv::IllegalSequence) decoding message body from UTF-8: " '[New File]', '"...
555 [Mon Jan 19 21:42:22 +0100 2009] unlocking /home/erlends/.sup/lock...
556 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/mbox.rb:31:in `read_header': unmatched ): /@p\237\002\000\000\000\000ly-To):(?-mix:\s*(.*?\S)\s*)$/ (RegexpError)
557 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:93:in `load_header'
558 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `send'
559 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `__pass'
560 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:525:in `method_missing'
561 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/message.rb:63:in `initialize'
562 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:151:in `new'
563 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:151:in `add_messages_from'
564 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:167:in `each'
565 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:155:in `upto'
566 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:155:in `each'
567 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `send'
568 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `__pass'
569 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:525:in `method_missing'
570 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:141:in `add_messages_from'
571 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `send'
572 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `method_missing'
573 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/bin/sup-sync:136
574 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/bin/sup-sync:131:in `each'
575 from /usr/lib/ruby/gems/1.8/gems/sup-0.6/bin/sup-sync:131
576 from /usr/bin/sup-sync:19:in `load'
577 from /usr/bin/sup-sync:19
578
579
580 It was able to fetch 117 messages, though, so I fired up sup to look at
581 what was there and got this:
582
583 --- RegexpError from thread: poll after loading inbox
584 unmatched ): /\260B\367\001\000\000\000\000-mix:\s*(.*?\S)\s*)$/
585 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/mbox.rb:26:in `read_header'
586 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:93:in `load_header'
587 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `send'
588 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `__pass'
589 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:525:in `method_missing'
590 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/message.rb:213:in `load_from_source!'
591 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/message.rb:194:in `chunks'
592 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/message.rb:144:in `snippet'
593 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/index.rb:182:in `sync_message'
594 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `send'
595 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `method_missing'
596 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:160:in `add_messages_from'
597 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:167:in `each'
598 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:155:in `upto'
599 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:155:in `each'
600 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `send'
601 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `__pass'
602 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:525:in `method_missing'
603 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:141:in `add_messages_from'
604 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:98:in `do_poll'
605 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:86:in `each'
606 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:86:in `do_poll'
607 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:85:in `synchronize'
608 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:85:in `do_poll'
609 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `send'
610 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `method_missing'
611 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/modes/poll-mode.rb:17:in `poll'
612 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:53:in `poll'
613 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `send'
614 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `method_missing'
615 /usr/lib/ruby/gems/1.8/gems/sup-0.6/bin/sup:166
616 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup.rb:85:in `reporting_thread'
617 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup.rb:83:in `initialize'
618 /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup.rb:83
619
620
621 I do get an obscene amount of spam and broken emails, so that might have
622 something to do with it.
623
624 -- Erlend
625
626
627 From einars@gmail.com Thu Jan 22 01:02:24 2009
628 From: einars@gmail.com (Einars Lielmanis)
629 Date: Thu, 22 Jan 2009 08:02:24 +0200
630 Subject: [sup-talk] UTF-8 woes
631 Message-ID: <1232602097-sup-3993@traj>
632
633 Sup is awesome! Good job, William! :-)
634
635 Yet, when using it for one day, some minor and less minor suckiness
636 and breakage in regard of non-english mails emerged as my recipients
637 started complaining about broken emails. I'm using sup/git under
638 64-bit arch linux with msmtp for sending, so maybe it would be better
639 with something sendmail-ish, have no idea, but still:
640
641 1. the subject with non-english (e.g, latvian accented) chars gets no
642 special treatment and safe encoding, and as such gets broken somewhere
643 on the wire,
644
645 2. something about the message text, probably missing
646 "Content-Transfer-Encoding: 8bit" makes my emails with latvian
647 characters explode with ugliness for my poor recipients on Outlook;
648
649 3. The minor glitch that the Sup's display is slightly messed up, if
650 the message contains multi-byte characters in headers -- fixed either
651 very nicely by extending String with length_utf8 (and substr_utf8, and
652 others as needed) function, and replacing s.length with s.length_utf8
653 in lib/sup/buffer.rb or by going the ugly way of assuming that all
654 strings are and will be utf-8 and dropping a horrendous monkeypatch
655 into the lib/sup/util.rb with
656
657 class String
658 + def length
659 + self.scan(/./u).size
660 + end
661
662
663 To see what exactly is wrong with the sending of mails I compared of
664 how the same mail is sent by mutt and how -- by sup. You can see the
665 mails here: http://spicausis.lv/sup/ where mail-mutt.txt is good,
666 mail-sup.txt is bad.
667
668 My ruby skills are non-existant yet, but I guess I'll try to whip up
669 patches for these things today, if somebody with more ruby and sup and
670 mta shizzle don't beat me to that.
671
672
673 Cheers,
674
675 Einar Lielmanis
676
677 From guillaume.quintard@gmail.com Thu Jan 22 07:19:47 2009
678 From: guillaume.quintard@gmail.com (Guillaume Quintard)
679 Date: Thu, 22 Jan 2009 13:19:47 +0100
680 Subject: [sup-talk] A few questions
681 Message-ID: <1e5fdab70901220419n7345d28br428ff169d450ad87@mail.gmail.com>
682
683 Hi, I used sup for something like 6 months, but stopped long time ago
684 because ferret quirks made it unbearable. I checked ferret recently
685 but didn't see alot of releases lately. Has ferret increased its
686 stability while I was away?
687
688 And what about that sup rewrite? Has there been progress on this one?
689
690 I truly love sup ideas, but wat I experienced a few months ago made it
691 unusable to, hope it has changed :-)
692
693 --
694 Guillaume Quintard
695
696 From guillaume.quintard@gmail.com Thu Jan 22 08:40:33 2009
697 From: guillaume.quintard@gmail.com (Guillaume Quintard)
698 Date: Thu, 22 Jan 2009 14:40:33 +0100
699 Subject: [sup-talk] A few questions
700 In-Reply-To: <1232629684-sup-8624@ausone.inria.fr>
701 References: <1e5fdab70901220419n7345d28br428ff169d450ad87@mail.gmail.com>
702 <1232629684-sup-8624@ausone.inria.fr>
703 Message-ID: <1e5fdab70901220540m3bcece9j346e6f7b7c90a43e@mail.gmail.com>
704
705 On Thu, Jan 22, 2009 at 2:10 PM, Nicolas Pouillard
706 <nicolas.pouillard at gmail.com> wrote:
707 > I no longer have ferret errors from 2-3 months, some changes about locks done
708 > in the git repo have greatly improved the situation.
709
710 w00t \o/
711
712 thanks for the info
713
714 --
715 Guillaume Quintard
716
717 From tyberius_prime@coonabibba.de Thu Jan 22 11:16:27 2009
718 From: tyberius_prime@coonabibba.de (Tyberius Prime)
719 Date: Thu, 22 Jan 2009 17:16:27 +0100
720 Subject: [sup-talk] UTF-8 woes
721 In-Reply-To: <1232602097-sup-3993@traj>
722 References: <1232602097-sup-3993@traj>
723 Message-ID: <1232640702-sup-1568@h984274.serverkompetenz.net>
724
725 Hi,
726
727 I'm also struck by Sup's UTF-8 weirdnesses,
728 and can't get German szetz to display correctly
729 (and they mess with the line width as well).
730 The other umlauts work though, and I don't know why.
731
732 I'd also appreciate work on sending utf-8,
733 though subject encoding is a weird beast.
734 (And my ruby skills are 'by transfer' only as well).
735
736 So long,
737 Tyberius Prime
738
739 > 2. something about the message text, probably missing
740 > "Content-Transfer-Encoding: 8bit" makes my emails with latvian
741 > characters explode with ugliness for my poor recipients on Outlook;
742 >
743 > 3. The minor glitch that the Sup's display is slightly messed up, if
744 > the message contains multi-byte characters in headers -- fixed either
745 > very nicely by extending String with length_utf8 (and substr_utf8, and
746 > others as needed) function, and replacing s.length with s.length_utf8
747 > in lib/sup/buffer.rb or by going the ugly way of assuming that all
748 > strings are and will be utf-8 and dropping a horrendous monkeypatch
749 > into the lib/sup/util.rb with
750 >
751 > class String
752 > + def length
753 > + self.scan(/./u).size
754 > + end
755 >
756 >
757 > To see what exactly is wrong with the sending of mails I compared of
758 > how the same mail is sent by mutt and how -- by sup. You can see the
759 > mails here: http://spicausis.lv/sup/ where mail-mutt.txt is good,
760 > mail-sup.txt is bad.
761 >
762 > My ruby skills are non-existant yet, but I guess I'll try to whip up
763 > patches for these things today, if somebody with more ruby and sup and
764 > mta shizzle don't beat me to that.
765 >
766 >
767 > Cheers,
768 >
769 > Einar Lielmanis
770
771 From cbenuzzi@gmail.com Thu Jan 29 16:45:24 2009
772 From: cbenuzzi@gmail.com (Chris Benuzzi)
773 Date: Thu, 29 Jan 2009 15:45:24 -0600
774 Subject: [sup-talk] When using "default" in colors.yaml or colormap.rb,
775 sup throws an exception
776 Message-ID: <dac0accd0901291345v5d811e87x10316ee886bc7752@mail.gmail.com>
777
778 Hello. First of all, thanks for this program!
779
780 I'm using a transparent terminal and would like to get sup's
781 background color set to "default".
782
783 So far, I have tried the following:
784
785 1. I created a colors.yaml file with the format:
786 :label:
787 :fg: yellow
788 :bg: default
789 :attrs: bold
790 2. When this gave no joy, I wiped colors.yaml and edited colormap.rb
791 directly, like:
792 :label => { :fg => "yellow", :bg => "default" }
793
794 I am able to set normal colors either way, an exception is only thrown
795 if I set any color to "default".
796 I have included the error message below, as well as any other relevant
797 info I can think of.
798 If you can give some suggestions on what else to check, or if you need
799 anything else, please let me know.
800 Thanks again for sup, and for your consideration.
801
802 Christopher Benuzzi
803
804 --- ArgumentError from thread: main
805 couldn't initialize curses color pair 4, -1 (key 1)
806 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/colormap.rb:130:in `color_for'
807 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/colormap.rb:206:in `send'
808 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/colormap.rb:206:in
809 `method_missing'
810 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/buffer.rb:106:in `write'
811 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/modes/scroll-mode.rb:51:in
812 `draw'
813 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/modes/scroll-mode.rb:49:in
814 `each'
815 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/modes/scroll-mode.rb:49:in
816 `draw'
817 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/modes/line-cursor-mode.rb:24:in
818 `draw'
819 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/buffer.rb:97:in `draw'
820 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/buffer.rb:294:in `draw_screen'
821 /usr/local/lib/ruby/gems/1.8/gems/sup-0.6/bin/sup:153
822 /usr/local/bin/sup:19:in `load'
823 /usr/local/bin/sup:19
824
825 OS: Debian "Lenny" w/libncurses-ruby installed (Other curses and ruby
826 libs too, don't remember all.)
827 Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux] installed from source
828 Terminal emulator: aterm, invoked with "aterm -tr -trsb -sh 42 -fg white"
829
830 Additionally, (to get sup working) in
831 /home/splicer/ruby-1.8.7-p72/ext/curses I did:
832 ruby extconf.rb
833 make
834 make install
835
836 And here is my gem list:
837 actionmailer (2.2.2)
838 actionpack (2.2.2)
839 activerecord (2.2.2)
840 activeresource (2.2.2)
841 activesupport (2.2.2)
842 cgi_multipart_eof_fix (2.5.0)
843 chronic (0.2.3)
844 daemons (1.0.10)
845 fastthread (1.0.1)
846 ferret (0.11.6)
847 gem_plugin (0.2.3)
848 gettext (1.93.0)
849 highline (1.5.0)
850 hoe (1.8.3)
851 lockfile (1.4.3)
852 mime-types (1.15)
853 mongrel (1.1.5)
854 mysql (2.7)
855 ncurses (0.9.1)
856 net-ssh (2.0.8)
857 rails (2.2.2)
858 rake (0.8.3)
859 rmail (1.0.0)
860 rubyforge (1.0.2)
861 sup (0.6)
862 trollop (1.10.2)
863 validates_timeliness (1.1.5)
864