From alex323@gmail.com Mon Jun 6 02:58:30 2005 From: alex323@gmail.com (alex323) Date: Sun, 05 Jun 2005 21:58:30 -0400 Subject: [OTR-dev] Multiple Accounts online Message-ID: <42A3ADC6.5030305@gmail.com> This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3DC32031B281D19E2FFEB904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Heh. I recently discovered that OTR doesn't like it when I am logged in once from two different machines. I've read the protocol enough to know why :) Any ideas to support this? - Alex --------------enig3DC32031B281D19E2FFEB904 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) iQIVAwUBQqOtzINsvbPFJtOPAQMunhAAh3i0Hv5M7e5YXgNJSHPqJ6U1ZHJaZt4G AUo7/8MRbq96bHaoD9LkU1ORAChmMlY50G0huY00iUXPUtaLjHh4/83fPiu22/MC hrpvDA8irNJ24fekGQfMZiT5WYLcZybe1hCx6DGcdlE1ZJndJAc+y+FX0AU/A1Mg d+zYWZlHjknYxfF74l9ZhElgffJrNZAhjjUuk9tRbCvJT+oYSa7GZ+NQalLxu2w7 6WV7vfDdKP2MzxLSz1xEkmR13B1oVG+gLhaaUBSzEcIjE8zE+W4oBl+PYq1fRhTQ Si/OymuWGnkLdOtvc5wY397j6M9Thdt8rnMb52TJgdozxy1MGy6uZrfqcsiMZmtN fS+j8DZecsasahQRicy/2eGtvoTvojZSmuCt36rGTxJQZoT42qoRa6pUNhzpZxJJ +x4xRsz4ZgssEcX//f20RVE3fl7u5MCdmUSzIG0YLwGrKB6PIlvpumjEBpzh1E9D 8mwcgqg1E371h3ei26B3yZzbVofyHmn+lrdZm0o1e/CbI26mZoOJ0yKc2ZuY2bB4 RfWv3JAUh5xKdaYZPbEBor7tjMfnFKnl1d4vyo/dr/XjgosV7BCiSa5ADgq5FJom JrewqZ7o7C1uft9ncTa4J7MNZMHxZSwNzrZiBPSWBMz0wAe267farzkWAufJEsOt 2ZVrr0190fg= =GQRU -----END PGP SIGNATURE----- --------------enig3DC32031B281D19E2FFEB904-- From ian@cypherpunks.ca Mon Jun 6 13:52:33 2005 From: ian@cypherpunks.ca (Ian Goldberg) Date: Mon, 6 Jun 2005 08:52:33 -0400 Subject: [OTR-dev] Multiple Accounts online In-Reply-To: <42A3ADC6.5030305@gmail.com> References: <42A3ADC6.5030305@gmail.com> Message-ID: <20050606125233.GB1071@smtp.paip.net> On Sun, Jun 05, 2005 at 09:58:30PM -0400, alex323 wrote: > Heh. I recently discovered that OTR doesn't like it when I am logged in > once from two different machines. I've read the protocol enough to know > why :) > > Any ideas to support this? That's a known problem with protocols (like AIM, since they changed its behaviour) that allow you to log in more than once, and send copies of your incoming messages to all of your logins. [Jabber, for example, doesn't have this problem, since it distinguishes your logins.] What *should* happen here? If Alice is logged in multiple times, and Bob tries to start an OTR conversation with her, all of her clients will receive the OTR Query message, and will respond with a Key Exchange. Bob will then receive multiple Key Exchanges. What should he do then? [It's even worse if Bob is also logged in multiple times!] - Ian From gdt@ir.bbn.com Mon Jun 13 15:18:32 2005 From: gdt@ir.bbn.com (Greg Troxel) Date: 13 Jun 2005 10:18:32 -0400 Subject: [OTR-dev] Multiple Accounts online In-Reply-To: <20050606125233.GB1071@smtp.paip.net> References: <42A3ADC6.5030305@gmail.com> <20050606125233.GB1071@smtp.paip.net> Message-ID: Ian Goldberg writes: > On Sun, Jun 05, 2005 at 09:58:30PM -0400, alex323 wrote: > > Heh. I recently discovered that OTR doesn't like it when I am logged in > > once from two different machines. I've read the protocol enough to know > > why :) > > > > Any ideas to support this? > > That's a known problem with protocols (like AIM, since they changed its > behaviour) that allow you to log in more than once, and send copies of > your incoming messages to all of your logins. [Jabber, for example, > doesn't have this problem, since it distinguishes your logins.] Jabber doesn't have this problem, but I find otr/jabber to be problematic. I think the problem arises from sending messages without an explicit resource until there is a conversation in progress, but I haven't tracked it down. > What *should* happen here? If Alice is logged in multiple times, and > Bob tries to start an OTR conversation with her, all of her clients > will receive the OTR Query message, and will respond with a Key > Exchange. Bob will then receive multiple Key Exchanges. What should he > do then? [It's even worse if Bob is also logged in multiple times!] This is a tough call, but it seems that e2e crypto state requires naming (weakly) the actual endpoints, so someone we have to construct point-to-point channels from the multicast channel that is provided. So one would have to add resource names on top of things like AIM. -- Greg Troxel From deckrider@gmail.com Mon Jun 20 18:15:13 2005 From: deckrider@gmail.com (David Everly) Date: Mon, 20 Jun 2005 11:15:13 -0600 Subject: [OTR-dev] how to play nice with gaim-otr Message-ID: <20050620171513.GE9819@elbert.is-a-geek.org> --ZInfyf7laFu/Kiw7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm working on a small plugin that helps filter out spam/bots by implementing a simple challenge/response system, where the user of the plugin defines a question and an answer. When an unknown user first sends an IM to the plugin user, this message is not displayed but stored for later display, which will happen if the unknown user answer the question correctly. The unknown user is sent an IM asking the user defined question. Subsequent messages from that user are ignored until the question is answered correctly. If gaim_find_conversation_with_account(*sender, account) does not return NULL, then all of this logic is not used, since it is assumed that there is already an active conversation (possibly started by the plugin user). Also none of this logic is used if the user is already in the buddy or permit list. Here is the source code for the plugin: http://svn.berlios.de/viewcvs/*checkout*/qrc/trunk/bot-challenger/bot-chall= enger.c Any ideas regarding how I should alter this plugin to make it work with gaim-otr? Thanks, Dave. --=20 Encrypted Mail Preferred: Key ID: 8527B9AF Key Fingerprint: E1B6 40B6 B73F 695E 0D3B 644E 6427 DD74 8527 B9AF Information: http://www.gnupg.org/ = =20 ASCII ribbon campaign: () against HTML email /\ against Microsoft attachments Information: http://www.expita.com/nomime.html --ZInfyf7laFu/Kiw7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCtvmgZCfddIUnua8RAljiAKCM7mxD+NJrVICLMUlMN2zzNUB9ewCfbAiP sZa/PQyXA3e4lkqchiJOJic= =qbLd -----END PGP SIGNATURE----- --ZInfyf7laFu/Kiw7-- From ian@cypherpunks.ca Mon Jun 20 18:53:10 2005 From: ian@cypherpunks.ca (Ian Goldberg) Date: Mon, 20 Jun 2005 13:53:10 -0400 Subject: [OTR-dev] how to play nice with gaim-otr In-Reply-To: <20050620171513.GE9819@elbert.is-a-geek.org> References: <20050620171513.GE9819@elbert.is-a-geek.org> Message-ID: <20050620175310.GL1071@smtp.paip.net> On Mon, Jun 20, 2005 at 11:15:13AM -0600, David Everly wrote: > Any ideas regarding how I should alter this plugin to make it work with > gaim-otr? What problems are you seeing now? gaim unfortunately has only a basic architecture for plugins to intercept messages; there's no way (that I know of) to specify the *order* the plugins are called, so it's hard to predict whether your plugin will be called before or after gaim-otr. Also, IIRC, when plugins send messages via the serv_send_im() interface, they don't go through the plugin chain at all, so the "question" message your plugin sends will have no opportunity to get encrypted by gaim-otr (if you use that interface). - Ian From deckrider@gmail.com Mon Jun 20 21:45:15 2005 From: deckrider@gmail.com (David Everly) Date: Mon, 20 Jun 2005 14:45:15 -0600 Subject: [OTR-dev] how to play nice with gaim-otr In-Reply-To: <20050620175310.GL1071@smtp.paip.net> References: <20050620171513.GE9819@elbert.is-a-geek.org> <20050620175310.GL1071@smtp.paip.net> Message-ID: <20050620204515.GA23596@elbert.is-a-geek.org> --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 20, 2005 at 01:53:10PM -0400, Ian Goldberg wrote: > On Mon, Jun 20, 2005 at 11:15:13AM -0600, David Everly wrote: > > Any ideas regarding how I should alter this plugin to make it work with > > gaim-otr? >=20 > What problems are you seeing now? gaim unfortunately has only a basic > architecture for plugins to intercept messages; there's no way (that I > know of) to specify the *order* the plugins are called, so it's hard to > predict whether your plugin will be called before or after gaim-otr. Thanks for responding. While trying document for you the exact problems I was seeing, it helped me find and fix a bug in my plugin! > Also, IIRC, when plugins send messages via the serv_send_im() interface, > they don't go through the plugin chain at all, so the "question" message > your plugin sends will have no opportunity to get encrypted by gaim-otr > (if you use that interface). Yes, its the serv_send_im() that is problematic, as it causes error messages on both sides indicating that it should have been encrypted but was not. Otherwise it works fine (after fixing my bugs). Perhaps you have a suggestion for an alternative? --=20 Encrypted Mail Preferred: Key ID: 8527B9AF Key Fingerprint: E1B6 40B6 B73F 695E 0D3B 644E 6427 DD74 8527 B9AF Information: http://www.gnupg.org/ = =20 ASCII ribbon campaign: () against HTML email /\ against Microsoft attachments Information: http://www.expita.com/nomime.html --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCtyrbZCfddIUnua8RAuo4AJ9AZigKlhiU09ia+gPexsh8m+ao+wCeIYEm DAMtgktfjC2Qe0LgDGFxkZA= =pBqR -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB-- From Paul Kierstead Mon Jun 20 21:49:03 2005 From: Paul Kierstead (Paul Kierstead) Date: Mon, 20 Jun 2005 16:49:03 -0400 Subject: [OTR-dev] how to play nice with gaim-otr In-Reply-To: <20050620204515.GA23596@elbert.is-a-geek.org> References: <20050620171513.GE9819@elbert.is-a-geek.org> <20050620175310.GL1071@smtp.paip.net> <20050620204515.GA23596@elbert.is-a-geek.org> Message-ID: <6131374505062013491dbc08b1@mail.gmail.com> ------=_Part_815_14522303.1119300543983 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 6/20/05, David Everly wrote: Yes, its the serv_send_im() that is problematic, as it causes error > messages on both sides indicating that it should have been encrypted but > was not. Otherwise it works fine (after fixing my bugs). >=20 An alternative to this would be great since I see the same problem with=20 buddy pounces; they end up going in the clear. I presume they use the same= =20 function...maybe time to pitch the GAIM guys. PK ------=_Part_815_14522303.1119300543983 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 6/20/05, David Everly <deckrider@gmail.com> wrote:


Yes, it= s the serv_send_im() that is problematic, as it causes error
messages on= both sides indicating that it should have been encrypted but
was not.  Otherwise it works fine (after fixing my bugs).
=

An alternative to this would be great since I see the same problem with buddy pounces; they end up going in the clear. I presume they use the same function...maybe time to pitch the GAIM guys.

PK
------=_Part_815_14522303.1119300543983-- From ian@cypherpunks.ca Mon Jun 20 22:00:13 2005 From: ian@cypherpunks.ca (Ian Goldberg) Date: Mon, 20 Jun 2005 17:00:13 -0400 Subject: [OTR-dev] how to play nice with gaim-otr In-Reply-To: <6131374505062013491dbc08b1@mail.gmail.com> References: <20050620171513.GE9819@elbert.is-a-geek.org> <20050620175310.GL1071@smtp.paip.net> <20050620204515.GA23596@elbert.is-a-geek.org> <6131374505062013491dbc08b1@mail.gmail.com> Message-ID: <20050620210013.GA8008@smtp.paip.net> On Mon, Jun 20, 2005 at 04:49:03PM -0400, Paul Kierstead wrote: > On 6/20/05, David Everly wrote: > > Yes, its the serv_send_im() that is problematic, as it causes error > > messages on both sides indicating that it should have been encrypted but > > was not. Otherwise it works fine (after fixing my bugs). > > > > An alternative to this would be great since I see the same problem with > buddy pounces; they end up going in the clear. I presume they use the same > function...maybe time to pitch the GAIM guys. I haven't tested this at all, but you could try using gaim_conv_im_send() instead; that function seems to let the plugins do their work. Note: if your plugin intercepts outgoing messages, be careful not to get into a loop! - Ian From evan.s@dreskin.net Mon Jun 20 23:13:12 2005 From: evan.s@dreskin.net (Evan Schoenberg) Date: Mon, 20 Jun 2005 17:13:12 -0500 Subject: [OTR-dev] how to play nice with gaim-otr In-Reply-To: <20050620210013.GA8008@smtp.paip.net> References: <20050620171513.GE9819@elbert.is-a-geek.org> <20050620175310.GL1071@smtp.paip.net> <20050620204515.GA23596@elbert.is-a-geek.org> <6131374505062013491dbc08b1@mail.gmail.com> <20050620210013.GA8008@smtp.paip.net> Message-ID: --Apple-Mail-42--735527751 Content-Type: multipart/alternative; boundary=Apple-Mail-41--735527871 --Apple-Mail-41--735527871 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jun 20, 2005, at 4:00 PM, Ian Goldberg wrote: > I haven't tested this at all, but you could try using > gaim_conv_im_send() instead; that function seems to let the plugins do > their work. Right, I don't think anything external to the gaim core should ever call serv_send_im(). gaim_conv_im_send() and gaim_conv_chat_send() are the way to fly. -Evan --Apple-Mail-41--735527871 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
On Jun 20, 2005, = at 4:00 PM, Ian Goldberg wrote:

I haven't tested this at = all, but you could try using

gaim_conv_im_send() instead; that function seems to let the = plugins do

their = work.


Right, I don't think = anything external to the gaim core should ever call serv_send_im().=A0 = gaim_conv_im_send() and gaim_conv_chat_send() are the way to = fly.

-Evan
= --Apple-Mail-41--735527871-- --Apple-Mail-42--735527751 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFCtz95I5gp6xQhrvcRAjTTAJ4sDkVPIUWyBa40YANougAkNuVhtwCfaS/G qUqRhPuc4xmY0LpcjVUsgxY= =NbAj -----END PGP SIGNATURE----- --Apple-Mail-42--735527751-- From deckrider@gmail.com Mon Jun 20 23:55:52 2005 From: deckrider@gmail.com (David Everly) Date: Mon, 20 Jun 2005 16:55:52 -0600 Subject: [OTR-dev] how to play nice with gaim-otr In-Reply-To: References: <20050620171513.GE9819@elbert.is-a-geek.org> <20050620175310.GL1071@smtp.paip.net> <20050620204515.GA23596@elbert.is-a-geek.org> <6131374505062013491dbc08b1@mail.gmail.com> <20050620210013.GA8008@smtp.paip.net> Message-ID: <20050620225552.GC23596@elbert.is-a-geek.org> --6zdv2QT/q3FMhpsV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Unfortunately in my case there is not yet a conversation, since gaim_find_conversation_with_account(*sender, account) =3D=3D NULL The scenario is that a stranger is sending me an IM for the first time, and my plugin needs to send a few messages to the stranger without opening a conversation (more or less like pop-up suppression). If the stranger answers the question correctly, then a conversation is created. However, the issue at hand is the time before a conversation is created. On Mon, Jun 20, 2005 at 05:13:12PM -0500, Evan Schoenberg wrote: >=20 > On Jun 20, 2005, at 4:00 PM, Ian Goldberg wrote: >=20 > >I haven't tested this at all, but you could try using > >gaim_conv_im_send() instead; that function seems to let the plugins do > >their work. >=20 > Right, I don't think anything external to the gaim core should ever =20 > call serv_send_im(). gaim_conv_im_send() and gaim_conv_chat_send() =20 > are the way to fly. >=20 > -Evan --=20 Encrypted Mail Preferred: Key ID: 8527B9AF Key Fingerprint: E1B6 40B6 B73F 695E 0D3B 644E 6427 DD74 8527 B9AF Information: http://www.gnupg.org/ = =20 ASCII ribbon campaign: () against HTML email /\ against Microsoft attachments Information: http://www.expita.com/nomime.html --6zdv2QT/q3FMhpsV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCt0l4ZCfddIUnua8RAl/hAJ4y6dSAro3m4FGkLAqI73ourE5ZVQCghRPc r40xs42o/VwEx2sl8+By7tQ= =IPnW -----END PGP SIGNATURE----- --6zdv2QT/q3FMhpsV-- From evan.s@dreskin.net Tue Jun 21 00:07:57 2005 From: evan.s@dreskin.net (Evan Schoenberg) Date: Mon, 20 Jun 2005 18:07:57 -0500 Subject: [OTR-dev] how to play nice with gaim-otr In-Reply-To: <20050620225552.GC23596@elbert.is-a-geek.org> References: <20050620171513.GE9819@elbert.is-a-geek.org> <20050620175310.GL1071@smtp.paip.net> <20050620204515.GA23596@elbert.is-a-geek.org> <6131374505062013491dbc08b1@mail.gmail.com> <20050620210013.GA8008@smtp.paip.net> <20050620225552.GC23596@elbert.is-a-geek.org> Message-ID: <84685328-BA62-4E86-9E95-F03DB216663F@dreskin.net> --Apple-Mail-48--732243373 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Ick. Gaim's core offers no way to create a GaimConv without triggering the UI op for it. It seems like this is a split which would need to be done coreside; the conversation should be created before any of the plugin triggers are made. -Evan On Jun 20, 2005, at 5:55 PM, David Everly wrote: > Unfortunately in my case there is not yet a conversation, since > gaim_find_conversation_with_account(*sender, account) == NULL > > The scenario is that a stranger is sending me an IM for the first > time, > and my plugin needs to send a few messages to the stranger without > opening a conversation (more or less like pop-up suppression). > > If the stranger answers the question correctly, then a conversation is > created. However, the issue at hand is the time before a conversation > is created. > > On Mon, Jun 20, 2005 at 05:13:12PM -0500, Evan Schoenberg wrote: > >> >> On Jun 20, 2005, at 4:00 PM, Ian Goldberg wrote: >> >> >>> I haven't tested this at all, but you could try using >>> gaim_conv_im_send() instead; that function seems to let the >>> plugins do >>> their work. >>> >> >> Right, I don't think anything external to the gaim core should ever >> call serv_send_im(). gaim_conv_im_send() and gaim_conv_chat_send() >> are the way to fly. >> >> -Evan >> > > > > -- > Encrypted Mail Preferred: > Key ID: 8527B9AF > Key Fingerprint: E1B6 40B6 B73F 695E 0D3B 644E 6427 DD74 8527 > B9AF > Information: http://www.gnupg.org/ > > ASCII ribbon campaign: > () against HTML email > /\ against Microsoft attachments > Information: http://www.expita.com/nomime.html > --Apple-Mail-48--732243373 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFCt0xNI5gp6xQhrvcRAiOqAJ0RP/zhMPZIyMIYNuh0tkwc//XFSgCfUwHW 0KwfeJ5c5tSMmViIesBcyis= =JC62 -----END PGP SIGNATURE----- --Apple-Mail-48--732243373-- From deckrider@gmail.com Tue Jun 21 00:14:11 2005 From: deckrider@gmail.com (David Everly) Date: Mon, 20 Jun 2005 17:14:11 -0600 Subject: [OTR-dev] how to play nice with gaim-otr In-Reply-To: <84685328-BA62-4E86-9E95-F03DB216663F@dreskin.net> References: <20050620171513.GE9819@elbert.is-a-geek.org> <20050620175310.GL1071@smtp.paip.net> <20050620204515.GA23596@elbert.is-a-geek.org> <6131374505062013491dbc08b1@mail.gmail.com> <20050620210013.GA8008@smtp.paip.net> <20050620225552.GC23596@elbert.is-a-geek.org> <84685328-BA62-4E86-9E95-F03DB216663F@dreskin.net> Message-ID: <20050620231410.GD23596@elbert.is-a-geek.org> --a2FkP9tdjPU2nyhF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 20, 2005 at 06:07:57PM -0500, Evan Schoenberg wrote: > Ick. Gaim's core offers no way to create a GaimConv without =20 > triggering the UI op for it. It seems like this is a split which =20 > would need to be done coreside; the conversation should be created =20 > before any of the plugin triggers are made. Sorry for being dense....but I assume that you mean for working with existing gaim-1.3.1, there is currently no other option for my plugin? Or is this some course of action I can take in the plugin (and need help to understand)? > On Jun 20, 2005, at 5:55 PM, David Everly wrote: >=20 > >Unfortunately in my case there is not yet a conversation, since > >gaim_find_conversation_with_account(*sender, account) =3D=3D NULL > > > >The scenario is that a stranger is sending me an IM for the first =20 > >time, > >and my plugin needs to send a few messages to the stranger without > >opening a conversation (more or less like pop-up suppression). > > > >If the stranger answers the question correctly, then a conversation is > >created. However, the issue at hand is the time before a conversation > >is created. > > > >On Mon, Jun 20, 2005 at 05:13:12PM -0500, Evan Schoenberg wrote: > > > >> > >>On Jun 20, 2005, at 4:00 PM, Ian Goldberg wrote: > >> > >> > >>>I haven't tested this at all, but you could try using > >>>gaim_conv_im_send() instead; that function seems to let the =20 > >>>plugins do > >>>their work. > >>> > >> > >>Right, I don't think anything external to the gaim core should ever > >>call serv_send_im(). gaim_conv_im_send() and gaim_conv_chat_send() > >>are the way to fly. > >> > >>-Evan > >> > > > > > > > >--=20 > >Encrypted Mail Preferred: > > Key ID: 8527B9AF > > Key Fingerprint: E1B6 40B6 B73F 695E 0D3B 644E 6427 DD74 8527 =20 > >B9AF > > Information: http://www.gnupg.org/ > > > >ASCII ribbon campaign: > >() against HTML email > >/\ against Microsoft attachments > > Information: http://www.expita.com/nomime.html > > >=20 --=20 Encrypted Mail Preferred: Key ID: 8527B9AF Key Fingerprint: E1B6 40B6 B73F 695E 0D3B 644E 6427 DD74 8527 B9AF Information: http://www.gnupg.org/ = =20 ASCII ribbon campaign: () against HTML email /\ against Microsoft attachments Information: http://www.expita.com/nomime.html --a2FkP9tdjPU2nyhF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCt03CZCfddIUnua8RAmPeAJ9aKT6YqgyeFvYTPh8LHOHWtHstegCdHTwV vM6YYSE4rmrdIifgpTWEYDw= =eMUv -----END PGP SIGNATURE----- --a2FkP9tdjPU2nyhF-- From evan.s@dreskin.net Tue Jun 21 00:19:59 2005 From: evan.s@dreskin.net (Evan Schoenberg) Date: Mon, 20 Jun 2005 18:19:59 -0500 Subject: [OTR-dev] how to play nice with gaim-otr In-Reply-To: <20050620231410.GD23596@elbert.is-a-geek.org> References: <20050620171513.GE9819@elbert.is-a-geek.org> <20050620175310.GL1071@smtp.paip.net> <20050620204515.GA23596@elbert.is-a-geek.org> <6131374505062013491dbc08b1@mail.gmail.com> <20050620210013.GA8008@smtp.paip.net> <20050620225552.GC23596@elbert.is-a-geek.org> <84685328-BA62-4E86-9E95-F03DB216663F@dreskin.net> <20050620231410.GD23596@elbert.is-a-geek.org> Message-ID: <6971AE98-61A7-4841-86F2-5B5D518BF74F@dreskin.net> --Apple-Mail-49--731521507 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed My fault for being unclear. I meant that there is currently no other option for your plugin. Looking at gtk-gaim 1.3.1, the gaim_conversation_new() function necessarily opens a window. I was going to suggest creating the GaimConv* yourself... but the moment you call gaim_conversation_new() with the info you've been passed, you would trigger that window opening. So a change needs to be made gaimside; it's not an OTR issue but a Gaim issue preventing you from being able to use gaim_conv_send_*() and therefore preventing you from routing through gaim-otr your plugin's messages which are made before a window is opened. I'd recommend emailing gaim-devl@lists.sourceforge.net with your problem. -Evan On Jun 20, 2005, at 6:14 PM, David Everly wrote: > On Mon, Jun 20, 2005 at 06:07:57PM -0500, Evan Schoenberg wrote: > >> Ick. Gaim's core offers no way to create a GaimConv without >> triggering the UI op for it. It seems like this is a split which >> would need to be done coreside; the conversation should be created >> before any of the plugin triggers are made. >> > > Sorry for being dense....but I assume that you mean for working with > existing gaim-1.3.1, there is currently no other option for my plugin? > > Or is this some course of action I can take in the plugin (and need > help > to understand)? > > >> On Jun 20, 2005, at 5:55 PM, David Everly wrote: >> >> >>> Unfortunately in my case there is not yet a conversation, since >>> gaim_find_conversation_with_account(*sender, account) == NULL >>> >>> The scenario is that a stranger is sending me an IM for the first >>> time, >>> and my plugin needs to send a few messages to the stranger without >>> opening a conversation (more or less like pop-up suppression). >>> >>> If the stranger answers the question correctly, then a >>> conversation is >>> created. However, the issue at hand is the time before a >>> conversation >>> is created. >>> >>> On Mon, Jun 20, 2005 at 05:13:12PM -0500, Evan Schoenberg wrote: >>> >>> >>>> >>>> On Jun 20, 2005, at 4:00 PM, Ian Goldberg wrote: >>>> >>>> >>>> >>>>> I haven't tested this at all, but you could try using >>>>> gaim_conv_im_send() instead; that function seems to let the >>>>> plugins do >>>>> their work. >>>>> >>>>> >>>> >>>> Right, I don't think anything external to the gaim core should ever >>>> call serv_send_im(). gaim_conv_im_send() and gaim_conv_chat_send() >>>> are the way to fly. >>>> >>>> -Evan >>>> >>>> >>> >>> >>> >>> -- >>> Encrypted Mail Preferred: >>> Key ID: 8527B9AF >>> Key Fingerprint: E1B6 40B6 B73F 695E 0D3B 644E 6427 DD74 8527 >>> B9AF >>> Information: http://www.gnupg.org/ >>> >>> ASCII ribbon campaign: >>> () against HTML email >>> /\ against Microsoft attachments >>> Information: http://www.expita.com/nomime.html >>> >>> >> >> > > > > -- > Encrypted Mail Preferred: > Key ID: 8527B9AF > Key Fingerprint: E1B6 40B6 B73F 695E 0D3B 644E 6427 DD74 8527 > B9AF > Information: http://www.gnupg.org/ > > ASCII ribbon campaign: > () against HTML email > /\ against Microsoft attachments > Information: http://www.expita.com/nomime.html > --Apple-Mail-49--731521507 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFCt08fI5gp6xQhrvcRApNiAKCWsrhntM9CfekzgoFK4rn021JbtQCgnX7W DjV95z0tQqhOmdj1AfCOM0I= =UxV5 -----END PGP SIGNATURE----- --Apple-Mail-49--731521507-- From ian@cypherpunks.ca Tue Jun 21 14:50:20 2005 From: ian@cypherpunks.ca (Ian Goldberg) Date: Tue, 21 Jun 2005 09:50:20 -0400 Subject: [OTR-dev] how to play nice with gaim-otr In-Reply-To: <6971AE98-61A7-4841-86F2-5B5D518BF74F@dreskin.net> References: <20050620171513.GE9819@elbert.is-a-geek.org> <20050620175310.GL1071@smtp.paip.net> <20050620204515.GA23596@elbert.is-a-geek.org> <6131374505062013491dbc08b1@mail.gmail.com> <20050620210013.GA8008@smtp.paip.net> <20050620225552.GC23596@elbert.is-a-geek.org> <84685328-BA62-4E86-9E95-F03DB216663F@dreskin.net> <20050620231410.GD23596@elbert.is-a-geek.org> <6971AE98-61A7-4841-86F2-5B5D518BF74F@dreskin.net> Message-ID: <20050621135020.GB8008@smtp.paip.net> On Mon, Jun 20, 2005 at 06:19:59PM -0500, Evan Schoenberg wrote: > My fault for being unclear. I meant that there is currently no other > option for your plugin. Looking at gtk-gaim 1.3.1, the > gaim_conversation_new() function necessarily opens a window. I was > going to suggest creating the GaimConv* yourself... but the moment > you call gaim_conversation_new() with the info you've been passed, > you would trigger that window opening. > > So a change needs to be made gaimside; it's not an OTR issue but a > Gaim issue preventing you from being able to use gaim_conv_send_*() > and therefore preventing you from routing through gaim-otr your > plugin's messages which are made before a window is opened. > > I'd recommend emailing gaim-devl@lists.sourceforge.net with your > problem. In fact, I'd say you don't really *want* a GaimConvIm. You want a way to trigger the plugins when you send a message without having to have one. You _can_ (uglily) do this now: use serv_send_im(), but before you do, trigger the plugins yourself by calling gaim_signal_emit(gaim_conversations_get_handle(), "sending-im-msg", account, name, &msg); But I agree there should be a way to do this "in" the gaim core. - Ian