forked from chauncey-garrett/mailmate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
correspondence-arcs-widescreen.plist
198 lines (195 loc) · 5.97 KB
/
correspondence-arcs-widescreen.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{
name = "Correspondence Arcs (Widescreen)";
rootViewer =
{
viewerType = "MmSplitView";
orientation = "horizontal";
children =
(
{
// Mailboxes sidebar
viewerType = "MmBoxView";
orientation = "vertical";
defaultSize = 200;
minWidth = 100;
autoresize = 0;
toggleMenuTitle = "Mailboxes";
toggleKeyEquivalent = "^~@d";
dragRect = { width = 16.0; height = 16.0; location = "bottomRight"; };
children =
(
{
identifier = "mailboxesOutline";
viewerType = "MmMailboxesOutlineView";
stickyMessages = 1;
},
{
viewerType = "MmMailboxesStatusBar";
},
);
},
{
// Main window view
// Split the entire window vertically to separate sidebar from mailbox view
viewerType = "MmSplitView";
orientation = "horizontal";
// collapsibleSubview = 2; // Incomplete support -- no way to get it back (1 = first, 2 = last)
children =
(
{
// Top of main view
identifier = "pathOutlineBox";
viewerType = "MmBoxView";
orientation = "vertical";
defaultSize = 1000;
autoresize = 0;
children =
(
{
identifier = "pathControl";
viewerType = "MmPathControlView";
sources = ( { sourceIdentifier = "mailboxesOutline"; } );
},
{
viewerType = "MmSeparatorView"; showWithViews = ( "pathControl" );
},
{
viewerType = "MmSplitView";
minHeight = 50;
orientation = "vertical";
children =
(
{
// Message list
viewerType = "MmBoxView";
orientation = "vertical";
defaultSize = 800;
minWidth = 500;
autoresize = 0;
children =
(
{
viewerType = "MmLabelView";
// TODO: Make label state current mailbox
label = "Messages";
},
{ viewerType = "MmSeparatorView"; },
{
identifier = "mainOutline";
viewerType = "MmMessagesOutlineView";
/* columnSettings = "outlineColumns"; */
sources = ( { sourceIdentifier = "pathControl"; } );
},
);
},
{
// Correspondence view
viewerType = "MmBoxView";
orientation = "vertical";
defaultSize = 300;
minWidth = 300;
autoresize = 0;
children =
(
{
viewerType = "MmLabelView";
label = "Correspondence";
},
{ viewerType = "MmSeparatorView"; },
{
identifier = "correspondenceOutline";
viewerType = "MmMessagesOutlineView";
minWidth = 100;
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";
},
);
toggleMenuTitle = "Correspondence View";
toggleKeyEquivalent = "^~@c";
},
);
},
);
},
{
viewerType = "MmSplitView";
minHeight = 50;
orientation = "horizontal";
children =
(
{
// Thread arcs view
viewerType = "MmThreadArcsView";
sources = ( { sourceIdentifier = "mainOutline"; } );
selectionSources = ( { sourceIdentifier = "mainOutline"; } );
transformation = "$ALL_MESSAGES.filter(#thread-id =[c] $mainOutline.#thread-id)";
minWidth = 40;
defaultSize = 40;
orientation = "vertical";
toggleMenuTitle = "Thread Arc View";
toggleKeyEquivalent = "";
},
);
},
{
// Bottom of main view
// Split the main window horizontally to separate messages from message list
viewerType = "MmSplitView";
orientation = "vertical";
children =
(
{
// Email view
viewerType = "MmBoxView";
orientation = "vertical";
children =
(
{
identifier = "headersView";
viewerType = "MmHeadersView";
sources = ( { sourceIdentifier = "correspondenceOutline"; } );
inject = ( "headersFormatting.plist" );
},
{ viewerType = "MmSeparatorView"; showWithViews = ( "headersView" ); },
{
identifier = "tagsEditor";
viewerType = "MmTagsEditor";
sources = ( { sourceIdentifier = "correspondenceOutline"; } );
},
{ viewerType = "MmSeparatorView"; showWithViews = ( "tagsEditor" ); },
{
identifier = "blockingView";
viewerType = "MmImageBlockingView";
sources = ( { sourceIdentifier = "correspondenceOutline"; } );
transformation = "$correspondenceOutline.filter(##blocked-count exists)";
},
{ viewerType = "MmSeparatorView"; showWithViews = ( "blockingView" ); },
{
identifier = "securityView";
viewerType = "MmSecurityView";
sources = ( { sourceIdentifier = "correspondenceOutline"; } );
transformation = "$correspondenceOutline.filter(##security-problem exists)";
},
{ viewerType = "MmSeparatorView"; showWithViews = ( "securityView" ); },
{
identifier = "messageView";
viewerType = "MmWebView";
sources = ( { sourceIdentifier = "correspondenceOutline"; } );
minWidth = 175;
minHeight = 50;
},
);
}
);
toggleMenuTitle = "Message View";
toggleKeyEquivalent = "^~@h";
},
);
},
);
};
}