comparison src/protocols/oscar/aim.h @ 3694:e941bfbacf7c

[gaim-migrate @ 3824] Adds an option for unread mail notification for AIM over oscar. Yippy. This involves making a connection to the email AIM servers (parallel to chatnav, bos, auth, ads, etc.). Also added were functions n' stuff to handle getting mail status updates. AIM does this in a very silly way. They only tell you how many messages you have when you sign on, so I had to change connection_has_mail so it will just say "bleh has new mail," without saying the number of new messages. Also, I haven't really looked into having you auto-login to webmail, though it is possible. This is good for now. Oh, and since I'm sure people will ask... AIM screen names come with an email account @netscape.net. You have to sign in to netscape.net to activate it. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 14 Oct 2002 07:47:51 +0000
parents 9682c0e022c6
children 765769211688
comparison
equal deleted inserted replaced
3693:2d1b14529fa2 3694:e941bfbacf7c
214 #define AIM_CONN_TYPE_AUTH 0x0007 214 #define AIM_CONN_TYPE_AUTH 0x0007
215 #define AIM_CONN_TYPE_ADS 0x0005 215 #define AIM_CONN_TYPE_ADS 0x0005
216 #define AIM_CONN_TYPE_BOS 0x0002 216 #define AIM_CONN_TYPE_BOS 0x0002
217 #define AIM_CONN_TYPE_CHAT 0x000e 217 #define AIM_CONN_TYPE_CHAT 0x000e
218 #define AIM_CONN_TYPE_CHATNAV 0x000d 218 #define AIM_CONN_TYPE_CHATNAV 0x000d
219 #define AIM_CONN_TYPE_EMAIL 0x0018
219 220
220 /* they start getting arbitrary in rendezvous stuff =) */ 221 /* they start getting arbitrary in rendezvous stuff =) */
221 #define AIM_CONN_TYPE_RENDEZVOUS 0x0101 /* these do not speak FLAP! */ 222 #define AIM_CONN_TYPE_RENDEZVOUS 0x0101 /* these do not speak FLAP! */
222 #define AIM_CONN_TYPE_RENDEZVOUS_OUT 0x0102 /* socket waiting for accept() */ 223 #define AIM_CONN_TYPE_RENDEZVOUS_OUT 0x0102 /* socket waiting for accept() */
223 224
337 struct aim_ssi_item *items; 338 struct aim_ssi_item *items;
338 time_t timestamp; 339 time_t timestamp;
339 int waiting_for_ack; 340 int waiting_for_ack;
340 aim_frame_t *holding_queue; 341 aim_frame_t *holding_queue;
341 } ssi; 342 } ssi;
343
344 struct aim_emailinfo *emailinfo;
342 345
343 /* Connection information */ 346 /* Connection information */
344 aim_conn_t *connlist; 347 aim_conn_t *connlist;
345 348
346 /* 349 /*
1121 1124
1122 faim_export int aim_icq_reqofflinemsgs(aim_session_t *sess); 1125 faim_export int aim_icq_reqofflinemsgs(aim_session_t *sess);
1123 faim_export int aim_icq_ackofflinemsgs(aim_session_t *sess); 1126 faim_export int aim_icq_ackofflinemsgs(aim_session_t *sess);
1124 faim_export int aim_icq_getsimpleinfo(aim_session_t *sess, const char *uin); 1127 faim_export int aim_icq_getsimpleinfo(aim_session_t *sess, const char *uin);
1125 1128
1129 /* email.c */
1130 struct aim_emailinfo {
1131 fu8_t *cookie16;
1132 fu8_t *cookie8;
1133 char *url;
1134 fu16_t nummsgs;
1135 fu8_t unread;
1136 char *domain;
1137 fu16_t flag;
1138 struct aim_emailinfo *next;
1139 };
1140
1141 faim_export int aim_email_sendcookies(aim_session_t *sess, aim_conn_t *conn);
1142 faim_export int aim_email_activate(aim_session_t *sess, aim_conn_t *conn);
1143
1126 /* aim_util.c */ 1144 /* aim_util.c */
1127 /* 1145 /*
1128 * These are really ugly. You'd think this was LISP. I wish it was. 1146 * These are really ugly. You'd think this was LISP. I wish it was.
1129 * 1147 *
1130 * XXX With the advent of bstream's, these should be removed to enforce 1148 * XXX With the advent of bstream's, these should be removed to enforce