Closed Bug 277833 Opened 20 years ago Closed 20 years ago

Land Aviary MAPI Changes

Categories

(Thunderbird :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird1.1

People

(Reporter: mscott, Assigned: mscott)

Details

Attachments

(1 file)

Generic tracking bug for landing the MAPI changes on the branch back to the
trunk. This includes adding the ability to register as a News handler and
support for setting the registry keys for brining up the Thunderbird options
dialog.
Status: NEW → ASSIGNED
Target Milestone: --- → Thunderbird1.1
Comment on attachment 170861 [details] [diff] [review]
first cut at the merge

time to get this landed and off the trunk merge list.
Attachment #170861 - Flags: superreview?(bienvenu)
Comment on attachment 170861 [details] [diff] [review]
first cut at the merge

+      OS registry entries to make us show up as regsitered mail and news
client
+	  in the OS
+   */

is there a tab here?

+    // we need to get the value from registry everytime

every time

are there tabs in nsMapiRegistryUtils::RegCopyKey?

more tabs, or just slightly off indentation, or just a -uw artifact?

-    rv = SetRegistryKey(HKEY_LOCAL_MACHINE,
"Software\\Classes\\news\\DefaultIcon", "", (char *)iconPath.get());
-    NS_ENSURE_SUCCESS(rv, rv);
+	 nsCAutoString iconKey (keyName);
+	 iconKey.AppendLiteral("\\DefaultIcon");
+	 rv = SetRegistryKey(HKEY_LOCAL_MACHINE, iconKey.get(),"", (char
*)iconPath.get());
+    }


+    rv = saveDefaultMailClient();
+    
+    if (NS_FAILED(saveUserDefaultMailClient()) || NS_FAILED(rv)) 
+      return NS_ERROR_FAILURE;
+    

I don't like dropping the rv here. This could be:

rv = saveDefaultMailClient();
if (NS_SUCCEEDED(rv))
  rv = saveUserDefaultMailClient();
NS_ENSURE_SUCCESS(rv, rv)

similarly here:

-	 if (NS_FAILED(RestoreBackedUpMapiDll())) return NS_ERROR_FAILURE;
+	 if (NS_FAILED(RestoreBackedUpMapiDll())) 
+	   return NS_ERROR_FAILURE;


can just be result = RestoreBackedUpMapiDll();
NS_ENSURE_SUCCESS(result, result);

sr = bienvenu with those nits.
Attachment #170861 - Flags: superreview?(bienvenu) → superreview+
fixed
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
This checkin caused bug 279627, which has been broken in Seamonkey trunk for a
month now.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: