Patch Email Enable Landscape Viewing

Introduction
This will enable landscape mode for email so that using the keyboard entered code to enable it per session will not be needed.

Procedure for 1.1
From precentral.net Email Landscape Patch, it is indicated certified working on 1.1 but not to be applied to versions prior to 1.1. If the author grants permission to duplicate it here please do so.

Procedure prior to 1.1
Enabling rotation in email is trivial. Whenever you rotate the device, the system calls the orientationChanged function of the app. There's already one defined in email, but for some reason it does nothing. You can enable rotation by applying the following patches.

NOTE: The root of the patches is /usr/palm/applications/com.palm.app.email/

You will need write permissions to the file system on your Pre to apply this patch.

To get write persmissions execute: rootfs_open -w

After you've made the changes below, remount the file system as read-only: mount -o remount,ro /

app/controllers/list-assistant.js
--- list-assistant.js_2009-06-27	Sat Jun 27 19:19:19 2009 +++ list-assistant.js	Sat Jun 27 20:03:19 2009 @@ -27,6 +27,9 @@ 				{label:$L('Update'), icon:'sync', command:'sync'} ]}; 	this.controller.setupWidget(Mojo.Menu.commandMenu, undefined, this.cmdMenuModel); +	+	// enable free orientation +	this.controller.window.PalmSystem.setWindowOrientation("free"); },  // NOTE: this is called by app_scene's _setup function

app/controllers/compose-assistant.js
--- compose-assistant.js_2009-06-27	Sat Jun 27 19:21:43 2009 +++ compose-assistant.js	Sat Jun 27 20:03:45 2009 @@ -178,6 +178,9 @@ 		// Delayed a little, since we want the header part of render as quickly as possible ComposeAssistant.onLoad.defer(this.controller, this.email); +		+		// enable free orientation +		this.controller.window.PalmSystem.setWindowOrientation("free"); }, 	cleanup: function {

app/controllers/accounts-assistant.js
--- accounts-assistant.js_2009-06-27	Sat Jun 27 19:29:47 2009 +++ accounts-assistant.js	Sat Jun 27 20:01:28 2009 @@ -51,6 +51,9 @@ 		EmailAppDepot.depot.isShowFavorites(AccountsAssistant.kFavoriteFoldersAccountID, this.depotGetFavExpanded.bind(this)); this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.keypressHandler.bind(this)); +		+		// enable free orientation +               this.controller.window.PalmSystem.setWindowOrientation("free"); }, 	cleanup: function {