{
	name = "Test";
	rootViewer =
	{
		viewerType = "MmSplitView";
		orientation = "horizontal";
		children =
		(
			{ // First vert pane
				viewerType = "MmSplitView";
				orientation = "vertical";
				defaultSize = 200;
				minWidth = 100;
				autoresize = 0;
				toggleMenuTitle = "Mailboxes";
				toggleKeyEquivalent = "^~@d";
				collapsibleSubview = 2; // Incomplete support -- no way to get it back (1 = first, 2 = last)
			
				children =
				(
					{
						viewerType = "MmBoxView";
						orientation = "vertical";
						defaultSize = 200;
						autoresize = 0;
						children =
						(
							{
								viewerType = "MmMailboxesStatusBar";
							},{
								identifier = "mailboxesOutline";
								viewerType = "MmMailboxesOutlineView";
								stickyMessages = 1;
							},
						);
					},
					{ // Correspondence view
						viewerType = "MmSplitView";
						orientation = "vertical";
						defaultSize = 200;
						autoresize = 1;
						children =
						(
							{
								viewerType = "MmLabelView";
								label = "Correspondence";
							},
							{
								identifier = "correspondenceOutline";
								viewerType = "MmMessagesOutlineView";
								sources = ( { sourceIdentifier = "mainOutline"; } );
								selectionSources = ( { sourceIdentifier = "mainOutline"; } );
								// FIXME: The transformation does not work 'per' message, i.e., it tries to combine any 'from' with any 'to' in $mainOutline.
								transformation = "$ALL_MESSAGES.filter((from.address = $mainOutline.from.address and #recipient.address = $mainOutline.#recipient.address) or (from.address = $mainOutline.#recipient.address and #recipient.address = $mainOutline.from.address))";
								defaultColumns = ( "subject", "relativeDate" );
								outlineColumn = "subject";
							},
							{	
								viewerType = "MmLabelView";
								label = "Thread";
							},
							{
								identifier = "threadOutline";
								viewerType = "MmMessagesOutlineView";
								sources = ( { sourceIdentifier = "mainOutline"; } );
								selectionSources = ( { sourceIdentifier = "mainOutline"; } );
								// FIXME: The transformation does not work 'per' message, i.e., it tries to combine any 'from' with any 'to' in $mainOutline.
								transformation = "$ALL_MESSAGES.filter(#thread-id =[c] $mainOutline.#thread-id)";
								defaultColumns = ( "from", "relativeDate" );
								outlineColumn = "subject";
							},
						);

						toggleMenuTitle = "Correspondence View";
						toggleKeyEquivalent = "^~@c";
					},
				);
			},
			{ // second vert pane
				viewerType = "MmSplitView";
				orientation = "vertical";
				collapsibleSubview = 2; // Incomplete support -- no way to get it back (1 = first, 2 = last)
				children =
				(
					{
						viewerType = "MmBoxView";
						orientation = "vertical";
						defaultSize = 250;
						autoresize = 0;
						children =
						(
							{
								identifier = "pathControl";
								viewerType = "MmPathControlView";
								sources = ( { sourceIdentifier = "mailboxesOutline"; } );
							},
							{
								identifier = "mainOutline";
								viewerType = "MmMessagesOutlineView";
								// columnSettings = "outlineColumns";
								// Keeps selected messages in the view even if they no longer match the main query
								// sources = ( { sourceIdentifier = "mainOutline"; }, { sourceIdentifier = "pathControl"; } );
								sources = ( { sourceIdentifier = "pathControl"; } );
								minHeight = 50;
							},
						);
					},
					{
						viewerType = "MmSplitView";
						orientation = "horizontal";
						children =
						(
							{
								viewerType = "MmBoxView";
								orientation = "vertical";
								children =
								(
									{
										identifier = "tagsEditor";
										viewerType = "MmTagsEditor";
										sources = ( { sourceIdentifier = "correspondenceOutline"; } );
									},
									{
										viewerType = "MmMultiMessageView";
										identifier = "messageView";
										minHeight = 150;
										minWidth = 250;
										sources = ( { sourceIdentifier = "correspondenceOutline"; } );
									},
								);
							}
						);

						toggleMenuTitle = "Message View";
						toggleKeyEquivalent = "^~@h";
					},
				);
			},
		);
	};
}
