Package: pidgin
Version: 2.2.2-1
Severity: wishlist
Tags: patch

Currently pidgin didn't fully support MSN group, for instance, it
displays the group bot's name instead of the original message sender's.
The attached patch is a dirty work around by inline the sender's name in
the message itself, but it might be a start point of a better patch.
It's already reported upstream at
http://developer.pidgin.im/ticket/3319
and I wonder if there's a chance for Debian to incorporate it.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pidgin depends on:
ii  gconf2                    2.20.0-1       GNOME configuration database syste
ii  libatk1.0-0               1.20.0-1       The ATK accessibility toolkit
ii  libc6                     2.6.1-6        GNU C Library: Shared libraries
ii  libcairo2                 1.4.10-1       The Cairo 2D vector graphics libra
ii  libdbus-1-3               1.1.1-3        simple interprocess messaging syst
ii  libdbus-glib-1-2          0.74-1         simple interprocess messaging syst
ii  libfontconfig1            2.4.2-1.4      generic font configuration library
ii  libglib2.0-0              2.14.2-1       The GLib library of C routines
ii  libgstreamer0.10-0        0.10.14-2      Core GStreamer libraries and eleme
ii  libgtk2.0-0               2.12.1-1       The GTK+ graphical user interface 
ii  libgtkspell0              2.0.10-3+b1    a spell-checking addon for GTK's T
ii  libice6                   2:1.0.4-1      X11 Inter-Client Exchange library
ii  libpango1.0-0             1.18.3-1       Layout and rendering of internatio
ii  libpurple0                2.2.2-1manphiz multi-protocol instant messaging l
ii  libsm6                    2:1.0.3-1+b1   X11 Session Management library
ii  libstartup-notification0  0.9-1          library for program launch feedbac
ii  libx11-6                  2:1.1.3-1      X11 client-side library
ii  libxcomposite1            1:0.3.2-1+b1   X11 Composite extension library
ii  libxcursor1               1:1.1.9-1      X cursor management library
ii  libxdamage1               1:1.1.1-3      X11 damaged region extension libra
ii  libxext6                  1:1.0.3-2      X11 miscellaneous extension librar
ii  libxfixes3                1:4.0.3-2      X11 miscellaneous 'fixes' extensio
ii  libxi6                    2:1.1.3-1      X11 Input extension library
ii  libxinerama1              1:1.0.2-1      X11 Xinerama extension library
ii  libxrandr2                2:1.2.2-1      X11 RandR extension library
ii  libxrender1               1:0.9.4-1      X Rendering Extension client libra
ii  libxss1                   1:1.1.2-1      X11 Screen Saver extension library
ii  pidgin-data               2.2.2-1manphiz multi-protocol instant messaging c

Versions of packages pidgin recommends:
ii  gstreamer0.10-plugins-base    0.10.14-4  GStreamer plugins from the "base" 
ii  gstreamer0.10-plugins-good    0.10.6-3   GStreamer plugins from the "good" 

-- no debconf information
--- libpurple/protocols/msn/switchboard.c	2007-09-30 00:39:09.000000000 +0800
+++ libpurple/protocols/msn/switchboard.c.new	2007-10-03 12:26:26.000000000 +0800
@@ -829,6 +829,7 @@
 	size_t body_len;
 	const char *passport;
 	const char *value;
+	const char *member_name;
 
 	gc = cmdproc->session->account->gc;
 	swboard = cmdproc->data;
@@ -853,6 +854,14 @@
 	}
 #endif
 
+	if ((member_name = msn_message_get_attr(msg, "P4-Context")) != NULL)
+	{
+		char *body_enc_tmp = g_strdup_printf("\n%s:\n%s", member_name,
+						     body_enc ? body_enc : "");
+		g_free(body_enc);
+		body_enc = body_enc_tmp;
+	}
+
 	if ((value = msn_message_get_attr(msg, "X-MMS-IM-Format")) != NULL)
 	{
 		char *pre, *post;

Reply via email to