Difference between revisions of "Pidgin"

From ArchWiki
Jump to: navigation, search
m (escape < so that xml can be copied directly)
(22 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{i18n|Pidgin}}
 
 
[[Category:Internet Applications]]
 
[[Category:Internet Applications]]
 
[[Category:Internet Relay Chat]]
 
[[Category:Internet Relay Chat]]
 
[[de:Pidgin]]
 
[[de:Pidgin]]
 
+
[[es:Pidgin]]
 +
[[ru:Pidgin]]
 +
[[zh-CN:Pidgin]]
 
'''Pidgin''' (formerly Gaim) is an instant messaging client for Linux that can connect to many different IM networks, such as Live Messenger, Yahoo, IRC, AIM, etc. One of Pidgin's key features is that you can use many networks at the same time.
 
'''Pidgin''' (formerly Gaim) is an instant messaging client for Linux that can connect to many different IM networks, such as Live Messenger, Yahoo, IRC, AIM, etc. One of Pidgin's key features is that you can use many networks at the same time.
  
 
==Installation==
 
==Installation==
# pacman -S pidgin
+
[[pacman|Install]] {{Pkg|pidgin}}, available in the [[Official Repositories]].
  
You may also want to install additional plugins from the {{Pkg|purple-plugin-pack}} package in [extra].
+
You may also want to [[pacman|install]] additional plugins from the {{Pkg|purple-plugin-pack}}.
  
 
==Spellcheck==
 
==Spellcheck==
Line 20: Line 21:
  
 
==Sound fix==
 
==Sound fix==
To have event sounds working, install the {{pkg|gstreamer0.10-good}} package. Alternatively, in the “Sounds” preferences tab, the method can be set to 'command' and one of the following sound commands used.
+
To have event sounds working, install the {{pkg|gstreamer0.10-good}} package. Alternatively, in the "Sounds" preferences tab, the method can be set to 'command' and one of the following sound commands used.
  
 
After configuring [[ALSA]]:
 
After configuring [[ALSA]]:
Line 27: Line 28:
 
If using [[OSS]]:
 
If using [[OSS]]:
 
  ossplay %s
 
  ossplay %s
 +
 +
And for [[PulseAudio]]:
 +
paplay %s
  
 
==Browser error==
 
==Browser error==
Line 57: Line 61:
  
 
==Xfire==
 
==Xfire==
Install one of the two packages from the [[AUR]]:
+
Simply install {{Pkg|pidgin-gfire}} and then add a new account, selecting xfire as protocol.
*Stable: {{AUR|pidgin-gfire}}
+
*Development/SVN: {{AUR|pidgin-gfire-svn}}
+
 
+
Now add a new account and select xfire as protocol.
+
  
 
==Facebook XMPP==
 
==Facebook XMPP==
Line 84: Line 84:
  
 
{{Note| Newer versions of Pidgin do not have a "Require SSL/TLS" box.  Instead, select "Use encryption if available" from the Connection Security dropdown in Advanced}}
 
{{Note| Newer versions of Pidgin do not have a "Require SSL/TLS" box.  Instead, select "Use encryption if available" from the Connection Security dropdown in Advanced}}
 +
 +
{{Note| Changing your facebook privacy settings to "Turn off all apps" (under Apps and Websites), will disable your ability to send messages via jabber. (see [https://developer.pidgin.im/wiki/Protocol%20Specific%20Questions?version&#61;123#WhycantPidginseemtosendFacebookmessages Why can't Pidgin seem to send Facebook messages])}}
 +
 +
{{Note| You may notice that all facebook contacts are in a separate group every time you login with your xmpp account even though you moved them to other groups or created meta-contacts. If you want to be able to group contacts and create meta-contacts you can use the plugin available here: [http://code.google.com/p/pidgin-xmpp-ignore-groups/ pidgin-xmpp-ignore-groups] (after installing the plugin activate the option ''Ignore server-sent groups'' on the Advanced tab in your xmpp-account settings). It essentially ignores the group data sent by the server roaster and preserves your local changes.}}
  
 
== Privacy ==
 
== Privacy ==
Line 164: Line 168:
 
== Other packages ==
 
== Other packages ==
 
Arch has other Pidgin-related packages. Here are the most popular (for a thorough list, search the AUR):
 
Arch has other Pidgin-related packages. Here are the most popular (for a thorough list, search the AUR):
*{{Pkg|pidgin-libnotify}} [community] - Libnotify support, for theme-consistent notifications
+
*{{Pkg|pidgin-libnotify}} - Libnotify support, for theme-consistent notifications
*{{Pkg|guifications}} [community] - Toaster-style popup notifications
+
*{{Pkg|guifications}} - Toaster-style popup notifications
*{{Pkg|microblog-purple}} [community] - Libpurple plug-in supporting microblog services like Twitter
+
*{{AUR|microblog-purple}} - Libpurple plug-in supporting microblog services like Twitter
 
*{{AUR|pidgin-light}} - All supported protocols same as default;  but without gstreamer, tcl, tk or xscreensaver support.  No video/voice.
 
*{{AUR|pidgin-light}} - All supported protocols same as default;  but without gstreamer, tcl, tk or xscreensaver support.  No video/voice.
 +
*{{AUR|pidgin-latex}} - A small latex plugin for pidgin. Put math between $$ and have it rendered (recepient also needs to have this installed)
  
 
==Skype plugin==
 
==Skype plugin==
  
 
Install {{AUR|skype4pidgin}} from the [[AUR]].
 
Install {{AUR|skype4pidgin}} from the [[AUR]].
 +
 +
==Auto logout on suspend==
 +
 +
If you suspend your computer pidgin seems to stay connected for about 15 minutes. To prevent message loss, it is needed to set your status offline before suspending or hibernating. The status message won't be changed.
 +
 +
Therefor create a new systemd unit {{ic|pidgin-suspend}} in {{ic|/etc/systemd/system}}
 +
Take the following snippet and replace {{ic|''myuser''}} with your user.
 +
 +
[Unit]
 +
Description=Suspend Pidgin
 +
Before=sleep.target
 +
StopWhenUnneeded=yes
 +
 +
[Service]
 +
Type=oneshot
 +
User=myuser
 +
RemainAfterExit=yes
 +
Environment=DISPLAY=:0
 +
ExecStart=-/usr/bin/purple-remote setstatus?status=offline
 +
ExecStop=-/usr/bin/purple-remote setstatus?status=available
 +
 +
[Install]
 +
WantedBy=sleep.target
 +
 +
If you are using [[pm-utils]], you could create a {{ic|00pidgin}} file in {{ic|/etc/pm/sleep.d/}} instead.
 +
(replace myuser with your username)
 +
 +
#!/bin/sh
 +
#
 +
# 00pidgin: set offline/online status
 +
 +
case "$1" in
 +
hibernate|suspend)
 +
DISPLAY=:0 su -c 'purple-remote setstatus?status=offline' ''%myuser''
 +
;;
 +
thaw|resume)
 +
DISPLAY=:0 su -c 'purple-remote setstatus?status=available' ''%myuser''
 +
;;
 +
*) exit $NA
 +
;;
 +
esac
  
 
== Troubleshooting ==
 
== Troubleshooting ==
Line 195: Line 241:
 
</pre>
 
</pre>
  
== External links ==
+
== History Import Kopete To Pidgin ==
*[http://pidgin.im Pidgin homepage]
+
* Install xalan-c
 +
<pre>
 +
pacman -S xalan-c
 +
</pre>
 +
* Create ~/bin/history_import_kopete2pidgin.sh with this code:
 +
<pre>
 +
#!/bin/sh
 +
 
 +
KOPETE_DIR=~/.kde4/share/apps/kopete/logs
 +
PIDGIN_DIR=~/.purple/logs
 +
CURRENT_DIR=~/bin
 +
 
 +
cd ~
 +
 
 +
if [ ! -d $KOPETE_DIR ];then
 +
echo "Kopete log directory not found"
 +
exit 1;
 +
fi
 +
 
 +
if [ ! -d $PIDGIN_DIR ];then
 +
echo "Pidgin log directory not found"
 +
exit 2;
 +
fi
 +
 
 +
for KOPETE_PROTODIR in `ls $KOPETE_DIR`
 +
do
 +
PIDGIN_PROTODIR=`echo $KOPETE_PROTODIR | sed 's/Protocol//' | tr [:upper:] [:lower:]`
 +
for accnum in `ls $KOPETE_DIR/$KOPETE_PROTODIR`
 +
do
 +
echo "Account number: $accnum"
 +
for num in `ls $KOPETE_DIR/$KOPETE_PROTODIR/$accnum`
 +
do
 +
FILENAME=`Xalan $KOPETE_DIR/$KOPETE_PROTODIR/$accnum/$num $CURRENT_DIR/history_import_kopete2pidgin_filename.xslt`
 +
if [ $? = 0 ]; then
 +
echo "$KOPETE_DIR/$KOPETE_PROTODIR/$accnum/$num"
 +
echo " -> $PIDGIN_DIR/$PIDGIN_PROTODIR/$FILENAME"
 +
mkdir -p `dirname $PIDGIN_DIR/$PIDGIN_PROTODIR/$FILENAME`
 +
Xalan -o $PIDGIN_DIR/$PIDGIN_PROTODIR/$FILENAME $KOPETE_DIR/$KOPETE_PROTODIR/$accnum/$num $CURRENT_DIR/history_import_kopete2pidgin.xslt
 +
fi
 +
done
 +
done
 +
done
 +
</pre>
 +
* Make ~/bin/history_import_kopete2pidgin.sh executable
 +
<pre>
 +
chmod +x ~/bin/history_import_kopete2pidgin.sh
 +
</pre>
 +
* Create ~/bin/history_import_kopete2pidgin.xslt with this code:
 +
<pre>
 +
<?xml version="1.0"?>
 +
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 +
<xsl:output method="text" indent="no" />
 +
 
 +
<xsl:template match="kopete-history">
 +
<xsl:apply-templates select="msg"/>
 +
</xsl:template>
 +
 
 +
<xsl:template match="msg">
 +
<xsl:text>(</xsl:text>
 +
<xsl:value-of select="translate(substring-after(@time,' '),':',',')"/>
 +
<xsl:text>) </xsl:text>
 +
<xsl:value-of select="@nick"/>
 +
<xsl:if test="not(@nick) or @nick = ''">
 +
<xsl:value-of select="@from"/>
 +
</xsl:if>
 +
<xsl:text>: </xsl:text>
 +
<xsl:value-of select="."/>
 +
<xsl:text>
 +
</xsl:text>
 +
</xsl:template>
 +
</xsl:stylesheet>
 +
</pre>
 +
* Create ~/bin/history_import_kopete2pidgin_filename.xslt with this code:
 +
<pre>
 +
<?xml version="1.0"?>
 +
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 +
<xsl:output method="text" indent="no" />
 +
 
 +
<xsl:template match="kopete-history">
 +
<xsl:value-of select="head/contact[@type = 'myself']/@contactId"/>
 +
<xsl:text>/</xsl:text>
 +
<xsl:value-of select="head/contact[not(@type)]/@contactId"/>
 +
<xsl:text>/</xsl:text>
 +
<xsl:value-of select="head/date/@year"/>
 +
<xsl:text>-</xsl:text>
 +
<xsl:if test="head/date/@month &amp;lt; 10">0</xsl:if>
 +
<xsl:value-of select="head/date/@month"/>
 +
<xsl:text>-</xsl:text>
 +
<xsl:if test="string-length(substring-before(msg[1]/@time,' ')) &amp;lt; 2">0</xsl:if>
 +
<xsl:value-of select="translate(msg[1]/@time,' :','.')"/>
 +
<xsl:text>+0200EET.txt</xsl:text>
 +
</xsl:template>
 +
</xsl:stylesheet>
 +
</pre>
 +
* Execute the command in the shell
 +
<pre>
 +
~/bin/history_import_kopete2pidgin.sh
 +
</pre>
 +
 
 +
==See also==
 +
* [http://pidgin.im Pidgin homepage]
 +
* [http://lukav.com/wordpress/2008/03/30/history-import-kopete-to-pidgin History Import Kopete To Pidgin]

Revision as of 11:06, 12 March 2013

Pidgin (formerly Gaim) is an instant messaging client for Linux that can connect to many different IM networks, such as Live Messenger, Yahoo, IRC, AIM, etc. One of Pidgin's key features is that you can use many networks at the same time.

Installation

Install pidgin, available in the Official Repositories.

You may also want to install additional plugins from the purple-plugin-pack.

Spellcheck

Aspell will be installed as a dependency, but to prevent all of your text from showing up as incorrect you will need to install an aspell dictionary:

# pacman -S aspell-en

This installs the English dictionary. Use pacman -Ss aspell to list available languages.

Note: The switch spell-plugin is included in the purple-plugin-pack (see above). It allows you to switch between multiple languages.

Sound fix

To have event sounds working, install the gstreamer0.10-good package. Alternatively, in the "Sounds" preferences tab, the method can be set to 'command' and one of the following sound commands used.

After configuring ALSA:

aplay %s

If using OSS:

ossplay %s

And for PulseAudio:

paplay %s

Browser error

If clicking a link within Pidgin creates an error message about trying to use 'sensible-browser' to open a link, try editing ~/.purple/prefs.xml. Find the line referencing 'sensible-browser' and change it to this:

<pref name='command' type='path' value='firefox'/>

This example assumes you use Firefox.

QIP Encoding bug

There is another bug in character encoding when communicating between Pidgin and QIP, which especially affects Czech language, but there are also other languages affected. There are two possible solutions. The better one is to upgrade from QIP to QIP Infimum, second solution is to install and enable plugin from pidgin-qip-decoderAUR package currently available from AUR.

IRC

This is a small tutorial for connecting to Freenode. It should work for other IRC networks as long as you substitute the port numbers and other specific settings.

Go to Accounts -> Manage Accounts -> Add -> Fill/select the following options:

Protocol: IRC 
Username: <your username>

Now go to Buddies -> New instant message ( or hit ctrl + m) fill 'freenode.net' in the textbox and <username>@irc.freenode.net -> then click 'Ok'. Type:

/join #archlinux (channel is irrelevant)

In order to register your nick, type:

/msg nickserv register <password> <email-addres>

Follow the instructions from the registration mail. For further help type:

/msg nickserv help
/msg nickserv help <command>

This final step will add your channel to 'Buddies': go to Buddies -> Add chat -> fill the correct channel in the textbox named channel (#archlinux).

Xfire

Simply install pidgin-gfire and then add a new account, selecting xfire as protocol.

Facebook XMPP

Since Facebook Chat supports XMPP, you can use Pidgin without extra plugins. See this article for more information: Facebook Chat Now Available Everywhere

Note: In order to utilise facebook chat through XMPP and pidgin, you will require a facebook "username", this is located in facebook -> account settings -> username [below real name]

1. Go to "Accounts" and select "Manage Accounts."

2. On the Basic tab, enter the following info:

Protocol: XMPP
Username: Your facebookID (without e-mail domain, e.g. @yahoo.com, etc)
Domain: chat.facebook.com (make sure you haven't typed any extra space)
Resource: Pidgin (leave this empty if you get "username@chat.facebook.com/Pidgin Not Authorized" error message)
Password: Your Password
Local alias: Your Name

3. Click the Advanced tab, then enter the following info:

Connect port: 5222
Connect server: chat.facebook.com (make sure you haven't typed any extra space)
(Uncheck the box labeled "Require SSL/TLS")
Note: Newer versions of Pidgin do not have a "Require SSL/TLS" box. Instead, select "Use encryption if available" from the Connection Security dropdown in Advanced
Note: Changing your facebook privacy settings to "Turn off all apps" (under Apps and Websites), will disable your ability to send messages via jabber. (see Why can't Pidgin seem to send Facebook messages)
Note: You may notice that all facebook contacts are in a separate group every time you login with your xmpp account even though you moved them to other groups or created meta-contacts. If you want to be able to group contacts and create meta-contacts you can use the plugin available here: pidgin-xmpp-ignore-groups (after installing the plugin activate the option Ignore server-sent groups on the Advanced tab in your xmpp-account settings). It essentially ignores the group data sent by the server roaster and preserves your local changes.

Privacy

Pidgin has some privacy rules set by default. Namely, the whole world cannot send you messages; only your contacts or people selected from a list. Adjust this, and other settings through:

Tools -> Privacy

Pidgin-OTR

This is a plugin that brings Off-The-Record (OTR) messaging to Pidgin. OTR is a cryptographic protocol that will encrypt your instant messages.

First you need to install pidgin-otr from [extra], like so:

# pacman -S pidgin-otr

Once this has been done, OTR has been added to Pidgin.

To enable OTR, start Pidgin and go to Tools -> Plugins or press Ctrl + U. Scroll down to the entry entitled "Off-The-Record Messaging". If the checkbox beside it is not checked, check it.

Next, click on the plugin entry and select "Configure plugin" at the bottom. Select which account you wish to generate a key for, then click "Generate". You will have now generated a private key. If you are not sure what the other options do, leave them, the default options will work fine.

The next step is to contact a buddy who also has OTR installed. In the chat window, a new icon should appear to the top right of your text input box. Click on it, and select "Start private conversation". This will start an 'Unverified' session. Unverified sessions are encrypted, but not verified - that is, you have started a private conversation with someone using your buddy's account who has OTR, but who might not be your buddy. The steps for verification of a buddy are beyond the scope of this section; however, they might be added in the future.

Pidgin-Encryption

Pidgin-Encryption transparently encrypts your instant messages with RSA encryption. Easy-to-use, but very secure.

# pacman -S pidgin-encryption

You can enable it the same way as Pidgin-OTR.

Now you can open conversation window and new icon sould appear beside menu. Press it to enable or disable encryption. Also if you want to make encryption enabled by default right-click on a buddy's name (in your buddy list), and select Turn Auto-Encrypt On. Now, whenever a new conversation window for that buddy is opened, encryption will start out as enabled.

Sametime protocol

Sametime support is not available in the default version of Arch Linux's Pidgin package. This section will demonstrate how to enable this feature via AUR and the 'Meanwhile' plugin. This section assumes that you are familiar with using the AUR and that you are performing the following commands in ~/builds directory.

First install meanwhile from the AUR.

Now you have to rebuild your installed version of Pidgin with Sametime support: the procedure is different depending on whether you have Pidgin from [extra] or from a package in AUR.

[extra] package

Make sure you have installed the Arch Build System and downloaded the ABS tree.

Now copy the pidgin directory of ABS to ~/builds:

$ cp -r /var/abs/extra/pidgin ~/builds

Go to ~/builds/pidgin and edit the PKGBUILD file. Go to the build() section and make sure you remove the --disable-meanwhile line from the configure options.

Make the package:

$ makepkg -s

Install first the libpurple package as root:

# pacman -U libpurple-version-arch.pkg.tar.gz

After that install the pidgin package as root:

# pacman -U pidgin-version-arch.pkg.tar.gz

Pidgin now has the 'Sametime' protocol as an option when creating accounts.

AUR package

Download and extract your Pidgin package from AUR (this example will use pidgin-gnome, change to preference):

$ cd ~/builds && wget https://aur.archlinux.org/packages/pidgin-gnome/pidgin-gnome.tar.gz && tar xfvz pidgin-gnome.tar.gz

Change into the extracted directory:

$ cd pidgin-gnome

In order to have 'Sametime' support you must remove the following from PKGBUILD

--disable-meanwhile 

Build the package:

$ makepkg -s

Install the package as root:

# pacman -U pidgin-gnome-2.5.8-1-i686.pkg.tar.gz

Pidgin now has the 'Sametime' protocol as an option when creating accounts.

SIP/Simple protocol for Live Communications Server 2003/2005/2007

The pidgin-sipe plugin is available from AUR.

Other packages

Arch has other Pidgin-related packages. Here are the most popular (for a thorough list, search the AUR):

  • pidgin-libnotify - Libnotify support, for theme-consistent notifications
  • guifications - Toaster-style popup notifications
  • microblog-purpleAUR - Libpurple plug-in supporting microblog services like Twitter
  • pidgin-lightAUR - All supported protocols same as default; but without gstreamer, tcl, tk or xscreensaver support. No video/voice.
  • pidgin-latexAUR - A small latex plugin for pidgin. Put math between $$ and have it rendered (recepient also needs to have this installed)

Skype plugin

Install skype4pidginAUR from the AUR.

Auto logout on suspend

If you suspend your computer pidgin seems to stay connected for about 15 minutes. To prevent message loss, it is needed to set your status offline before suspending or hibernating. The status message won't be changed.

Therefor create a new systemd unit pidgin-suspend in /etc/systemd/system Take the following snippet and replace myuser with your user.

[Unit]
Description=Suspend Pidgin
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
User=myuser
RemainAfterExit=yes
Environment=DISPLAY=:0
ExecStart=-/usr/bin/purple-remote setstatus?status=offline
ExecStop=-/usr/bin/purple-remote setstatus?status=available

[Install]
WantedBy=sleep.target

If you are using pm-utils, you could create a 00pidgin file in /etc/pm/sleep.d/ instead. (replace myuser with your username)

#!/bin/sh
#
# 00pidgin: set offline/online status

case "$1" in
hibernate|suspend)
DISPLAY=:0 su -c 'purple-remote setstatus?status=offline' %myuser
;;
thaw|resume)
DISPLAY=:0 su -c 'purple-remote setstatus?status=available' %myuser
;;
*) exit $NA
;;
esac

Troubleshooting

  • If facebook XMPP verification does not work for you, there a package in the aur pidgin-facebookchat which does not require a unique user name (you may login with an email address)
  • The facebookchat plugin will prompt for varification (enter these two words...), if that fails, hit cancel and log onto facebook with pidgin open, this will configre the plugin's security setting)

Installing Pidgin After a Carrier Installation

  • If you previously installed Carrier (aka FunPidgin), follow these steps before installing Pidgin
  • Quit Carrier
  • Delete your ~/.purple directory (Warning: this will remove all your user settings for any programs that use libpurple, i.e. Pidgin, Carrier, etc.)
rm -r ~/.purple
  • Remove Carrier and libpurple
pacman -R carrier libpurple
  • Install Pidgin and libpurple
pacman -S pidgin libpurple

History Import Kopete To Pidgin

  • Install xalan-c
pacman -S xalan-c
  • Create ~/bin/history_import_kopete2pidgin.sh with this code:
#!/bin/sh

KOPETE_DIR=~/.kde4/share/apps/kopete/logs
PIDGIN_DIR=~/.purple/logs
CURRENT_DIR=~/bin

cd ~

if [ ! -d $KOPETE_DIR ];then
	echo "Kopete log directory not found"
	exit 1;
fi

if [ ! -d $PIDGIN_DIR ];then
	echo "Pidgin log directory not found"
	exit 2;
fi

for KOPETE_PROTODIR in `ls $KOPETE_DIR`
do
	PIDGIN_PROTODIR=`echo $KOPETE_PROTODIR | sed 's/Protocol//' | tr [:upper:] [:lower:]`
	for accnum in `ls $KOPETE_DIR/$KOPETE_PROTODIR`
	do
		echo "Account number: $accnum"
		for num in `ls $KOPETE_DIR/$KOPETE_PROTODIR/$accnum`
		do
			FILENAME=`Xalan $KOPETE_DIR/$KOPETE_PROTODIR/$accnum/$num $CURRENT_DIR/history_import_kopete2pidgin_filename.xslt`
			if [ $? = 0 ]; then
				echo "$KOPETE_DIR/$KOPETE_PROTODIR/$accnum/$num"
				echo " -> $PIDGIN_DIR/$PIDGIN_PROTODIR/$FILENAME"
				mkdir -p `dirname $PIDGIN_DIR/$PIDGIN_PROTODIR/$FILENAME`
				Xalan -o $PIDGIN_DIR/$PIDGIN_PROTODIR/$FILENAME $KOPETE_DIR/$KOPETE_PROTODIR/$accnum/$num $CURRENT_DIR/history_import_kopete2pidgin.xslt
			fi
		done
	done
done
  • Make ~/bin/history_import_kopete2pidgin.sh executable
chmod +x ~/bin/history_import_kopete2pidgin.sh
  • Create ~/bin/history_import_kopete2pidgin.xslt with this code:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="text" indent="no" />

	<xsl:template match="kopete-history">
		<xsl:apply-templates select="msg"/>
	</xsl:template>

	<xsl:template match="msg">
		<xsl:text>(</xsl:text>
		<xsl:value-of select="translate(substring-after(@time,' '),':',',')"/>
		<xsl:text>) </xsl:text>
		<xsl:value-of select="@nick"/>
		<xsl:if test="not(@nick) or @nick = ''">
			<xsl:value-of select="@from"/>
		</xsl:if>
		<xsl:text>: </xsl:text>
		<xsl:value-of select="."/>
		<xsl:text>
</xsl:text>
	</xsl:template>
</xsl:stylesheet>
  • Create ~/bin/history_import_kopete2pidgin_filename.xslt with this code:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="text" indent="no" />

	<xsl:template match="kopete-history">
		<xsl:value-of select="head/contact[@type = 'myself']/@contactId"/>
		<xsl:text>/</xsl:text>
		<xsl:value-of select="head/contact[not(@type)]/@contactId"/>
		<xsl:text>/</xsl:text>
		<xsl:value-of select="head/date/@year"/>
		<xsl:text>-</xsl:text>
		<xsl:if test="head/date/@month &lt; 10">0</xsl:if>
		<xsl:value-of select="head/date/@month"/>
		<xsl:text>-</xsl:text>
		<xsl:if test="string-length(substring-before(msg[1]/@time,' ')) &lt; 2">0</xsl:if>
		<xsl:value-of select="translate(msg[1]/@time,' :','.')"/>
		<xsl:text>+0200EET.txt</xsl:text>
	</xsl:template>
</xsl:stylesheet>
  • Execute the command in the shell
~/bin/history_import_kopete2pidgin.sh

See also