Gajim - 2015-09-26


  1. bot RSS: Feeds for Gajim • Ticket #8151 (traceback on long duration of having no Internet) created Bug description I'd kept my laptop on with gajim running when I went to sleep, but the Internet got switched off sometime in between. In the morning I was greeted with this: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/gajim/gui_interface.py", line 2468, in process_connections gajim.idlequeue.process() […] https://trac.gajim.org/ticket/8151
  2. tmolitor Arune: the Problem is, the current regular expression matches sometext:something and wie need a new regular expression matching only real ftp or http(s) links...
  3. tmolitor Arune: I'm currently searching Tor a good regex doing this ...I'll send you my current diff later...
  4. tmolitor The thing is, I don't know why, but currently the plugin isn't listed in the plugin Manager anymore...maybe a Syntax error or something like that?
  5. arune tmolitor: can you give me an example text that triggers the problem?
  6. arune something:something? I'll test when at my computer
  7. tmolitor Bla:* for example... or 11:34
  8. tmolitor Yes...
  9. tmolitor diff -r fdc7548539b7 url_image_preview/url_image_preview.py --- a/url_image_preview/url_image_preview.py Thu Sep 24 20:01:20 2015 +0200 +++ b/url_image_preview/url_image_preview.py Sat Sep 26 12:35:50 2015 +0200 @@ -5,6 +5,7 @@ import os import urllib2 import base64 +import re from common import gajim from common import helpers @@ -15,6 +16,16 @@ ACCEPTED_MIME_TYPES = ('image/png','image/jpeg','image/gif','image/raw', 'image/svg+xml') +# FIXME: recognize xmpp: and treat it specially +links = r"_^(?:(?:https?|ftp)://)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})"\ + r"(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})"\ + r"(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])"\ + r"(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))"\ + r"|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)"\ + r"(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*"\ + r"(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,})))(?::\d{2,5})?(?:/[^\s]*)?$_iuS" + +links_re = re.compile(links, re.IGNORECASE) class UrlImagePreviewPlugin(GajimPlugin): @log_calls('UrlImagePreviewPlugin') @@ -67,8 +78,6 @@ def print_special_text(self, special_text, other_tags, graphics=True, iter_=None): - if not gajim.interface.basic_pattern_re.match(special_text): - return # remove qip bbcode special_text = special_text.rsplit('[/img]')[0] @@ -76,7 +85,10 @@ special_text = 'http://' + special_text if special_text.startswith('ftp.'): special_text = 'ftp://' + special_text - + + if not links_re.match(special_text): + return + buffer_ = self.textview.tv.get_buffer() if not iter_: iter_ = buffer_.get_end_iter()
  10. tmolitor Arune: Thats my current diff...
  11. tmolitor Arune: but it seems to have some Bug...
  12. tmolitor Arune: maybe it helps you...
  13. tmolitor Arune: I think the regex is not python compatible....
  14. Asterix tmolitor: I see the url_image_preview plugin correctly listed
  15. bot RSS: Feeds for Gajim • Changeset [15816:eaa838a15988]: prepare 0.16.4 release prepare 0.16.4 release https://trac.gajim.org/changeset/eaa838a159882e1250610eadc0ece1944108b50d • Changeset [15817:973f4b3492a5]: build windows version with PyopenSSL 0.15.1 build windows version with PyopenSSL 0.15.1 https://trac.gajim.org/changeset/973f4b3492a5d0ca304d59409927408bf2fdc768
  16. Link Mauve Asterix, I remember hearing somebody say that the Windows version was still bundled with some terrible OpenSSL 0.9.8, have you fixed that?
  17. Asterix see latest commit ;)
  18. Asterix i needed to updated pyopen ssl to get newer openssl, so yes with newer pyopenssl I now use newer openssl
  19. Link Mauve It’s what made me think about it, but I couldn’t find that information there.
  20. tmolitor Asterix: No, I meant After applying my Patch...the one I posted in this muc...
  21. Asterix ha ok
  22. bot RSS: Feeds for Gajim • Changeset [15818:5253377a8628]: fix typo fix typo https://trac.gajim.org/changeset/5253377a8628abfe2b4438460c2a8a3a51de989c • WikiStart edited (diff) https://trac.gajim.org/wiki/WikiStart?version=277 • Changeset [15819:05e7ce499ce2]: Added tag gajim-0.16.4 for changeset 5253377a8628 Added tag gajim-0.16.4 for changeset 5253377a8628 https://trac.gajim.org/changeset/05e7ce499ce23d25351a21b67af60f548b5e4a99
  23. Asterix set the topic to Welcome to the official room of Gajim. Gajim 0.16.4 is now released! Try it! Language is English. If you have something to ask, just ask. Don't circle around with questions like "Have anyone used Gajim on Windows?"... New Bugs at http://trac.gajim.org/newticket Paste in http://paste.gajim.org shots in http://picpaste.com room logs in https://conference.gajim.org:5281/muc_log/gajim/ Spread Gajim! http://trac.gajim.org/wiki/SpreadJabberAndGajim
  24. Asterix 0.16.4 released
  25. Link Mauve \o/
  26. Link Mauve How automated/manual is the release process nowadays?
  27. Asterix script to build windows installer, script to build tarballs and debian package, then I upload, update debian repos, I edit website php manualy, push, script to build translations and get static pages.
  28. mt Asterix: thumbs up for 0.16.4 :) fixed all of my issues
  29. narcode :)
  30. Asterix mt: thx
  31. bot RSS: Feeds for Gajim • Ticket #8125 (Enable TLS 1.2 and update ciphers suites on windows) closed fixed: it's in 0.16.4 https://trac.gajim.org/ticket/8125#comment:8
  32. thorsten Which bot is running here in this channel?
  33. SouL thorsten: Isida
  34. SouL The developer told me it was an abandoned project but it means he trolled me
  35. SouL it seems*
  36. thorsten Cool
  37. thorsten Which version are u using?
  38. thorsten 4th?
  39. thorsten It knows my jabber client ✌
  40. SouL I don't used, you can join to the russian conference or find someone that used it and can help you.
  41. SouL I ended up really angry so I prefer not to talk about Isida :P
  42. thorsten Hiji
  43. thorsten Will try to setup this beast
  44. SouL yeah, it is
  45. thorsten I have the feeling mist of the commands don't work
  46. thorsten SouL: have been kicked ;)
  47. SouL From their conference, thorsten?
  48. thorsten Yes
  49. thorsten Haha
  50. thorsten Russian freaks
  51. thorsten ;)
  52. SouL I had to use an online translator to use Isida
  53. SouL because I couldn't get any help
  54. thorsten There's an English version
  55. thorsten Guthub ..inside the config.py it's Russian but on github it's written in English
  56. thorsten Well..I'll use it with sqlite3
  57. thorsten It still imports database dumps ;)
  58. thorsten Pressed to see how and if it works
  59. thorsten bot: help
  60. bot thorsten: Isida Jabber Bot - Information-referral bot | http://isida-bot.com | © 2oo9-2o15 Disabler Production Lab. | Help for command: help command
  61. thorsten bot: command
  62. thorsten bot: help command
  63. bot thorsten: Prefix: _, Available help for commands: [0]…commands, help [3]…poke, prefix, private, public, sayto, vcard_raw [6]…dig, host, nslookup, psay, say [7]…acl [8]…comm [9]…sh, sh_silent
  64. thorsten !commands
  65. thorsten bot: !commands
  66. thorsten commands
  67. Asterix thorsten: please talk to bot in pm