sup

A curses threads-with-tags style email client

sup-website.git

git clone https://supmua.dev/git/sup-website/

community/pipermail-archives/sup-talk/2011-02.txt (134497B) - raw

      1 From support@plecavalier.com  Tue Feb  1 11:29:56 2011
      2 From: support@plecavalier.com (Philippe LeCavalier)
      3 Date: Tue, 01 Feb 2011 11:29:56 -0500
      4 Subject: [sup-talk] stripping label from msgs
      5 Message-ID: <1296577784-sup-6951@plc.intranet.plecavalier.com>
      6 
      7 Hi.
      8 
      9 I've only recently began using sup. As such, I've changed my mind on my labeling structure. Naturally, I thought I'll just open each label -there aren't that many yet-, tag all, apply to all, -label. But there must be something about '-label' I'm not understanding. I've tried -label:<label_name>, just '-label' and a few other attempts at the syntax but nothing works. If I don't tag-all and just tag a single mail at a time I can delete/edit labels. But that's no solution -there may not be many labels but there's a ton of mail-.
     10 
     11 Also, why can't I use 'A' in the search mode? I like searching tagging and marking but I can only search, tag, mark read and then archive. Is that intentional?
     12 
     13 Lastly, and somewhat related to my above mentioned issue, how do I modify labels. The label list mode seems rather restricted. I'd like to do L<enter> and delete/edit the labels themselves.
     14 -- 
     15 Thanks,
     16 Phil
     17 
     18 From michael+sup@stapelberg.de  Tue Feb  1 12:26:15 2011
     19 From: michael+sup@stapelberg.de (Michael Stapelberg)
     20 Date: Tue, 01 Feb 2011 18:26:15 +0100
     21 Subject: [sup-talk] stripping label from msgs
     22 In-Reply-To: <1296577784-sup-6951@plc.intranet.plecavalier.com>
     23 References: <1296577784-sup-6951@plc.intranet.plecavalier.com>
     24 Message-ID: <1296581103-sup-6821@midna.zekjur.net>
     25 
     26 Hi Philippe,
     27 
     28 Excerpts from Philippe LeCavalier's message of 2011-02-01 17:29:56 +0100:
     29 > aren't that many yet-, tag all, apply to all, -label. But there must be
     30 > something about '-label' I'm not understanding. I've tried
     31 > -label:<label_name>, just '-label' and a few other attempts at the syntax but
     32 Suppose you have labeled a mail 'sup'. To remove this label, use '-sup'
     33 
     34 In general, if you want to re-label a lot of mails, use sup-tweak-labels.
     35 
     36 > Lastly, and somewhat related to my above mentioned issue, how do I modify
     37 > labels. The label list mode seems rather restricted. I'd like to do L<enter>
     38 > and delete/edit the labels themselves.
     39 I don?t think you can. Again, use sup-tweak-labels to remove/add labels.
     40 
     41 Best regards,
     42 Michael
     43 
     44 From tero@tilus.net  Tue Feb  1 12:31:59 2011
     45 From: tero@tilus.net (Tero Tilus)
     46 Date: Tue, 01 Feb 2011 19:31:59 +0200
     47 Subject: [sup-talk] stripping label from msgs
     48 In-Reply-To: <1296577784-sup-6951@plc.intranet.plecavalier.com>
     49 References: <1296577784-sup-6951@plc.intranet.plecavalier.com>
     50 Message-ID: <1296581380-sup-1179@tilus.net>
     51 
     52 Philippe LeCavalier, 2011-02-01 18:29:
     53 > I've only recently began using sup. As such, I've changed my mind on
     54 > my labeling structure.
     55 
     56 You probably want to make friends with sup-tweak-labels.  And thats
     57 _after_ you have backed up label state dump.  ;)
     58 
     59   sup-tweak-labels --help
     60 
     61 -- 
     62 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
     63 
     64 From support@plecavalier.com  Tue Feb  1 12:43:59 2011
     65 From: support@plecavalier.com (Philippe LeCavalier)
     66 Date: Tue, 01 Feb 2011 12:43:59 -0500
     67 Subject: [sup-talk] stripping label from msgs
     68 In-Reply-To: <1296581380-sup-1179@tilus.net>
     69 References: <1296577784-sup-6951@plc.intranet.plecavalier.com>
     70 	<1296581380-sup-1179@tilus.net>
     71 Message-ID: <1296582225-sup-7780@plc.intranet.plecavalier.com>
     72 
     73 Excerpts from Tero Tilus's message of Tue Feb 01 12:31:59 -0500 2011:
     74 > Philippe LeCavalier, 2011-02-01 18:29:
     75 > > I've only recently began using sup. As such, I've changed my mind on
     76 > > my labeling structure.
     77 > 
     78 > You probably want to make friends with sup-tweak-labels.  And thats
     79 > _after_ you have backed up label state dump.  ;)
     80 > 
     81 >   sup-tweak-labels --help
     82 > 
     83 Perfect!
     84 -- 
     85 Thanks,
     86 Phil
     87 
     88 From support@plecavalier.com  Tue Feb  1 14:58:10 2011
     89 From: support@plecavalier.com (Philippe LeCavalier)
     90 Date: Tue, 01 Feb 2011 14:58:10 -0500
     91 Subject: [sup-talk] stripping label from msgs
     92 In-Reply-To: <1296581103-sup-6821@midna.zekjur.net>
     93 References: <1296577784-sup-6951@plc.intranet.plecavalier.com>
     94 	<1296581103-sup-6821@midna.zekjur.net>
     95 Message-ID: <1296589333-sup-2413@plc.intranet.plecavalier.com>
     96 
     97 Excerpts from Michael Stapelberg's message of Tue Feb 01 12:26:15 -0500 2011:
     98 > Hi Philippe,
     99 > 
    100 > Excerpts from Philippe LeCavalier's message of 2011-02-01 17:29:56 +0100:
    101 > > aren't that many yet-, tag all, apply to all, -label. But there must be
    102 > > something about '-label' I'm not understanding. I've tried
    103 > > -label:<label_name>, just '-label' and a few other attempts at the syntax but
    104 > Suppose you have labeled a mail 'sup'. To remove this label, use '-sup'
    105 ah! Just about the only thing I didn't try...figures.
    106 > 
    107 > In general, if you want to re-label a lot of mails, use sup-tweak-labels.
    108 > 
    109 > > Lastly, and somewhat related to my above mentioned issue, how do I modify
    110 > > labels. The label list mode seems rather restricted. I'd like to do L<enter>
    111 > > and delete/edit the labels themselves.
    112 > I don?t think you can. Again, use sup-tweak-labels to remove/add labels.
    113 I had now idea this existed. We should plug that in the wiki somewhere. Or is it already and I didn't see it?
    114 
    115 > Best regards,
    116 > Michael
    117 -- 
    118 Thanks,
    119 Phil
    120 
    121 From bogus@does.not.exist.com  Tue Feb  1 15:18:11 2011
    122 From: bogus@does.not.exist.com ()
    123 Date: Tue, 01 Feb 2011 15:18:11 -0500
    124 Subject: [sup-talk] stripping label from msgs
    125 In-Reply-To: <1296581103-sup-6821@midna.zekjur.net>
    126 References: <1296577784-sup-6951@plc.intranet.plecavalier.com>
    127 	<1296581103-sup-6821@midna.zekjur.net>
    128 Message-ID: <1296591415-sup-1777@plc.intranet.plecavalier.com>
    129 
    130 Hi Michael.
    131 Excerpts from Michael Stapelberg's message of Tue Feb 01 12:26:15 -0500 2011:
    132 > Hi Philippe,
    133 > 
    134 > Excerpts from Philippe LeCavalier's message of 2011-02-01 17:29:56 +0100:
    135 > > aren't that many yet-, tag all, apply to all, -label. But there must be
    136 > > something about '-label' I'm not understanding. I've tried
    137 > > -label:<label_name>, just '-label' and a few other attempts at the syntax but
    138 > Suppose you have labeled a mail 'sup'. To remove this label, use '-sup'
    139 > 
    140 > In general, if you want to re-label a lot of mails, use sup-tweak-labels.
    141 > 
    142 > > Lastly, and somewhat related to my above mentioned issue, how do I modify
    143 > > labels. The label list mode seems rather restricted. I'd like to do L<enter>
    144 > > and delete/edit the labels themselves.
    145 > I don?t think you can. Again, use sup-tweak-labels to remove/add labels.
    146 Could you be so kind as to provide me with a working example of a query. I don't seem to "get it". :)
    147 
    148 > Best regards,
    149 > Michael
    150 
    151 From support@plecavalier.com  Thu Feb  3 10:58:18 2011
    152 From: support@plecavalier.com (Philippe LeCavalier)
    153 Date: Thu, 03 Feb 2011 10:58:18 -0500
    154 Subject: [sup-talk] New User Hooks Details
    155 Message-ID: <1296746458-sup-2021@plc.intranet.plecavalier.com>
    156 
    157 I'm having a hard time using the hooks system.
    158 
    159 I'm trying to add the 'AutoAddLabelsToNewMessages'. I've followed the wiki and created '~/.sup/hooks/before-add-message.rb' with a few hooks but sup isn't calling them before polling.
    160 
    161 One bit of info that seems odd to me is when I issue 'sup -l' the hooks listed are nowhere to be found in the hooks folder yet they appear to be working. Is that normal?
    162 
    163 ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
    164 sup 0.12.1
    165 
    166 sample hook:
    167 #Mark Lists <lists> 
    168 addressfile = File.open("/home/plecavalier/.sup/hooks/label.lists","r")
    169 if ! addressfile.grep(/#{message.list_address}/).empty?
    170 message.add_label :lists
    171 end
    172 
    173 contents of ~/.sup.hooks/label.lists
    174 
    175 plecavalier at plc:~/.sup/hooks$ cat label.lists 
    176 cups at easysw.com
    177 samba at lists.samba.org
    178 rsync at lists.samba.org
    179 offlineimap-project at lists.alioth.debian.org
    180 bind-users at lists.isc.org
    181 
    182 The only thing I can think of is possibly setting the execute bit but I wanted to checking here prior.
    183 -- 
    184 Thanks,
    185 Phil
    186 
    187 From tero@tilus.net  Thu Feb  3 18:01:39 2011
    188 From: tero@tilus.net (Tero Tilus)
    189 Date: Fri, 04 Feb 2011 01:01:39 +0200
    190 Subject: [sup-talk] New User Hooks Details
    191 In-Reply-To: <1296746458-sup-2021@plc.intranet.plecavalier.com>
    192 References: <1296746458-sup-2021@plc.intranet.plecavalier.com>
    193 Message-ID: <1296771606-sup-3188@tilus.net>
    194 
    195 Philippe LeCavalier, 2011-02-03 17:58:
    196 > One bit of info that seems odd to me is when I issue 'sup -l' the
    197 > hooks listed are nowhere to be found in the hooks folder yet they
    198 > appear to be working. Is that normal?
    199 
    200 The `sup -l` lists all the hooks sup looks for upon start.  If a hook
    201 file exists, sup loads it and calls the ruby code in the file the way
    202 documented in `sup -l`.
    203 
    204 > # Mark Lists <lists> 
    205 > addressfile = File.open("/home/plecavalier/.sup/hooks/label.lists","r")
    206 > if ! addressfile.grep(/#{message.list_address}/).empty?
    207 >   message.add_label :lists
    208 > end
    209 
    210 Looks sound on the surface.  This is your
    211 ~/.sup/hooks/before-add-message.rb?  New mails coming from
    212 mailinglists listed in label.lists don't get lists-tag?  You could add
    213 some logging and see whats going on.
    214 
    215 debug "before-add-message"
    216 File.open("/home/plecavalier/.sup/hooks/label.lists") do |addressfile|
    217   unless addressfile.grep(/#{message.list_address}/).empty?
    218     debug "list message #{message.id.inspect}"
    219     message.add_label :lists
    220   else
    221     debug "non-list message #{message.id.inspect}"
    222   end
    223 end
    224 
    225 Then
    226 
    227 $ SUP_LOG_LEVEL=debug sup
    228 
    229 and wait for incoming mail or temporarily use another SUP_BASE (than
    230 $HOME/.sup) with a sources.yaml pointing to a test corpus of mails.
    231 
    232 Debug output goes to log buffer.
    233 
    234 -- 
    235 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
    236 
    237 From dmishd@gmail.com  Thu Feb  3 18:48:56 2011
    238 From: dmishd@gmail.com (Hamish D)
    239 Date: Thu, 3 Feb 2011 23:48:56 +0000
    240 Subject: [sup-talk] New User Hooks Details
    241 In-Reply-To: <1296746458-sup-2021@plc.intranet.plecavalier.com>
    242 References: <1296746458-sup-2021@plc.intranet.plecavalier.com>
    243 Message-ID: <AANLkTinhwyCC46MgNN0OrGL4KRysmqajPMhkWjo3UMKz@mail.gmail.com>
    244 
    245 > One bit of info that seems odd to me is when I issue 'sup -l' the hooks listed are nowhere to be found in the hooks folder yet they appear to be working. Is that normal?
    246 
    247 sup -l will list the hooks you can use - it doesn't check what hooks
    248 you've actually created.
    249 
    250 > sample hook:
    251 > #Mark Lists <lists>
    252 > addressfile = File.open("/home/plecavalier/.sup/hooks/label.lists","r")
    253 > if ! addressfile.grep(/#{message.list_address}/).empty?
    254 > message.add_label :lists
    255 > end
    256 
    257 You can stick debug statements in - say:
    258 
    259 debug "list address is #{message.list_address.inspect}, type is
    260 #{message.list_address.class.to_s}"
    261 
    262 and then see it in the log (while using sup, press ";" and scroll down
    263 to the log buffer).
    264 
    265 I think that message.list_address is actually of class Person, so you
    266 would want to use message.list_address.email for your case. I've
    267 updated the wiki to correct that - I think I may have written the
    268 wrong information into the wiki to start with :/ so sorry for the
    269 mistake.
    270 
    271 Hamish
    272 
    273 From dmishd@gmail.com  Thu Feb  3 18:52:41 2011
    274 From: dmishd@gmail.com (Hamish D)
    275 Date: Thu, 3 Feb 2011 23:52:41 +0000
    276 Subject: [sup-talk] issue after upgrading sup mainline
    277 In-Reply-To: <AANLkTi=uUvKgVk4AEiiaBSjSL7=+w=HiWSNs5nb2MTdJ@mail.gmail.com>
    278 References: <AANLkTi=uUvKgVk4AEiiaBSjSL7=+w=HiWSNs5nb2MTdJ@mail.gmail.com>
    279 Message-ID: <AANLkTinGY8zJChFftqgyd8vVOr1bYByWP=ezgp7-JQpo@mail.gmail.com>
    280 
    281 The key line would be:
    282 
    283 > ./lib/sup/index.rb:17: Xapian version 1.2.1 or higher required
    284 
    285 gem upgrade should fix it.
    286 
    287 Hamish
    288 
    289 From dmishd@gmail.com  Thu Feb  3 19:00:34 2011
    290 From: dmishd@gmail.com (Hamish D)
    291 Date: Fri, 4 Feb 2011 00:00:34 +0000
    292 Subject: [sup-talk] Custom cursor color
    293 In-Reply-To: <1295232827-sup-7356@ubook.local>
    294 References: <1295232827-sup-7356@ubook.local>
    295 Message-ID: <AANLkTimHg7wN==eH31Pta9Exwx6Q0s4OjrRcVKiy7vpJ@mail.gmail.com>
    296 
    297 > I trying to customize colors for sup and cannot find
    298 > any yaml key for cursor color (highlighted line moved by J/K).
    299 > Anyone can help me?
    300 
    301 Looking at lib/sup/colormap.rb it looks like you might want one of:
    302 
    303    :horizontal_selector_selected => { :fg => "yellow", :bg =>
    304 "default", :attrs => ["bold"] },
    305    :horizontal_selector_unselected => { :fg => "cyan", :bg => "default" },
    306 
    307 Full list at http://gitorious.org/sup/mainline/blobs/next/lib/sup/colormap.rb#line28
    308 
    309 Hamish Downer
    310 
    311 From self@antono.info  Thu Feb  3 20:28:47 2011
    312 From: self@antono.info (Antono Vasiljev)
    313 Date: Fri, 04 Feb 2011 03:28:47 +0200
    314 Subject: [sup-talk] New User Hooks Details
    315 In-Reply-To: <AANLkTinhwyCC46MgNN0OrGL4KRysmqajPMhkWjo3UMKz@mail.gmail.com>
    316 References: <1296746458-sup-2021@plc.intranet.plecavalier.com>
    317 	<AANLkTinhwyCC46MgNN0OrGL4KRysmqajPMhkWjo3UMKz@mail.gmail.com>
    318 Message-ID: <1296782927.5402.6.camel@localhost>
    319 
    320 On Thu, 2011-02-03 at 23:48 +0000, Hamish D wrote:
    321 
    322 > debug "list address is #{message.list_address.inspect}, type is
    323 > #{message.list_address.class.to_s}"
    324 > 
    325 > and then see it in the log (while using sup, press ";" and scroll down
    326 > to the log buffer).
    327 > 
    328 > I think that message.list_address is actually of class Person, so you
    329 > would want to use message.list_address.email for your case. I've
    330 > updated the wiki to correct that - I think I may have written the
    331 > wrong information into the wiki to start with :/ so sorry for the
    332 > mistake.
    333 
    334 Oh. Spent some hours debugging this issue. And list_address.to_s gives
    335 list address so it was kinda magic that list != list :)
    336 
    337 -- 
    338 A: Because it messes up the order in which people normally read text.
    339 Q: Why is top-posting such a bad thing?
    340 
    341 
    342 From support@plecavalier.com  Fri Feb  4 21:15:58 2011
    343 From: support@plecavalier.com (Philippe LeCavalier)
    344 Date: Fri, 04 Feb 2011 21:15:58 -0500
    345 Subject: [sup-talk] New User Hooks Details
    346 In-Reply-To: <AANLkTinhwyCC46MgNN0OrGL4KRysmqajPMhkWjo3UMKz@mail.gmail.com>
    347 References: <1296746458-sup-2021@plc.intranet.plecavalier.com>
    348 	<AANLkTinhwyCC46MgNN0OrGL4KRysmqajPMhkWjo3UMKz@mail.gmail.com>
    349 Message-ID: <1296871814-sup-3165@plc.intranet.plecavalier.com>
    350 
    351 Hi.
    352 
    353 Excerpts from Hamish D's message of Thu Feb 03 18:48:56 -0500 2011:
    354 > > One bit of info that seems odd to me is when I issue 'sup -l' the hooks listed are nowhere to be found in the hooks folder yet they appear to be working. Is that normal?
    355 > 
    356 > sup -l will list the hooks you can use - it doesn't check what hooks
    357 > you've actually created.
    358 > 
    359 > > sample hook:
    360 > > #Mark Lists <lists>
    361 > > addressfile = File.open("/home/plecavalier/.sup/hooks/label.lists","r")
    362 > > if ! addressfile.grep(/#{message.list_address}/).empty?
    363 > > message.add_label :lists
    364 > > end
    365 > 
    366 > You can stick debug statements in - say:
    367 > 
    368 > debug "list address is #{message.list_address.inspect}, type is
    369 > #{message.list_address.class.to_s}"
    370 > 
    371 > and then see it in the log (while using sup, press ";" and scroll down
    372 > to the log buffer).
    373 > 
    374 > I think that message.list_address is actually of class Person, so you
    375 > would want to use message.list_address.email for your case. I've
    376 > updated the wiki to correct that - I think I may have written the
    377 > wrong information into the wiki to start with :/ so sorry for the
    378 > mistake.
    379 Thanks for this. And thanks to everyone else who posted suggestions. Suffice it to say, I would have never figured that out on my own. 
    380 
    381 I'm also seeing allot more info now with debugs here there and everywhere and can work from that.
    382 
    383 One question came to mind while I was fixing my hooks...Does the email address have to be complete or can it be just the domain? (I'm referring to the email address list in the referenced file of course)
    384 
    385 -- 
    386 Thanks,
    387 Phil
    388 
    389 From blakes.85@gmail.com  Fri Feb  4 21:54:49 2011
    390 From: blakes.85@gmail.com (Blake Sweeney)
    391 Date: Fri, 4 Feb 2011 21:54:49 -0500
    392 Subject: [sup-talk] New User Hooks Details
    393 In-Reply-To: <1296871814-sup-3165@plc.intranet.plecavalier.com>
    394 References: <1296746458-sup-2021@plc.intranet.plecavalier.com>
    395 	<AANLkTinhwyCC46MgNN0OrGL4KRysmqajPMhkWjo3UMKz@mail.gmail.com>
    396 	<1296871814-sup-3165@plc.intranet.plecavalier.com>
    397 Message-ID: <AANLkTi=vRH-zdAx3QyY7DTJ+-iyOS6_Dp22J5oNMGcBC@mail.gmail.com>
    398 
    399 On Fri, Feb 4, 2011 at 9:15 PM, Philippe LeCavalier
    400 <support at plecavalier.com> wrote:
    401 > Hi.
    402 >
    403 > Excerpts from Hamish D's message of Thu Feb 03 18:48:56 -0500 2011:
    404 >> > One bit of info that seems odd to me is when I issue 'sup -l' the hooks listed are nowhere to be found in the hooks folder yet they appear to be working. Is that normal?
    405 >>
    406 >> sup -l will list the hooks you can use - it doesn't check what hooks
    407 >> you've actually created.
    408 >>
    409 >> > sample hook:
    410 >> > #Mark Lists <lists>
    411 >> > addressfile = File.open("/home/plecavalier/.sup/hooks/label.lists","r")
    412 >> > if ! addressfile.grep(/#{message.list_address}/).empty?
    413 >> > message.add_label :lists
    414 >> > end
    415 >>
    416 >> You can stick debug statements in - say:
    417 >>
    418 >> debug "list address is #{message.list_address.inspect}, type is
    419 >> #{message.list_address.class.to_s}"
    420 >>
    421 >> and then see it in the log (while using sup, press ";" and scroll down
    422 >> to the log buffer).
    423 >>
    424 >> I think that message.list_address is actually of class Person, so you
    425 >> would want to use message.list_address.email for your case. I've
    426 >> updated the wiki to correct that - I think I may have written the
    427 >> wrong information into the wiki to start with :/ so sorry for the
    428 >> mistake.
    429 > Thanks for this. And thanks to everyone else who posted suggestions. Suffice it to say, I would have never figured that out on my own.
    430 >
    431 > I'm also seeing allot more info now with debugs here there and everywhere and can work from that.
    432 >
    433 > One question came to mind while I was fixing my hooks...Does the email address have to be complete or can it be just the domain? (I'm referring to the email address list in the referenced file of course)
    434 >
    435 > --
    436 > Thanks,
    437 > Phil
    438 > _______________________________________________
    439 > sup-talk mailing list
    440 > sup-talk at rubyforge.org
    441 > http://rubyforge.org/mailman/listinfo/sup-talk
    442 >
    443 
    444 I'm a bit biased but I think my gem sup_tag could help out. It makes
    445 tagging messages pretty easy. For example:
    446 
    447 tag do
    448   list_address /sup-talk/, :sup
    449 end
    450 
    451 tags all messages with sup-talk in the list address as sup. Checkout out:
    452 
    453 https://github.com/blakesweeney/sup_tag
    454 
    455 
    456 Blake
    457 
    458 From support@plecavalier.com  Tue Feb  8 10:38:12 2011
    459 From: support@plecavalier.com (Philippe LeCavalier)
    460 Date: Tue, 08 Feb 2011 10:38:12 -0500
    461 Subject: [sup-talk] search and omit
    462 Message-ID: <1297179373-sup-7015@plc.intranet.plecavalier.com>
    463 
    464 Hi. How do I trim my search results in the refined-search mode?
    465 
    466 -- 
    467 Thanks,
    468 Phil
    469 
    470 From john.wyzer@gmx.de  Wed Feb  9 00:57:19 2011
    471 From: john.wyzer@gmx.de (John Wyzer)
    472 Date: Wed, 09 Feb 2011 06:57:19 +0100
    473 Subject: [sup-talk] message missing in source, sup v0.12.1,
    474 	sup-sync no longer has --changed?
    475 Message-ID: <4D522CBF.4020203@gmx.de>
    476 
    477 Hi!
    478 I have my sent messages in a maildir and deleted one message.
    479 sup-sync used to have --changed to fix this in the index, but no longer 
    480 has (the FAQ still says so).
    481 Sup only says that there was an error loading the message, but does not 
    482 say how to fix the index.
    483 Is there a new method to do this?
    484 
    485 Thanks in advance and
    486 all the best,
    487 John
    488 
    489 
    490 From support@plecavalier.com  Wed Feb  9 14:45:35 2011
    491 From: support@plecavalier.com (Philippe LeCavalier)
    492 Date: Wed, 09 Feb 2011 14:45:35 -0500
    493 Subject: [sup-talk] Loosing first line of body, intentional or bug?
    494 Message-ID: <1297277984-sup-9281@plc.intranet.plecavalier.com>
    495 
    496 If I forget to add an extra linebreak when top-posting the first line of my reply is brought back up into the headers(references) and therefore doesn't appear in the body. This is especially annoying if I reply with a one liner.
    497 -- 
    498 Thanks,
    499 Phil
    500 
    501 From support@plecavalier.com  Thu Feb 10 09:44:18 2011
    502 From: support@plecavalier.com (Philippe LeCavalier)
    503 Date: Thu, 10 Feb 2011 09:44:18 -0500
    504 Subject: [sup-talk] best method for before-add-message.rb
    505 Message-ID: <1297346751-sup-70@plc.intranet.plecavalier.com>
    506 
    507 Hi All.
    508 
    509 I'm still working on my initial labeling/hooks and best choices thereof.
    510 
    511 I'm torn between a few options.
    512 
    513 i)external file reference (would be my preferred method)
    514 -can't list anything other than full email addresses in the file
    515 @domain.com, wildcards...etc. would be nice
    516 -can't comment in the file. It would be nice to weed out comments
    517 -is it possible that when an address has a subdomain the example in the wiki breaks? ie list at list.domain.com
    518 none of my hooks for these types of addresses seem to work
    519 -is Sup caching the referenced file? if not, I presume this option significantly slows things down
    520 
    521 ii)not using an external file makes the hook file lengthy. However it seems to be the only safe way of adding multiple labels - which I feel crucial to making a strong searchable system. Perhaps a label(s)-markread-archive would be nice :)
    522 -using this method I find myself writing a ton of rules for the same thread.
    523 a)label the thread from a particular community/client/area
    524 b)label the thread from a particular person within said community/clientel/area
    525 c)label it something useful ie (not)important/archive/redirect/bounce(hehe)...etc.
    526 
    527 
    528 I'm assuming my difficulties spring from a few basic assumptions;
    529 I can't write any code let alone Ruby, if my life depended on it.
    530 The wiki has solid working examples for those who can work with Ruby. Again I don't speak Ruby.
    531 And mostly, I come form a world where things get filtered to folders :-( I'm really trying to keep an open mind and I know I'll get there but my inbox now has thousands of mails in it and I'm the type that kept a strict 0 count. In order for me to move to Sup I had to get *real* disorganized before getting *real* organized ;-) All that to say that for types like me, it's all about copying other, less ruby-challenged, peoples work. So for the past three weeks I've been living in the wiki....It's a pretty lonely place out there!
    532 
    533 In keeping an open mind about all this, I'm open to hearing examples of how others handle there workflow that are achieving the same goal I have in mind. ie label everything with individual labels and archive it all using the least/simplest/most efficient code possible. This way I can search for clients,client A,reports,after:tue-jan-18(I think the latter is prob. wrong but feel like looking up chronic's standards at the moment:-) )
    534 
    535 My mail is really important to me so if the only response I get from this is "learn Ruby you lazy-ass-bastard!" I'll get the message(lousy pun eh?) ;-)
    536 -- 
    537 Thanks,
    538 Phil
    539 
    540 From michael+sup@stapelberg.de  Thu Feb 10 09:52:14 2011
    541 From: michael+sup@stapelberg.de (Michael Stapelberg)
    542 Date: Thu, 10 Feb 2011 15:52:14 +0100
    543 Subject: [sup-talk] Loosing first line of body, intentional or bug?
    544 In-Reply-To: <1297277984-sup-9281@plc.intranet.plecavalier.com>
    545 References: <1297277984-sup-9281@plc.intranet.plecavalier.com>
    546 Message-ID: <1297349497-sup-2501@midna.zekjur.net>
    547 
    548 Hi Philippe,
    549 
    550 Excerpts from Philippe LeCavalier's message of 2011-02-09 20:45:35 +0100:
    551 > If I forget to add an extra linebreak when top-posting the first line of my
    552 > reply is brought back up into the headers(references) and therefore doesn't
    553 > appear in the body. This is especially annoying if I reply with a one liner.
    554 Well, how would you distinguish text from an additional header? I would call
    555 the behaviour intentional.
    556 
    557 Best regards,
    558 Michael
    559 
    560 From support@plecavalier.com  Thu Feb 10 10:31:39 2011
    561 From: support@plecavalier.com (Philippe LeCavalier)
    562 Date: Thu, 10 Feb 2011 10:31:39 -0500
    563 Subject: [sup-talk] Loosing first line of body, intentional or bug?
    564 In-Reply-To: <1297349497-sup-2501@midna.zekjur.net>
    565 References: <1297277984-sup-9281@plc.intranet.plecavalier.com>
    566 	<1297349497-sup-2501@midna.zekjur.net>
    567 Message-ID: <1297351086-sup-7177@plc.intranet.plecavalier.com>
    568 
    569 Excerpts from Michael Stapelberg's message of Thu Feb 10 09:52:14 -0500 2011:
    570 > Hi Philippe,
    571 > 
    572 > Excerpts from Philippe LeCavalier's message of 2011-02-09 20:45:35 +0100:
    573 > > If I forget to add an extra linebreak when top-posting the first line of my
    574 > > reply is brought back up into the headers(references) and therefore doesn't
    575 > > appear in the body. This is especially annoying if I reply with a one liner.
    576 > Well, how would you distinguish text from an additional header? I would call
    577 > the behaviour intentional.
    578 > 
    579 I'm referring to the diff between this:
    580 
    581 --------
    582 References: <1297277984-sup-9281 at plc.intranet.plecavalier.com> <1297349497-sup-2501 at midna.zekjur.net>
    583 
    584  Hi Michael
    585 ---------
    586 
    587 And this:
    588 ---------
    589 References: <1297277984-sup-9281 at plc.intranet.plecavalier.com> <1297349497-sup-2501 at midna.zekjur.net>
    590  Hi Michael
    591 --------
    592 
    593 If I leave the latter the "Hi Michael" ends up looking like this:
    594 ----------
    595 References: <1297277984-sup-9281 at plc.intranet.plecavalier.com> <1297349497-sup-2501 at midna.zekjur.net>Hi Michael
    596                                                                                                       ^here^
    597 
    598 I suspect a rather obvious workaround is adding a linebreak to:
    599 
    600 /usr/bin/vim '+/^\s*\n'
    601 
    602 In config.yaml
    603 
    604 but shouldn't this be considered a bug? Or is this just happening to me?
    605 -- 
    606 Thanks,
    607 Phil
    608 
    609 From marka@pobox.com  Thu Feb 10 11:40:38 2011
    610 From: marka@pobox.com (Mark Alexander)
    611 Date: Thu, 10 Feb 2011 11:40:38 -0500
    612 Subject: [sup-talk] best method for before-add-message.rb
    613 In-Reply-To: <1297346751-sup-70@plc.intranet.plecavalier.com>
    614 References: <1297346751-sup-70@plc.intranet.plecavalier.com>
    615 Message-ID: <1297355619-sup-8657@bloovis.org>
    616 
    617 Excerpts from Philippe LeCavalier's message of Thu Feb 10 09:44:18 -0500 2011:
    618 > i)external file reference (would be my preferred method)
    619 > -can't list anything other than full email addresses in the file
    620 > @domain.com, wildcards...etc. would be nice
    621 
    622 I'm not sure if this will help (it's pretty primitive), but here's
    623 my before-add-message.rb, showing how to do regular expression
    624 matches on addresses:
    625 
    626 # Label by subject.  This is useful for messages
    627 # generated automatically by Bugzilla or cron jobs.
    628 case message.subj
    629 when /\[P4 SUBMIT/
    630   message.add_label :p4
    631 when /\[Bug.*project:/
    632   message.add_label :projbugs
    633 when /\[Bug/
    634   message.add_label :bugs
    635 when /project.*suite results/
    636   message.add_label :testing
    637 end
    638 
    639 # Label by recipients.  This is useful for mailing lists.
    640 to_string = message.recipients.map { |t| t.email }.join(" ")
    641 case to_string
    642 # Personal labels
    643 when /\bsup-(devel|talk)@rubyforge.org\b/
    644   message.add_label :sup
    645 # Work labels
    646 when /pi at widgets/
    647   message.add_label :pi
    648 when /git-users at widgets/
    649   message.add_label :git
    650 when /team-project at widgets/
    651   message.add_label :project
    652 end
    653 
    654 # Label by from.  This is useful for personal emails.
    655 case message.from.email
    656 when /@amazon/
    657   message.add_label :amazon
    658 when /@facebook/
    659   message.add_label :facebook
    660 when /@netflix/
    661   message.add_label :netflix
    662 when /somebody at gmail.com|somebody at aol.com/
    663   message.add_label :somebody
    664 end
    665 
    666 From support@plecavalier.com  Thu Feb 10 12:37:14 2011
    667 From: support@plecavalier.com (Philippe LeCavalier)
    668 Date: Thu, 10 Feb 2011 12:37:14 -0500
    669 Subject: [sup-talk] time factor on before-poll.rb
    670 Message-ID: <1297359413-sup-688@plc.intranet.plecavalier.com>
    671 
    672 Is there any reasoning behind the time factor on the offlineimap before-poll.rb hook? I would prefer it allowing me to run the hook at any interval I wish...
    673 -- 
    674 Thanks,
    675 Phil
    676 
    677 From support@plecavalier.com  Thu Feb 10 14:19:49 2011
    678 From: support@plecavalier.com (Philippe LeCavalier)
    679 Date: Thu, 10 Feb 2011 14:19:49 -0500
    680 Subject: [sup-talk] best method for before-add-message.rb
    681 In-Reply-To: <1297357197-sup-5893@bloovis.org>
    682 References: <1297346751-sup-70@plc.intranet.plecavalier.com>
    683 	<1297355619-sup-8657@bloovis.org>
    684 	<1297356327-sup-9107@plc.intranet.plecavalier.com>
    685 	<1297357197-sup-5893@bloovis.org>
    686 Message-ID: <1297364797-sup-8388@plc.intranet.plecavalier.com>
    687 
    688 Hi. I apologize in advance for the broken thread...Since I forgot a  linebreak at the beginning of the body so everything got mangled upon exiting vim. I did my best to re-create the order.
    689 
    690 
    691 Excerpts from Mark Alexander's message of Thu Feb 10 12:00:17 -0500 2011: 
    692 
    693 > Excerpts from Philippe LeCavalier's message of Thu Feb 10 11:52:53 -0500 2011:
    694 
    695 > > Hi Mark. 
    696 > > Have you tried? 
    697 > > > >  case message.subj 
    698 > >  when /\[P4 SUBMIT/ 
    699 > >    message.add_label :p4 
    700 > >   message.remove_label :inbox 
    701 > > end 
    702 > > No, I haven't tried remove_label.
    703 
    704 I did some testing and for some reason I cannot see, the above code automatically archives the msg without any obvious code telling sup to do so.
    705 
    706 If I:
    707 
    708   case message.from.email
    709   when /@plecavalier.com/
    710     message.add_label :TEST
    711     message.add_label :TEST2
    712     message.add_label :TEST3
    713   end
    714 
    715 tests sent to myself are respectively labeled TEST TEST2 TEST3 but are also striped of the inbox label. Since this is exactly what I want this works for me but...
    716 -- 
    717 Thanks,
    718 Phil
    719 
    720 From support@plecavalier.com  Thu Feb 10 17:09:11 2011
    721 From: support@plecavalier.com (Philippe LeCavalier)
    722 Date: Thu, 10 Feb 2011 17:09:11 -0500
    723 Subject: [sup-talk] best method for before-add-message.rb
    724 In-Reply-To: <1297364797-sup-8388@plc.intranet.plecavalier.com>
    725 References: <1297346751-sup-70@plc.intranet.plecavalier.com>
    726 	<1297355619-sup-8657@bloovis.org>
    727 	<1297356327-sup-9107@plc.intranet.plecavalier.com>
    728 	<1297357197-sup-5893@bloovis.org>
    729 	<1297364797-sup-8388@plc.intranet.plecavalier.com>
    730 Message-ID: <1297375381-sup-2823@plc.intranet.plecavalier.com>
    731 
    732 Hi All.
    733 Excerpts from Philippe LeCavalier's message of Thu Feb 10 14:19:49 -0500 2011:
    734 > Hi. I apologize in advance for the broken thread...Since I forgot a  linebreak at the beginning of the body so everything got mangled upon exiting vim. I did my best to re-create the order.
    735 > 
    736 > 
    737 > Excerpts from Mark Alexander's message of Thu Feb 10 12:00:17 -0500 2011: 
    738 > 
    739 > > Excerpts from Philippe LeCavalier's message of Thu Feb 10 11:52:53 -0500 2011:
    740 > 
    741 > > > Hi Mark. 
    742 > > > Have you tried? 
    743 > > > > >  case message.subj 
    744 > > >  when /\[P4 SUBMIT/ 
    745 > > >    message.add_label :p4 
    746 > > >   message.remove_label :inbox 
    747 > > > end 
    748 > > > No, I haven't tried remove_label.
    749 > 
    750 > I did some testing and for some reason I cannot see, the above code automatically archives the msg without any obvious code telling sup to do so.
    751 > 
    752 > If I:
    753 > 
    754 >   case message.from.email
    755 >   when /@plecavalier.com/
    756 >     message.add_label :TEST
    757 >     message.add_label :TEST2
    758 >     message.add_label :TEST3
    759 >   end
    760 > 
    761 > tests sent to myself are respectively labeled TEST TEST2 TEST3 but are also striped of the inbox label. Since this is exactly what I want this works for me but...
    762 
    763 Well, I don't know if this was the most efficient method but I took Mark's example and ran with it. This method accomplishes my goal to add(and remove!) multiple labels in one swish and is legible enough for the simple-minded like myself.
    764 
    765 Note: the above statement re. removing the inbox label without having specifying it explicitely is false...No idea why Sup was doing that but restarting sup completely, fixed that oddity. Perhaps my understanding of 'H' is incorrect!?
    766 
    767 Thanks a bunch Mark my inbox is well on it's way to 0 as it once was.
    768 -- 
    769 Thanks,
    770 Phil
    771 
    772 From romain@univers-libre.net  Fri Feb 11 08:08:29 2011
    773 From: romain@univers-libre.net (Romain Dessort)
    774 Date: Fri, 11 Feb 2011 14:08:29 +0100
    775 Subject: [sup-talk] Delete email from Sup index
    776 Message-ID: <1297428180-sup-8381@mail.univers-libre.net>
    777 
    778 Hi all,
    779 
    780 I use Sup for a while to manage a huge quantity of emails (~1000 emails
    781 per day, most of these are directly archived).  In parallel, I have a
    782 cron job which remove (in my maildir) old emails and then do a sup-sync
    783 to update Sup index each day.
    784 
    785 But I notice Sup does not remove the correspondent entry from his index
    786 after sup-sync (even if I use --discard option).
    787 It is problematic for me because the Sup index contains now about
    788 310,000 emails and the .sup/xapian/ directory takes about 4.4 GB disk
    789 space !
    790 
    791 Is there a way to really remove emails from Index (and not mark them as
    792 'deleted') ?
    793 
    794 Thanks for your help !
    795 -- 
    796 Romain Dessort
    797 Jabber ID : romain at univers-libre.net
    798 GnuPG : 3072D/724BC532
    799 
    800 From sup@zevv.nl  Fri Feb 11 09:24:57 2011
    801 From: sup@zevv.nl (Ico Doornekamp)
    802 Date: Fri, 11 Feb 2011 15:24:57 +0100
    803 Subject: [sup-talk] Feature request: remove 'no new messages' flashing
    804 Message-ID: <1297434100-sup-1912@pruts.nl>
    805 
    806 Hi,
    807 
    808 This might be a nitpicking request, but I would like to propose the
    809 removal of the 'No new messages' text flashing on screen after every
    810 poll. 
    811 
    812 Apart from that this message is not really informational (the unix
    813 philosophy being 'no news is good news'), it also is distracting: when
    814 I'm working with a sup window open on screen, the flashing always seems
    815 to catch my attention and distract me for a second, only to find out
    816 that there is no mail.
    817 
    818 Thanks,
    819 
    820 Ico
    821 -- 
    822 :wq
    823 ^X^Cy^K^X^C^C^C^C
    824 
    825 From thorsten@net.t-labs.tu-berlin.de  Fri Feb 11 09:25:01 2011
    826 From: thorsten@net.t-labs.tu-berlin.de (Thorsten Fischer)
    827 Date: Fri, 11 Feb 2011 14:25:01 +0000
    828 Subject: [sup-talk] Delete email from Sup index
    829 In-Reply-To: <1297428180-sup-8381@mail.univers-libre.net>
    830 References: <1297428180-sup-8381@mail.univers-libre.net>
    831 Message-ID: <1297433878-sup-5263@mail.froschi.org>
    832 
    833 Excerpts from Romain Dessort's message of 2011-02-11 13:08:29 +0000:
    834 > Is there a way to really remove emails from Index (and not mark them as
    835 > 'deleted') ?
    836 
    837 I have been through exactly that about ten minutes ago to get rid of
    838 >40k index entries in my sup setup. Good timing! ;)
    839 
    840 What I did:
    841 
    842 * stopped the periodic polling of my offlineimap, just in case, to keep
    843   the sources from changing.
    844 * made a backup of my .sup/ folder, just in case.
    845 * created a label dump file using sup-dump.
    846 * deleted the .sup/xapian folder.
    847 * run sup-sync with the --restore option, pointing to the dump file.
    848 
    849 The index was re-created from the dump file, but only taking into
    850 account the files that were currently available from the sources. Worked
    851 like a charm. Better, in fact, since charms don't work at all. Ahem.
    852 
    853 Yes, it would be great if there were a less convoluted way to do this.
    854 
    855 
    856 Cheers,
    857 
    858 t
    859 
    860 -- 
    861 Thorsten Fischer, BOWL Project Administrator
    862 <thorsten at net.t-labs.tu-berlin.de>
    863 Technische Universit?t Berlin, FG INET, TEL16, 18th floor
    864 Ernst-Reuter-Platz 7, 10587 Berlin, Germany
    865 Tel: +49 30 835358542, Fax: +49 391 53478347
    866 
    867 From support@plecavalier.com  Fri Feb 11 11:04:26 2011
    868 From: support@plecavalier.com (Philippe LeCavalier)
    869 Date: Fri, 11 Feb 2011 11:04:26 -0500
    870 Subject: [sup-talk] Feature request: remove 'no new messages' flashing
    871 In-Reply-To: <1297434100-sup-1912@pruts.nl>
    872 References: <1297434100-sup-1912@pruts.nl>
    873 Message-ID: <1297440178-sup-2287@plc.intranet.plecavalier.com>
    874 
    875 Hi Ico.
    876 Excerpts from Ico Doornekamp's message of Fri Feb 11 09:24:57 -0500 2011:
    877 > Hi,
    878 > 
    879 > This might be a nitpicking request, but I would like to propose the
    880 > removal of the 'No new messages' text flashing on screen after every
    881 > poll.
    882 I'm pretty certain I've come across either a hook or a config option/tweak that does just that. Google is your friend on that one.
    883  
    884 > Thanks,
    885 > 
    886 > Ico
    887 -- 
    888 Thanks,
    889 Phil
    890 
    891 From romain@univers-libre.net  Fri Feb 11 13:36:32 2011
    892 From: romain@univers-libre.net (Romain Dessort)
    893 Date: Fri, 11 Feb 2011 19:36:32 +0100
    894 Subject: [sup-talk] Delete email from Sup index
    895 In-Reply-To: <1297433878-sup-5263@mail.froschi.org>
    896 References: <1297428180-sup-8381@mail.univers-libre.net>
    897 	<1297433878-sup-5263@mail.froschi.org>
    898 Message-ID: <1297448359-sup-6036@mail.univers-libre.net>
    899 
    900 Excerpts from Thorsten Fischer's message of ven f?v 11 15:25:01 +0100 2011:
    901 > I have been through exactly that about ten minutes ago to get rid of
    902 > >40k index entries in my sup setup. Good timing! ;)
    903 
    904 Yeah, but I receive too much cron output emails and other boring
    905 automatic daily reports, so it's easy to reach this value ;).
    906 
    907 > What I did:
    908 > 
    909 > * stopped the periodic polling of my offlineimap, just in case, to keep
    910 >   the sources from changing.
    911 > * made a backup of my .sup/ folder, just in case.
    912 > * created a label dump file using sup-dump.
    913 > * deleted the .sup/xapian folder.
    914 > * run sup-sync with the --restore option, pointing to the dump file.
    915 > 
    916 > The index was re-created from the dump file, but only taking into
    917 > account the files that were currently available from the sources. Worked
    918 > like a charm. Better, in fact, since charms don't work at all. Ahem.
    919 
    920 Ok, this should be a good hack if I do this operation occasionally, but
    921 I can hardly automated it?
    922 
    923 But thank you anyway!
    924 -- 
    925 Romain Dessort
    926 Jabber ID : romain at univers-libre.net
    927 GnuPG : 3072D/724BC532
    928 
    929 From moritz+sup@wzff.de  Sat Feb 12 20:34:27 2011
    930 From: moritz+sup@wzff.de (Moritz Wilhelmy)
    931 Date: Sun, 13 Feb 2011 02:34:27 +0100
    932 Subject: [sup-talk] best method for before-add-message.rb
    933 In-Reply-To: <1297375381-sup-2823@plc.intranet.plecavalier.com>
    934 References: <1297346751-sup-70@plc.intranet.plecavalier.com>
    935 	<1297355619-sup-8657@bloovis.org>
    936 	<1297356327-sup-9107@plc.intranet.plecavalier.com>
    937 	<1297357197-sup-5893@bloovis.org>
    938 	<1297364797-sup-8388@plc.intranet.plecavalier.com>
    939 	<1297375381-sup-2823@plc.intranet.plecavalier.com>
    940 Message-ID: <1297560324-sup-4333@niflheimr>
    941 
    942 Hi,
    943 
    944 what would be the best way to match - for instance - the List-Id-Header in case
    945 it's present? I've been wondering about this for a long time, right now, I'm
    946 matching the raw-header against some regex, but it breaks if the line I'm
    947 matching contains a newline (i.e. the header field is longer than one line).
    948 Is there any way around this? Right now I'm doing something along the lines of
    949 this:
    950 
    951 # Mailing lists
    952 lids_re = {
    953   /<foo\.lists\.foo\.com>/           => "foo",
    954   /<dev\.something\.org>/            => ["something", "devel"]
    955 }
    956 
    957 def add_labels message, labels
    958     labels.each do |l|
    959         message.add_label l
    960     end
    961 end
    962 
    963 if message.raw_header =~ /^List-I[dD]: ([^\n]+)/
    964     #log "List ID: #{$1}"
    965     message.add_label "list"
    966     lids_re.keys.each do |re|
    967         add_labels message lids_re[re] if $1 =~ re
    968     end
    969 end
    970 
    971 Can I pull arbitrary, parsed headers directly out of the message object, or do
    972 I have to do my own parsing?
    973 
    974 Best regards,
    975 
    976 Moritz
    977 
    978 From fedzor@gmail.com  Sat Feb 12 21:40:10 2011
    979 From: fedzor@gmail.com (fedzor)
    980 Date: Sat, 12 Feb 2011 21:40:10 -0500
    981 Subject: [sup-talk]  Maildir and Sup Aren't Playing Well Together
    982 Message-ID: <9E6F6174-48AE-42F4-9DF4-D5848FCF64AF@gmail.com>
    983 
    984 Hey all,
    985 
    986 I have my maildir set up with offlineimap, and it produces a directory structure like this:
    987 drwx------  5 ari  staff   170B Feb 12 17:25 Bulk Mail
    988 drwx------  5 ari  staff   170B Feb 12 17:25 Deleted Messages
    989 drwx------  5 ari  staff   170B Feb 12 17:25 Drafts
    990 drwx------  5 ari  staff   170B Feb 12 17:25 Email_Templates
    991 drwx------  5 ari  staff   170B Feb 12 17:25 INBOX
    992 drwx------  5 ari  staff   170B Feb 12 17:25 Send_Later
    993 drwx------  5 ari  staff   170B Feb 12 17:25 Sent Items
    994 drwx------  5 ari  staff   170B Feb 12 17:25 Sent Messages
    995 drwx------  5 ari  staff   170B Feb 12 17:25 Trash
    996 
    997 However, sup complains about this when it tries to poll:
    998 [Sat Feb 12 21:38:52 -0500 2011] WARNING: problem getting messages from maildir:/Users/ari/.mail/aribrown.com: /Users/ari/.mail/aribrown.com/new not a directory
    999 
   1000 What did I do wrong, and how do I fix it?
   1001 
   1002 Thanks,
   1003 Ari
   1004 
   1005 From support@plecavalier.com  Sat Feb 12 22:21:19 2011
   1006 From: support@plecavalier.com (Philippe LeCavalier)
   1007 Date: Sat, 12 Feb 2011 22:21:19 -0500
   1008 Subject: [sup-talk] Maildir and Sup Aren't Playing Well Together
   1009 In-Reply-To: <9E6F6174-48AE-42F4-9DF4-D5848FCF64AF@gmail.com>
   1010 References: <9E6F6174-48AE-42F4-9DF4-D5848FCF64AF@gmail.com>
   1011 Message-ID: <1297566894-sup-7979@plc.intranet.plecavalier.com>
   1012 
   1013 Excerpts from fedzor's message of Sat Feb 12 21:40:10 -0500 2011:
   1014 > Hey all,
   1015 > 
   1016 > I have my maildir set up with offlineimap, and it produces a directory structure like this:
   1017 > drwx------  5 ari  staff   170B Feb 12 17:25 Bulk Mail
   1018 > drwx------  5 ari  staff   170B Feb 12 17:25 Deleted Messages
   1019 > drwx------  5 ari  staff   170B Feb 12 17:25 Drafts
   1020 > drwx------  5 ari  staff   170B Feb 12 17:25 Email_Templates
   1021 > drwx------  5 ari  staff   170B Feb 12 17:25 INBOX
   1022 > drwx------  5 ari  staff   170B Feb 12 17:25 Send_Later
   1023 > drwx------  5 ari  staff   170B Feb 12 17:25 Sent Items
   1024 > drwx------  5 ari  staff   170B Feb 12 17:25 Sent Messages
   1025 > drwx------  5 ari  staff   170B Feb 12 17:25 Trash
   1026 > 
   1027 > However, sup complains about this when it tries to poll:
   1028 > [Sat Feb 12 21:38:52 -0500 2011] WARNING: problem getting messages from maildir:/Users/ari/.mail/aribrown.com: /Users/ari/.mail/aribrown.com/new not a directory
   1029 > 
   1030 > What did I do wrong, and how do I fix it?
   1031 Based on the list above each would have to be a source. Also looks like you pointed sup to the parent dir and not INBOX where it will find new,cur,tmp. I would guess you were expecting sup to pick up each directory. Sup doesn't work that way. You'd have to specify each folder as a source in the config.
   1032 
   1033 > Thanks,
   1034 > Ari
   1035 -- 
   1036 Thanks,
   1037 Phil
   1038 
   1039 From john.wyzer@gmx.de  Sun Feb 13 03:20:13 2011
   1040 From: john.wyzer@gmx.de (John Wyzer)
   1041 Date: Sun, 13 Feb 2011 09:20:13 +0100
   1042 Subject: [sup-talk] message missing in source, sup v0.12.1,
   1043 	sup-sync no longer has --changed?
   1044 In-Reply-To: <1297452493-sup-3136@spade.spade-domain>
   1045 References: <4D522CBF.4020203@gmx.de> <1297452493-sup-3136@spade.spade-domain>
   1046 Message-ID: <1297584795-sup-2477@localhost>
   1047 
   1048 Excerpts from Jon Austin's message of Fri Feb 11 20:29:28 +0100 2011:
   1049 > I think sup-sync -o may fix it.
   1050 > 
   1051 > (I've been having a strange issue since .12 came out if I send a message and then quit sup, then relaunch, it'll show the first line of the message, ending in '.....' and then show the below error (inside the message), until I sup-sync -o)
   1052 > 
   1053 > ***********************************************************************
   1054 >  An error occurred while loading this message.
   1055 > ***********************************************************************
   1056 > 
   1057 > I even spent several hours yesterday completely rebuilding the xapian index, but still happening...if anyone has a clue what could be causing this, I'd love to hear it :)
   1058 
   1059 
   1060 Hmm. In lib/sup/index.rb it says:
   1061   ## xapian-compact takes too long, so this is a no-op
   1062   ## until we think of something better
   1063   def optimize
   1064   end
   1065 
   1066 And from what I understand, the -o optime does not do more at the moment.
   1067 
   1068 So the question remain - if messags are missing from one Maildir, is my only option to dump, reindex all and restore?
   1069 That would be painful given the number of messages...
   1070 
   1071 -- 
   1072 
   1073 From tero@tilus.net  Sun Feb 13 04:51:02 2011
   1074 From: tero@tilus.net (Tero Tilus)
   1075 Date: Sun, 13 Feb 2011 11:51:02 +0200
   1076 Subject: [sup-talk] best method for before-add-message.rb
   1077 In-Reply-To: <1297560324-sup-4333@niflheimr>
   1078 References: <1297346751-sup-70@plc.intranet.plecavalier.com>
   1079 	<1297355619-sup-8657@bloovis.org>
   1080 	<1297356327-sup-9107@plc.intranet.plecavalier.com>
   1081 	<1297357197-sup-5893@bloovis.org>
   1082 	<1297364797-sup-8388@plc.intranet.plecavalier.com>
   1083 	<1297375381-sup-2823@plc.intranet.plecavalier.com>
   1084 	<1297560324-sup-4333@niflheimr>
   1085 Message-ID: <1297589599-sup-596@tilus.net>
   1086 
   1087 Moritz Wilhelmy, 2011-02-13 03:34:
   1088 > what would be the best way to match - for instance - the
   1089 > List-Id-Header in case it's present?
   1090 
   1091 List-Id is a whole separate kind of beast.  My stragy dealing with it
   1092 looks like this.  Comments in finnish.  Go google translate. ;)
   1093 
   1094 == clip from ~/.sup/hooks/before-add-message.rb ==
   1095 hdr = message.raw_header
   1096 
   1097 # Yritet??n hakea listalle label List-Id headerista ja jos sellaista
   1098 # ei ole (mm. pipermail-arkistot) niin otsikkorivilt? [listanimest?].
   1099 # Listaheadereita on montaa sorttia
   1100 #
   1101 # List-Id: effi-alert.winston.effi.org
   1102 # List-Id: <effipalvelin.winston.effi.org>
   1103 # List-Id: EFFIn hallituksen keskusteluja <board.effi.org>
   1104 # List-Id: =?iso-8859-1?q?Keski-Suomen_EFFIl=E4iset?= <ks-effi.lists.jyu.fi>
   1105 # List-Id: "Hear ry:n julkinen tiedotuslista: Radio Hear, Linnunlaulupubi,
   1106 # List-Id: =?iso-8859-1?q?El=E4m=E4_on_peli=E4=2C_j=E4rjest=E4j=E4lista?=
   1107 
   1108 if m = (hdr.match(/^List-Id: +[^<]*<([^>\s]+)> *$/i) or # tyyppi 1
   1109         hdr.match(/^List-Id: +([^<>=\s]+) *$/i) or      # tyypit 2-4
   1110         hdr.match(/^Subject: +\[ *([^\] ]+) *\]/i))
   1111   list_id = m[1]
   1112   list_id = 'effi-hallitus' if list_id == 'board.effi.org'
   1113   list_id = 'effi-asiantuntijat' if list_id == 'asiantuntijat.effi.org'
   1114   list_id = 'maahinkainen-jasenet' if list_id == 'jasenet.maahinkainen.org'
   1115   list_id = 'lev' if list_id == 'lev-list'
   1116   list_id = list_id.split('.', 2)[0].downcase
   1117   message.add_label list_id
   1118 end
   1119 
   1120 == clip end ==
   1121 
   1122 > Can I pull arbitrary, parsed headers directly out of the message
   1123 > object, or do I have to do my own parsing?
   1124 
   1125 Uh, oh.  Looks like no, but it is pretty close, berause
   1126 Message#parse_header already builds parsed hash of arbitrary headers
   1127 internally.
   1128 
   1129 --
   1130 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
   1131 
   1132 From sascha-ml-reply-to-2011-2@silbe.org  Sun Feb 13 06:27:16 2011
   1133 From: sascha-ml-reply-to-2011-2@silbe.org (Sascha Silbe)
   1134 Date: Sun, 13 Feb 2011 12:27:16 +0100
   1135 Subject: [sup-talk] message missing in source, sup v0.12.1,
   1136 	sup-sync no longer has --changed?
   1137 In-Reply-To: <4D522CBF.4020203@gmx.de>
   1138 References: <4D522CBF.4020203@gmx.de>
   1139 Message-ID: <1297596179-sup-1919@xo15-sascha.sascha.silbe.org>
   1140 
   1141 Excerpts from John Wyzer's message of Wed Feb 09 06:57:19 +0100 2011:
   1142 
   1143 > I have my sent messages in a maildir and deleted one message.
   1144 > sup-sync used to have --changed to fix this in the index, but no longer 
   1145 > has (the FAQ still says so).
   1146 > Sup only says that there was an error loading the message, but does not 
   1147 > say how to fix the index.
   1148 
   1149 Check out the recent thread "Delete email from Sup index" [1] on
   1150 sup-talk and my patch [2] on sup-devel.
   1151 
   1152 Sascha
   1153 
   1154 [1] http://rubyforge.org/pipermail/sup-talk/2011-February/thread.html#4511
   1155 [2] http://rubyforge.org/pipermail/sup-devel/2011-February/thread.html#982
   1156 -- 
   1157 http://sascha.silbe.org/
   1158 http://www.infra-silbe.de/
   1159 -------------- next part --------------
   1160 A non-text attachment was scrubbed...
   1161 Name: signature.asc
   1162 Type: application/pgp-signature
   1163 Size: 494 bytes
   1164 Desc: not available
   1165 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110213/139c733e/attachment-0001.bin>
   1166 
   1167 From moritz+sup@wzff.de  Sun Feb 13 08:00:27 2011
   1168 From: moritz+sup@wzff.de (Moritz Wilhelmy)
   1169 Date: Sun, 13 Feb 2011 14:00:27 +0100
   1170 Subject: [sup-talk] How to treat List-Id headers (Was: best method for
   1171 	before-add-message.rb)
   1172 In-Reply-To: <1297589599-sup-596@tilus.net>
   1173 References: <1297346751-sup-70@plc.intranet.plecavalier.com>
   1174 	<1297355619-sup-8657@bloovis.org>
   1175 	<1297356327-sup-9107@plc.intranet.plecavalier.com>
   1176 	<1297357197-sup-5893@bloovis.org>
   1177 	<1297364797-sup-8388@plc.intranet.plecavalier.com>
   1178 	<1297375381-sup-2823@plc.intranet.plecavalier.com>
   1179 	<1297560324-sup-4333@niflheimr> <1297589599-sup-596@tilus.net>
   1180 Message-ID: <1297600750-sup-2275@niflheimr>
   1181 
   1182 Hello,
   1183 
   1184 Excerpts from Tero Tilus's message of Sun Feb 13 10:51:02 +0100 2011:
   1185 > > what would be the best way to match - for instance - the
   1186 > > List-Id-Header in case it's present?
   1187 > List-Id is a whole separate kind of beast.  My stragy dealing with it
   1188 > looks like this.  Comments in finnish.  Go google translate. ;)
   1189 Ah, well, the problem I have is something like this
   1190 
   1191 List-Id: "very long descriptive text on what the list is about"
   1192     <list.lists.something.com>
   1193 
   1194 Because the actual List-Id is so long, it's sometimes wrapped into the next
   1195 line per convention (i.e. when the descriptive text is already very long and
   1196 the line needs to be wrapped because the actual List-Id would exceed the
   1197 character limit per line, I think it's around 80 characters). Thus, my regexes
   1198 don't match in all cases. I want to match the list by the part between the <>,
   1199 not the descriptive text, which is a bit problematic because of the
   1200 line-wrapping. However, if I could get the full List-Id line from the parsed
   1201 headers hashtable, this would eliminate my parsing problems.
   1202 
   1203 > > Can I pull arbitrary, parsed headers directly out of the message
   1204 > > object, or do I have to do my own parsing?
   1205 > Uh, oh.  Looks like no, but it is pretty close, berause
   1206 > Message#parse_header already builds parsed hash of arbitrary headers
   1207 > internally.
   1208 
   1209 Well, making this publicly accessible to the before-add-message hook would
   1210 simplify a lot of the stuff I do with my email in order to place the right
   1211 labels. So maybe, this is a feature request to the sup developers, but maybe I
   1212 also got everything wrong. ;)
   1213 
   1214 Cheers,
   1215 
   1216 Moritz
   1217 
   1218 From moritz+sup@wzff.de  Sun Feb 13 08:59:12 2011
   1219 From: moritz+sup@wzff.de (Moritz Wilhelmy)
   1220 Date: Sun, 13 Feb 2011 14:59:12 +0100
   1221 Subject: [sup-talk] message missing in source, sup v0.12.1,
   1222 	sup-sync no longer has --changed?
   1223 In-Reply-To: <1297584795-sup-2477@localhost>
   1224 References: <4D522CBF.4020203@gmx.de> <1297452493-sup-3136@spade.spade-domain>
   1225 	<1297584795-sup-2477@localhost>
   1226 Message-ID: <1297605296-sup-2535@niflheimr>
   1227 
   1228 Hi,
   1229 
   1230 Excerpts from John Wyzer's message of Sun Feb 13 09:20:13 +0100 2011:
   1231 > So the question remain - if messags are missing from one Maildir, is my only
   1232 > option to dump, reindex all and restore?  That would be painful given the
   1233 > number of messages...
   1234 
   1235 Not only painful and annoying but also very stupid. Why would someone want to
   1236 get rid of sup-sync --changed? It happens all the time that Maildirs are
   1237 externally changed, there *should* be some easy way to sync these changes back,
   1238 at least that's my insignificant opinion. I don't completely understand the
   1239 motivation for getting rid of this feature in the first place. Can someone
   1240 please explain?
   1241 
   1242 Best regards,
   1243 
   1244 Moritz
   1245 
   1246 From dmishd@gmail.com  Sun Feb 13 12:12:15 2011
   1247 From: dmishd@gmail.com (Hamish D)
   1248 Date: Sun, 13 Feb 2011 17:12:15 +0000
   1249 Subject: [sup-talk] best method for before-add-message.rb
   1250 In-Reply-To: <1297560324-sup-4333@niflheimr>
   1251 References: <1297346751-sup-70@plc.intranet.plecavalier.com>
   1252 	<1297355619-sup-8657@bloovis.org>
   1253 	<1297356327-sup-9107@plc.intranet.plecavalier.com>
   1254 	<1297357197-sup-5893@bloovis.org>
   1255 	<1297364797-sup-8388@plc.intranet.plecavalier.com>
   1256 	<1297375381-sup-2823@plc.intranet.plecavalier.com>
   1257 	<1297560324-sup-4333@niflheimr>
   1258 Message-ID: <AANLkTim2ULBn=c8pPqSQ49i661HRmGgZbrevKix9kbSV@mail.gmail.com>
   1259 
   1260 > what would be the best way to match - for instance - the List-Id-Header in case
   1261 > it's present? I've been wondering about this for a long time, right now, I'm
   1262 > matching the raw-header against some regex, but it breaks if the line I'm
   1263 > matching contains a newline (i.e. the header field is longer than one line).
   1264 
   1265 Is there any reason you're not using the list_address member of
   1266 message? It is derived from the List-Post header if present, or if
   1267 not, the X-Mailing-List header. You can use it as, for example:
   1268 
   1269 # Mark by email list
   1270 if message.list_address.email =~ /sup-talk/
   1271   message.add_label "sup"
   1272   message.add_label "list"
   1273 end
   1274 
   1275 Hamish
   1276 
   1277 From rlane@club.cc.cmu.edu  Sun Feb 13 12:45:04 2011
   1278 From: rlane@club.cc.cmu.edu (Rich Lane)
   1279 Date: Sun, 13 Feb 2011 12:45:04 -0500
   1280 Subject: [sup-talk] best method for before-add-message.rb
   1281 In-Reply-To: <1297589599-sup-596@tilus.net>
   1282 References: <1297346751-sup-70@plc.intranet.plecavalier.com>
   1283 	<1297355619-sup-8657@bloovis.org>
   1284 	<1297356327-sup-9107@plc.intranet.plecavalier.com>
   1285 	<1297357197-sup-5893@bloovis.org>
   1286 	<1297364797-sup-8388@plc.intranet.plecavalier.com>
   1287 	<1297375381-sup-2823@plc.intranet.plecavalier.com>
   1288 	<1297560324-sup-4333@niflheimr> <1297589599-sup-596@tilus.net>
   1289 Message-ID: <1297618949-sup-445@zyrg.net>
   1290 
   1291 Excerpts from Tero Tilus's message of 2011-02-13 04:51:02 -0500:
   1292 > Moritz Wilhelmy, 2011-02-13 03:34:
   1293 > > Can I pull arbitrary, parsed headers directly out of the message
   1294 > > object, or do I have to do my own parsing?
   1295 > 
   1296 > Uh, oh.  Looks like no, but it is pretty close, berause
   1297 > Message#parse_header already builds parsed hash of arbitrary headers
   1298 > internally.
   1299 > 
   1300 
   1301 I use "hs = message.source.load_header(message.source_info)", which we
   1302 should probably make a convenience method on Message.
   1303 
   1304 From rlane@club.cc.cmu.edu  Sun Feb 13 13:03:11 2011
   1305 From: rlane@club.cc.cmu.edu (Rich Lane)
   1306 Date: Sun, 13 Feb 2011 13:03:11 -0500
   1307 Subject: [sup-talk] message missing in source, sup v0.12.1,
   1308 	sup-sync no longer has --changed?
   1309 In-Reply-To: <1297605296-sup-2535@niflheimr>
   1310 References: <4D522CBF.4020203@gmx.de> <1297452493-sup-3136@spade.spade-domain>
   1311 	<1297584795-sup-2477@localhost> <1297605296-sup-2535@niflheimr>
   1312 Message-ID: <1297619275-sup-3028@zyrg.net>
   1313 
   1314 Excerpts from Moritz Wilhelmy's message of 2011-02-13 08:59:12 -0500:
   1315 > Excerpts from John Wyzer's message of Sun Feb 13 09:20:13 +0100 2011:
   1316 > > So the question remain - if messags are missing from one Maildir, is my only
   1317 > > option to dump, reindex all and restore?  That would be painful given the
   1318 > > number of messages...
   1319 > 
   1320 > Not only painful and annoying but also very stupid. Why would someone want to
   1321 > get rid of sup-sync --changed? It happens all the time that Maildirs are
   1322 > externally changed, there *should* be some easy way to sync these changes back,
   1323 > at least that's my insignificant opinion. I don't completely understand the
   1324 > motivation for getting rid of this feature in the first place. Can someone
   1325 > please explain?
   1326 
   1327 sup-sync --changed was removed because it is no longer necessary. The
   1328 maildir code can now gracefully deal with messages being moved and
   1329 deleted. If all locations for a message are deleted it will keep the
   1330 index entry (including the snippet) but display an error (inline, not
   1331 disrupting the rest of the UI) if you try to view the message.
   1332 
   1333 Is this the behavior you're seeing, or is there a bug in the
   1334 implementation?
   1335 
   1336 Sascha posted a patch that deletes index entries with no locations after
   1337 a sync. I'd rather see that as a extra sup-sync --purge option, and if
   1338 you don't want deleted messages to appear in the UI we should just check
   1339 for that before adding them to the ThreadSet.
   1340 
   1341 From support@plecavalier.com  Sun Feb 13 13:08:23 2011
   1342 From: support@plecavalier.com (Philippe LeCavalier)
   1343 Date: Sun, 13 Feb 2011 13:08:23 -0500
   1344 Subject: [sup-talk] best method for before-add-message.rb
   1345 In-Reply-To: <AANLkTim2ULBn=c8pPqSQ49i661HRmGgZbrevKix9kbSV@mail.gmail.com>
   1346 References: <1297346751-sup-70@plc.intranet.plecavalier.com>
   1347 	<1297355619-sup-8657@bloovis.org>
   1348 	<1297356327-sup-9107@plc.intranet.plecavalier.com>
   1349 	<1297357197-sup-5893@bloovis.org>
   1350 	<1297364797-sup-8388@plc.intranet.plecavalier.com>
   1351 	<1297375381-sup-2823@plc.intranet.plecavalier.com>
   1352 	<1297560324-sup-4333@niflheimr>
   1353 	<AANLkTim2ULBn=c8pPqSQ49i661HRmGgZbrevKix9kbSV@mail.gmail.com>
   1354 Message-ID: <1297619496-sup-5791@plc.intranet.plecavalier.com>
   1355 
   1356 Excerpts from Hamish D's message of Sun Feb 13 12:12:15 -0500 2011:
   1357 > > what would be the best way to match - for instance - the List-Id-Header in case
   1358 > > it's present? I've been wondering about this for a long time, right now, I'm
   1359 > > matching the raw-header against some regex, but it breaks if the line I'm
   1360 > > matching contains a newline (i.e. the header field is longer than one line).
   1361 > 
   1362 > Is there any reason you're not using the list_address member of
   1363 > message? It is derived from the List-Post header if present, or if
   1364 > not, the X-Mailing-List header. You can use it as, for example:
   1365 > 
   1366 > # Mark by email list
   1367 > if message.list_address.email =~ /sup-talk/
   1368 >   message.add_label "sup"
   1369 >   message.add_label "list"
   1370 > end
   1371 > 
   1372 > Hamish
   1373 I tried that and experienced varying success.
   1374 ie 2 or three 'add_label' is fine but adding and removing, for instance doesn't appear possible. I would assume most ppl here are interested in not only applying a label but also removing one in particular the inbox label.
   1375 
   1376 Is anybody successfully both adding and removing a labels...in any way regexp, header...anything?
   1377 
   1378 So far I've tried this:
   1379 addressfile = File.open("/home/plecavalier/.sup/hooks/label.lists","r")
   1380 if ! addressfile.grep(/#{message.list_address.email}/).empty?
   1381   message.add_label :lists
   1382 end
   1383 addressfile = File.open("/home/plecavalier/.sup/hooks/label.lists","r")
   1384 if ! addressfile.grep(/#{message.list_address.email}/).empty?
   1385   message.remove_label :inbox
   1386 end
   1387 
   1388 In this case it appears handling a msg twice breaks everything. So then I tried this:
   1389 
   1390 case message.list_address
   1391   when /samba at lists.samba.org/
   1392     message.add_label :lists
   1393     message.add_label :samba
   1394     message.remove_label :inbox
   1395   when /cups at easysw.com/
   1396     message.add_label :lists
   1397     message.add_label :cups
   1398     message.remove_label :inbox
   1399 end
   1400 
   1401 This remains the closest I've come -thanks to Mark Alexander-. In this I was able to get multiple labels going for multiple msgs but again, very much hit-and-miss for label removal. I should probably not that message.remove_label in it's simplest form works fine. Just appears that it can't live alongside any other function.
   1402 
   1403 I think we're starting to see that unless one is conversely adept in one form of language or another your odds of successfully adding labels upon receipt are in a manner which will create a robust searching db is quite low. Thus defeating in part the whole concept of this system. Don't mean to sound so negative here but I just to point out that from a none fluent regex/rudy....etc the wiki and mail archives leave you somewhat hanging.
   1404 -- 
   1405 Thanks,
   1406 Phil
   1407 
   1408 From support@plecavalier.com  Sun Feb 13 15:57:30 2011
   1409 From: support@plecavalier.com (Philippe LeCavalier)
   1410 Date: Sun, 13 Feb 2011 15:57:30 -0500
   1411 Subject: [sup-talk] 0/0...I made it
   1412 Message-ID: <1297630080-sup-3488@plc.intranet.plecavalier.com>
   1413 
   1414 Well, despite not finding a truly efficient method for autolabeling my mail -I'm not worried I won't, I just haven't found it yet- after 30 some days of due deligence my inbox is for now back to 0.
   1415 
   1416 I think this speaks volumes about just how good Sup is considering I did this mostly by selecting a thread, highlight a contact(this really should be mentioned in a wiki somewhere), S, T, =, L, <various labels seperated by whitespaces starting with '-inbox'>
   1417 
   1418 This wasn't as painful as it may sound. In fact it was almost enjoyable. To put things into perspective; I started the day out with approx. ten thousand msgs left in my inbox and it's ten to four. Considering I prob. spent every other hour entertaining the kids I prob. spent a three to four hours.
   1419 
   1420 I almost crossed over to notmuch just yesterday but I stuck with Sup and I'm glad I did.
   1421 
   1422 Cheers!
   1423 -- 
   1424 Thanks,
   1425 Phil
   1426 
   1427 From whodevil-suptalk@offthecob.info  Sun Feb 13 20:24:50 2011
   1428 From: whodevil-suptalk@offthecob.info (whodevil)
   1429 Date: Sun, 13 Feb 2011 17:24:50 -0800
   1430 Subject: [sup-talk] after-poll.rb variables
   1431 Message-ID: <1297646180-sup-4406@mail.offthecob.info>
   1432 
   1433 I'm trying to write a hook that will update the status bar 
   1434 of my screen session with the number of unread emails in my 
   1435 inbox. I've worked out the logistics on how to get this into 
   1436 the status bar. My issue is that when the hook executes, 
   1437 num_inbox only returns the number of new messages it found 
   1438 during that poll period. While this can be useful, it doesn't 
   1439 fit my need. I'm wondering if someone know if there is a way 
   1440 to get the total unread messages in the inbox from within the 
   1441 after-poll hook?
   1442 
   1443 Thanks,
   1444 Whodevil
   1445 
   1446 From rlane@club.cc.cmu.edu  Sun Feb 13 21:08:52 2011
   1447 From: rlane@club.cc.cmu.edu (Rich Lane)
   1448 Date: Sun, 13 Feb 2011 21:08:52 -0500
   1449 Subject: [sup-talk] after-poll.rb variables
   1450 In-Reply-To: <1297646180-sup-4406@mail.offthecob.info>
   1451 References: <1297646180-sup-4406@mail.offthecob.info>
   1452 Message-ID: <1297648971-sup-3124@zyrg.net>
   1453 
   1454 Excerpts from whodevil's message of 2011-02-13 20:24:50 -0500:
   1455 > I'm wondering if someone know if there is a way to get the total
   1456 > unread messages in the inbox from within the after-poll hook?
   1457 
   1458 Index.num_results_for(labels: [:inbox, :unread])
   1459 
   1460 From support@plecavalier.com  Mon Feb 14 08:31:05 2011
   1461 From: support@plecavalier.com (Philippe LeCavalier)
   1462 Date: Mon, 14 Feb 2011 08:31:05 -0500
   1463 Subject: [sup-talk] after-poll.rb variables
   1464 In-Reply-To: <1297648971-sup-3124@zyrg.net>
   1465 References: <1297646180-sup-4406@mail.offthecob.info>
   1466 	<1297648971-sup-3124@zyrg.net>
   1467 Message-ID: <1297690119-sup-2506@plc.intranet.plecavalier.com>
   1468 
   1469 Excerpts from Rich Lane's message of Sun Feb 13 21:08:52 -0500 2011:
   1470 > Excerpts from whodevil's message of 2011-02-13 20:24:50 -0500:
   1471 > > I'm wondering if someone know if there is a way to get the total
   1472 > > unread messages in the inbox from within the after-poll hook?
   1473 > 
   1474 > Index.num_results_for(labels: [:inbox, :unread])
   1475 
   1476 This thread made me wonder...
   1477 Wouldn't it be handy if after-poll reported the labels before-add-poll.rb assigns?
   1478 -- 
   1479 Thanks,
   1480 Phil
   1481 
   1482 From groups@hjdivad.com  Mon Feb 14 13:11:40 2011
   1483 From: groups@hjdivad.com (David J. Hamilton)
   1484 Date: Mon, 14 Feb 2011 10:11:40 -0800
   1485 Subject: [sup-talk] 0/0...I made it
   1486 In-Reply-To: <1297630080-sup-3488@plc.intranet.plecavalier.com>
   1487 References: <1297630080-sup-3488@plc.intranet.plecavalier.com>
   1488 Message-ID: <1297706861-sup-7672@nyx.local>
   1489 
   1490 Philippe,
   1491 
   1492 Excerpts from Philippe LeCavalier's message of Sun Feb 13 12:57:30 -0800 2011:
   1493 > Well, despite not finding a truly efficient method for autolabeling my mail
   1494 > -I'm not worried I won't, I just haven't found it yet- after 30 some days of
   1495 > due deligence my inbox is for now back to 0.
   1496 
   1497 Have you tried writing a before-add-message hook?  If so, what problems have you
   1498 run in to with your attempts at autolabeling?
   1499 
   1500 Here's a snippet of mine:
   1501 
   1502   # before-add-message.rb
   1503 
   1504   def autolabel message, label 
   1505     log "Adding label [#{label}] to #{message.id}"
   1506     message.add_label label
   1507   end
   1508 
   1509   def autolabel_email message, regexes, label
   1510     regexes = [ regexes ] unless regexes.is_a? Enumerable
   1511     if message.recipients.any? do |recipient|
   1512           AccountManager.is_account_email? recipient.email and
   1513             regexes.any?{ |r| recipient.email =~ r }
   1514         end
   1515       autolabel message, label
   1516     end
   1517 
   1518     if    AccountManager.is_account_email? message.from.email and
   1519           regexes.any?{ |r| message.from.email =~ r }
   1520         
   1521       autolabel message, label
   1522     end
   1523   end
   1524 
   1525 
   1526   unless message.nil?
   1527     autolabel_email   message,    /ucdavis.edu$/i,     'ucdavis'
   1528     # ? lines similar to above, giving regexes or arrays of regexes and the
   1529     # desired label.
   1530   end
   1531 
   1532 -- 
   1533 med v?nlig h?lsning
   1534 David J. Hamilton
   1535 
   1536 From support@plecavalier.com  Mon Feb 14 14:18:38 2011
   1537 From: support@plecavalier.com (Philippe LeCavalier)
   1538 Date: Mon, 14 Feb 2011 14:18:38 -0500
   1539 Subject: [sup-talk] 0/0...I made it
   1540 In-Reply-To: <1297706861-sup-7672@nyx.local>
   1541 References: <1297630080-sup-3488@plc.intranet.plecavalier.com>
   1542 	<1297706861-sup-7672@nyx.local>
   1543 Message-ID: <1297707717-sup-3255@plc.intranet.plecavalier.com>
   1544 
   1545 Hi David.
   1546 Excerpts from David J. Hamilton's message of Mon Feb 14 13:11:40 -0500 2011:
   1547 > Philippe,
   1548 > 
   1549 > Excerpts from Philippe LeCavalier's message of Sun Feb 13 12:57:30 -0800 2011:
   1550 > > Well, despite not finding a truly efficient method for autolabeling my mail
   1551 > > -I'm not worried I won't, I just haven't found it yet- after 30 some days of
   1552 > > due deligence my inbox is for now back to 0.
   1553 > 
   1554 > Have you tried writing a before-add-message hook?  If so, what problems have you
   1555 > run in to with your attempts at autolabeling?
   1556 
   1557 Yeah. I've tried a bunch of options[1] -and still am-. Mostly, I don't understand what's going on during the functions and it's making things challenging to say the least.
   1558 
   1559 I really like the idea of matching email addresses using an external file as in the sup-wiki. As I mention in [1] simple operations ie adding/removing a single label works like a charm. But I want a model that will allow me to search in a very granular way. I want to break down my labels.
   1560 
   1561 |client
   1562 ||companyA
   1563 ||companyB
   1564 ||companyC
   1565 |||position
   1566 |||invoice
   1567 |||issues
   1568 |||reports
   1569 
   1570 |ff #friends and foe
   1571 ||wife,friends, family
   1572 |||contact
   1573 ||||persons name I don't like
   1574 
   1575 This way I can search for all 'company' then refine by 'position' 'invoice'...etc. Or go straight to a specific group or people 'position' ie all 'exec' or 'finance'. But in order to do that I need a before-add-message hook that will add multiple labels either in one invocation or multiple ones.
   1576 
   1577 It goes without saying, but I'll state it anyways, my desired model far exceeds my ability as non-programmer. However, I'm a logical and patience individual and I know that if I can find a working example I can 'take it from there'.
   1578 
   1579 At the moment, it seems my biggest problem is labeling an email more than once. I found a few posts/relevant discussions[2,3] regard sup and multiple labels but nothing has lead me down the correct path.
   1580 
   1581 ref:
   1582 [1] http://rubyforge.org/pipermail/sup-talk/2011-February/004504.html
   1583 [2] https://github.com/jacius/sup-filters/blob/master/filters.example.yaml
   1584 [3] http://www.mail-archive.com/sup-talk at rubyforge.org/msg03361.html
   1585 > Here's a snippet of mine:
   1586 > 
   1587 >   # before-add-message.rb
   1588 > 
   1589 >   def autolabel message, label 
   1590 >     log "Adding label [#{label}] to #{message.id}"
   1591 >     message.add_label label
   1592 >   end
   1593 > 
   1594 >   def autolabel_email message, regexes, label
   1595 >     regexes = [ regexes ] unless regexes.is_a? Enumerable
   1596 >     if message.recipients.any? do |recipient|
   1597 >           AccountManager.is_account_email? recipient.email and
   1598 >             regexes.any?{ |r| recipient.email =~ r }
   1599 >         end
   1600 >       autolabel message, label
   1601 >     end
   1602 > 
   1603 >     if    AccountManager.is_account_email? message.from.email and
   1604 >           regexes.any?{ |r| message.from.email =~ r }
   1605 >         
   1606 >       autolabel message, label
   1607 >     end
   1608 >   end
   1609 > 
   1610 > 
   1611 >   unless message.nil?
   1612 >     autolabel_email   message,    /ucdavis.edu$/i,     'ucdavis'
   1613 >     # ? lines similar to above, giving regexes or arrays of regexes and the
   1614 >     # desired label.
   1615 >   end
   1616 > 
   1617 -- 
   1618 Thanks,
   1619 Phil
   1620 
   1621 From hollunder@lavabit.com  Tue Feb 15 07:00:10 2011
   1622 From: hollunder@lavabit.com (Philipp)
   1623 Date: Tue, 15 Feb 2011 13:00:10 +0100
   1624 Subject: [sup-talk] sup-tweak-labels broken, and more
   1625 Message-ID: <1297770445-sup-8888@eris>
   1626 
   1627 Hi there.
   1628 I ran "sup-tweak-labels -r <label> --all-sources" to get rid of the
   1629 inbox labels and others. I had to run it multiple times until all
   1630 messages were processed. In my case it was three times for inbox and
   1631 around ten times for unread. I would have expected it to work on all
   1632 messages when run once.
   1633 
   1634 
   1635 
   1636 A different, small error:
   1637 $ sup-dump --help
   1638 Dumps all message state from the sup index to standard out. You can
   1639 later use sup-sync --restored --restore <filename> to recover the index.
   1640 
   1641 The --restored is superfluous and wrong.
   1642 
   1643 
   1644 
   1645 And another one, not sure where this comes from:
   1646 $ sup-import-dump --help
   1647 Error: version mismatch!
   1648 The sup executable is at version "git".
   1649 The sup libraries are at version "0.12.1".
   1650 
   1651 Your development environment may be picking up code from a
   1652 rubygems installation of sup.
   1653 
   1654 If you're running from git with a commandline like
   1655 
   1656   ruby -Ilib /usr/bin/sup-import-dump
   1657 
   1658 try this instead:
   1659 
   1660   RUBY_INVOCATION="ruby -Ilib" ruby -Ilib /usr/bin/sup-import-dump
   1661 
   1662   You can also try `gem uninstall sup` and removing all Sup rubygems.
   1663 
   1664 
   1665 
   1666 $ sup-cmd --help
   1667 <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- eventmachine (LoadError)
   1668         from <internal:lib/rubygems/custom_require>:29:in `require'
   1669         from /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/protocol.rb:1:in `<top (required)>'
   1670         from <internal:lib/rubygems/custom_require>:29:in `require'
   1671         from <internal:lib/rubygems/custom_require>:29:in `require'
   1672         from /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/client.rb:1:in `<top (required)>'
   1673         from <internal:lib/rubygems/custom_require>:29:in `require'
   1674         from <internal:lib/rubygems/custom_require>:29:in `require'
   1675         from /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup-cmd:5:in `<top (required)>'
   1676         from /usr/bin/sup-cmd:19:in `load'
   1677         from /usr/bin/sup-cmd:19:in `<main>'
   1678 
   1679 
   1680 
   1681 $ sup-server --help
   1682 <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- eventmachine (LoadError)
   1683         from <internal:lib/rubygems/custom_require>:29:in `require'
   1684         from /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/protocol.rb:1:in `<top (required)>'
   1685         from <internal:lib/rubygems/custom_require>:29:in `require'
   1686         from <internal:lib/rubygems/custom_require>:29:in `require'
   1687         from /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/server.rb:1:in `<top (required)>'
   1688         from <internal:lib/rubygems/custom_require>:29:in `require'
   1689         from <internal:lib/rubygems/custom_require>:29:in `require'
   1690         from /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup-server:5:in `<top (required)>'
   1691         from /usr/bin/sup-server:19:in `load'
   1692         from /usr/bin/sup-server:19:in `<main>'
   1693 
   1694 
   1695 
   1696 $ sup-sync-back --help
   1697 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup-sync-back:9:in `<top (required)>': not working yet (RuntimeError)
   1698         from /usr/bin/sup-sync-back:19:in `load'
   1699         from /usr/bin/sup-sync-back:19:in `<main>
   1700 
   1701 
   1702 
   1703 Seems like something went wrong in the update process, I don't quite know what.
   1704 Normal operation seems to work as expected, but all those errors worry me.
   1705 
   1706 
   1707 From support@plecavalier.com  Tue Feb 15 09:55:05 2011
   1708 From: support@plecavalier.com (Philippe LeCavalier)
   1709 Date: Tue, 15 Feb 2011 09:55:05 -0500
   1710 Subject: [sup-talk] More before-add hook issues
   1711 Message-ID: <1297780499-sup-4885@plc.intranet.plecavalier.com>
   1712 
   1713 Not certain what I did but the following used to work and now it doesn't. I have this:
   1714 
   1715 1 #bit of spam control
   1716 2 if message.raw_header =~ /X-Spam-Flag: YES/
   1717 3  message.add_label :spam
   1718 4  log "Marking message #{message.id} as spam, subject is '#{message.subj}'"
   1719 5 end
   1720 6
   1721 7 addressfile = File.open("/home/plecavalier/.sup/hooks/label.lists","r")
   1722 8 if ! addressfile.grep(/#{message.list_address.email}/).empty?
   1723 9   message.add_label :lists
   1724 10 end
   1725 
   1726 in before-add-message.rb. At the moment that is all I have in there.
   1727 
   1728 And this:
   1729 
   1730 cups at easysw.com
   1731 samba at lists.samba.org
   1732 rsync at lists.samba.org
   1733 offlineimap-project at lists.alioth.debian.org
   1734 bind-users at lists.isc.org
   1735 
   1736 in ~/.sup/hooks/label.lists.
   1737 
   1738 If I state this: {message.list_address.email}
   1739 
   1740 I get this:
   1741 [Tue Feb 15 09:32:21 -0500 2011] hook: error running /home/plecavalier/.sup/hooks/before-add-message.rb: undefined method `email' for nil:NilClass
   1742 [Tue Feb 15 09:32:21 -0500 2011] hook: /home/plecavalier/.sup/hooks/before-add-message.rb:8:in `__run'
   1743 
   1744 As you can see above line 8 is {message.list_address.email} in this case. Unless, of course, '8' has nothing to do with the line number!?
   1745 
   1746 If I state this: {message.list_address} all mail -not just the from the addresses stated in the file- are labeled 'lists'.
   1747 
   1748 I looked at the post[1] where Hamish helped me by suggesting I state message.list_address.email to reference the list-post in the header and it worked fine at that time. I continued to play aroudn with things to try and get the hook to not only add 'lists' but add the relevant list name as well as remove the 'inbox' label. That didn't work so I tried going back to basics and just have the hook label the relevant mails as 'lists' and now I can't even do that.
   1749 
   1750 What Have I done to make this not work anymore?
   1751 
   1752 ref
   1753 [1]http://rubyforge.org/pipermail/sup-talk/2011-February/004495.html
   1754 -- 
   1755 Thanks,
   1756 Phil
   1757 
   1758 From support@plecavalier.com  Tue Feb 15 10:26:48 2011
   1759 From: support@plecavalier.com (Philippe LeCavalier)
   1760 Date: Tue, 15 Feb 2011 10:26:48 -0500
   1761 Subject: [sup-talk] renaming label woes
   1762 Message-ID: <1297782785-sup-2959@plc.intranet.plecavalier.com>
   1763 
   1764 I changed my mind on a certain label I had setup and wanted to rename it. I first looked at using sup-tweak-labels but opted against that tool since I couldn't figure out how to limit add/remove to a specific set of query results. Instead I loaded sup, performed a search for that label, did !!, T, =, l  and -FF  ff (FF being the label in question). I refreshed the screen to see the changes(@) and the old label(FF) reappeared. I thought it might be some sort of case sensitivity thing so I then did: !!, T, =, l, -FF <enter> and =, l, ff <enter>. When I refreshed that time the change appeared to take. So I closed the buffer.
   1765 
   1766 Now when I search for 'ff' I only get a few threads whereas previously I had over 800. Interestingly enough, If I search by from: or subject...etc. of which I know I'll get a hit within that label the label 'ff' is there as expected. So why can't I search for 'ff' anymore? I'm guessing something with the indexing has gone a-scew. I remembered seeing "Optimizing index..." when looking to do this with sup-tweak-labels so I went ahead and did a dry-run but that didn't help the situation -maybe I shouldn't have done --dry-run? Or maybe I'm way off here ;-)
   1767 
   1768 ...help.
   1769 -- 
   1770 Thanks,
   1771 Phil
   1772 
   1773 From support@plecavalier.com  Tue Feb 15 10:37:37 2011
   1774 From: support@plecavalier.com (Philippe LeCavalier)
   1775 Date: Tue, 15 Feb 2011 10:37:37 -0500
   1776 Subject: [sup-talk] Label Display; Sorting Alphabetically
   1777 Message-ID: <1297784079-sup-7440@plc.intranet.plecavalier.com>
   1778 
   1779 Hi All. Just wondering if there has ever been any consideration to sorting labels alphabetically. I'm assuming the way sup displays the labels is purely esthetic's?
   1780 
   1781 -- 
   1782 Thanks,
   1783 Phil
   1784 
   1785 From hollunder@lavabit.com  Tue Feb 15 11:43:13 2011
   1786 From: hollunder@lavabit.com (=?utf-8?q?Philipp_=C3=9Cberbacher?=)
   1787 Date: Tue, 15 Feb 2011 17:43:13 +0100
   1788 Subject: [sup-talk] renaming label woes
   1789 In-Reply-To: <1297782785-sup-2959@plc.intranet.plecavalier.com>
   1790 References: <1297782785-sup-2959@plc.intranet.plecavalier.com>
   1791 Message-ID: <1297788106-sup-5771@eris>
   1792 
   1793 Excerpts from Philippe LeCavalier's message of 2011-02-15 16:26:48 +0100:
   1794 > I changed my mind on a certain label I had setup and wanted to rename it. I first looked at using sup-tweak-labels but opted against that tool since I couldn't figure out how to limit add/remove to a specific set of query results. Instead I loaded sup, performed a search for that label, did !!, T, =, l  and -FF  ff (FF being the label in question). I refreshed the screen to see the changes(@) and the old label(FF) reappeared. I thought it might be some sort of case sensitivity thing so I then did: !!, T, =, l, -FF <enter> and =, l, ff <enter>. When I refreshed that time the change appeared to take. So I closed the buffer.
   1795 > 
   1796 > Now when I search for 'ff' I only get a few threads whereas previously I had over 800. Interestingly enough, If I search by from: or subject...etc. of which I know I'll get a hit within that label the label 'ff' is there as expected. So why can't I search for 'ff' anymore? I'm guessing something with the indexing has gone a-scew. I remembered seeing "Optimizing index..." when looking to do this with sup-tweak-labels so I went ahead and did a dry-run but that didn't help the situation -maybe I shouldn't have done --dry-run? Or maybe I'm way off here ;-)
   1797 > 
   1798 > ...help.
   1799 
   1800 My experience with sup-tweak-labels today suggests that each run it gets
   1801 only part of the messages. Maybe your problem is similar. Try to search
   1802 for the old labels or try 'L', Enter to see all existing labels.
   1803 
   1804 
   1805 From support@plecavalier.com  Tue Feb 15 14:01:38 2011
   1806 From: support@plecavalier.com (Philippe LeCavalier)
   1807 Date: Tue, 15 Feb 2011 14:01:38 -0500
   1808 Subject: [sup-talk] renaming label woes
   1809 In-Reply-To: <1297788106-sup-5771@eris>
   1810 References: <1297782785-sup-2959@plc.intranet.plecavalier.com>
   1811 	<1297788106-sup-5771@eris>
   1812 Message-ID: <1297796479-sup-5530@plc.intranet.plecavalier.com>
   1813 
   1814 Excerpts from Philipp ?berbacher's message of Tue Feb 15 11:43:13 -0500 2011:
   1815 > Excerpts from Philippe LeCavalier's message of 2011-02-15 16:26:48 +0100:
   1816 > > I changed my mind on a certain label I had setup and wanted to rename it. I first looked at using sup-tweak-labels but opted against that tool since I couldn't figure out how to limit add/remove to a specific set of query results. Instead I loaded sup, performed a search for that label, did !!, T, =, l  and -FF  ff (FF being the label in question). I refreshed the screen to see the changes(@) and the old label(FF) reappeared. I thought it might be some sort of case sensitivity thing so I then did: !!, T, =, l, -FF <enter> and =, l, ff <enter>. When I refreshed that time the change appeared to take. So I closed the buffer.
   1817 > > 
   1818 > > Now when I search for 'ff' I only get a few threads whereas previously I had over 800. Interestingly enough, If I search by from: or subject...etc. of which I know I'll get a hit within that label the label 'ff' is there as expected. So why can't I search for 'ff' anymore? I'm guessing something with the indexing has gone a-scew. I remembered seeing "Optimizing index..." when looking to do this with sup-tweak-labels so I went ahead and did a dry-run but that didn't help the situation -maybe I shouldn't have done --dry-run? Or maybe I'm way off here ;-)
   1819 > > 
   1820 > > ...help.
   1821 > 
   1822 > My experience with sup-tweak-labels today suggests that each run it gets
   1823 > only part of the messages. Maybe your problem is similar. Try to search
   1824 > for the old labels or try 'L', Enter to see all existing labels.
   1825 > 
   1826 As above, I did that and it only returns a few(11) threads. Doing 'L' and choosing FF or ff shows the same msgs, 11 of them. Still, searching for a thread for which I know should be labeled with that returns lots of threads, all properly labeled. Really odd. And broken.
   1827 -- 
   1828 Thanks,
   1829 Phil
   1830 
   1831 From hollunder@lavabit.com  Tue Feb 15 18:39:11 2011
   1832 From: hollunder@lavabit.com (=?utf-8?q?Philipp_=C3=9Cberbacher?=)
   1833 Date: Wed, 16 Feb 2011 00:39:11 +0100
   1834 Subject: [sup-talk] renaming label woes
   1835 In-Reply-To: <1297796479-sup-5530@plc.intranet.plecavalier.com>
   1836 References: <1297782785-sup-2959@plc.intranet.plecavalier.com>
   1837 	<1297788106-sup-5771@eris>
   1838 	<1297796479-sup-5530@plc.intranet.plecavalier.com>
   1839 Message-ID: <1297813032-sup-3201@eris>
   1840 
   1841 Excerpts from Philippe LeCavalier's message of 2011-02-15 20:01:38 +0100:
   1842 > Excerpts from Philipp ?berbacher's message of Tue Feb 15 11:43:13 -0500 2011:
   1843 > > Excerpts from Philippe LeCavalier's message of 2011-02-15 16:26:48 +0100:
   1844 > > > I changed my mind on a certain label I had setup and wanted to rename it. I first looked at using sup-tweak-labels but opted against that tool since I couldn't figure out how to limit add/remove to a specific set of query results. Instead I loaded sup, performed a search for that label, did !!, T, =, l  and -FF  ff (FF being the label in question). I refreshed the screen to see the changes(@) and the old label(FF) reappeared. I thought it might be some sort of case sensitivity thing so I then did: !!, T, =, l, -FF <enter> and =, l, ff <enter>. When I refreshed that time the change appeared to take. So I closed the buffer.
   1845 > > > 
   1846 > > > Now when I search for 'ff' I only get a few threads whereas previously I had over 800. Interestingly enough, If I search by from: or subject...etc. of which I know I'll get a hit within that label the label 'ff' is there as expected. So why can't I search for 'ff' anymore? I'm guessing something with the indexing has gone a-scew. I remembered seeing "Optimizing index..." when looking to do this with sup-tweak-labels so I went ahead and did a dry-run but that didn't help the situation -maybe I shouldn't have done --dry-run? Or maybe I'm way off here ;-)
   1847 > > > 
   1848 > > > ...help.
   1849 > > 
   1850 > > My experience with sup-tweak-labels today suggests that each run it gets
   1851 > > only part of the messages. Maybe your problem is similar. Try to search
   1852 > > for the old labels or try 'L', Enter to see all existing labels.
   1853 > > 
   1854 > As above, I did that and it only returns a few(11) threads. Doing 'L' and choosing FF or ff shows the same msgs, 11 of them. Still, searching for a thread for which I know should be labeled with that returns lots of threads, all properly labeled. Really odd. And broken.
   1855 
   1856 This sounds very broken indeed. Which sup version is this? I know as
   1857 little about ruby/sup as you do, but others might find the information
   1858 useful. Good luck.
   1859 
   1860 
   1861 From tero@tilus.net  Wed Feb 16 04:08:04 2011
   1862 From: tero@tilus.net (Tero Tilus)
   1863 Date: Wed, 16 Feb 2011 11:08:04 +0200
   1864 Subject: [sup-talk] Label Display; Sorting Alphabetically
   1865 In-Reply-To: <1297784079-sup-7440@plc.intranet.plecavalier.com>
   1866 References: <1297784079-sup-7440@plc.intranet.plecavalier.com>
   1867 Message-ID: <1297847031-sup-6835@tilus.net>
   1868 
   1869 Philippe LeCavalier, 2011-02-15 17:37:
   1870 > Hi All. Just wondering if there has ever been any consideration to
   1871 > sorting labels alphabetically. I'm assuming the way sup displays the
   1872 > labels is purely esthetic's?
   1873 
   1874 I assume you are talking about thread index mode.  Judging from the
   1875 code label order looks purely incidental.  And I don't remember there
   1876 being any discussion on label sorting.  Dump sorts the labels though,
   1877 to ease keeping dump in vcs I guess.
   1878 
   1879 -- 
   1880 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
   1881 
   1882 From tero@tilus.net  Wed Feb 16 04:31:17 2011
   1883 From: tero@tilus.net (Tero Tilus)
   1884 Date: Wed, 16 Feb 2011 11:31:17 +0200
   1885 Subject: [sup-talk] More before-add hook issues
   1886 In-Reply-To: <1297780499-sup-4885@plc.intranet.plecavalier.com>
   1887 References: <1297780499-sup-4885@plc.intranet.plecavalier.com>
   1888 Message-ID: <1297848161-sup-8178@tilus.net>
   1889 
   1890 Philippe LeCavalier, 2011-02-15 16:55:
   1891 > 8 if ! addressfile.grep(/#{message.list_address.email}/).empty?
   1892 
   1893 Try
   1894 
   1895 if message.list_address && !addressfile.grep(/#{message.list_address.email}/).empty?
   1896 
   1897 -- 
   1898 Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
   1899 
   1900 From cedwards@zelut.org  Wed Feb 16 01:42:46 2011
   1901 From: cedwards@zelut.org (Christer Edwards)
   1902 Date: Tue, 15 Feb 2011 23:42:46 -0700
   1903 Subject: [sup-talk] Error: no "view" mailcap rules found for type
   1904 	"text/plain"
   1905 Message-ID: <1297838462-sup-8452@daphne>
   1906 
   1907 I finally managed to find the run-mailcap binary (mime-types package),
   1908 but I'm still getting issues with rendering HTML email properly. I get
   1909 the error in the subject line as well as another (can't reproduce
   1910 without quitting sup).
   1911 
   1912 I wonder if anyone might share their .mailcap file, or suggest any
   1913 alternative methods for stripping out the nonsense HTML markup and just
   1914 leaving me with plain text.
   1915 
   1916 Thank you,
   1917 Christer
   1918 -------------- next part --------------
   1919 A non-text attachment was scrubbed...
   1920 Name: signature.asc
   1921 Type: application/pgp-signature
   1922 Size: 490 bytes
   1923 Desc: not available
   1924 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110215/d0582513/attachment-0001.bin>
   1925 
   1926 From support@plecavalier.com  Wed Feb 16 08:33:32 2011
   1927 From: support@plecavalier.com (Philippe LeCavalier)
   1928 Date: Wed, 16 Feb 2011 08:33:32 -0500
   1929 Subject: [sup-talk] Label Display; Sorting Alphabetically
   1930 In-Reply-To: <1297847031-sup-6835@tilus.net>
   1931 References: <1297784079-sup-7440@plc.intranet.plecavalier.com>
   1932 	<1297847031-sup-6835@tilus.net>
   1933 Message-ID: <1297863023-sup-4209@plc.intranet.plecavalier.com>
   1934 
   1935 Hi Tero.
   1936 Excerpts from Tero Tilus's message of Wed Feb 16 04:08:04 -0500 2011:
   1937 > Philippe LeCavalier, 2011-02-15 17:37:
   1938 > > Hi All. Just wondering if there has ever been any consideration to
   1939 > > sorting labels alphabetically. I'm assuming the way sup displays the
   1940 > > labels is purely esthetic's?
   1941 > 
   1942 > I assume you are talking about thread index mode.
   1943 No. Any mode really. Even in search mode they're random.
   1944 
   1945 >Judging from the code label order looks purely incidental.  And I don't remember there
   1946 > being any discussion on label sorting.
   1947 Just putting it out there. When visialy scanning a large list it seems logical to me that one would want the labels in some
   1948 order...Randomly displaying them looks messy and chaotic. Just my 2 cents.
   1949 
   1950 >Dump sorts the labels though,
   1951 > to ease keeping dump in vcs I guess.
   1952 I could see that being a must, yes. 
   1953 -- 
   1954 Thanks,
   1955 Phil
   1956 
   1957 From support@plecavalier.com  Wed Feb 16 08:39:41 2011
   1958 From: support@plecavalier.com (Philippe LeCavalier)
   1959 Date: Wed, 16 Feb 2011 08:39:41 -0500
   1960 Subject: [sup-talk] renaming label woes
   1961 In-Reply-To: <1297813032-sup-3201@eris>
   1962 References: <1297782785-sup-2959@plc.intranet.plecavalier.com>
   1963 	<1297788106-sup-5771@eris>
   1964 	<1297796479-sup-5530@plc.intranet.plecavalier.com>
   1965 	<1297813032-sup-3201@eris>
   1966 Message-ID: <1297863503-sup-7205@plc.intranet.plecavalier.com>
   1967 
   1968 Hi Philipp.
   1969 Excerpts from Philipp ?berbacher's message of Tue Feb 15 18:39:11 -0500 2011:
   1970 > Excerpts from Philippe LeCavalier's message of 2011-02-15 20:01:38 +0100:
   1971 > > Excerpts from Philipp ?berbacher's message of Tue Feb 15 11:43:13 -0500 2011:
   1972 > > > Excerpts from Philippe LeCavalier's message of 2011-02-15 16:26:48 +0100:
   1973 > > > > I changed my mind on a certain label I had setup and wanted to rename it. I first looked at using sup-tweak-labels but opted against that tool since I couldn't figure out how to limit add/remove to a specific set of query results. Instead I loaded sup, performed a search for that label, did !!, T, =, l  and -FF  ff (FF being the label in question). I refreshed the screen to see the changes(@) and the old label(FF) reappeared. I thought it might be some sort of case sensitivity thing so I then did: !!, T, =, l, -FF <enter> and =, l, ff <enter>. When I refreshed that time the change appeared to take. So I closed the buffer.
   1974 > > > > 
   1975 > > > > Now when I search for 'ff' I only get a few threads whereas previously I had over 800. Interestingly enough, If I search by from: or subject...etc. of which I know I'll get a hit within that label the label 'ff' is there as expected. So why can't I search for 'ff' anymore? I'm guessing something with the indexing has gone a-scew. I remembered seeing "Optimizing index..." when looking to do this with sup-tweak-labels so I went ahead and did a dry-run but that didn't help the situation -maybe I shouldn't have done --dry-run? Or maybe I'm way off here ;-)
   1976 > > > > 
   1977 > > > > ...help.
   1978 > > > 
   1979 > > > My experience with sup-tweak-labels today suggests that each run it gets
   1980 > > > only part of the messages. Maybe your problem is similar. Try to search
   1981 > > > for the old labels or try 'L', Enter to see all existing labels.
   1982 > > > 
   1983 > > As above, I did that and it only returns a few(11) threads. Doing 'L' and choosing FF or ff shows the same msgs, 11 of them. Still, searching for a thread for which I know should be labeled with that returns lots of threads, all properly labeled. Really odd. And broken.
   1984 > 
   1985 > This sounds very broken indeed. Which sup version is this? I know as
   1986 > little about ruby/sup as you do, but others might find the information
   1987 > useful. Good luck.
   1988 > 
   1989 Debian testing Squeeze/Wheezy w/Sup 0.12.1
   1990 -- 
   1991 Thanks,
   1992 Phil
   1993 
   1994 From sup@zevv.nl  Wed Feb 16 08:43:10 2011
   1995 From: sup@zevv.nl (Ico Doornekamp)
   1996 Date: Wed, 16 Feb 2011 14:43:10 +0100
   1997 Subject: [sup-talk] Sup crash at startup
   1998 Message-ID: <1297863697-sup-612@pruts.nl>
   1999 
   2000 Out of nowhere my sup started crasing on me. Running latest version from git.
   2001 Any ideas, any more info I can provide to diagnose this problem ?
   2002 
   2003 Thanks,
   2004 
   2005 Ico
   2006 
   2007 
   2008 [Wed Feb 16 14:31:56 +0100 2011] ERROR: oh crap, an exception                                                                  
   2009 ----------------------------------------------------------------
   2010 I'm very sorry. It seems that an error occurred in Sup. Please
   2011 accept my sincere apologies. Please submit the contents of
   2012 /home/ico/.sup/exception-log.txt and a brief report of the
   2013 circumstances to http://masanjin.net/sup-bugs/ so that I might
   2014 address this problem. Thank you!
   2015 
   2016 Sincerely,
   2017 William
   2018 ----------------------------------------------------------------
   2019 --- RuntimeError from thread: load threads for thread-index-mode
   2020 
   2021 ./lib/sup/index.rb:556:in `find_docid'
   2022 ./lib/sup/index.rb:561:in `find_doc'
   2023 ./lib/sup/index.rb:571:in `get_entry'
   2024 ./lib/sup/index.rb:201:in `build_message'
   2025 /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
   2026 ./lib/sup/index.rb:580:in `synchronize'
   2027 ./lib/sup/index.rb:201:in `build_message'
   2028 ./lib/sup/index.rb:195
   2029 ./lib/sup/thread.rb:349:in `call'
   2030 ./lib/sup/thread.rb:349:in `load_thread_for_message'
   2031 ./lib/sup/index.rb:195:in `each_message_in_thread_for'
   2032 ./lib/sup/index.rb:195:in `each'
   2033 ./lib/sup/index.rb:195:in `each_message_in_thread_for'
   2034 ./lib/sup/thread.rb:347:in `load_thread_for_message'
   2035 ./lib/sup/thread.rb:339:in `load_n_threads'
   2036 ./lib/sup/index.rb:156:in `each_id_by_date'
   2037 ./lib/sup/index.rb:251:in `each_id'
   2038 ./lib/sup/index.rb:251:in `each'
   2039 ./lib/sup/index.rb:251:in `each_id'
   2040 ./lib/sup/index.rb:156:in `each_id_by_date'
   2041 ./lib/sup/thread.rb:334:in `load_n_threads'
   2042 ./lib/sup/modes/thread-index-mode.rb:640:in `__unprotected_load_n_threads'
   2043 (eval):12:in `load_n_threads'
   2044 ./lib/sup/modes/thread-index-mode.rb:624:in `load_n_threads_background'
   2045 ./lib/sup.rb:78:in `reporting_thread'
   2046 ./lib/sup.rb:76:in `initialize'
   2047 ./lib/sup.rb:76:in `new'
   2048 ./lib/sup.rb:76:in `reporting_thread'
   2049 ./lib/sup/modes/thread-index-mode.rb:623:in `load_n_threads_background'
   2050 ./lib/sup/modes/thread-index-mode.rb:694:in `__unprotected_load_threads'
   2051 (eval):12:in `load_threads'
   2052 bin/sup:223
   2053 
   2054 -- 
   2055 :wq
   2056 ^X^Cy^K^X^C^C^C^C
   2057 
   2058 From support@plecavalier.com  Wed Feb 16 09:07:19 2011
   2059 From: support@plecavalier.com (Philippe LeCavalier)
   2060 Date: Wed, 16 Feb 2011 09:07:19 -0500
   2061 Subject: [sup-talk] Error: no "view" mailcap rules found for type
   2062 	"text/plain"
   2063 In-Reply-To: <1297838462-sup-8452@daphne>
   2064 References: <1297838462-sup-8452@daphne>
   2065 Message-ID: <1297865037-sup-9782@plc.intranet.plecavalier.com>
   2066 
   2067 Hi Christer.
   2068 Excerpts from Christer Edwards's message of Wed Feb 16 01:42:46 -0500 2011:
   2069 [...] 
   2070 > I wonder if anyone might share their .mailcap file
   2071 Here's mine. I just started building it but it's something...BTW Did you look into the mime-decode.rb hook?
   2072 
   2073 cat ../../.mailcap
   2074 application/zip; squeeze '%s'
   2075 application/pdf; /usr/bin/xpdf '%s'
   2076 application/msexcel; gnumeric '%s'
   2077 application/html; firefox '%s'
   2078 application/vnd.openxmlformats-officedocument.wordprocessingml.document; abiword '%s'
   2079 
   2080 Not certain the last one is 'proper' but it works.
   2081 -- 
   2082 Thanks,
   2083 Phil
   2084 
   2085 From support@plecavalier.com  Wed Feb 16 09:35:00 2011
   2086 From: support@plecavalier.com (Philippe LeCavalier)
   2087 Date: Wed, 16 Feb 2011 09:35:00 -0500
   2088 Subject: [sup-talk] More before-add hook issues
   2089 In-Reply-To: <1297848161-sup-8178@tilus.net>
   2090 References: <1297780499-sup-4885@plc.intranet.plecavalier.com>
   2091 	<1297848161-sup-8178@tilus.net>
   2092 Message-ID: <1297865749-sup-514@plc.intranet.plecavalier.com>
   2093 
   2094 Hi Tero.
   2095 Excerpts from Tero Tilus's message of Wed Feb 16 04:31:17 -0500 2011:
   2096 > Philippe LeCavalier, 2011-02-15 16:55:
   2097 > > 8 if ! addressfile.grep(/#{message.list_address.email}/).empty?
   2098 > 
   2099 > Try
   2100 > 
   2101 > if message.list_address && !addressfile.grep(/#{message.list_address.email}/).empty?
   2102 > 
   2103 It worked! Thanks Tero. Just for everyone's benefit this is what the complete rule looks like:
   2104 
   2105   7   if message.list_address &&
   2106   8   addressfile = File.open("/home/plecavalier/.sup/hooks/label.list","r")
   2107   9   !addressfile.grep(/#{message.list_address.email}/).empty?
   2108  10  message.add_label :list
   2109  11 end
   2110 
   2111 Tero, I'm assuming this is what you expected me to do!? Would I be able to add more functions:
   2112 
   2113 i) read a list of addresses in a second file ie label.list.sup against list-post header from each list and label accordingly ie if it's sup-talk at rubyforge assign label: sup if it's cups->cups...and so on?
   2114 ii) lastly, remove :inbox
   2115 
   2116 I'm asking in that fashion because in my experience thus far if I go and build rules for each list to:
   2117 a) label :list
   2118 b) label :<list_name>
   2119 c) -label :inbox
   2120 d) wash, rinse and repeat for each list
   2121 
   2122 the hook dies. So it's apparent to me that all functions need to occur in the same invocation. ie multiple, separate functions on the same msg fails. I found a post somewhere(which I can't seem to find anymore) where someone stated multiple invocations on the same msg isn't possible but there must be a workaround...Someone must be applying more than one label to a msg at the same time. Isn't there someone out there succeeding at this?
   2123 
   2124 
   2125 -- 
   2126 Thanks,
   2127 Phil
   2128 
   2129 From cedwards@zelut.org  Wed Feb 16 09:46:49 2011
   2130 From: cedwards@zelut.org (Christer Edwards)
   2131 Date: Wed, 16 Feb 2011 07:46:49 -0700
   2132 Subject: [sup-talk] Error: no "view" mailcap rules found for type
   2133 	"text/plain"
   2134 In-Reply-To: <1297865037-sup-9782@plc.intranet.plecavalier.com>
   2135 References: <1297838462-sup-8452@daphne>
   2136 	<1297865037-sup-9782@plc.intranet.plecavalier.com>
   2137 Message-ID: <1297867503-sup-1594@daphne>
   2138 
   2139 Excerpts from Philippe LeCavalier's message of 2011-02-16 07:07:19 -0700:
   2140 > Here's mine. I just started building it but it's something...BTW Did you look into the mime-decode.rb hook?
   2141 > 
   2142 > cat ../../.mailcap
   2143 > application/zip; squeeze '%s'
   2144 > application/pdf; /usr/bin/xpdf '%s'
   2145 > application/msexcel; gnumeric '%s'
   2146 > application/html; firefox '%s'
   2147 > application/vnd.openxmlformats-officedocument.wordprocessingml.document; abiword '%s'
   2148 > 
   2149 > Not certain the last one is 'proper' but it works.
   2150 
   2151 I tried adding this contents to my file, but I'm still getting the error when selecting an html email attachment:
   2152 
   2153 Couldn't execute view command, viewing as text.
   2154 
   2155 In response to another suggestion, I have not tried the mime hook. I haven't quite been able to make sense of it yet.
   2156 
   2157 Christer
   2158 -------------- next part --------------
   2159 A non-text attachment was scrubbed...
   2160 Name: signature.asc
   2161 Type: application/pgp-signature
   2162 Size: 490 bytes
   2163 Desc: not available
   2164 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110216/23b400c7/attachment.bin>
   2165 
   2166 From support@plecavalier.com  Wed Feb 16 10:28:46 2011
   2167 From: support@plecavalier.com (Philippe LeCavalier)
   2168 Date: Wed, 16 Feb 2011 10:28:46 -0500
   2169 Subject: [sup-talk] Error: no "view" mailcap rules found for type
   2170 	"text/plain"
   2171 In-Reply-To: <1297867503-sup-1594@daphne>
   2172 References: <1297838462-sup-8452@daphne>
   2173 	<1297865037-sup-9782@plc.intranet.plecavalier.com>
   2174 	<1297867503-sup-1594@daphne>
   2175 Message-ID: <1297868379-sup-4270@plc.intranet.plecavalier.com>
   2176 
   2177 Hi Christer.
   2178 Excerpts from Christer Edwards's message of Wed Feb 16 09:46:49 -0500 2011:
   2179 > Excerpts from Philippe LeCavalier's message of 2011-02-16 07:07:19 -0700:
   2180 > > Here's mine. I just started building it but it's something...BTW Did you look into the mime-decode.rb hook?
   2181 > > 
   2182 > > cat ../../.mailcap
   2183 > > application/zip; squeeze '%s'
   2184 > > application/pdf; /usr/bin/xpdf '%s'
   2185 > > application/msexcel; gnumeric '%s'
   2186 > > application/html; firefox '%s'
   2187 > > application/vnd.openxmlformats-officedocument.wordprocessingml.document; abiword '%s'
   2188 > > 
   2189 > > Not certain the last one is 'proper' but it works.
   2190 > 
   2191 > I tried adding this contents to my file, but I'm still getting the error when selecting an html email attachment:
   2192 > 
   2193 > Couldn't execute view command, viewing as text.
   2194 I think sup always tries to display HTML inline but without the mime-decode.rb hook it will fail(just a guess). Despite the error the
   2195 mailcap entry for firefox(assuming you have firefox, if not substitute for sensible-browser) should open.
   2196 
   2197 All mime-decode does is make use of w3m to display the html encoding inline. So you'll need the w3m package for that to work. 
   2198 > Christer
   2199 -- 
   2200 Thanks,
   2201 Phil
   2202 
   2203 From marka@pobox.com  Wed Feb 16 11:26:24 2011
   2204 From: marka@pobox.com (Mark Alexander)
   2205 Date: Wed, 16 Feb 2011 11:26:24 -0500
   2206 Subject: [sup-talk] Error: no "view" mailcap rules found for type
   2207 	"text/plain"
   2208 In-Reply-To: <1297838462-sup-8452@daphne>
   2209 References: <1297838462-sup-8452@daphne>
   2210 Message-ID: <1297873545-sup-8957@bloovis.org>
   2211 
   2212 Excerpts from Christer Edwards's message of Wed Feb 16 01:42:46 -0500 2011:
   2213 > I wonder if anyone might share their .mailcap file, or suggest any
   2214 > alternative methods for stripping out the nonsense HTML markup and just
   2215 > leaving me with plain text.
   2216 
   2217 I use this line in my .mailcap to run w3m on html attachments:
   2218 
   2219 text/html; /usr/bin/w3m -T text/html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html
   2220 
   2221 From cedwards@zelut.org  Wed Feb 16 11:39:56 2011
   2222 From: cedwards@zelut.org (Christer Edwards)
   2223 Date: Wed, 16 Feb 2011 09:39:56 -0700
   2224 Subject: [sup-talk] Error: no "view" mailcap rules found for type
   2225 	"text/plain"
   2226 In-Reply-To: <1297873545-sup-8957@bloovis.org>
   2227 References: <1297838462-sup-8452@daphne> <1297873545-sup-8957@bloovis.org>
   2228 Message-ID: <1297874319-sup-3235@daphne>
   2229 
   2230 Excerpts from Mark Alexander's message of 2011-02-16 09:26:24 -0700:
   2231 > Excerpts from Christer Edwards's message of Wed Feb 16 01:42:46 -0500 2011:
   2232 > > I wonder if anyone might share their .mailcap file, or suggest any
   2233 > > alternative methods for stripping out the nonsense HTML markup and just
   2234 > > leaving me with plain text.
   2235 > 
   2236 > I use this line in my .mailcap to run w3m on html attachments:
   2237 > 
   2238 > text/html; /usr/bin/w3m -T text/html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html
   2239 
   2240 This works! I'm not used to w3m, but at least it renders things
   2241 properly. Maybe I'll tinker with some other options (lynx, etc).
   2242 
   2243 Thanks for putting me on the right track!
   2244 
   2245 Christer
   2246 -------------- next part --------------
   2247 A non-text attachment was scrubbed...
   2248 Name: signature.asc
   2249 Type: application/pgp-signature
   2250 Size: 490 bytes
   2251 Desc: not available
   2252 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110216/eda07e8c/attachment.bin>
   2253 
   2254 From cedwards@zelut.org  Wed Feb 16 12:34:39 2011
   2255 From: cedwards@zelut.org (Christer Edwards)
   2256 Date: Wed, 16 Feb 2011 10:34:39 -0700
   2257 Subject: [sup-talk] tiny patch re: editor (vim)
   2258 Message-ID: <1297876563-sup-2003@daphne>
   2259 
   2260 I've always been told that email text length should be limited to 72
   2261 characters. I did some more research this morning in preparation for
   2262 sharing this and I find that according to RFC 2822 it should be 78
   2263 characters. I then continue to find more and more discussion about how
   2264 it "doesn't matter" or "use whatever you want".
   2265 
   2266 In any case, below is a tiny patch to configure vim to wrap text at 72
   2267 characters. This patch is specific to the initial file that is used at
   2268 sup-config, but the same line could be edited in your local
   2269 .sup/config.yaml.
   2270 
   2271 In any case, see the example below to configure your textwidth.
   2272 
   2273 
   2274 --- lib/sup.rb  2011-02-16 09:08:19.373333347 -0700
   2275 +++ lib/sup.rb.new  2011-02-16 09:20:07.816666681 -0700
   2276 @@ -289,7 +289,7 @@
   2277              :gpgkey => ""
   2278            }
   2279          },
   2280 -        :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell spelllang=en_us' -c 'set filetype=mail'",
   2281 +        :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell spelllang=en_us' -c 'set filetype=mail' -c 'set textwidth=72'",
   2282          :thread_by_subject => false,
   2283          :edit_signature => false,
   2284          :ask_for_from => false,
   2285 -------------- next part --------------
   2286 A non-text attachment was scrubbed...
   2287 Name: signature.asc
   2288 Type: application/pgp-signature
   2289 Size: 490 bytes
   2290 Desc: not available
   2291 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110216/a13199ce/attachment-0001.bin>
   2292 
   2293 From matiasaguirre@gmail.com  Wed Feb 16 13:35:35 2011
   2294 From: matiasaguirre@gmail.com (Matias Aguirre)
   2295 Date: Wed, 16 Feb 2011 16:35:35 -0200
   2296 Subject: [sup-talk] tiny patch re: editor (vim)
   2297 In-Reply-To: <1297876563-sup-2003@daphne>
   2298 References: <1297876563-sup-2003@daphne>
   2299 Message-ID: <1297881187-sup-7241@mintaka>
   2300 
   2301 Regardless I prefer 72 chars line width, this is more a personal choice
   2302 than a forced standard, instead I suggest you to put this to your .vimrc
   2303 
   2304 autocmd FileType mail set textwidth=72
   2305 
   2306 Will have the same effect.
   2307 
   2308 Cheers,
   2309 Mat?as
   2310 
   2311 Excerpts from Christer Edwards's message of Wed Feb 16 15:34:39 -0200 2011:
   2312 > I've always been told that email text length should be limited to 72
   2313 > characters. I did some more research this morning in preparation for
   2314 > sharing this and I find that according to RFC 2822 it should be 78
   2315 > characters. I then continue to find more and more discussion about how
   2316 > it "doesn't matter" or "use whatever you want".
   2317 > 
   2318 > In any case, below is a tiny patch to configure vim to wrap text at 72
   2319 > characters. This patch is specific to the initial file that is used at
   2320 > sup-config, but the same line could be edited in your local
   2321 > .sup/config.yaml.
   2322 > 
   2323 > In any case, see the example below to configure your textwidth.
   2324 > 
   2325 > 
   2326 > --- lib/sup.rb  2011-02-16 09:08:19.373333347 -0700
   2327 > +++ lib/sup.rb.new  2011-02-16 09:20:07.816666681 -0700
   2328 > @@ -289,7 +289,7 @@
   2329 >              :gpgkey => ""
   2330 >            }
   2331 >          },
   2332 > -        :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell spelllang=en_us' -c 'set filetype=mail'",
   2333 > +        :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell spelllang=en_us' -c 'set filetype=mail' -c 'set textwidth=72'",
   2334 >          :thread_by_subject => false,
   2335 >          :edit_signature => false,
   2336 >          :ask_for_from => false,
   2337 -- 
   2338 Mat?as Aguirre <matiasaguirre at gmail.com>
   2339 
   2340 From sup@zevv.nl  Wed Feb 16 13:42:07 2011
   2341 From: sup@zevv.nl (Ico Doornekamp)
   2342 Date: Wed, 16 Feb 2011 19:42:07 +0100
   2343 Subject: [sup-talk] tiny patch re: editor (vim)
   2344 In-Reply-To: <1297876563-sup-2003@daphne>
   2345 References: <1297876563-sup-2003@daphne>
   2346 Message-ID: <1297881617-sup-3074@pruts.nl>
   2347 
   2348 * On Wed Feb 16 18:34:39 +0100 2011, Christer Edwards wrote:
   2349  
   2350 > In any case, below is a tiny patch to configure vim to wrap text at 72
   2351 > characters. This patch is specific to the initial file that is used at
   2352 > sup-config, but the same line could be edited in your local
   2353 > .sup/config.yaml.
   2354 > 
   2355 > In any case, see the example below to configure your textwidth.
   2356 > 
   2357 > 
   2358 > --- lib/sup.rb  2011-02-16 09:08:19.373333347 -0700
   2359 > +++ lib/sup.rb.new  2011-02-16 09:20:07.816666681 -0700
   2360 > @@ -289,7 +289,7 @@
   2361 >              :gpgkey => ""
   2362 >            }
   2363 >          },
   2364 > -        :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell spelllang=en_us' -c 'set filetype=mail'",
   2365 > +        :editor => ENV["EDITOR"] || "/usr/bin/vim -f -c 'setlocal spell spelllang=en_us' -c 'set filetype=mail' -c 'set textwidth=72'",
   2366 >          :thread_by_subject => false,
   2367 >          :edit_signature => false,
   2368 >          :ask_for_from => false,
   2369 
   2370 Funny, the default vim comes with the 'mail' filetype plugin which
   2371 already handles setting the text width to 72, so I never needed to do
   2372 anything to get this behaviour. Strange that this does not work for you
   2373 out of the box
   2374 
   2375 -- 
   2376 :wq
   2377 ^X^Cy^K^X^C^C^C^C
   2378 
   2379 From bwalton@artsci.utoronto.ca  Wed Feb 16 14:08:40 2011
   2380 From: bwalton@artsci.utoronto.ca (Ben Walton)
   2381 Date: Wed, 16 Feb 2011 14:08:40 -0500
   2382 Subject: [sup-talk] tiny patch re: editor (vim)
   2383 In-Reply-To: <1297876563-sup-2003@daphne>
   2384 References: <1297876563-sup-2003@daphne>
   2385 Message-ID: <1297883154-sup-7252@pinkfloyd.chass.utoronto.ca>
   2386 
   2387 Excerpts from Christer Edwards's message of Wed Feb 16 12:34:39 -0500 2011:
   2388 
   2389 Hi Christer,
   2390 
   2391 > In any case, see the example below to configure your textwidth.
   2392 
   2393 Your patch looks fine, but I question why we would do anything other
   2394 than call vim in the default case?  Passing default settings like this
   2395 (including the existing options) should be beyond the scope of the
   2396 mail client in my opinion.
   2397 
   2398 That being said, if others like the patch, by all means apply it.  I
   2399 don't use vim and I specifically configure my environment so it won't
   2400 affect me. :)
   2401 
   2402 Thanks
   2403 -Ben
   2404 --
   2405 Ben Walton
   2406 Systems Programmer - CHASS
   2407 University of Toronto
   2408 C:416.407.5610 | W:416.978.4302
   2409 
   2410 
   2411 From support@plecavalier.com  Wed Feb 16 15:23:42 2011
   2412 From: support@plecavalier.com (Philippe LeCavalier)
   2413 Date: Wed, 16 Feb 2011 15:23:42 -0500
   2414 Subject: [sup-talk] Body preview separator inbox-mode
   2415 Message-ID: <1297887707-sup-809@plc.intranet.plecavalier.com>
   2416 
   2417 Just an idea...
   2418 
   2419 Could we have a body preview separator(| or , maybe?). I find it less
   2420 efficient when visually browsing the inbox-mode to not have any kind of
   2421 separator between each thread/response.
   2422 
   2423 -- 
   2424 Thanks,
   2425 Phil
   2426 
   2427 From pete@muddygoat.org  Wed Feb 16 20:02:34 2011
   2428 From: pete@muddygoat.org (Peter Lewis)
   2429 Date: Thu, 17 Feb 2011 01:02:34 +0000
   2430 Subject: [sup-talk] Hi and noob question.
   2431 Message-ID: <201102170102.34282.pete@muddygoat.org>
   2432 
   2433 Hi there,
   2434 
   2435 Firstly, thanks for sup! I've been following the project for a while, and 
   2436 thought that since the new Archlinux packages are working well, I'd dive in 
   2437 and give sup a proper go :-)
   2438 
   2439 So here's the newbie question: I had a look through the manual etc. and I 
   2440 didn't seem to be able to find out any way of reversing the order in which the 
   2441 messages are displayed in the list. It only seems to be able to have the most 
   2442 recent at the top, etc., which I've been trained over the years to not be used 
   2443 to. Is there a way to switch the order?
   2444 
   2445 Thanks in advance,
   2446 
   2447 Pete.
   2448 
   2449 From shadowfirebird@gmail.com  Thu Feb 17 04:20:10 2011
   2450 From: shadowfirebird@gmail.com (Shadowfirebird)
   2451 Date: Thu, 17 Feb 2011 09:20:10 +0000
   2452 Subject: [sup-talk] Body preview separator inbox-mode
   2453 In-Reply-To: <1297887707-sup-809@plc.intranet.plecavalier.com>
   2454 References: <1297887707-sup-809@plc.intranet.plecavalier.com>
   2455 Message-ID: <1297934366-sup-3072@blake>
   2456 
   2457 > Could we have a body preview separator(| or , maybe?). I find it less
   2458 > efficient when visually browsing the inbox-mode to not have any kind of
   2459 > separator between each thread/response.
   2460 
   2461 +1.   I can't tell what's subject and what's message body 'hint'.
   2462 
   2463 -- 
   2464 A boss with no humor is like a job that's no fun.
   2465 
   2466 From sup@zevv.nl  Thu Feb 17 04:59:56 2011
   2467 From: sup@zevv.nl (Ico Doornekamp)
   2468 Date: Thu, 17 Feb 2011 10:59:56 +0100
   2469 Subject: [sup-talk] Body preview separator inbox-mode
   2470 In-Reply-To: <1297934366-sup-3072@blake>
   2471 References: <1297887707-sup-809@plc.intranet.plecavalier.com>
   2472 	<1297934366-sup-3072@blake>
   2473 Message-ID: <1297936718-sup-9587@pruts.nl>
   2474 
   2475 * On Thu Feb 17 10:20:10 +0100 2011, Shadowfirebird wrote:
   2476  
   2477 > > Could we have a body preview separator(| or , maybe?). I find it less
   2478 > > efficient when visually browsing the inbox-mode to not have any kind of
   2479 > > separator between each thread/response.
   2480 > 
   2481 > +1.   I can't tell what's subject and what's message body 'hint'.
   2482 
   2483 Consider defining a different color for :snippet in .sup/colors.yaml. I
   2484 use
   2485 
   2486   :snippet: 
   2487   :bg: default
   2488   :fg: black
   2489   :attrs:
   2490   - bold
   2491 
   2492 which gives dark gray on black, works ok for me.
   2493 
   2494 
   2495 -- 
   2496 :wq
   2497 ^X^Cy^K^X^C^C^C^C
   2498 
   2499 From shadowfirebird@gmail.com  Thu Feb 17 06:24:42 2011
   2500 From: shadowfirebird@gmail.com (Shadowfirebird)
   2501 Date: Thu, 17 Feb 2011 11:24:42 +0000
   2502 Subject: [sup-talk] Body preview separator inbox-mode
   2503 In-Reply-To: <1297936718-sup-9587@pruts.nl>
   2504 References: <1297887707-sup-809@plc.intranet.plecavalier.com>
   2505 	<1297934366-sup-3072@blake> <1297936718-sup-9587@pruts.nl>
   2506 Message-ID: <1297941721-sup-6759@blake>
   2507 
   2508 > Consider defining a different color for :snippet in .sup/colors.yaml. I
   2509 > use
   2510 > 
   2511 >   :snippet: 
   2512 >   :bg: default
   2513 >   :fg: black
   2514 >   :attrs:
   2515 >   - bold
   2516 > 
   2517 > which gives dark gray on black, works ok for me.
   2518 
   2519 To clarify, it appears you can copy the above into a new file .sup/colors.yaml and restart sup -- and it works brilliantly.  Ta.
   2520 
   2521 -- 
   2522 System restarting, wait...
   2523 
   2524 From matthieu.rakotojaona@gmail.com  Thu Feb 17 08:58:40 2011
   2525 From: matthieu.rakotojaona@gmail.com (Matthieu Rakotojaona)
   2526 Date: Thu, 17 Feb 2011 14:58:40 +0100
   2527 Subject: [sup-talk] Body preview separator inbox-mode
   2528 In-Reply-To: <1297941721-sup-6759@blake>
   2529 References: <1297887707-sup-809@plc.intranet.plecavalier.com>
   2530 	<1297934366-sup-3072@blake> <1297936718-sup-9587@pruts.nl>
   2531 	<1297941721-sup-6759@blake>
   2532 Message-ID: <1297951012-sup-2455@Otokar>
   2533 
   2534 Excerpts from Shadowfirebird's message of 2011-02-17 12:24:42 +0100:
   2535 > > Consider defining a different color for :snippet in .sup/colors.yaml. I
   2536 > > use
   2537 > > 
   2538 > >   :snippet: 
   2539 > >   :bg: default
   2540 > >   :fg: black
   2541 > >   :attrs:
   2542 > >   - bold
   2543 > > 
   2544 > > which gives dark gray on black, works ok for me.
   2545 > 
   2546 > To clarify, it appears you can copy the above into a new file .sup/colors.yaml and restart sup -- and it works brilliantly.  Ta.
   2547 
   2548 Hello,
   2549 
   2550 Strange, I did as you say and I have an error : 
   2551 
   2552 
   2553 NoMethodError from thread: main
   2554 undefined method `[]' for nil:NilClass
   2555 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:190:in `rescue in block in populate_colormap'
   2556 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:187:in `block in populate_colormap'
   2557 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:186:in `each_pair'
   2558 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:186:in `populate_colormap'
   2559 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup:182:in `<module:Redwood>'
   2560 /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup:69:in `<top (required)>'
   2561 /usr/bin/sup:19:in `load'
   2562 /usr/bin/sup:19:in `<main>'
   2563 
   2564 yet I have the correct .sup/colors.yaml :
   2565 
   2566 $ cat .sup/color.yaml
   2567 :snippet:
   2568 :bg: default
   2569 :fg: black
   2570 :attrs:
   2571 - bold
   2572 
   2573 Do you know where the problem might come from ?
   2574 
   2575 Thanks,
   2576 -- 
   2577 Matthieu RAKOTOJAONA
   2578 
   2579 From support@plecavalier.com  Thu Feb 17 09:42:59 2011
   2580 From: support@plecavalier.com (Philippe LeCavalier)
   2581 Date: Thu, 17 Feb 2011 09:42:59 -0500
   2582 Subject: [sup-talk] Body preview separator inbox-mode
   2583 In-Reply-To: <1297951012-sup-2455@Otokar>
   2584 References: <1297887707-sup-809@plc.intranet.plecavalier.com>
   2585 	<1297934366-sup-3072@blake> <1297936718-sup-9587@pruts.nl>
   2586 	<1297941721-sup-6759@blake> <1297951012-sup-2455@Otokar>
   2587 Message-ID: <1297953660-sup-4629@plc.intranet.plecavalier.com>
   2588 
   2589 Excerpts from Matthieu Rakotojaona's message of Thu Feb 17 08:58:40 -0500 2011:
   2590 > Excerpts from Shadowfirebird's message of 2011-02-17 12:24:42 +0100:
   2591 > > > Consider defining a different color for :snippet in .sup/colors.yaml. I
   2592 > > > use
   2593 > > > 
   2594 > > >   :snippet: 
   2595 > > >   :bg: default
   2596 > > >   :fg: black
   2597 > > >   :attrs:
   2598 > > >   - bold
   2599 > > > 
   2600 > > > which gives dark gray on black, works ok for me.
   2601 > > 
   2602 > > To clarify, it appears you can copy the above into a new file .sup/colors.yaml and restart sup -- and it works brilliantly.  Ta.
   2603 > 
   2604 > Hello,
   2605 > 
   2606 > Strange, I did as you say and I have an error : 
   2607 > 
   2608 > 
   2609 > NoMethodError from thread: main
   2610 > undefined method `[]' for nil:NilClass
   2611 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:190:in `rescue in block in populate_colormap'
   2612 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:187:in `block in populate_colormap'
   2613 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:186:in `each_pair'
   2614 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/colormap.rb:186:in `populate_colormap'
   2615 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup:182:in `<module:Redwood>'
   2616 > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/bin/sup:69:in `<top (required)>'
   2617 > /usr/bin/sup:19:in `load'
   2618 > /usr/bin/sup:19:in `<main>'
   2619 > 
   2620 > yet I have the correct .sup/colors.yaml :
   2621 > 
   2622 > $ cat .sup/color.yaml
   2623 > :snippet:
   2624 > :bg: default
   2625 > :fg: black
   2626 > :attrs:
   2627 > - bold
   2628 Did you double check to ensure you don't already have that entry? I did.
   2629 The only thing I added was the '- bold'
   2630 > 
   2631 > Do you know where the problem might come from ?
   2632 > 
   2633 > Thanks,
   2634 -- 
   2635 Thanks,
   2636 Phil
   2637 
   2638 From support@plecavalier.com  Thu Feb 17 10:02:58 2011
   2639 From: support@plecavalier.com (Philippe LeCavalier)
   2640 Date: Thu, 17 Feb 2011 10:02:58 -0500
   2641 Subject: [sup-talk] defined variables in after-poll.rb
   2642 Message-ID: <1297954935-sup-1241@plc.intranet.plecavalier.com>
   2643 
   2644 Hi.
   2645 
   2646 I'd like the after-poll hook to display the assigned labels. What is
   2647 that variable called?
   2648 
   2649 -- 
   2650 Thanks,
   2651 Phil
   2652 
   2653 From gregor@hoffleit.de  Thu Feb 17 11:44:17 2011
   2654 From: gregor@hoffleit.de (Gregor Hoffleit)
   2655 Date: Thu, 17 Feb 2011 17:44:17 +0100
   2656 Subject: [sup-talk] Body preview separator inbox-mode
   2657 In-Reply-To: <1297951012-sup-2455@Otokar>
   2658 References: <1297887707-sup-809@plc.intranet.plecavalier.com>
   2659 	<1297934366-sup-3072@blake> <1297936718-sup-9587@pruts.nl>
   2660 	<1297941721-sup-6759@blake> <1297951012-sup-2455@Otokar>
   2661 Message-ID: <1297960819-sup-4803@sam.mediasupervision.de>
   2662 
   2663 * Matthieu Rakotojaona <matthieu.rakotojaona at gmail.com> [Do Feb 17 14:58:40 +0100 2011]
   2664 > $ cat .sup/color.yaml
   2665 > :snippet:
   2666 > :bg: default
   2667 > :fg: black
   2668 > :attrs:
   2669 > - bold
   2670 
   2671 Afaik, YAML (http://www.yaml.org/spec/1.2/spec.html) depends on the
   2672 indentation for determination of the structure. I would have expected
   2673 the above snippet definition to look like this:
   2674 
   2675     :snippet:
   2676       :bg: default
   2677       :fg: black
   2678       :attrs:
   2679       - bold
   2680 
   2681 
   2682 Regards,
   2683     Gregor
   2684 
   2685 From sup@zevv.nl  Thu Feb 17 12:45:15 2011
   2686 From: sup@zevv.nl (Ico Doornekamp)
   2687 Date: Thu, 17 Feb 2011 18:45:15 +0100
   2688 Subject: [sup-talk] Body preview separator inbox-mode
   2689 In-Reply-To: <1297960819-sup-4803@sam.mediasupervision.de>
   2690 References: <1297887707-sup-809@plc.intranet.plecavalier.com>
   2691 	<1297934366-sup-3072@blake> <1297936718-sup-9587@pruts.nl>
   2692 	<1297941721-sup-6759@blake> <1297951012-sup-2455@Otokar>
   2693 	<1297960819-sup-4803@sam.mediasupervision.de>
   2694 Message-ID: <1297964683-sup-2380@pruts.nl>
   2695 
   2696 * On Thu Feb 17 17:44:17 +0100 2011, Gregor Hoffleit wrote:
   2697  
   2698 > Afaik, YAML (http://www.yaml.org/spec/1.2/spec.html) depends on the
   2699 > indentation for determination of the structure. I would have expected
   2700 > the above snippet definition to look like this:
   2701 > 
   2702 >     :snippet:
   2703 >       :bg: default
   2704 >       :fg: black
   2705 >       :attrs:
   2706 >       - bold
   2707 
   2708 Very true, apologies for the cut&paste failure
   2709 
   2710 
   2711 -- 
   2712 :wq
   2713 ^X^Cy^K^X^C^C^C^C
   2714 
   2715 From bacuh@riseup.net  Thu Feb 17 13:16:31 2011
   2716 From: bacuh@riseup.net (Sebastian Lipp)
   2717 Date: Thu, 17 Feb 2011 19:16:31 +0100
   2718 Subject: [sup-talk] Hi and noob question.
   2719 In-Reply-To: <201102170102.34282.pete@muddygoat.org>
   2720 References: <201102170102.34282.pete@muddygoat.org>
   2721 Message-ID: <1297966539-sup-4248@fly>
   2722 
   2723 Excerpts from Peter Lewis's message of Do Feb 17 02:02:34 +0100 2011:
   2724 > So here's the newbie question: I had a look through the manual etc. and I 
   2725 > didn't seem to be able to find out any way of reversing the order in which the 
   2726 > messages are displayed in the list. It only seems to be able to have the most 
   2727 > recent at the top, etc., which I've been trained over the years to not be used 
   2728 > to. Is there a way to switch the order?
   2729 
   2730 You may patch sup with the files attached.
   2731 
   2732 But they are from Sept 2009, so they most likely will not succeed
   2733 completely. You might have to adjust some lines of code manually.
   2734 
   2735 -- 
   2736 basti
   2737  
   2738 If we have never called ourselves insurrectionists, it is not because we
   2739 do not wish for insurrection, but because our own temperament
   2740 predisposes us to an anarchism without adjectives. The important thing
   2741 is to fight for freedom and against hierarchy; we imagine that this will
   2742 demand different approaches in different situations, and that these
   2743 approaches may need one another to succeed. We are anarcho-syndicalists
   2744 on the shop floor, green anarchists in the woods, social anarchists in
   2745 our communities, individualists when you catch us alone,
   2746 anarcho-communists when there's something to share, insurrectionists
   2747 when we strike a blow.
   2748    -- say you want an insurrection
   2749 	-- <http://www.crimethinc.com/texts/rollingthunder/insurrection.php>
   2750 -------------- next part --------------
   2751 A non-text attachment was scrubbed...
   2752 Name: 0001-allow-thread-index-view-to-sort-oldest-first.patch
   2753 Type: application/octet-stream
   2754 Size: 7502 bytes
   2755 Desc: not available
   2756 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110217/6692c9f0/attachment.obj>
   2757 -------------- next part --------------
   2758 A non-text attachment was scrubbed...
   2759 Name: 0002-Change-the-default-sort-for-inbox-mode-to-be-oldest.patch
   2760 Type: application/octet-stream
   2761 Size: 777 bytes
   2762 Desc: not available
   2763 URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20110217/6692c9f0/attachment-0001.obj>
   2764 
   2765 From matthieu.rakotojaona@gmail.com  Thu Feb 17 13:18:48 2011
   2766 From: matthieu.rakotojaona@gmail.com (Matthieu Rakotojaona)
   2767 Date: Thu, 17 Feb 2011 19:18:48 +0100
   2768 Subject: [sup-talk] Body preview separator inbox-mode
   2769 In-Reply-To: <1297964683-sup-2380@pruts.nl>
   2770 References: <1297887707-sup-809@plc.intranet.plecavalier.com>
   2771 	<1297934366-sup-3072@blake> <1297936718-sup-9587@pruts.nl>
   2772 	<1297941721-sup-6759@blake> <1297951012-sup-2455@Otokar>
   2773 	<1297960819-sup-4803@sam.mediasupervision.de>
   2774 	<1297964683-sup-2380@pruts.nl>
   2775 Message-ID: <1297966712-sup-1638@Otokar>
   2776 
   2777 Excerpts from Ico Doornekamp's message of 2011-02-17 18:45:15 +0100:
   2778 > * On Thu Feb 17 17:44:17 +0100 2011, Gregor Hoffleit wrote:
   2779 >  
   2780 > > Afaik, YAML (http://www.yaml.org/spec/1.2/spec.html) depends on the
   2781 > > indentation for determination of the structure. I would have expected
   2782 > > the above snippet definition to look like this:
   2783 > > 
   2784 > >     :snippet:
   2785 > >       :bg: default
   2786 > >       :fg: black
   2787 > >       :attrs:
   2788 > >       - bold
   2789 > 
   2790 > Very true, apologies for the cut&paste failure
   2791 
   2792 It's working now, many thanks !
   2793 -- 
   2794 Matthieu RAKOTOJAONA
   2795 
   2796 From eg@gaute.vetsj.com  Fri Feb 18 04:27:35 2011
   2797 From: eg@gaute.vetsj.com (Gaute Hope)
   2798 Date: Fri, 18 Feb 2011 10:27:35 +0100
   2799 Subject: [sup-talk] Removing :draft label
   2800 Message-ID: <1298021040-sup-2417@qwerzila>
   2801 
   2802 Hi,
   2803 
   2804 I saved a draft for a message; later opened it, finished it and sent
   2805 it.. Now all the messages in the thread show: this is a draft message
   2806 hit e to edit, y to send. They are all incoming or sent messages, and if
   2807 I try to edit them to delete them sup crashes with:
   2808 
   2809 
   2810 --- NoMethodError from thread: main
   2811 undefined method `fn_for_offset' for #<Redwood::SentLoader:0x00000002539258>
   2812 /home/gaute/.gem/ruby/1.9.1/gems/sup-999/lib/sup/message.rb:182:in `draft_filename'
   2813 /home/gaute/.gem/ruby/1.9.1/gems/sup-999/lib/sup/modes/resume-mode.rb:8:in `initialize'
   2814 /home/gaute/.gem/ruby/1.9.1/gems/sup-999/lib/sup/modes/thread-view-mode.rb:416:in `new'
   2815 /home/gaute/.gem/ruby/1.9.1/gems/sup-999/lib/sup/modes/thread-view-mode.rb:416:in `edit_draft'
   2816 /home/gaute/.gem/ruby/1.9.1/gems/sup-999/lib/sup/mode.rb:59:in `handle_input'
   2817 /home/gaute/.gem/ruby/1.9.1/gems/sup-999/lib/sup/buffer.rb:277:in `handle_input'
   2818 /home/gaute/.gem/ruby/1.9.1/gems/sup-999/bin/sup:271:in `<module:Redwood>'
   2819 /home/gaute/.gem/ruby/1.9.1/gems/sup-999/bin/sup:80:in `<top (required)>'
   2820 /home/gaute/.gem/ruby/1.9.1/bin/sup:19:in `load'
   2821 /home/gaute/.gem/ruby/1.9.1/bin/sup:19:in `<main>'
   2822 
   2823 I tried to enter the console find the message and manually remove :draft
   2824 using message.remove_label :draft. But this does not seem to do the
   2825 trick.. Also tried Index.save or xapian.flush.. but how can I make the
   2826 change go through ?
   2827 
   2828 This does not seem to work anymore:
   2829 http://www.mail-archive.com/sup-talk at rubyforge.org/msg00874.html
   2830 
   2831 Best regards, Gaute
   2832 
   2833 From wmorgan-sup@masanjin.net  Mon Feb 21 16:02:28 2011
   2834 From: wmorgan-sup@masanjin.net (William Morgan)
   2835 Date: Mon, 21 Feb 2011 21:02:28 +0000
   2836 Subject: [sup-talk] sup-server revisited
   2837 Message-ID: <1298320404-sup-5972@masanjin.net>
   2838 
   2839 Hello Sup fans,
   2840 
   2841 As I alluded to in an earlier email to sup-devel, I have been working recently
   2842 on the ancient goal of splitting Sup functionality out into separate client and
   2843 server programs. This will have many advantages; in particular it will remove
   2844 email lock-in by making it possible to have non-Sup clients interact with Sup.
   2845 
   2846 I've tried various approaches to this goal at various times, without much
   2847 success. But with the release of Whistlepig, I have been making a lot of
   2848 progress in a short amount of time.
   2849 
   2850 I wanted to lay out my general plan in this email, so that everyone can follow
   2851 along and try things out if they feel inclined.
   2852 
   2853 I'm focusing on the server component first. My specific goals are:
   2854 
   2855 - Encapsulate all storage and indexing logic.
   2856 - Formalize the notion of labels and state, and the relationship between them,
   2857   messages, and threads. Currently these relationships are fuzzy in Sup, and
   2858   things suffer for it.
   2859 - Precompute threads, so that search requires only moderate effort, instead of
   2860   the large effort it does now. This will make search much, much faster, at the
   2861   expense of a little more effort at index time.
   2862 - Allow concurrent access from multiple clients.
   2863 - Provide something that is transparent and easy to modify without having to go
   2864   through an ncurses client.
   2865 
   2866 You can find the work in progress here: https://github.com/wmorgan/heliotrope
   2867 Currently it is not actually a server, but accomplishes many of the goals
   2868 above. Run bin/email-indexer and then bin/email-searcher to play around with
   2869 a simple preview of things to come. Stay tuned for more on this.
   2870 
   2871 Once the server is in a reasonable state, my goals for the curses client reboot
   2872 are:
   2873 
   2874 - Move to an event-based model rather than the polling + many threads +
   2875   observable model we have now. Dump all events into one big queue,
   2876   and block on it.
   2877 - Have one, and only one, non-main thread, which it to communicate with the
   2878   server. No more mutex insanity.
   2879 - Work from the ground up with Ruby 1.9, which means finding the many sources
   2880   of encoding errors and punishing them.
   2881 - Require the console and ncurses gems so that i18n works out of the box.
   2882 - Borrow as much code as possible from the current Sup, because I sure as shit
   2883   don't want to have to rewrite it all.
   2884 
   2885 I haven't started on this at all.
   2886 
   2887 So stay tuned, and check out heliotrope if you are so inclined.
   2888 
   2889 -- 
   2890 William <wmorgan-sup at masanjin.net>
   2891 
   2892 From hsanson@gmail.com  Mon Feb 21 19:54:43 2011
   2893 From: hsanson@gmail.com (Horacio Sanson)
   2894 Date: Tue, 22 Feb 2011 09:54:43 +0900
   2895 Subject: [sup-talk] Correct way to sync index between two machines?
   2896 Message-ID: <AANLkTik-rm2niKzb6iR0SJt7V4ErMyMM8ku-2NdmKhY7@mail.gmail.com>
   2897 
   2898 I have a laptop, my home desktop and my work desktop were I sync and
   2899 read my email. Previously with mutt I simply rsync my mail folders so
   2900 the mail was in sync with all three machines but for some reason rsync
   2901 the whole .sup folder results in corrupted index.
   2902 
   2903 I make sure sup is not running and then rsync the .sup folder (via
   2904 unison). Then when trying to run sup in the updated machine I get this
   2905 error:
   2906 
   2907 Scanning maildir:/home/user/.mail/hsanson/INBOX...
   2908 /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:792:in `load':
   2909 invalid encoding symbol (EncodingError)
   2910         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:792:in `entry'
   2911         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:567:in
   2912 `get_entry'
   2913         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:196:in
   2914 `block in build_message'
   2915         from /usr/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
   2916         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:575:in
   2917 `synchronize'
   2918         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:196:in
   2919 `build_message'
   2920         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/util.rb:609:in
   2921 `method_missing'
   2922         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/poll.rb:159:in
   2923 `block in poll_from'
   2924         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:106:in
   2925 `block (2 levels) in poll'
   2926         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:105:in
   2927 `each'
   2928         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:105:in
   2929 `each_with_index'
   2930         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:105:in
   2931 `block in poll'
   2932         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:90:in `each'
   2933         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:90:in `poll'
   2934         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/poll.rb:155:in
   2935 `poll_from'
   2936         from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/util.rb:609:in
   2937 `method_missing'
   2938         from /var/lib/gems/1.9.1/gems/sup-0.12.1/bin/sup-sync:123:in
   2939 `block in <top (required)>'
   2940         from /var/lib/gems/1.9.1/gems/sup-0.12.1/bin/sup-sync:118:in `each'
   2941         from /var/lib/gems/1.9.1/gems/sup-0.12.1/bin/sup-sync:118:in
   2942 `<top (required)>'
   2943         from /var/lib/gems/1.9.1/bin/sup-sync:19:in `load'
   2944         from /var/lib/gems/1.9.1/bin/sup-sync:19:in `<main>'
   2945 
   2946 Removing the index (xapian folder) fixes the problem but of course I
   2947 lost my whole night of labeling work.
   2948 
   2949 So how to safely sync my index between several machines?
   2950 
   2951 regards,
   2952 Horacio
   2953 
   2954 From nicolas.pouillard@gmail.com  Tue Feb 22 09:09:43 2011
   2955 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   2956 Date: Tue, 22 Feb 2011 06:09:43 -0800 (PST)
   2957 Subject: [sup-talk] [sup-devel] sup-server revisited
   2958 In-Reply-To: <1298320404-sup-5972@masanjin.net>
   2959 References: <1298320404-sup-5972@masanjin.net>
   2960 Message-ID: <4d63c3a7.8389cc0a.52c5.7a5c@mx.google.com>
   2961 
   2962 On Mon, 21 Feb 2011 21:02:28 +0000, William Morgan <wmorgan-sup at masanjin.net> wrote:
   2963 > Hello Sup fans,
   2964 
   2965 [...]
   2966 
   2967 > I'm focusing on the server component first. My specific goals are:
   2968 > 
   2969 > - Encapsulate all storage and indexing logic.
   2970 > - Formalize the notion of labels and state, and the relationship between them,
   2971 >   messages, and threads. Currently these relationships are fuzzy in Sup, and
   2972 >   things suffer for it.
   2973 > - Precompute threads, so that search requires only moderate effort, instead of
   2974 >   the large effort it does now. This will make search much, much faster, at the
   2975 >   expense of a little more effort at index time.
   2976 > - Allow concurrent access from multiple clients.
   2977 > - Provide something that is transparent and easy to modify without having to go
   2978 >   through an ncurses client.
   2979 
   2980 On the server side, and more precisely on the interaction between the two,
   2981 I would love to see a simple Unix/command/CLI defined for the server. To make
   2982 myself clear, a bit like the notmuch CLI. This would allow for a greater
   2983 modularity and reusablity between components. For instance I would like to
   2984 index my mails with differents backends (disk is cheap), to get a way to
   2985 compare different tools on real data, when searching emails, and thus allow
   2986 to debug the different tools.
   2987 
   2988 -- 
   2989 Nicolas Pouillard
   2990 http://nicolaspouillard.fr
   2991 
   2992 From wmorgan-sup@masanjin.net  Tue Feb 22 13:00:06 2011
   2993 From: wmorgan-sup@masanjin.net (William Morgan)
   2994 Date: Tue, 22 Feb 2011 18:00:06 +0000
   2995 Subject: [sup-talk] [sup-devel] sup-server revisited
   2996 In-Reply-To: <4d63c3a7.8389cc0a.52c5.7a5c@mx.google.com>
   2997 References: <1298320404-sup-5972@masanjin.net>
   2998 	<4d63c3a7.8389cc0a.52c5.7a5c@mx.google.com>
   2999 Message-ID: <1298397585-sup-1661@masanjin.net>
   3000 
   3001 [resend to list]
   3002 
   3003 Reformatted excerpts from Nicolas Pouillard's message of 2011-02-22:
   3004 > I would love to see a simple Unix/command/CLI defined for the server. To
   3005 > make myself clear, a bit like the notmuch CLI. This would allow for a
   3006 > greater modularity and reusablity between components.
   3007 
   3008 I am definitely interested in a set of composable CLI tools that talk to the
   3009 server, for basic operations like search, show, add/remove labels, etc.
   3010 
   3011 > For instance I would like to index my mails with differents backends (disk
   3012 > is cheap), to get a way to compare different tools on real data, when
   3013 > searching emails, and thus allow to debug the different tools.
   3014 
   3015 The server implementation is pretty heavily tied to a particular index and
   3016 store mechanism. It's not clear to me how (or whether) the CLI tools will
   3017 allow you to swap out different implementations.
   3018 -- 
   3019 William <wmorgan-sup at masanjin.net>
   3020 
   3021 From nicolas.pouillard@gmail.com  Wed Feb 23 04:59:39 2011
   3022 From: nicolas.pouillard@gmail.com (Nicolas Pouillard)
   3023 Date: Wed, 23 Feb 2011 01:59:39 -0800 (PST)
   3024 Subject: [sup-talk] [sup-devel] sup-server revisited
   3025 In-Reply-To: <1298397585-sup-1661@masanjin.net>
   3026 References: <1298320404-sup-5972@masanjin.net>
   3027 	<4d63c3a7.8389cc0a.52c5.7a5c@mx.google.com>
   3028 	<1298397585-sup-1661@masanjin.net>
   3029 Message-ID: <4d64da8b.8389cc0a.31cf.6b21@mx.google.com>
   3030 
   3031 On Tue, 22 Feb 2011 18:00:06 +0000, William Morgan <wmorgan-sup at masanjin.net> wrote:
   3032 > [resend to list]
   3033 > 
   3034 > Reformatted excerpts from Nicolas Pouillard's message of 2011-02-22:
   3035 > > I would love to see a simple Unix/command/CLI defined for the server. To
   3036 > > make myself clear, a bit like the notmuch CLI. This would allow for a
   3037 > > greater modularity and reusablity between components.
   3038 > 
   3039 > I am definitely interested in a set of composable CLI tools that talk to the
   3040 > server, for basic operations like search, show, add/remove labels, etc.
   3041 
   3042 Ok, then I think it would make not much sense to make it different than
   3043 notmuch. Of course with good arguments changes can go the other direction as
   3044 well.
   3045 
   3046 > > For instance I would like to index my mails with differents backends (disk
   3047 > > is cheap), to get a way to compare different tools on real data, when
   3048 > > searching emails, and thus allow to debug the different tools.
   3049 > 
   3050 > The server implementation is pretty heavily tied to a particular index and
   3051 > store mechanism. It's not clear to me how (or whether) the CLI tools will
   3052 > allow you to swap out different implementations.
   3053 
   3054 I agree with you and don't to expose such details. What I want is a way to
   3055 separate the frontend from the backend completely. This would allow me to
   3056 use the frontend with any of:
   3057   - heliotrope
   3058   - sup (maybe)
   3059   - notmuch (not written in ruby)
   3060   - my own toy project (not in ruby either)
   3061   - any combination of both, where "writes" are dispatched to all of them,
   3062     and "reads" are dispatched to one of them (that I can change easily).
   3063 
   3064 I also want to be able to script batch operations on the mail store easily.
   3065 
   3066 Best regards,
   3067 
   3068 -- 
   3069 Nicolas Pouillard
   3070 http://nicolaspouillard.fr
   3071 
   3072 From dcampbell24@gmail.com  Wed Feb 23 07:57:35 2011
   3073 From: dcampbell24@gmail.com (David Campbell)
   3074 Date: Wed, 23 Feb 2011 07:57:35 -0500
   3075 Subject: [sup-talk] sup removing labels
   3076 Message-ID: <1298465238-sup-6982@hypnos>
   3077 
   3078 Hi, yesterday while editing my labels sup crashed, and since then
   3079 it only removes labels if I edit them and does not create new
   3080 ones. I mention this issue here, since when I visited the page
   3081 for the bug tracker, I was greeted by a "sorry this page is
   3082 unavailable" message.
   3083 
   3084 crash report: http://codepad.org/M53pn9M4
   3085 
   3086 sup version: 0.12.1
   3087 
   3088 details: I was changing a labels from "Arch" to "arch". sup also
   3089 appears to have problems with case, since it seemed to group
   3090 labels Arch and arch together.
   3091 -- 
   3092 David Campbell
   3093 
   3094 From support@plecavalier.com  Wed Feb 23 08:23:21 2011
   3095 From: support@plecavalier.com (Philippe LeCavalier)
   3096 Date: Wed, 23 Feb 2011 08:23:21 -0500
   3097 Subject: [sup-talk] sup removing labels
   3098 In-Reply-To: <1298465238-sup-6982@hypnos>
   3099 References: <1298465238-sup-6982@hypnos>
   3100 Message-ID: <1298466989-sup-993@plc.intranet.plecavalier.com>
   3101 
   3102 Hi David.
   3103 Excerpts from David Campbell's message of Wed Feb 23 07:57:35 -0500 2011:
   3104 > Hi, yesterday while editing my labels sup crashed, and since then
   3105 > it only removes labels if I edit them and does not create new
   3106 > ones. I mention this issue here, since when I visited the page
   3107 > for the bug tracker, I was greeted by a "sorry this page is
   3108 > unavailable" message.
   3109 > 
   3110 > crash report: http://codepad.org/M53pn9M4
   3111 > 
   3112 > sup version: 0.12.1
   3113 > 
   3114 > details: I was changing a labels from "Arch" to "arch". sup also
   3115 > appears to have problems with case, since it seemed to group
   3116 > labels Arch and arch together.
   3117 
   3118 I don't know for certain but I'm fairly confident you're right about
   3119 case sensitivity. I experienced the exact same issue when renaming FF to
   3120 ff. Still haven't fixed it.In my scenario, sup doesn't even find most of the
   3121 threads with those labels anymore. I haven't had a chance to 'play'
   3122 with this since it occurred but if you find any additional info please be
   3123 certain to post so I and others can benefit.
   3124 
   3125 Good luck.
   3126 Phil
   3127 -- 
   3128 Thanks,
   3129 Phil
   3130 
   3131 From support@plecavalier.com  Wed Feb 23 09:25:57 2011
   3132 From: support@plecavalier.com (Philippe LeCavalier)
   3133 Date: Wed, 23 Feb 2011 09:25:57 -0500
   3134 Subject: [sup-talk] searching for multiple labels
   3135 Message-ID: <1298471114-sup-8140@plc.intranet.plecavalier.com>
   3136 
   3137 What's the syntax for searching multiple labels in one query? Or do I
   3138 always have to search & refine?
   3139 
   3140 -- 
   3141 Thanks,
   3142 Phil
   3143 
   3144 From marka@pobox.com  Wed Feb 23 10:55:00 2011
   3145 From: marka@pobox.com (Mark Alexander)
   3146 Date: Wed, 23 Feb 2011 10:55:00 -0500
   3147 Subject: [sup-talk] searching for multiple labels
   3148 In-Reply-To: <1298471114-sup-8140@plc.intranet.plecavalier.com>
   3149 References: <1298471114-sup-8140@plc.intranet.plecavalier.com>
   3150 Message-ID: <1298476415-sup-2899@bloovis.org>
   3151 
   3152 Excerpts from Philippe LeCavalier's message of Wed Feb 23 09:25:57 -0500 2011:
   3153 > What's the syntax for searching multiple labels in one query? Or do I
   3154 > always have to search & refine?
   3155 
   3156 I use things like this:
   3157 
   3158   label:something AND label:other
   3159 
   3160 or this:
   3161 
   3162   label:something AND is:unread AND is:inbox
   3163 
   3164 From gregor@hoffleit.de  Wed Feb 23 11:38:11 2011
   3165 From: gregor@hoffleit.de (Gregor Hoffleit)
   3166 Date: Wed, 23 Feb 2011 17:38:11 +0100
   3167 Subject: [sup-talk] searching for multiple labels
   3168 In-Reply-To: <1298471114-sup-8140@plc.intranet.plecavalier.com>
   3169 References: <1298471114-sup-8140@plc.intranet.plecavalier.com>
   3170 Message-ID: <1298478713-sup-7540@sam.mediasupervision.de>
   3171 
   3172 "label:apple label:orange" finds all threads which have either the label
   3173 "apple" or the label "orange" (or both).
   3174 
   3175 "label:apple AND label:orange" finds the threads which are labeled with
   3176 "apple" and "orange" at the same time.
   3177 
   3178 For a more detailed description, have a look at
   3179 http://sup.rubyforge.org/wiki/wiki.pl?SearchingMail.
   3180 
   3181 Regards,
   3182     Gregor
   3183 
   3184 
   3185 
   3186 * Philippe LeCavalier <support at plecavalier.com> [Mi Feb 23 15:25:57 +0100 2011]
   3187 > What's the syntax for searching multiple labels in one query? Or do I
   3188 > always have to search & refine?
   3189 
   3190 From johnbent@lanl.gov  Wed Feb 23 12:29:20 2011
   3191 From: johnbent@lanl.gov (John Bent)
   3192 Date: Wed, 23 Feb 2011 10:29:20 -0700
   3193 Subject: [sup-talk] searching for multiple labels
   3194 In-Reply-To: <1298476415-sup-2899@bloovis.org>
   3195 References: <1298471114-sup-8140@plc.intranet.plecavalier.com>
   3196 	<1298476415-sup-2899@bloovis.org>
   3197 Message-ID: <1298482087-sup-2756@guava.lanl.gov>
   3198 
   3199 Excerpts from Mark Alexander's message of Wed Feb 23 08:55:00 -0700 2011:
   3200 > Excerpts from Philippe LeCavalier's message of Wed Feb 23 09:25:57 -0500 2011:
   3201 > > What's the syntax for searching multiple labels in one query? Or do I
   3202 > > always have to search & refine?
   3203 > 
   3204 > I use things like this:
   3205 > 
   3206 >   label:something AND label:other
   3207 > 
   3208 > or this:
   3209 > 
   3210 >   label:something AND is:unread AND is:inbox
   3211 >
   3212 There is a 'U' shortcut mapped to 'is:unread' which I always patch to
   3213 'is:unread AND is:inbox' since I leave a ton of mailing list threads
   3214 unread and archived.
   3215 -- 
   3216 Thanks,
   3217 
   3218 John 
   3219 
   3220 From wmorgan-sup@masanjin.net  Wed Feb 23 13:23:33 2011
   3221 From: wmorgan-sup@masanjin.net (William Morgan)
   3222 Date: Wed, 23 Feb 2011 18:23:33 +0000
   3223 Subject: [sup-talk] [sup-devel] sup-server revisited
   3224 In-Reply-To: <4d64da8b.8389cc0a.31cf.6b21@mx.google.com>
   3225 References: <1298320404-sup-5972@masanjin.net>
   3226 	<4d63c3a7.8389cc0a.52c5.7a5c@mx.google.com>
   3227 	<1298397585-sup-1661@masanjin.net>
   3228 	<4d64da8b.8389cc0a.31cf.6b21@mx.google.com>
   3229 Message-ID: <1298485323-sup-5531@masanjin.net>
   3230 
   3231 Reformatted excerpts from Nicolas Pouillard's message of 2011-02-23:
   3232 > I agree with you and don't to expose such details. What I want is a
   3233 > way to separate the frontend from the backend completely.
   3234 
   3235 Yes, absolutely.
   3236 
   3237 > I also want to be able to script batch operations on the mail store
   3238 > easily.
   3239 
   3240 Agreed. A definite goal. The prevalence of [bug reports about]
   3241 sup-tweak-labels usage is a sign that other people desire this too.
   3242 -- 
   3243 William <wmorgan-sup at masanjin.net>
   3244 
   3245 From support@plecavalier.com  Wed Feb 23 13:31:51 2011
   3246 From: support@plecavalier.com (Philippe LeCavalier)
   3247 Date: Wed, 23 Feb 2011 13:31:51 -0500
   3248 Subject: [sup-talk] searching for multiple labels
   3249 In-Reply-To: <1298475886-sup-3699@daphne>
   3250 References: <1298471114-sup-8140@plc.intranet.plecavalier.com>
   3251 	<1298475886-sup-3699@daphne>
   3252 Message-ID: <1298485835-sup-9397@plc.intranet.plecavalier.com>
   3253 
   3254 Excerpts from Christer Edwards's message of Wed Feb 23 10:45:41 -0500 2011:
   3255 > Excerpts from Philippe LeCavalier's message of 2011-02-23 07:25:57 -0700:
   3256 > > What's the syntax for searching multiple labels in one query? Or do I
   3257 > > always have to search & refine?
   3258 > 
   3259 > label:foo AND label:bar AND is:unread ...etc.
   3260 > 
   3261 > Christer
   3262 I see. Based on some posts I thought that the '-','+' would effectively add or
   3263 negate a term.
   3264 -- 
   3265 Thanks,
   3266 Phil
   3267