2004-11-27 Helge Hess <helge.hess@skyrix.com>
+ * v0.9.65
+
+ * added first (empty) version of filter list page
+
+ * UIxMailEditorAttach.m: fixed a warning
+
* UIxMailAccountView.wox, product.plist: cleaned up account page (links
work now), added a compose button (v0.9.64)
UIxMailPartImageViewer.m \
UIxMailPartMixedViewer.m \
UIxMailPartAlternativeViewer.m \
+ \
+ UIxFilterList.m \
MailerUI_RESOURCE_FILES += \
Version \
UIxMailPartMixedViewer.wox \
UIxMailPartImageViewer.wox \
UIxMailPartAlternativeViewer.wox\
+ \
+ UIxFilterList.wox \
MailerUI_RESOURCE_FILES += \
uix.css \
--- /dev/null
+/*
+ Copyright (C) 2004 SKYRIX Software AG
+
+ This file is part of OpenGroupware.org.
+
+ OGo is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+
+#include <SOGoUI/UIxComponent.h>
+
+/*
+ UIxFilterList
+
+ This component shows a list of filter scripts and is (usually) attached to
+ a SOGoSieveScriptsFolder object.
+*/
+
+@interface UIxFilterList : UIxComponent
+{
+ NSArray *filters;
+ id filter;
+}
+
+@end
+
+#include "common.h"
+#include <SOGo/SoObjects/Mailer/SOGoMailFolder.h>
+#include <SOGo/SoObjects/Mailer/SOGoMailObject.h>
+
+@implementation UIxFilterList
+
+- (void)dealloc {
+ [self->filter release];
+ [self->filters release];
+ [super dealloc];
+}
+
+/* notifications */
+
+- (void)sleep {
+ [self->filter release]; self->filter = nil;
+ [self->filters release]; self->filters = nil;
+ [super sleep];
+}
+
+/* accessors */
+
+- (void)setFilter:(id)_msg {
+ ASSIGN(self->filter, _msg);
+}
+- (id)filter {
+ return self->filter;
+}
+
+- (NSArray *)filters {
+ return self->filters;
+}
+
+/* actions */
+
+- (id)defaultAction {
+ // TODO: remove log
+ [self logWithFormat:@"default action ..."];
+
+ [self logWithFormat:@"should fetch scripts in: %@", [self clientObject]];
+
+ return self;
+}
+
+@end /* UIxFilterList */
--- /dev/null
+<?xml version='1.0' standalone='yes'?>
+<var:component
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:var="http://www.skyrix.com/od/binding"
+ xmlns:const="http://www.skyrix.com/od/constant"
+ xmlns:uix="OGo:uix"
+ xmlns:rsrc="OGo:url"
+ xmlns:label="OGo:label"
+ className="UIxMailMainFrame"
+ title="name"
+>
+
+ <div class="titlediv" style="white-space: nowrap;">
+ Server Side Filter Scripts
+ </div>
+
+ <div class="embedwhite_out">
+ <div class="embedwhite_in">
+
+ <table border="0" width="100%" cellspacing="0" cellpadding="1">
+ <tr class="tableview">
+ <td class="tbtv_headercell" width="17">
+ <var:entity const:name="nbsp" />
+ </td>
+ <td class="tbtv_headercell">
+ Filters
+ </td>
+ </tr>
+ <tr class="tableview">
+ <td colspan="6" class="tbtv_navcell" align="right">
+ <var:string value="filters.count" />
+ <var:string label:value="filters" />
+ </td>
+ </tr>
+
+ <var:foreach list="filters" item="filter">
+ <tr class="tableview" var:id="msgRowID">
+ <td>
+ <a href="#" var:onclick="clickedFilterJS">
+ <var:string value="filter" />
+ </a>
+ </td>
+ </tr>
+ </var:foreach>
+ </table>
+
+ </div>
+ </div>
+
+</var:component>
}
if ((_name = [self fixupAttachmentName:_name]) == nil)
- return nil;
+ return NO;
// TODO: add size limit?
return [[self clientObject] saveAttachment:_data withName:_name];
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include <SOGoUI/UIxComponent.h>
@end
#include "common.h"
-#include <NGImap4/NGImap4Client.h>
#include <SOGo/SoObjects/Mailer/SOGoMailFolder.h>
#include <SOGo/SoObjects/Mailer/SOGoMailObject.h>
/* actions */
- (id)defaultAction {
+ // TODO: remove log
[self logWithFormat:@"default action ..."];
self->firstMessageNumber =
[[[[self context] request] formValueForKey:@"idx"] intValue];
-# $Id$
+# version file
-SUBMINOR_VERSION:=64
+SUBMINOR_VERSION:=65
-# v0.9.50 requires NGMime v4.3.190
-# v0.9.43 requires NGObjWeb v4.3.73
-# v0.9.42 requires NGObjWeb v4.3.72
+# v0.9.50 requires libNGMime v4.3.190
+# v0.9.43 requires libNGObjWeb v4.3.73
+# v0.9.42 requires libNGObjWeb v4.3.72
{
- requires = ( MAIN, CommonUI, Mailer );
+ requires = ( MAIN, CommonUI, Mailer, Sieve );
publicResources = (
"uix.css",
};
};
};
+
+ /* Sieve */
+
+ SOGoSieveScriptsFolder = {
+ slots = {
+ toolbar = {
+ protectedBy = "View";
+ value = ( /* the toolbar groups */
+ ( /* first group */
+ {
+ link = "getMail";
+ cssClass = "tbicon_getmail"; label = "Get Mail";
+ },
+ {
+ link = "#"; // "compose"; // target = "_blank";
+ onclick = "clickedNewFilter(this);return false;";
+ cssClass = "tbicon_compose"; label = "New Filter";
+ },
+ ),
+ ( /* second group
+ { link = "#";
+ cssClass = "tbicon_delete"; label = "Delete"; },*/
+ ),
+ );
+ };
+ };
+ methods = {
+ view = {
+ protectedBy = "View";
+ pageName = "UIxFilterList";
+ };
+ };
+ };
+ SOGoSieveScriptObject = {
+ };
};
}