emesene能接收檔案啦~

仅仅用于软件推荐,不适合发求软件或软件使用问题方面的贴子
回复
Quetalocatl
帖子: 162
注册时间: 2006-01-20 14:01
来自: Macau
联系:

emesene能接收檔案啦~

#1

帖子 Quetalocatl »

emesene是一個用python實現的Live Messenger Client
http://emesene.org/

現在(1010)SVN的能接收檔案啦~
當然也能接收表情等號
自訂表情也有一定程式的支持
可以傳送一定大小的表情符號(指解像度大小,微軟本身的支持過大表情,某程度上是BUG)

不過emesene本身也有點不便的
例如不支持MSN群的nickname和按Esc會關閉交談視窗
所以我有兩個patch
也貼上來

代码: 全选

Index: ConversationUI.py
===================================================================
--- ConversationUI.py   (revision 1010)
+++ ConversationUI.py   (working copy)
@@ -931,7 +931,7 @@
             self.input.grab_focus() 
 
     def on_escape_pressed_event(self, widget):
-        if not self.parentUI.closed:
+        if not self.parentUI.closed and 0:
             self.parentUI.parentConversation.close()
 
     def on_key_press_event(self , widget, event):
Index: emesenelib/Switchboard.py
===================================================================
--- emesenelib/Switchboard.py   (revision 1010)
+++ emesenelib/Switchboard.py   (working copy)
@@ -247,6 +247,14 @@
                     charset = Type.split('text/plain; charset=')[1]
                 except IndexError:
                     charset = ''
+
+                try:
+                    charset = Type.split('text/plain; charset=')[1]
+                except IndexError:
+                    charset = ''
+                if 'P4-Context' in header:
+                    nick += header['P4-Context']
+                    body = "「" + header['P4-Context'] + "」" + body
                 
                 self.emit( 'message', tid, nick, body, format, charset )
                 self.msn.emit( 'message-received', tid )
头像
james_xl
帖子: 107
注册时间: 2006-09-17 17:31

#2

帖子 james_xl »

早就支持文件传输和接收表情了。
回复