Changeset 4c9d377


Ignore:
Timestamp:
2012-09-29T19:49:19Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
06aed9a
Parents:
208db4b
Message:

Suppress own UBM messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    r208db4b r4c9d377  
    807807        else if( strcmp( cmd[0], "UBM" ) == 0 )
    808808        {
    809                 char *ct = get_rfc822_header( msg, "Content-Type", msglen );
    810                 char *handle;
    811                
     809                /* This one will give us msgs from federated networks. Technically
     810                   it should also get us offline messages, but I don't know how
     811                   I can signal MSN servers to use it. */
     812                char *ct, *handle;
     813               
     814                if( strcmp( cmd[1], ic->acc->user ) == 0 )
     815                {
     816                        /* With MPOP, you'll get copies of your own msgs from other
     817                           sessions. Discard those at least for now. */
     818                        return 1;
     819                }
     820               
     821                ct = get_rfc822_header( msg, "Content-Type", msglen );
    812822                if( strncmp( ct, "text/plain", 10 ) != 0 )
    813823                {
     824                        /* Typing notification or something? */
    814825                        g_free( ct );
    815826                        return 1;
Note: See TracChangeset for help on using the changeset viewer.