sup

A curses threads-with-tags style email client

sup-website.git

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

community/pipermail-archives/sup-devel/2012-01.txt (23025B) - raw

      1 From matthieu.rakotojaona@gmail.com  Wed Jan  4 18:12:06 2012
      2 From: matthieu.rakotojaona@gmail.com (Matthieu Rakotojaona)
      3 Date: Thu, 5 Jan 2012 00:12:06 +0100
      4 Subject: [sup-devel] Ruby 1.8 compatibility patches for Heliotrope and
      5 	Turnsole.
      6 In-Reply-To: <1325273627-sup-7605@typhon>
      7 References: <CA+ogd7HSKVpt27u6vcqi9LAjWmSWvvtaMgHv8eE9XgAxz_RpxQ@mail.gmail.com>
      8 	<1325223938-sup-1516@tw-mbp-wmorgan.local>
      9 	<CAMiZLn2k-AqQ-XOQenu-kSDKhRjg-nF7Pch++cpjr8fX_6whqg@mail.gmail.com>
     10 	<1325273627-sup-7605@typhon>
     11 Message-ID: <CAMiZLn0aHvKi_7xLPF6VZ-WZ=sBAF+iC0L2z1Ar1NFsuSPqbmQ@mail.gmail.com>
     12 
     13 Okay, for the IMAP interface (called imaptrope) to work, I implemented
     14 some changes in heliotrope. They are available in
     15 https://github.com/rakoo/heliotrope as 2 branches :
     16 
     17 * master comes directly from yours, as of today;
     18 * imaptrope-compliance, which adds some methods;
     19 * mail_gem, which replaces rmail with mail from
     20 https://github.com/mikel/mail. The former isn't maintained anymore
     21 while the latter is, which seems better to me.
     22 
     23 You can then try imaptrope in https://github.com/rakoo/imaptrope.
     24 There you will have 2 branches :
     25 
     26 * master is  ... master
     27 * UIDPLUS aims to follow the IMAP RFC
     28 (www.cs.brown.edu/courses/cs161/asgn/rfc3501.html)
     29 
     30 If you want something safe, use the 'safe' tag: It is read-only.
     31 
     32 UIDPLUS is here to help OfflineIMAP sync imap servers. Problem is,
     33 OfflineIMAP is still under development for IMAP-IMAP sync. I will try
     34 to use imapsync, which looks more bullet-proof.
     35 
     36 Adding messages to heliotrope via IMAP still is buggy, mainly because
     37 of encoding errors. Any bug report is appreciated, of course.
     38 
     39 Happy new year !
     40 
     41 -- 
     42 Matthieu RAKOTOJAONA
     43 
     44 From michael+sup@stapelberg.de  Sun Jan  8 15:37:25 2012
     45 From: michael+sup@stapelberg.de (Michael Stapelberg)
     46 Date: Sun, 08 Jan 2012 20:37:25 +0000
     47 Subject: [sup-devel]  importing your sup email into heliotrope
     48 In-Reply-To: <1325277038-sup-3185@tw-mbp-wmorgan.local>
     49 References: <1325277038-sup-3185@tw-mbp-wmorgan.local>
     50 Message-ID: <1326054821-sup-1707@stapelberg.de>
     51 
     52 Hi William,
     53 
     54 Excerpts from William Morgan's message of 2011-12-30 20:31:24 +0000:
     55 > 3. Import your mail sources into heliotrope. Mbox and maildir sources
     56 >    should go pretty quick; IMAP, as usual, will be very slow. For each
     57 >    source you can do this:
     58 > 
     59 >      $HELIOTROPE_DIR> ruby -Ilib bin/heliotrope-import --dir <mailstore dir> --sup-dumpfile <dumpfile> --mbox <mbox file>
     60 I think you meant --sup-label-file, or you did not push some commits yet :).
     61 
     62 >    Or replace "--mbox <mbox file>" with the corresponding argument to
     63 >    your source (use --help to see them all).
     64 FYI: I used the following command to get all my sources in one command line:
     65 $ grep uri .sup/sources.yaml | sed 's/^[ \t]*uri: maildir://g' | tr '\n' ' '
     66 
     67 The total time for importing was:
     68 ; scanned 133872, indexed 122314, skipped 9485 bad and 2073 seen messages in 12484.5s = 10.7 m/s
     69 
     70 Which is awfully long. I took a look at the process list and saw lots of
     71 html2text process running. Why are they run at all? Are they also run for
     72 plain-text emails? Most of my emails surely are plain-text, without any need to
     73 convert HTML.
     74 
     75 > 5. Finally, reorder the index so that messages appear in order:
     76 > 
     77 >      $HELIOTROPE_DIR> ruby -Ilib bin/heliotrope-reindex --reorder --dir <mailstore dir>
     78 >      $HELIOTROPE_DIR> mv <mailstore dir>/index <mailstore dir>/index-old
     79 >      $HELIOTROPE_DIR> mv <mailstore dir>/index-reindexed <mailstore dir>/index
     80 Ugh, this took a lot of time, too:
     81 ; reindexed 120451 messages, skipped 0 spam and 1863 deleted in 9509.3s = 12.7 m/s
     82 
     83 Also, the numbers don?t add up. This is a bit confusing. Is there maybe no
     84 printing of the *final* status? Or is this intended?
     85 
     86 Best regards,
     87 Michael
     88 
     89 From michael+sup@stapelberg.de  Sun Jan  8 15:50:02 2012
     90 From: michael+sup@stapelberg.de (Michael Stapelberg)
     91 Date: Sun, 08 Jan 2012 20:50:02 +0000
     92 Subject: [sup-devel]  importing your sup email into heliotrope
     93 References: <1325277038-sup-3185@tw-mbp-wmorgan.local>
     94 Message-ID: <1326055774-sup-6620@stapelberg.de>
     95 
     96 Hi William,
     97 
     98 (Re-sent message due to missing sendmail hook and thus wrong from address.)
     99 
    100 Excerpts from William Morgan's message of 2011-12-30 20:31:24 +0000:
    101 > 3. Import your mail sources into heliotrope. Mbox and maildir sources
    102 >    should go pretty quick; IMAP, as usual, will be very slow. For each
    103 >    source you can do this:
    104 > 
    105 >      $HELIOTROPE_DIR> ruby -Ilib bin/heliotrope-import --dir <mailstore dir> --sup-dumpfile <dumpfile> --mbox <mbox file>
    106 I think you meant --sup-label-file, or you did not push some commits yet :).
    107 
    108 >    Or replace "--mbox <mbox file>" with the corresponding argument to
    109 >    your source (use --help to see them all).
    110 FYI: I used the following command to get all my sources in one command line:
    111 $ grep uri .sup/sources.yaml | sed 's/^[ \t]*uri: maildir://g' | tr '\n' ' '
    112 
    113 The total time for importing was:
    114 ; scanned 133872, indexed 122314, skipped 9485 bad and 2073 seen messages in 12484.5s = 10.7 m/s
    115 
    116 Which is awfully long. I took a look at the process list and saw lots of
    117 html2text process running. Why are they run at all? Are they also run for
    118 plain-text emails? Most of my emails surely are plain-text, without any need to
    119 convert HTML.
    120 
    121 > 5. Finally, reorder the index so that messages appear in order:
    122 > 
    123 >      $HELIOTROPE_DIR> ruby -Ilib bin/heliotrope-reindex --reorder --dir <mailstore dir>
    124 >      $HELIOTROPE_DIR> mv <mailstore dir>/index <mailstore dir>/index-old
    125 >      $HELIOTROPE_DIR> mv <mailstore dir>/index-reindexed <mailstore dir>/index
    126 Ugh, this took a lot of time, too:
    127 ; reindexed 120451 messages, skipped 0 spam and 1863 deleted in 9509.3s = 12.7 m/s
    128 
    129 Also, the numbers don?t add up. This is a bit confusing. Is there maybe no
    130 printing of the *final* status? Or is this intended?
    131 
    132 Best regards,
    133 Michael
    134 
    135 From michael+sup@stapelberg.de  Sun Jan  8 16:23:06 2012
    136 From: michael+sup@stapelberg.de (Michael Stapelberg)
    137 Date: Sun, 08 Jan 2012 21:23:06 +0000
    138 Subject: [sup-devel] [Heliotrope] Bug: Cannot use UTF-8 characters in subject
    139 Message-ID: <1326057665-sup-9349@stapelberg.de>
    140 
    141 Hey,
    142 
    143 I tried sending an email to this list and used an UTF-8 character in the
    144 message subject. Turnsole (or RMail?) doesn?t like that, and I got the
    145 following exception:
    146 
    147 $ ruby -I lib -I ../heliotrope/lib bin/turnsole
    148 /home/michael/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
    149 /home/michael/.rvm/gems/ruby-1.9.3-p0 at sup2011-11-18/gems/rmail-1.0.0/lib/rmail/header.rb:81:in `=~': incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string) (Encoding::CompatibilityError)
    150 	from /home/michael/.rvm/gems/ruby-1.9.3-p0 at sup2011-11-18/gems/rmail-1.0.0/lib/rmail/header.rb:81:in `parse'
    151 	from /home/michael/.rvm/gems/ruby-1.9.3-p0 at sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:233:in `block in parse_header'
    152 	from /home/michael/.rvm/gems/ruby-1.9.3-p0 at sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:229:in `each'
    153 	from /home/michael/.rvm/gems/ruby-1.9.3-p0 at sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:229:in `parse_header'
    154 	from /home/michael/.rvm/gems/ruby-1.9.3-p0 at sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:194:in `parse_low'
    155 	from /home/michael/.rvm/gems/ruby-1.9.3-p0 at sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:183:in `parse'
    156 	from /home/michael/.rvm/gems/ruby-1.9.3-p0 at sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:331:in `parse'
    157 	from /home/michael/.rvm/gems/ruby-1.9.3-p0 at sup2011-11-18/gems/rmail-1.0.0/lib/rmail/parser.rb:345:in `read'
    158 	from /home/michael/turnsole/lib/turnsole/modes/edit-message-mode.rb:273:in `parse_file'
    159 	from /home/michael/turnsole/lib/turnsole/modes/edit-message-mode.rb:166:in `edit_message!'
    160 	from /home/michael/turnsole/lib/turnsole/modes/compose-mode.rb:19:in `edit_message!'
    161 	from /home/michael/turnsole/lib/turnsole/modes/compose-mode.rb:47:in `spawn_nicely'
    162 	from /home/michael/turnsole/lib/turnsole/global.rb:100:in `do'
    163 	from /home/michael/turnsole/lib/turnsole/input.rb:41:in `handle'
    164 	from /home/michael/turnsole/lib/turnsole/ui.rb:69:in `block in step'
    165 	from /home/michael/turnsole/lib/turnsole/ui.rb:100:in `block in spawn_fiber'
    166 
    167 Also, I noticed that the tempfile which turnsole used to store my mail was gone
    168 afterwards :(. The message was not saved as a draft in Heliotrope either. GMail
    169 does that pretty well, so it would be great if we could keep up here.
    170 
    171 Best regards,
    172 Michael
    173 
    174 From michael+sup@stapelberg.de  Sun Jan  8 16:27:11 2012
    175 From: michael+sup@stapelberg.de (Michael Stapelberg)
    176 Date: Sun, 08 Jan 2012 21:27:11 +0000
    177 Subject: [sup-devel] [Heliotrope] when importing mail from sup,
    178 	label "killed" doesn't get changed to "muted"
    179 Message-ID: <1326057857-sup-7185@stapelberg.de>
    180 
    181 Hey again,
    182 
    183 I recently imported my mail from sup to heliotrope and noticed that I had a lot
    184 of threads in my inbox which were killed in sup. A quick glance at the source of
    185 heliotrope revealed that you made the label name consistent with GMail and
    186 renamed it to "muted". However, as the subject says, when importing, this label
    187 is not changed.
    188 
    189 For a quick fix after importing the messages, do the following in
    190 heliotrope-console:
    191 
    192 $ ruby -Ilib bin/heliotrope-console --dir /path/to/mailstore
    193 
    194 metaindex.set_query Query.new("body", "~killed")
    195 results = metaindex.get_some_results(metaindex.count_results)
    196 
    197 for result in results do
    198    labels = result[:labels]
    199    labels.delete("killed")
    200    labels.add("muted")
    201    metaindex.update_thread_labels(result[:thread_id], labels)
    202 end
    203 
    204 Best regards,
    205 Michael
    206 
    207 From michael+sup@stapelberg.de  Sun Jan  8 17:48:18 2012
    208 From: michael+sup@stapelberg.de (Michael Stapelberg)
    209 Date: Sun, 08 Jan 2012 22:48:18 +0000
    210 Subject: [sup-devel] [Heliotrope/Turnsole] How to use IMAP?
    211 Message-ID: <1326062741-sup-6469@stapelberg.de>
    212 
    213 Hi,
    214 
    215 So, I?m unsure how to use IMAP or offlineimap + maildir to be precise. I?m
    216 currently several hundred kilometers away from my IMAP server (which only has a
    217 slow link, so completely re-syncing my mails would take days), but I have an
    218 offlineimap copy of it which I keep updating. With sup, it would just scan
    219 through the maildir and pick up new messages.
    220 
    221 Now I want to keep using offlineimap (so that I can switch back to sup if
    222 necessary) and use heliotrope/turnsole. heliotrope-add seems like the wrong
    223 tool for this job, since it will do a full scan (!) of my 5 GB of mail (110k
    224 messages) which takes several hours.
    225 
    226 What is the correct way to do this?
    227 
    228 Best regards,
    229 Michael
    230 
    231 From wmorgan-sup@masanjin.net  Mon Jan  9 17:30:42 2012
    232 From: wmorgan-sup@masanjin.net (William Morgan)
    233 Date: Mon, 09 Jan 2012 14:30:42 -0800
    234 Subject: [sup-devel]  importing your sup email into heliotrope
    235 In-Reply-To: <1326055774-sup-6620@stapelberg.de>
    236 References: <1325277038-sup-3185@tw-mbp-wmorgan.local>
    237 	<1326055774-sup-6620@stapelberg.de>
    238 Message-ID: <1326146246-turnsole-46014@terminus-est>
    239 
    240 Excerpts from Michael Stapelberg's message of 2012-01-08 12:50:02 -0800:
    241 > I think you meant --sup-label-file, or you did not push some commits yet :).
    242 
    243 Yes, you are right. Thanks.
    244 
    245 > The total time for importing was:
    246 > ; scanned 133872, indexed 122314, skipped 9485 bad and 2073 seen messages in 12484.5s = 10.7 m/s
    247 > 
    248 > Which is awfully long. I took a look at the process list and saw lots of
    249 > html2text process running. Why are they run at all? Are they also run for
    250 > plain-text emails? Most of my emails surely are plain-text, without any need to
    251 > convert HTML.
    252 
    253 They should only be run for text/html mime parts that are not part of a
    254 multipart/alternative mime part with a text component (in that case the
    255 text part is just used directly.)
    256 
    257 I believe that is the case, but if you can find a counterexample, please file
    258 it as a bug: http://github.com/wmorgan/heliotrope/issues.
    259 
    260 > ; reindexed 120451 messages, skipped 0 spam and 1863 deleted in 9509.3s = 12.7 m/s
    261 > 
    262 > Also, the numbers don?t add up.
    263 
    264 120451 + 1863 = 122314, so they do add up. Perhaps what's confusing is that
    265 import happily preserves your deleted emails, but reindex by default skips
    266 over them?
    267 
    268 Glad to hear you're giving it a try. Keep the bug reports coming.
    269 -- 
    270 William <wmorgan at masanjin.net>
    271 
    272 From wmorgan-sup@masanjin.net  Mon Jan  9 18:23:18 2012
    273 From: wmorgan-sup@masanjin.net (William Morgan)
    274 Date: Mon, 09 Jan 2012 15:23:18 -0800
    275 Subject: [sup-devel] [Heliotrope] Bug: Cannot use UTF-8 characters in subject
    276 In-Reply-To: <1326057665-sup-9349@stapelberg.de>
    277 References: <1326057665-sup-9349@stapelberg.de>
    278 Message-ID: <1326151156-turnsole-73610@terminus-est>
    279 
    280 Excerpts from Michael Stapelberg's message of 2012-01-08 13:23:06 -0800:
    281 > I tried sending an email to this list and used an UTF-8 character in the
    282 > message subject. Turnsole (or RMail?) doesn?t like that, and I got the
    283 > following exception:
    284 
    285 Thanks. I'm hoping we can fix this with the mail gem, as opposed to modyfing
    286 RMail directly.
    287 
    288 > Also, I noticed that the tempfile which turnsole used to store my mail was gone
    289 > afterwards :(. The message was not saved as a draft in Heliotrope either. GMail
    290 > does that pretty well, so it would be great if we could keep up here.
    291 
    292 Yeah. As a first step we should at least move away from the Ruby tempfile
    293 library, which deletes the file when a GC happens, and explicitly delete the
    294 tempfiles only after success.
    295 
    296 Can you please file a bug report for both of these on the issues page?
    297 -- 
    298 William <wmorgan at masanjin.net>
    299 
    300 From wmorgan-sup@masanjin.net  Mon Jan  9 18:37:19 2012
    301 From: wmorgan-sup@masanjin.net (William Morgan)
    302 Date: Mon, 09 Jan 2012 15:37:19 -0800
    303 Subject: [sup-devel]  [Heliotrope] when importing mail from sup,
    304 	label "killed" doesn't get changed to "muted"
    305 In-Reply-To: <1326057857-sup-7185@stapelberg.de>
    306 References: <1326057857-sup-7185@stapelberg.de>
    307 Message-ID: <1326152198-turnsole-42898@terminus-est>
    308 
    309 Excerpts from Michael Stapelberg's message of 2012-01-08 13:27:11 -0800:
    310 > I recently imported my mail from sup to heliotrope and noticed that I
    311 > had a lot of threads in my inbox which were killed in sup. A quick
    312 > glance at the source of heliotrope revealed that you made the label
    313 > name consistent with GMail and renamed it to "muted". However, as the
    314 > subject says, when importing, this label is not changed.
    315 
    316 Thanks for the report. I will fix this so that the import process
    317 converts the label automatically.
    318 -- 
    319 William <wmorgan at masanjin.net>
    320 
    321 From wmorgan-sup@masanjin.net  Mon Jan  9 18:42:33 2012
    322 From: wmorgan-sup@masanjin.net (William Morgan)
    323 Date: Mon, 09 Jan 2012 15:42:33 -0800
    324 Subject: [sup-devel] Ruby 1.8 compatibility patches for Heliotrope and
    325 	Turnsole.
    326 In-Reply-To: <CAMiZLn0aHvKi_7xLPF6VZ-WZ=sBAF+iC0L2z1Ar1NFsuSPqbmQ@mail.gmail.com>
    327 References: <CA+ogd7HSKVpt27u6vcqi9LAjWmSWvvtaMgHv8eE9XgAxz_RpxQ@mail.gmail.com>
    328 	<1325223938-sup-1516@tw-mbp-wmorgan.local>
    329 	<CAMiZLn2k-AqQ-XOQenu-kSDKhRjg-nF7Pch++cpjr8fX_6whqg@mail.gmail.com>
    330 	<1325273627-sup-7605@typhon>
    331 	<CAMiZLn0aHvKi_7xLPF6VZ-WZ=sBAF+iC0L2z1Ar1NFsuSPqbmQ@mail.gmail.com>
    332 Message-ID: <1326152528-turnsole-80685@terminus-est>
    333 
    334 Excerpts from Matthieu Rakotojaona's message of 2012-01-04 15:12:06 -0800:
    335 > Okay, for the IMAP interface (called imaptrope) to work, I implemented
    336 > some changes in heliotrope. They are available in
    337 > https://github.com/rakoo/heliotrope as 2 branches :
    338 
    339 Thanks! I will take a look.
    340 -- 
    341 William <wmorgan at masanjin.net>
    342 
    343 From wmorgan-sup@masanjin.net  Mon Jan  9 19:40:56 2012
    344 From: wmorgan-sup@masanjin.net (William Morgan)
    345 Date: Mon, 09 Jan 2012 16:40:56 -0800
    346 Subject: [sup-devel]  [Heliotrope/Turnsole] How to use IMAP?
    347 In-Reply-To: <1326062741-sup-6469@stapelberg.de>
    348 References: <1326062741-sup-6469@stapelberg.de>
    349 Message-ID: <1326155913-turnsole-58321@terminus-est>
    350 
    351 Excerpts from Michael Stapelberg's message of 2012-01-08 14:48:18 -0800:
    352 > What is the correct way to do this?
    353 
    354 I need to write some code to do this. For IMAP and GMail, heliotrope-add will
    355 keep a pointer to thelast message imported, by default. For mbox there is a
    356 trick you can use. But there's nothing for maildir right now. Please file
    357 an issue so that I don't forget this!
    358 -- 
    359 William <wmorgan at masanjin.net>
    360 
    361 From matthieu.rakotojaona@gmail.com  Fri Jan 13 17:55:52 2012
    362 From: matthieu.rakotojaona@gmail.com (Matthieu Rakotojaona)
    363 Date: Fri, 13 Jan 2012 23:55:52 +0100
    364 Subject: [sup-devel] IMAP interface
    365 Message-ID: <CAMiZLn2paWWnguKziH793V-sms10FKk_rz6Zbh64BhiqO52TJA@mail.gmail.com>
    366 
    367 Hello everyone,
    368 
    369 I've made some changes to imaptrope, my IMAP interface [0], to be
    370 usable with Thunderbird. A few things :
    371 
    372 - You will need Trollop, because it's cool
    373 - I don't understand Thunderbird's authentication mechanisms quite
    374 well. If you want to use it, set "localhost:10142" as the IMAP server.
    375 There's no need for encryption
    376 It looks like Thunderbird authenticates itself for each operation.
    377 It's a cool thing if your server is remote, but I have a few problems
    378 with security (next point)
    379 - When asking for authentication methods to a IMAP server, imaptrope
    380 answers that it can authenticate with plain text password and cram-md5
    381 encryption.
    382 I don't know how the latter works, so it isn't tested ... yet, as soon
    383 as Thunderbird sees both, it tries to use cram-md5, but fails and then
    384 uses plain authetication. So basically, you have a few seconds to wait
    385 before each operation. I suppose you can remove this auth from the
    386 CAPABILITY answer.
    387 - Communications clearly are suboptimal ... many calls to the same
    388 method in heliotrope just for one thing, basically.
    389 - You may want to use one client at a time. Overall the server is
    390 stateless, save for the session management, but I haven't had time to
    391 test its multi-threading capabilities
    392 - I still have some encoding errors, with "=0D" at the end of each line...
    393 
    394 I don't have much time at the moment, but will keep you informed.
    395 
    396 cya,
    397 
    398 [0] https://github.com/rakoo/imaptrope
    399 -- 
    400 Matthieu RAKOTOJAONA
    401 
    402 From wmorgan-sup@masanjin.net  Sat Jan 14 23:54:36 2012
    403 From: wmorgan-sup@masanjin.net (William Morgan)
    404 Date: Sat, 14 Jan 2012 20:54:36 -0800
    405 Subject: [sup-devel]  [Heliotrope] when importing mail from sup,
    406 	label "killed" doesn't get changed to "muted"
    407 In-Reply-To: <1326152198-turnsole-42898@terminus-est>
    408 References: <1326057857-sup-7185@stapelberg.de>
    409 	<1326152198-turnsole-42898@terminus-est>
    410 Message-ID: <1326603263-turnsole-54743@terminus-est>
    411 
    412 Excerpts from William Morgan's message of 2012-01-09 15:37:19 -0800:
    413 > Thanks for the report. I will fix this so that the import process
    414 > converts the label automatically.
    415 
    416 This should be fixed.
    417 -- 
    418 William <wmorgan at masanjin.net>
    419 
    420 From wmorgan-sup@masanjin.net  Sun Jan 15 00:45:54 2012
    421 From: wmorgan-sup@masanjin.net (William Morgan)
    422 Date: Sat, 14 Jan 2012 21:45:54 -0800
    423 Subject: [sup-devel] Ruby 1.8 compatibility patches for Heliotrope and
    424 	Turnsole.
    425 In-Reply-To: <CAMiZLn0aHvKi_7xLPF6VZ-WZ=sBAF+iC0L2z1Ar1NFsuSPqbmQ@mail.gmail.com>
    426 References: <CA+ogd7HSKVpt27u6vcqi9LAjWmSWvvtaMgHv8eE9XgAxz_RpxQ@mail.gmail.com>
    427 	<1325223938-sup-1516@tw-mbp-wmorgan.local>
    428 	<CAMiZLn2k-AqQ-XOQenu-kSDKhRjg-nF7Pch++cpjr8fX_6whqg@mail.gmail.com>
    429 	<1325273627-sup-7605@typhon>
    430 	<CAMiZLn0aHvKi_7xLPF6VZ-WZ=sBAF+iC0L2z1Ar1NFsuSPqbmQ@mail.gmail.com>
    431 Message-ID: <1326606119-turnsole-85915@terminus-est>
    432 
    433 Excerpts from Matthieu Rakotojaona's message of 2012-01-04 15:12:06 -0800:
    434 > * imaptrope-compliance, which adds some methods;
    435 
    436 This looks largely ok but there are some things I would like to change
    437 before incorporating it (including the use of tabs!). If you make a
    438 github pull request we can go over the details.
    439 
    440 > * mail_gem, which replaces rmail with mail from
    441 > https://github.com/mikel/mail. The former isn't maintained anymore
    442 > while the latter is, which seems better to me.
    443 
    444 I would love to get away from RMail but the Mail gem has historically
    445 been the source of many Rails-centric dependencies. They appear to have
    446 *finally* done away with activesupport, which is great news. But there
    447 is still a dependency on the i18n gem, which I'm not thrilled about.
    448 I'm not sure. Maybe it's ok. Let me think about it.
    449 
    450 Thanks for your efforts thus far!
    451 -- 
    452 William <wmorgan at masanjin.net>
    453 
    454 From iamthedata@gmail.com  Tue Jan 31 03:54:29 2012
    455 From: iamthedata@gmail.com (Gabor Nyitrai)
    456 Date: Tue, 31 Jan 2012 08:54:29 +0000
    457 Subject: [sup-devel] keybinding to open link under cursor
    458 Message-ID: <1327999544-sup-243@haka>
    459 
    460 Hello,
    461 
    462 I tried to add a keybinding hook to open a link that is on the current
    463 line, but I got lost browsing the sup source... how do I this? I got this much:
    464 
    465 # keybindings.rb
    466 
    467 modes['thread-view-mode'].keymap.add :open_link, "Open link on current line", "Y"
    468 
    469 class Redwood::ThreadViewMode
    470     def open_link
    471         m = @message_lines[curpos] or return
    472 
    473         # get the link from the current line somehow
    474         #link =~ /http:\/\/[^ ]+/
    475         
    476         # testing, just to see some response
    477         BufferManager.flash "#{curpos}"
    478 
    479         # testing, write content to a file to see what we've got
    480         path = "/tmp/sup-temp.txt"
    481         File.open(path, 'w') { |io| io.write m.raw_message }
    482 
    483         # open a browser with the link as argument
    484         #spawn "chromium-browser", link, [:in, :out, :err] => "/dev/null"
    485     end
    486 end
    487 
    488 
    489 Thanks,
    490 Gabor
    491 
    492 From alvherre@alvh.no-ip.org  Tue Jan 31 09:26:10 2012
    493 From: alvherre@alvh.no-ip.org (Alvaro Herrera)
    494 Date: Tue, 31 Jan 2012 11:26:10 -0300
    495 Subject: [sup-devel] keybinding to open link under cursor
    496 In-Reply-To: <1327999544-sup-243@haka>
    497 References: <1327999544-sup-243@haka>
    498 Message-ID: <1328019822-sup-5599@alvh.no-ip.org>
    499 
    500 
    501 Excerpts from Gabor Nyitrai's message of mar ene 31 05:54:29 -0300 2012:
    502 > Hello,
    503 > 
    504 > I tried to add a keybinding hook to open a link that is on the current
    505 > line, but I got lost browsing the sup source... how do I this? I got this much:
    506 
    507 I'm interested, so if you make it work please post it.
    508 
    509 How would you handle a link that's longer than the current line?  I
    510 don't know anything about the buffer implementation, so it seems
    511 possible a wrapped line appears just as two lines; other representations
    512 (such as a logical line being composed of more than one physical line)
    513 would make more sense, but I have no idea how to do that or whether it's
    514 even possible.
    515 
    516 -- 
    517 ?lvaro Herrera <alvherre at alvh.no-ip.org>
    518 
    519 From michael+sup@stapelberg.de  Tue Jan 31 22:16:00 2012
    520 From: michael+sup@stapelberg.de (Michael Stapelberg)
    521 Date: Wed, 01 Feb 2012 03:16:00 +0000
    522 Subject: [sup-devel] keybinding to open link under cursor
    523 In-Reply-To: <1327999544-sup-243@haka>
    524 References: <1327999544-sup-243@haka>
    525 Message-ID: <1328066069-sup-7491@stapelberg.de>
    526 
    527 Hi Gabor,
    528 
    529 Excerpts from Gabor Nyitrai's message of 2012-01-31 08:54:29 +0000:
    530 > I tried to add a keybinding hook to open a link that is on the current
    531 > line, but I got lost browsing the sup source... how do I this? I got this much:
    532 Isn?t that a feature which should rather go into the terminal emulator? For
    533 urxvt, there is the mark-and-yank script:
    534 https://github.com/bartman/urxvt-scripts
    535 
    536 Best regards,
    537 Michael
    538