{#}  Replies are directed back to [EMAIL PROTECTED]
{#}  To reply to the author, write to Jason Townsend <[EMAIL PROTECTED]>

> Actually, I think I figured out what the problem with this is (and I take it
> back, if I hit Close without actually checking my Yahoo mail, there is no
> second notification window).
> 
> What seems to happen is Yahoo sends a notification back after you check your
> Yahoo mail to tell the client to clear the New Mail flag. Unfortunately,
> libyahoo doesn't seem to distinguish between a New Mail notification and one
> of these "Clear New Mail" notifications, so it just thinks that you have
> another new message. If anything, I would guess that it is a libyahoo bug,
> not necessarily a Fire bug.
> 
> Unfortunately, the fellows working on GTKYahoo have not addressed this issue
> (perhaps it isn't one to them, or they have another way of working around
> it). 

There's a very simple fix for this which is in Fire specific code. You just
have to check whether the notification is for "new mail on" or "new mail
off".

Index: Yahoo/YahooCFunctions.m
===================================================================
RCS file: /cvsroot/fire/fire/Yahoo/YahooCFunctions.m,v
retrieving revision 1.10
diff -u -r1.10 YahooCFunctions.m
--- Yahoo/YahooCFunctions.m     27 Jan 2002 00:25:13 -0000      1.10
+++ Yahoo/YahooCFunctions.m     17 Feb 2002 21:11:27 -0000
@@ -287,7 +287,8 @@
 
 void process_packet_newmail(struct yahoo_packet *pkt)
 {
-    [[YahooCommunicationController sharedInstance] newmail] ;
+       if ((pkt != NULL) && (pkt->mail_status))
+               [[YahooCommunicationController sharedInstance] newmail] ;
 }
 
 void process_packet_chatinvite(struct yahoo_packet *pkt)

-Jason

-- 
<http://homepage.mac.com/townsend/>
"Do, or do not. There is no 'try'."
  - Yoda (_The Empire Strikes Back_)



{#} ----------------------------------------------------+[ fire ]+---


Reply via email to