Re: Adding a new protocol

Eion Robb <[email protected]> Thu, 16 May 2019 08:48:22 +1200
Newsgroups gmane.comp.gnome.gaim.devel
Message-ID <CAFt0mko6KadW=VVKDNivcoQcOKMYQoeA4uWUnem9Oh8z39ATjg@mail.gmail.com>
--===============1396721463367304378==
Content-Type: multipart/alternative; boundary="000000000000c4b01e0588f345bd"

--000000000000c4b01e0588f345bd
Content-Type: text/plain; charset="UTF-8"

You could also load the yowsup library directly and write a protocol plugin
in Python using the https://github.com/anpetrov/python-purple python plugin
loader plugin, without needing to build a client/server setup thing

On Thu, 16 May 2019 at 00:14, Eduardo <[email protected]> wrote:

> > What protocol were you thinking of writing for?
>
> I'm using the yowsup library, with a python client whose only task is to
> forward the messages to Telegram. My idea is to connect pidgin with that
> script,  via a shallow plugin doing IPC, for example, or by presenting
> the yowsup client as a server to pidgin (using a basic protocol).
>
> Hope that makes sense...
>
> > There's a skeleton prpl in-tree called nullprpl.c (for 3.x.y
> > https://bitbucket.org/pidgin/main/src/default/libpurple/protocols/null/
> > or for 2.x.y
> > [...]
>
> Thanks a lot Eion! It's exactly what I was looking for. You'll probably
> hear from me again if I can get something working ;).
>
> Cheers, Eduardo.
>

--000000000000c4b01e0588f345bd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">You could also load the yowsup library di=
rectly and write a protocol plugin in Python using the=C2=A0<a href=3D"http=
s://github.com/anpetrov/python-purple">https://github.com/anpetrov/python-p=
urple</a> python plugin loader plugin, without needing to build a client/se=
rver setup thing</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr"=
 class=3D"gmail_attr">On Thu, 16 May 2019 at 00:14, Eduardo &lt;<a href=3D"=
mailto:[email protected]">[email protected]</a>&gt; w=
rote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0p=
x 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; What =
protocol were you thinking of writing for?<br>
<br>
I&#39;m using the yowsup library, with a python client whose only task is t=
o <br>
forward the messages to Telegram. My idea is to connect pidgin with that <b=
r>
script,=C2=A0 via a shallow plugin doing IPC, for example, or by presenting=
 <br>
the yowsup client as a server to pidgin (using a basic protocol).<br>
<br>
Hope that makes sense...<br>
<br>
&gt; There&#39;s a skeleton prpl in-tree called nullprpl.c (for 3.x.y <br>
&gt; <a href=3D"https://bitbucket.org/pidgin/main/src/default/libpurple/pro=
tocols/null/" rel=3D"noreferrer" target=3D"_blank">https://bitbucket.org/pi=
dgin/main/src/default/libpurple/protocols/null/</a> <br>
&gt; or for 2.x.y <br>
&gt; [...]<br>
<br>
Thanks a lot Eion! It&#39;s exactly what I was looking for. You&#39;ll prob=
ably <br>
hear from me again if I can get something working ;).<br>
<br>
Cheers, Eduardo.<br>
</blockquote></div>

--000000000000c4b01e0588f345bd--


--===============1396721463367304378==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KRGV2ZWwgbWFp
bGluZyBsaXN0CkRldmVsQHBpZGdpbi5pbQpodHRwczovL3BpZGdpbi5pbS9jZ2ktYmluL21haWxt
YW4vbGlzdGluZm8vZGV2ZWw=

--===============1396721463367304378==--