MailMe: Send the message not only when the original password look-up succeeds, but also when the original look-up fails but the MobileMe look-up succeeds. (D'oh.) maintenance-1.2
authorPeter Hosey <hg@boredzo.org>
Sun May 22 17:27:28 2011 -0700 (2011-05-22)
branchmaintenance-1.2
changeset 4710a2ee79fb077e
parent 4709 8a32cacd12b0
child 4711 c76b7929690a
MailMe: Send the message not only when the original password look-up succeeds, but also when the original look-up fails but the MobileMe look-up succeeds. (D'oh.)
Plugins/Displays/MailMe/GrowlMailMeDisplay.m
     1.1 --- a/Plugins/Displays/MailMe/GrowlMailMeDisplay.m	Sun May 22 16:54:49 2011 -0700
     1.2 +++ b/Plugins/Displays/MailMe/GrowlMailMeDisplay.m	Sun May 22 17:27:28 2011 -0700
     1.3 @@ -123,7 +123,11 @@
     1.4  				if (err != noErr) {
     1.5  					NSLog(@"MailMe: Could not get password for SMTP account %@: %i/%s", userAtHostPort, (int)err, GetMacOSStatusCommentString(err));
     1.6  				}
     1.7 -			} else {
     1.8 +			}
     1.9 +
    1.10 +			//If we successfully got either a regular SMTP password or a MobileMe password…
    1.11 +			if (err == noErr) {
    1.12 +				//…then let's proceed with sending the message.
    1.13  				NSData *passwordData = [NSData dataWithBytesNoCopy:passwordBytes length:passwordLength freeWhenDone:NO];
    1.14  
    1.15  				//Use only stock Python and matching modules.