Allowed fetch keys:
UID
BODY.PEEK[<section>]<<partial>>
- BODYSTRUCTURE
+ BODY [this is the bodystructure, supported]
+ BODYSTRUCTURE [not supported yet!]
ENVELOPE [this is a parsed header, but does not include type]
FLAGS
INTERNALDATE
2004-10-03 Helge Hess <helge.hess@opengroupware.org>
+ * v0.9.12
+
+ * UIxMailListView.m: fetch size for list
+
+ * UIxMailView.m: cache fetched message for transaction, fetch body
+ structure
+
* work on viewer (v0.9.11)
* UIxMailMainFrame.wox: made toolbar floating (v0.9.10)
- (NSArray *)fetchKeys {
/* Note: see SOGoMailManager.m for allowed IMAP4 keys */
static NSArray *keys = nil;
- if (keys == nil)
- keys = [[NSArray alloc] initWithObjects:@"FLAGS", @"ENVELOPE", nil];
+ if (keys == nil) {
+ keys = [[NSArray alloc] initWithObjects:
+ @"FLAGS", @"ENVELOPE", @"RFC822.SIZE", nil];
+ }
return keys;
}
- (NSArray *)fetchKeys {
/* Note: see SOGoMailManager.m for allowed IMAP4 keys */
static NSArray *keys = nil;
- if (keys == nil)
- keys = [[NSArray alloc] initWithObjects:@"FLAGS", @"ENVELOPE", nil];
+ if (keys == nil) {
+ /* Note: "BODY" actually returns the structure! */
+ keys = [[NSArray alloc] initWithObjects:
+ @"FLAGS", @"ENVELOPE", @"BODY", nil];
+ }
return keys;
}
return [self->message isNotNull] ? self->message : nil;
msgs = [[self clientObject] fetchParts:[self fetchKeys]]; // returns dict
+ // [self logWithFormat:@"M: %@", msgs];
msgs = [msgs valueForKey:@"fetch"];
if ([msgs count] == 0)
return nil;
- return [msgs objectAtIndex:0];
+
+ self->message = [[msgs objectAtIndex:0] retain];
+ return self->message;
}
/* derived accessors */
<!--
<pre><var:string value="message" /></pre><br />
-->
- <img rsrc:src="tbird_073_viewer.png" />
+ <pre><var:string value="message.body" /></pre><br />
+
+ <a rsrc:href="tbird_073_viewer.png">screenshot</a>
</div>
-<!--
- <a rsrc:href="tbird_073_viewer.png">screenshot</a>
--->
</var:component>
# $Id$
-SUBMINOR_VERSION:=11
+SUBMINOR_VERSION:=12