+2004-10-06 Helge Hess <helge.hess@opengroupware.org>
+
+ * UIxMailListView.m: added support for paper clip icon when messages
+ are bigger than a certain size (v0.9.26)
+
2004-10-05 Helge Hess <helge.hess@opengroupware.org>
* v0.9.25
@implementation UIxMailListView
+static int attachmentFlagSize = 8096;
+
- (void)dealloc {
[self->sortedUIDs release];
[self->messages release];
return [[[self message] valueForKey:@"uid"] stringValue];
}
+- (BOOL)hasMessageAttachment {
+ /* we detect attachments by size ... */
+ unsigned size;
+
+ size = [[[self message] valueForKey:@"size"] intValue];
+ return size > attachmentFlagSize;
+}
+
/* fetching messages */
- (NSArray *)fetchKeys {
<td class="tbtv_headercell" width="17">
<img rsrc:src="title_read_14x14.png" width="14" height="14" />
</td>
+ <td class="tbtv_headercell" width="17">
+ <img rsrc:src="title_attachment_14x14.png" width="14" height="14" />
+ </td>
<td class="tbtv_headercell">
<a href="view" _sort="date">
<var:string label:value="Date" />
</td>
</tr>
<tr class="tableview">
- <td colspan="4" class="tbtv_navcell" align="right">
+ <td colspan="5" class="tbtv_navcell" align="right">
<var:if condition="showsAllMessages">
<var:string value="sortedUIDs.count" />
<var:string label:value="messages" />
</td>
<td>
<!-- TODO: show compose links -->
+ <!-- TODO: different color for internal vs external addrs -->
<var:if condition="showToAddress" const:negate="YES">
<var:string value="message.envelope.from"
formatter="context.mailEnvelopeAddressFormatter" />
</div>
</var:if>
</td>
+ <td>
+ <var:if condition="hasMessageAttachment">
+ <img rsrc:src="title_attachment_14x14.png"
+ width="14" height="14" />
+ </var:if>
+ </td>
<td>
<span class="mailer_datefield">