Commit Graph

877 Commits

Author SHA1 Message Date
Yann Leboulanger 5575502c0b save certificate fingerprint when we don't have it. 2009-01-13 19:24:09 +00:00
Yann Leboulanger 15ab37043e remove duplicated STATUS_LIST variable 2009-01-10 16:45:52 +00:00
Yann Leboulanger 6080bea672 abilty to do some exceptions to invisible rule (to send custom status). Fixes #4631 2009-01-10 16:37:57 +00:00
Yann Leboulanger 08cd4773b0 don't try to send some XML if we are disconnected/disconnecting/ Fixes #4605 2008-12-28 22:51:39 +00:00
Yann Leboulanger a09cbaddf1 remove useless print 2008-12-16 07:14:45 +00:00
Yann Leboulanger b317ffcdae merge BOSH branch to trunk 2008-12-15 21:06:08 +00:00
Yann Leboulanger d0c3b6fd44 prevent sending messages to invalid JIDs. Fixes #4577 2008-12-13 14:43:46 +00:00
Yann Leboulanger e389e0b16b [thorstenp] remove whitespace at eol 2008-12-03 21:56:12 +00:00
Yann Leboulanger 60ba33eb31 [thorstenp] fix possible undefined loop variables 2008-12-03 17:38:16 +00:00
Yann Leboulanger 31dc32eeb9 [thorstenp] fix redefined builtins 2008-12-03 17:16:04 +00:00
Yann Leboulanger c163e90b10 [thorstenp] fix unused variables 2008-12-02 15:53:23 +00:00
Yann Leboulanger 3a548491a9 strftime doesn't support %T. It works under linux (why?) but not under windows. Fixes #4526 2008-12-01 10:56:14 +00:00
Yann Leboulanger 4bef0e5cdf no need to create html twice 2008-11-28 07:25:00 +00:00
Stephan Erb e0a365a234 Indicate that some methods are only intended for internal usage. 2008-11-26 21:11:08 +00:00
Yann Leboulanger f9034952e0 allow sending None tune on startup. Fixes #4512 2008-11-25 15:00:23 +00:00
Yann Leboulanger 8babbb1de3 revert [10593]. see #4449 2008-11-12 20:04:25 +00:00
Yann Leboulanger 540fba2aaa prevent some disk write error and show error dialog. 2008-11-06 08:10:36 +00:00
Yann Leboulanger a368839123 [thorstenp] import rst generator only when needed. see #4457 2008-11-05 18:25:40 +00:00
Yann Leboulanger 67d19a226d handle mood in messages, send mood in message if pep is not supported on server. Fixes #4449 2008-11-03 14:25:08 +00:00
Yann Leboulanger 06ab4a7b6d revert thorstenp patches for now. They introduce bugs. 2008-10-20 21:38:06 +00:00
Yann Leboulanger f801a50260 [thorstenp] fix unused variables 2008-10-20 21:17:48 +00:00
Yann Leboulanger 158538b81c [thorstenp] rename some var to not hide builts-in functions (list -> list_, ...) 2008-10-11 10:22:04 +00:00
Yann Leboulanger 73aee40542 [thorstenp] replace none equality test with identity test 2008-10-11 09:44:12 +00:00
Yann Leboulanger 567f1e17c1 [thorstenp] di not use emtpy except clauses 2008-10-11 09:37:13 +00:00
Yann Leboulanger 84e717c8df [thorstenp] use startswith and endswith instead of array indices on strings 2008-10-11 09:32:59 +00:00
Yann Leboulanger 6cc8204319 [thorstenp] replace if statement with dict.get() 2008-10-11 09:31:48 +00:00
Yann Leboulanger 9262133315 reconnect correctly when you were conencted with plain connection. Fixes #4390 2008-10-10 18:03:25 +00:00
Yann Leboulanger 9d7c80d522 [thorstenp] replace has_key by key in dict. Fixes #4392 2008-10-07 20:41:59 +00:00
Yann Leboulanger 96dd7b8ba7 revert [10494]. see #4388 2008-10-07 15:09:39 +00:00
Yann Leboulanger 46e958902f start xmpp ping after we received the roster. Fixes #4388 2008-10-07 13:59:42 +00:00
Yann Leboulanger e236382f3d handle XEP-0203 (Delayed Delivery) and use it when forwarding unread messages via adhoc commands. Fixes #4347 2008-09-26 11:11:38 +00:00
Yann Leboulanger 238ee10039 prevent traceback when connection is lost while waiting for user to accept plain connection or ssl certificate. Fixes #4285 2008-09-05 18:24:51 +00:00
Yann Leboulanger 1607000c5c revoke tune when disconnecting only for current account. fixes #4267 2008-08-31 13:40:53 +00:00
Brendan Taylor 32b56a2328 move most of is_loggable out of the session object. fixes #4103 2008-08-30 01:31:25 +00:00
tomk acdf4ff143 improved disconnect handling, added comments, fixed minor bugs 2008-08-17 22:57:48 +00:00
Julien Pivotto de4a23e751 See #4200.
* remove js from some headers
 * set coding:utf-8 to allow real names in headers
2008-08-15 17:31:51 +00:00
Julien Pivotto b58dfd6a59 Prevent many traceback due to headers and my last commit (it's late,
sorry)
2008-08-15 03:39:27 +00:00
Julien Pivotto 8bc9bc29ae * Big headers review
* Remove some licencing problems
 * To do: same for images
 * See #4200
2008-08-15 03:20:23 +00:00
tomk a76c173816 - improved SSL connections with BOSH - SSL over HTTP proxy is possible now,
Gajim will do HTTP CONNECT on proxy to reach the BOSH Conn manager and try
  to estabilish TLS (same as what firefox do when approaching HTTPS server via
  proxy)
- moved proxy-connecting code to xmpp/proxy_connectors.py
- debugged SOCKS5 proxy code
- tested with Tigase server
2008-08-14 21:48:43 +00:00
tomk 4504861084 fixed handling of SSL errors 2008-08-09 12:16:42 +00:00
Yann Leboulanger c7d33bb68e register Disconnect handler soon enough 2008-08-06 21:37:56 +00:00
tomk cbfa9d97df - TLS classes refactored - NonBlockingTLS is now plugged to NonBlockingTCP and
derived (was plugged to NonBlockingClient which made it unusable for BOSH)
- Fixed HTTP CONNECT proxy socket
- Implemented workaround for the bug with insecure-connection warning dialog
  (unfortunately, this is not over - I just forbid the transport to send
  BOSH empty bodies until auth module is plugged, which is wrong and will
  break if user will wait more than "inactivity" (usualy thirty) seconds
  before clicking the dialog.
  This workaround works with ejb and opf, and also breaks connection with
  both of them if delay is too long.
- Implemented basic TLS over BOSH. It works only with OPF and poorly.
2008-08-05 23:52:35 +00:00
Yann Leboulanger 2b896152a2 make back strings translatable 2008-08-04 08:07:07 +00:00
js 9bb8f8c5e6 Make "This message is encrypted" bodies consistent. 2008-08-03 23:01:43 +00:00
Yann Leboulanger fa2d983354 better transltion strings. see #4166 2008-08-01 09:30:36 +00:00
Yann Leboulanger 673052f1b8 handle disconnection while insecure connetion dialog is opened. fixes #4138 2008-07-30 15:43:53 +00:00
js 8605cd3f38 For historical reasons, we have a tab width of 3. This is strange, but
we have that in all files. To at least lesser the confusion a bit, add
vim tags for that.
Additionally, fix wrong #! in a few files.
2008-07-29 19:49:31 +00:00
tomk 56e0ad7a96 basic proxy authentication for BOSH connections implemented 2008-07-28 18:53:00 +00:00
tomk af3f1a9dd4 - implemented BOSH key sequencing, acknowledgements
- improved HTTP persistent connections
- added alarm-unregister method to idlequeue
- extended proxy managing dialog for BOSH proxy
2008-07-26 22:42:40 +00:00
Brendan Taylor abbdf8d5c9 attach resource to sessions so that only the relevant sessions are terminated when a contact goes offline 2008-07-26 05:28:15 +00:00
tomk a58618c843 persistent HTTP connections in BOSH roughly implemented, added hack for openfire incapability of after-SASL-stream-restart-response in BOSH, changed doubles quotes to single 2008-07-18 00:34:49 +00:00
js 92e9a51fc5 D'oh! 2008-07-15 14:39:54 +00:00
js 151e7af63e Proper checking for XEP-0085, with workaround for the caps missing
problem. Same here, remove check to notexistant once we have fallback
to disco.
2008-07-15 13:51:20 +00:00
tomk 3d860f40a6 BOSHClient transformed to NonBlockingBOSH transport - it's easier to maintain more connections from below, implemented handling of non-persistent HTTP connections - it runs with ejabberd, improved NonBlockingTransport interface, minor changes in BOSHDispatcher 2008-07-13 22:22:58 +00:00
Yann Leboulanger 3ad1f9afed remove useless print 2008-07-05 18:25:39 +00:00
Yann Leboulanger 32bb251381 typo 2008-07-05 18:25:09 +00:00
Yann Leboulanger 1e636e7824 warn before connecting without PyOpenSSL. fixes #4065 2008-07-05 18:07:32 +00:00
tomk 952e4a1569 moved bosh code from client_nb.py to bosh.py, replaced debug logging with debug.py by logging in whole xmpppy (debug.py is now unused) 2008-07-02 23:29:10 +00:00
js 9ce8e28c0a Fix missing ). 2008-07-02 12:27:12 +00:00
js 46913c541b XEP-0184 uses the new caps-checking way now. 2008-07-02 10:48:15 +00:00
tomk f3820706fb - Refactored non-blocking transport and client classes - getaddrinfo is called
in Client now
- Added NonBlockingHttpBOSH transport (to tranports_nb) and BOSHClient
(to client_nb)
- Extended possible proxy types in configuration by "BOSH" proxy
- Rewrote NonBlockingTLS to invoke success callback only after successful TLS handshake is over (formerly, the TLS Plugin returned right after sending <starttls>)
2008-06-30 00:02:32 +00:00
Yann Leboulanger 371a38c91c increase xmpppy verbosity when we use -l gajim=DEBUG 2008-06-26 10:01:12 +00:00
Yann Leboulanger 9457c28a63 don't try the old (XEP-018) way to go invisible. It's not XMPP complient. That prevent to show the we are invisible but we are not. Fixes #4012 2008-06-25 09:25:43 +00:00
Yann Leboulanger d4c8cb8b15 don't think connection to server failed when only first connection attempt failed when creating a new account 2008-06-25 06:56:03 +00:00
Yann Leboulanger 3d2e97d251 when we are disconnected from server, we then try to reconnect only with the type (tls, ssl, plain) that worked first time. Fixes #3896 2008-06-19 18:05:15 +00:00
js 9634f98250 * Implemented XEP-0184 section 5.
* Added NS_RECEIPTS to protocol namespace list.
* Show our support of XEP-0184 in caps.
* Added a big, fat warning to get_contact as this does not work as
  expected.
* There was some strangeness in our XEP-0022, it added an id tag to
  the x tag, which isn't mentioned anywhere in the XEP. And for some
  strange reason, that id even was the same all the time.
* Fixed a typo.
2008-06-17 16:03:21 +00:00
tomk 6a15c9b9c9 initial cleanup of xmpppy perfomed, see #3260 2008-06-09 00:32:02 +00:00
js 593ed0c6d8 * Fix passing of message ID.
* Don't asnwer to receipt requests from users not in roster.
2008-06-08 15:51:55 +00:00
js c2eb4b5a9f Completely remove OTR.
Sorry, it just wasn't maintainable. The problem is the current libotr
API. I'm sick of working around the strange libotr API, sick of getting
HTML messages, sick of losing messages. The final argument for
completely removing it was that we can't get the message ID of a sent
msg anymore - which we need. I tried to work around this as well, but
there seems to be no way to wait for a signal in glib the way I would
need it for the workaround (I wanted to emit a signal in inject_message
and then wait for it after the call to otr_message_fragment_and_send
so the signal can pass us the message id). And the last reason is that
we're heading towards a new release and thus want to stabilize the code,
thus don't have time to work around even more libotr API strangeness.
I will give feedback to the libotr developers, who are currently
planning a new API, so that we can hopefully see OTR support once again
as soon as libotr4 is released.

Kjell already announced that he will continue his branch:
https://code.launchpad.net/~afflux/gajim/otr

I really hope the libotr devs will provide a sane API with libotr4 so
we can integrate OTR support again.

Oh, and I added one more try/except block for OS X.
2008-06-08 15:27:05 +00:00
js a495d090c3 Initial XEP-0184 support.
TODO:
 * Implement section 5.
 * Think of a way to show in GUI
    Possible way: Grey out the sent msg until we receive a <received/>,
    but only if we know the other end supports XEP-0184.
 * Maybe implement section 6?
2008-06-07 19:47:19 +00:00
Jean-Marie Traissard e487aa7802 Change the way to remember last message time in groupchat again. Save the time on
disconnection or exit. Previous version seemed perfect, but if server don't have the
same exact time than us (always), lots of messages can be logged twice. Here we will
lost log for messages that were sent beetween we lost connection and we see it. But that
seems better for me. For previous version, see [9516].
2008-06-05 11:18:33 +00:00
Brendan Taylor f7874d29c7 reuse chat controls after session termination
fixes #3950
2008-05-23 23:27:08 +00:00
Brendan Taylor 368dd9fe66 missed part of that last patch 2008-05-19 18:30:04 +00:00
js 1cbe5678da * When we receive a plaintext, non-tagged message, don't append OTR
tag to outgoing messages anymore. Messages are not even passed to
  libotr anymore then.
* If we don't support OTR, strip OTR tags from the message before
  displaying it.
2008-05-19 17:41:51 +00:00
Brendan Taylor fad6d2ef7e pass session when dispatching MSGNOTSENT 2008-05-19 00:17:39 +00:00
js 75ad801f62 Fix music_track_info for multiple accounts. 2008-05-16 16:04:51 +00:00
js 96a5b497a8 * Remove old code to update status to current track.
* Don't bind the track listener when not enabled anymore.
* Remove the signal / add the signal when changed in preferences.
2008-05-15 19:52:04 +00:00
js 4c3dc0b092 That still was the wrong place, it was initialized too early. Fixed. 2008-05-10 23:42:29 +00:00
js e335055709 Fix broken exception handling for OTR in connection.py. 2008-05-10 22:22:09 +00:00
js 4eeb96368b Store otr_userstates at the right place and create it the right way.
This fixes the crash when creating a new account, which made Gajim
unusable on systems where it never ran before.
2008-05-10 21:29:47 +00:00
js 435042968e Added OTR support.
Work done by Kjell Braden <fnord@pentabarf.de>.
Some fixes done by me.
2008-05-09 12:35:25 +00:00
Jean-Marie Traissard 75ffe12157 Change very bad var names 2008-05-05 03:18:09 +00:00
Jean-Marie Traissard 94580b3019 Change the way last_history_time for room is saved. Save time in mem at each message logged. When closing
control, save the value in rooms_last_message_time table. Previous version could introduce duplicate logs or
messages not logged.
2008-04-21 15:48:06 +00:00
Jean-Marie Traissard 8f84ff29f5 fix indent 2008-04-15 01:54:31 +00:00
Jean-Marie Traissard f32901d243 Create a new small table in DB to remember rooms last_history_line at next
launch. This is necessary because with a big history get_last_date_that_has_logs
can take about 5 seconds on first launch.
Created new gajim subversion.
2008-04-15 01:52:11 +00:00
Stephan Erb b991b32886 Add missing tooltip and markup in vcard window. See #1069. Make string a doc string. 2008-04-04 15:10:50 +00:00
Jean-Marie Traissard 75983ff571 Some "jep" -> "xep" 2008-03-30 20:35:02 +00:00
Yann Leboulanger 95bf9c4f74 send xml:lang in groupchat presences and configuration request. fixes #3743 2008-03-03 23:00:01 +00:00
Yann Leboulanger 494ae444b6 ability to ignore SSL errors until certificate changes. Fixes #3710 2008-02-15 10:11:17 +00:00
Yann Leboulanger 597096ce81 don't show us online automatically when we are in error state and we try to go online 2008-02-08 22:04:42 +00:00
Yann Leboulanger 436c75a244 show in GUI that we are offline when we don't get XMPP ping in time 2008-02-08 21:48:20 +00:00
Yann Leboulanger 0727ebd940 wrong syntax, missing ) 2008-02-08 07:53:09 +00:00
Yann Leboulanger a9e0ce5a0e add advanced option to configure the time we wait XMPP Ping answer 2008-02-08 07:47:35 +00:00
Yann Leboulanger 85cc4889ec use XMPP ping (XEP-0199) to detect connection lost at applicatin level. fixes #2767 2008-02-07 23:53:02 +00:00
Yann Leboulanger e8b7778521 detect jabber:iq:last and jabber:iq:version errors by IDs. fixes #3711 2008-02-05 14:50:21 +00:00
Yann Leboulanger 594313ed94 fix creation of new accounts 2008-02-04 22:17:35 +00:00
Yann Leboulanger 853d06bcaa fix args retured by on_connect_failure 2008-02-04 22:15:00 +00:00
Yann Leboulanger 848c492926 add checkbutton to YesNoDialog. Ability to fall back from tls to ssl and then plain. Warn user when using insecure connection. fixes #1923 2008-02-04 21:38:36 +00:00
Yann Leboulanger 68324dd104 fix XEP-0126 (invisibility) support. see #3666 2008-01-09 19:32:09 +00:00
Stephan Erb 30ad68a26c Backport some fixes to zeroconf: don't fail on special characters, don't allow gpg usage when it is not secure or even possible
Be more verbose when there is a key missmatch.

Mind that presence in zeroconf are not signed, gpg keys have to be assigned manually therefore.
2007-12-31 01:19:08 +00:00
Stephan Erb d621eb9405 SSL errors got mixed up. Fixed 2007-12-30 00:10:22 +00:00
Stephan Erb 6fdd7c0f88 Rework GPG behaviour:
Only encrypt when the receiver is trusted. You have to sign its key or it has to be signed by someone you trust. Fixes #109

Make checkbox insensitive when GPG is disabled on an account (or no passphrase given).

Auto assign trusted keys on received presence. Deny encryption on missmatch of assigned key and signing key. Fixes #3376

Do not disable encrypted when receiving an unencrypted message. Print whether a received message was encrypted or not.

TODO: Remove togglebutton, its useless now
2007-12-29 23:28:27 +00:00
Stephan Erb fef742c863 Refactor the way we decide whether GPG is usable or not: Ability to change keys when no valid passphrase could be entered.
See #1210. Workaround for unavailable keys.

Remove useless except block: import of GnuPGInterface is the same on Debian and non Debian systems.
2007-12-28 18:49:28 +00:00
Yann Leboulanger f95df09441 how SSL error message in bold. fixes #720 2007-12-27 23:33:05 +00:00
Jean-Marie Traissard 14bf5ed62c pyflakes checks, remove unused imports, mainly 2007-12-27 21:52:45 +00:00
Yann Leboulanger 6247de33da don't propose to add certificate to cacerts.pem file if it's useless, and don't add it if it is already in. fixes #720 2007-12-26 23:59:54 +00:00
Yann Leboulanger 3bc22371cc [ruiabreuferreira and I] ability to use http_proxy environment variable. fixes #2977 2007-12-19 14:42:04 +00:00
Yann Leboulanger a2e53ccc5c fix creation of account on server that supports dataforms 2007-12-15 12:41:39 +00:00
Yann Leboulanger 19761f081f [js & I] show pep info in account tooltip, fix a bug in create_contact() 2007-12-13 20:26:13 +00:00
Yann Leboulanger a645006bf8 merge diff from trunk 2007-12-12 08:44:46 +00:00
Piotr Gaczkowski 55a7061ea3 Better Tune support 2007-08-10 20:18:32 +00:00
Piotr Gaczkowski 947ec8e933 PEP prefs added 2007-08-09 23:05:43 +00:00
Yann Leboulanger ea24ee82e5 merge diff from trunk to pep branch 2007-08-09 15:39:18 +00:00
Piotr Gaczkowski e3ef0821b3 Merge with trunk 2007-06-03 10:04:20 +00:00
Yann Leboulanger c02eb73bd0 add pep_supported var to pep branch too 2007-03-30 19:16:44 +00:00
Yann Leboulanger 5920d03aee ability to destroy a room when we are owner, give a reason and alternative room
jid. fixes #3031
2007-03-11 20:14:53 +00:00
Yann Leboulanger 5b63c41c41 use new dataform widget in register agent window. Remove no more used old DataFormWindow. 2007-02-15 09:18:24 +00:00
Yann Leboulanger 3534bb30cd use new dataform widget in groupchat config window 2007-02-14 16:48:25 +00:00
Yann Leboulanger a5b0e51dcb since 2006-11-29 we don't require a status message to sign a presence. 2007-02-12 19:37:09 +00:00
Jean-Marie Traissard 05f306115e Delete change_nick() func, use join_gc() instead. Fixes #2903. 2007-02-11 03:22:40 +00:00
Yann Leboulanger cba44a43a1 handle proxy errors. fixes #799 (socks5 proxies should now be supported. tests needed) 2007-02-07 22:05:52 +00:00
Yann Leboulanger b02cdd378d when we are disconnected while autoaway, don't loose previous status. fixes #2934 2007-01-31 20:38:49 +00:00
Jean-Marie Traissard f4d43979ed Verify avatars'sha on hdd in muc too, don't send sha when disconnecting from muc 2007-01-29 22:04:22 +00:00
Yann Leboulanger 9a6b090506 begining of socks5 proxy support. error handling is missing. see #799 2007-01-24 21:50:59 +00:00
Yann Leboulanger 605924b2b8 [Jeff] fix some strings. 2007-01-21 14:13:39 +00:00
Yann Leboulanger ba2b1a0f58 change function name. see #2898 2007-01-17 11:40:59 +00:00
Yann Leboulanger abcb9a35f1 handle correltly SRV and registration on IDN servers. fixes #2898 2007-01-16 22:36:41 +00:00
Yann Leboulanger 3567a8c20f remove privacy list from dialog only when server return the result, else show an error dialog. fixes #2853 2007-01-11 20:21:53 +00:00
Jean-Marie Traissard 86fbcece1f use the GOOD syntax for the get_last_date_that_has_logs() SQL request :)
(Open gc win three times faster, and even more when time cached !
Also opens history wins two times faster)
2007-01-09 17:30:03 +00:00
Yann Leboulanger 8ede60ebb0 add --use-agent to GPG so that we work with gnupg-agent 2007-01-06 20:19:47 +00:00
junglecow 5529852ded - Fix TB on fingerprint mismatch
- Add debug message on import failure of PyOpenSSL
 - Update gajim.org digest after migration to new server
2006-12-29 01:46:46 +00:00
junglecow e1ad5b15d0 - Removed unnecessary import
- Fixed name of transport_nb's logger
2006-12-28 11:15:44 +00:00
junglecow 8707d511c1 - More accurate description of None outcome of _check_fingerprint
- Check for presence of PyOpenSSL in fingerprint check. Fixes #2841.
2006-12-27 23:28:47 +00:00
junglecow cf291c3c2f Move fingerprint check into its own function. 2006-12-27 23:25:32 +00:00
junglecow 847d9fe6e9 - Enhanced parsing of -l/--loglevel option
- Demote one message w/exception to debug
 - Hopefully improved user error message when fingerprint is bad
2006-12-27 18:38:50 +00:00
junglecow 9deb76a8ad - Started new way of logging, with configurable level for each subsystem
- Added -q, --quiet (speaks for itself)
   - Added -l, --loglevel subsystem=LEVEL,subsystem2=LEVEL2,...
 - Quell winsock 10035 error. (Equivalent of EINPROGRESS, but winsock likes to have its own error numbers.)
 - Hide SSL certificate debug stuff unless gajim.c.x.transports loglevel is DEBUG or lower
 - Avoid unicode problems if we set a profile
 - Move fingerprint checks from _register_handlers to _connect_success
 - Some enhancements to fpr checking code
2006-12-23 21:18:07 +00:00
junglecow 44674f7e75 - Implement matching of fingerprints against servers.xml
- Add support for fingerprints to servers.xml parser.
 - Add support for 'hidden' servers to servers.xml parser.
 - Add some fingerprints to servers.xml, for testing and as example for the new format.
 - Force asynchronous (nonblocking) SSL handshake in all case
 - Add logging to c/connection.py

Known issues:
 - Checking of fingerprints doesn't work on in-band SSL (Typically port 5222) because of stuff happening out of sequence. Workaround: use immediate SSL mode ("Legacy SSL" option in server config). Because there is as of yet no other way to /force/ SSL, this is also the most secure setting.
 - A lot of code is still looking for a better place to live.
2006-12-22 23:30:23 +00:00
junglecow a4655276fe [Trunk]
- In verbose mode, print encodings. (Especially for Windows users who don't have Python) (gajim.py)
 - Attempt at fixing traceback when getting user's home directory in Windows. See #2812. (c/configpaths.py)
 - Show 'error' icon next to account while waiting for reconnect. Fixes #2786. (c/connection_handlers.py, c/gajim.py, c/connection.py)
[PyOpenSSL]
 - Fix 100% CPU usage and hanging connection when server closes connection on us. (c/x/transports_nb.py)
 - Fix 'hanging' connection when server closes the connection on us before we can open the XML stream. (Disconnect handler didn't get called.) (c/x/client_nb.py)
 - Change prints to logger calls, various enhancements to debug printing, reduce spam (c/x/transports_nb.py)
 - this → self (c/x/transports_nb.py)
 - Call _do_receive() once to collect error message from socket, when error flag is raised in scheduler. (c/x/transports_nb.py)
2006-12-20 20:40:08 +00:00
junglecow 7fbb4279ac - Reset retrycount if we auth successfully, so we can start retrying at 10 seconds instead of 15 minutes. This is an old bug, but wasn't noticable with 10 vs 20 seconds. 2006-12-10 20:22:02 +00:00
junglecow 9353c13d65 - Trying to connect to server every 20 seconds forever is extremely rude to its owner. Let's be polite and do exponential back-off. (See #2411)
- [PyOpenSSL] Ported [7443] to pyopenssl branch.
2006-12-08 21:19:01 +00:00
Yann Leboulanger f89ccfe441 detect error while encrypting message, block sending it, and display error message. fixes #2712 2006-12-06 16:19:47 +00:00
Jean-Marie Traissard 6b0664fa83 Cache xep85 support but continue to violate xep85 5.1.2 for release. See #2637. 2006-11-26 22:00:53 +00:00
junglecow fc88ae004a When registering a new account, instead of using on_connect_success handler, register disconnect handler with the connection as soon as we create it. Hacky, but works. Fixes #2671. 2006-11-24 14:48:04 +00:00
Yann Leboulanger 4251bb6d2b [stlman] fix invisible code. fixes #2695. Thanks 2006-11-22 23:27:57 +00:00
Yann Leboulanger 7cdb177558 show error message when we try to register to an unavailable transport. fixes #1574 2006-11-22 19:49:41 +00:00
Yann Leboulanger 0de0f31d91 coding stds 2006-11-20 00:09:18 +00:00
junglecow c3e24dfa76 [PyOpenSSL branch]
- Close connection after creating account. Fixes #2676
- Handle normal connection close by server. Fixes #2671
- Do not disconnect if we haven't received starttag yet. Fixes #2668. Fixes unticketed bug causing account creation not to work with PyOpenSSL and asynchronous handshake (see also #2671). Behaviour of #2634 is also improved but now results in deadlock.
2006-11-18 15:09:40 +00:00
Yann Leboulanger 1620ff8471 transform no_log_for to a list before looking in it. fixes #2613 2006-11-15 20:46:18 +00:00
Yann Leboulanger e9755daa9d retry indefinitly is back. fixes #2411. please test that 2006-11-15 08:24:35 +00:00
Yann Leboulanger 38fd89a378 shorter string to fit popup window. fixes #2640 2006-11-10 19:33:34 +00:00
Yann Leboulanger a4c29cd6c2 [misc] XEP-145 (annotations) support. Thanks fixes #776 2006-11-09 19:13:53 +00:00
Jean-Marie Traissard 57e4c75a83 [junglecow] Bookmarked groupchat rooms to follow global print_status_in_muc setting
if print_status unspecified by user. Fixes #2641.
2006-11-05 22:09:19 +00:00
Yann Leboulanger e96edbb7a6 - add a confirmation dialog when we create a metacontact for the forst time. fixes #2259
- for server that doesn't support storinx privacy XML, add a warning dialog
2006-11-05 00:47:25 +00:00
Stefan Bethge 1dbb2a891f merge zeroconf branch to trunk 2006-10-11 02:12:56 +00:00
Yann Leboulanger 80c2f297d6 reconnect time is now random ([5-15] if retrycount <= 5, else [15, 25])
reconnect infinitly when autoreconnect option is True. fixes #2411
2006-10-09 15:53:30 +00:00
Stefan Bethge 0d0ac51fa8 merge with trunk 2006-10-09 00:27:03 +00:00
Nikos Kouremenos 8dfb1a5a66 unite room and server name resulting in a room jid interface [so it aligns with add new contact]. fixes #2504 2006-10-07 12:18:51 +00:00
Nikos Kouremenos 8eb1c7ce75 move rst_xhtml_generator.py to common/ where it belongs 2006-10-06 12:33:10 +00:00
Nikos Kouremenos ebd6f65460 [Gustavo Carneiro] add GnomeKeyring support. see #2493 2006-10-05 23:06:54 +00:00
Yann Leboulanger 53f8b119bc [sgala]Do not depend on docutils if we don't use rst xhtml generator. See #316 2006-10-04 11:53:03 +00:00
Dimitur Kirov 59b6ae468a merge from trunk
automake based instalation
2006-10-04 00:10:49 +00:00
Yann Leboulanger 725325eb7e priority is now by default set from status. online: 50, away: 40...
priorities are configurable with autopriority_* ACE options.
Fixes #1999, #1439, #1885, #1076
2006-10-03 14:57:19 +00:00
Yann Leboulanger 1345afa86c [Santiago Gala] We can now generate HTML thanks to rst. see #316 2006-10-03 14:22:49 +00:00
Yann Leboulanger 6b40b5ad32 [Santiago Gala] we can now see XHTML (JEP 0071). See #316 2006-10-03 14:12:42 +00:00
Nikos Kouremenos 7ce1fa4e46 self.name not self [in connection.py] 2006-10-02 11:42:26 +00:00
Nikos Kouremenos 962c571adb move > 1 < 2 jargon about connected acct to where it belogs [common/gajim] try to use that from now one please. 2006-10-02 10:42:59 +00:00
Jean-Marie Traissard ba83ec833e Disable privacy list menuitem when disconnecting
Fix TB about wrong widget name. Hope that works, can't test as only server I found that claims to support
it says I'm sending bad requests...
2006-09-29 22:22:46 +00:00
Nikos Kouremenos 9002b3d293 put my email (and jid), not one of my JIDs 2006-09-28 11:31:25 +00:00
Yann Leboulanger 382b245062 don't allow privacy rules window if server doesn't support it. Fixes #253 2006-09-26 11:54:03 +00:00
Stefan Bethge 2b3120244f merged trunk r6780
removed i18n imports from zeroconf/connection files
2006-09-14 16:48:03 +00:00
Yann Leboulanger 746a0bf98e show connection lost error in popups instead of error dialogs. Fixes #2138 2006-09-10 10:22:16 +00:00
Yann Leboulanger 411aaa1f7b typo 2006-09-07 21:16:50 +00:00
Yann Leboulanger 2352ddfd02 use updated JEP172 2006-09-07 21:11:50 +00:00
Yann Leboulanger 23396f8f59 do not add a default subscription message. 2006-08-31 15:35:38 +00:00
Yann Leboulanger 3175c9113a don't ask os info when we are invisible. For #1964 2006-08-21 19:54:09 +00:00
Yann Leboulanger 2428298bda new add_contact window with a combobox. Fixes #872 2006-08-03 19:13:42 +00:00
Yann Leboulanger f3297666b7 allow to invite contact only to room of the same type (jabber contact to jabber rooms, MSN contacts to MSN rooms). Fixes #2199 2006-08-01 18:03:52 +00:00
Yann Leboulanger 4adf2c4f6d when we get an error (when we asked meta contact) don't except the server to include the sent request as it's only a SHOULD in RFC3390 9.2.3.7. detect the answer by iq id instead. 2006-07-31 20:27:06 +00:00
Yann Leboulanger 57aeb0d0ef we can now register to a transport in add contact window is server has such a transport. Fixes #1944 2006-07-31 17:08:21 +00:00
Yann Leboulanger e3ba73be74 if server doesn't support vcard, don't allow user to modify it. Fixes #2182 2006-07-26 12:01:14 +00:00
Yann Leboulanger 65d57253c9 we can now invite to new room 2006-07-25 22:26:07 +00:00
Yann Leboulanger 96b21bbc6f [roidelapluie & asterix] Privacy lists. Fixes #253 2006-07-03 20:49:20 +00:00
Yann Leboulanger bc26593974 use gettext.install. Fixes #497 2006-06-15 06:49:04 +00:00
Jean-Marie Traissard 576f4eef56 Delete now unused sync param 2006-06-12 17:34:08 +00:00
Yann Leboulanger 59c3b7b3c8 JEP 172 support (user nickname) Fixes #464 and #884 2006-06-01 15:23:38 +00:00
Dimitur Kirov 25e6d9f4aa send our real show, when we connect to a
transport
2006-05-31 21:12:03 +00:00
Stefan Bethge 77e53f7488 trying to show contacts on the roster 2006-05-29 19:57:39 +00:00
Dimitur Kirov 7db9216442 make sure we are disconnected after connection
is lost ??? #1955 by j@bootlab.org
2006-05-11 20:51:39 +00:00
Yann Leboulanger d7d0e25d25 print_status_in_muc is not a string which can be 'all', 'none' or 'in_and_out'(default one). version is 0.10.0.1 to update this variable.
show_status becomes print_status in server (show_status is still read for transition)
2006-05-10 16:25:57 +00:00
Yann Leboulanger 9abd27fbf8 we can now configure if we want to see all status or only enter/leave in bookmarked rooms. 2006-05-07 21:44:57 +00:00
Dimitur Kirov f9e874a1a3 make sure NBClientCommon, dispatcher and
NodeBuilder are callected when we close the
connection
2006-05-03 16:12:10 +00:00
Yann Leboulanger d25d056677 be sure that transport is really removed before we start to remove its contacts. 2006-05-01 18:29:12 +00:00
Dimitur Kirov 36426778f0 add gajim caps, fixes #608 2006-05-01 14:15:28 +00:00
Dimitur Kirov 87253c461a reset on_purpose var, when we manually change
our status to !offline
2006-04-28 18:42:18 +00:00
Dimitur Kirov 173c81ad8c remove failure handler, after we call it 2006-04-28 16:20:24 +00:00
Yann Leboulanger ae054b413e nothing 2006-04-17 22:42:23 +00:00
Yann Leboulanger 0b9868b82a typo. Fixes #1862 2006-04-17 09:07:58 +00:00
Yann Leboulanger c4a3262488 [sol] save GPG status 2006-04-15 08:10:24 +00:00
Dimitur Kirov e6981f6f2b show error dialog for lost connection, after
10 reconnect attempts has failed.
No need of po update.
2006-04-14 09:01:24 +00:00
Dimitur Kirov a7fe49be20 on_connect_failure is None after we auth 2006-04-14 05:23:19 +00:00
Dimitur Kirov 19b7e6b0fc disconnect without reconnect, when we notify
user about connection errors
2006-04-12 20:56:25 +00:00
Yann Leboulanger 1252786642 remove useless code. old metacontact stuff is removed for everyone 2006-04-11 20:18:33 +00:00
Yann Leboulanger 4e2f02c725 fix import (add missing, remove useless) 2006-04-11 18:36:09 +00:00
Dimitur Kirov f1f385f7c3 disconnect account on unregister from server 2006-04-10 15:47:31 +00:00
Dimitur Kirov 71314f2b08 don't try to reconnect if socket was never
connected
2006-04-08 00:30:33 +00:00
Nikos Kouremenos eb4aa3b9c9 take commit comment to actual code comment so readability is increased and comment is on-line help 2006-04-07 23:47:24 +00:00
Dimitur Kirov 1273e35617 typo: wrong ticket number, should be #1629 2006-04-07 21:05:16 +00:00
Dimitur Kirov 047ebf27ef try reconnect if connection has failed befor
auth to server (#1663)
2006-04-07 21:01:37 +00:00
Yann Leboulanger 2c552d2b85 remove no more used func 2006-04-06 17:27:33 +00:00
Yann Leboulanger 1bc78a3818 we remove agent even if it doesn't reply. Fixes #1756 2006-04-06 16:58:20 +00:00
Yann Leboulanger 4849c2f815 we go offline in rooms when we go invisible 2006-03-29 21:06:01 +00:00
Yann Leboulanger bfe1e8c631 Never join a room when invisible 2006-03-29 14:32:45 +00:00
Yann Leboulanger ff7eb2356a handle correctly when server return answer to register request when we create a new account. Fixes #1725 2006-03-27 09:53:47 +00:00
Yann Leboulanger bdda6d1555 show correct error message when we fail to create an account. See #1725 2006-03-26 23:42:36 +00:00
Yann Leboulanger 7d3cee66ca handle connection failure when we create a new account. Fixes #1725 2006-03-26 12:30:29 +00:00
Yann Leboulanger ac0f22887e fix GC logs: when we create a new room, we call get_last_date_that_has_logs(), which call get_jid_jid, which create a new id for the room, but with type = JID_NORMAL_TYPE instead of JID_ROOM_TYPE. It's now fixed 2006-03-24 18:46:48 +00:00
Yann Leboulanger f8db75e255 New metacontact way. JEP is not published yet, but I talked with the author. Old metacontact info are removed automaticaly 2006-03-24 12:55:56 +00:00
Dimitur Kirov 3f0ac6b3d9 fix imports 2006-03-21 15:57:44 +00:00
Dimitur Kirov c16167025c disconnect pending proxy resolve actions when
account is disconnected from server
2006-03-20 22:09:16 +00:00
Dimitur Kirov 8d15ac84be restored send_stanza, needed by xml console 2006-03-19 16:53:17 +00:00
Dimitur Kirov 540103f381 arranged some methods from connection.py in
classes defeined in connection_handlers.py
2006-03-19 14:54:00 +00:00
Dimitur Kirov d33055c3bc don't try to connect, when we are in state
'connecting'
2006-03-15 21:06:22 +00:00
Dimitur Kirov 7afb58426a property last_connection, used to prevend
double connections
2006-03-15 20:10:52 +00:00
Yann Leboulanger 4cbc0666ff show an error dialog when a transport answers wrongly to register request. Fixes #1702 2006-03-15 08:56:36 +00:00
Yann Leboulanger f355cb043a replace / in gc nicks by _ before we save vcard / avatars 2006-03-14 18:09:09 +00:00
Yann Leboulanger b1ce1107de we can now talk to a specific resource 2006-03-14 13:10:09 +00:00
Yann Leboulanger dce057d29e avatars are in gc roster. gc avatar images are saved in room_jid folder. Fixes #1121 2006-03-13 13:25:51 +00:00
Yann Leboulanger 3d61688111 typo. Fixes #1684 2006-03-10 22:06:21 +00:00
Yann Leboulanger adb62eb628 jids are now punycoded before we store avatars on HD. Fixes #1030 2006-03-10 18:58:28 +00:00
Yann Leboulanger f9d0421d33 jids and nicks are now punycoded before we store on HD. See #1030 2006-03-10 18:48:14 +00:00
Yann Leboulanger 3355cf4ea3 room_contacts vcards are now saved in room_jid folder. Fixes #1105 2006-03-09 18:41:57 +00:00
Nikos Kouremenos 7515e1d433 better varname for list of jids for auto auth 2006-03-08 11:42:15 +00:00
Yann Leboulanger d4cbe39fc2 auto_authorization is now keept in mem. This way it works correctly, but doesn't if you close gajim before your contact ask your auth. Fixes #1630 2006-03-08 10:46:36 +00:00
Yann Leboulanger 1c13fcd648 [Geobert] Don't send bot JEP85 and JEP22 when only JEP22 is supported by contact. Fixes #1317 2006-03-03 14:41:55 +00:00
Yann Leboulanger a4839a720c don't ask twice the password when we create an account and show correct page in vcard even we receive an empty vcard. Fixes #1560 2006-03-02 15:47:21 +00:00
Yann Leboulanger 9209a98764 fix logic/TB. See #1639 2006-03-02 06:49:25 +00:00
Yann Leboulanger 4b327b5682 [Geobert] JEP-0022 partial support (composing). Tunned by me. Fixes #1317 2006-03-01 18:16:54 +00:00
Nikos Kouremenos 09bce24b11 add clearer comment 2006-02-27 15:27:54 +00:00
Nikos Kouremenos 7a666ca03b fix logic 2006-02-27 15:25:06 +00:00
Nikos Kouremenos a1b1538c54 [Artur Tulyulya] Also detect CRUX. fixes #1626 2006-02-27 15:19:56 +00:00
Nikos Kouremenos 506e6752ea nickname changes do instant apply now. fixes #1612 2006-02-23 14:36:41 +00:00
Yann Leboulanger 0b2f9d4617 we now keep last_status_time, show it in tooltip and information window, ask it (jabber:iq:last, JEP-0012) when we open information window. Fixes #1133 2006-02-22 14:31:01 +00:00
Yann Leboulanger e85c373a95 don't take into account chatstate when message is delayed (offline message, ...). Fixes #1294 2006-02-21 09:52:55 +00:00
Yann Leboulanger 3317383918 put contact in observer group when we remove it but let him see our status. Fixes #1494 2006-02-20 22:08:02 +00:00
Nikos Kouremenos cb6f163f02 VCARDPATH --> VCARD_PATH 2006-02-15 10:44:41 +00:00
Yann Leboulanger 59e6377546 follow RFC 3921 section 8 for subscription. This also fixes #1400 2006-02-07 23:11:24 +00:00
Yann Leboulanger 6ceb13430b remove files from AVATAR_PATH when contacts changes his avatar or removes it 2006-02-06 16:04:55 +00:00
Dimitur Kirov f52144c803 socks5 classes now use Gajim idlequeue
still there are several TODOs
2006-02-06 00:11:45 +00:00
Travis Shirk ec03a1d853 Added name='Gajim' to disco identity 2006-02-04 20:27:17 +00:00
Yann Leboulanger 5344bd3ff5 we now reply when someone discover us 2006-02-04 13:47:29 +00:00