]> err.no Git - scalable-opengroupware.org/commitdiff
first msg view
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Sat, 2 Oct 2004 02:09:05 +0000 (02:09 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Sat, 2 Oct 2004 02:09:05 +0000 (02:09 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@338 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/UI/Mailer/ChangeLog
SOGo/UI/Mailer/UIxMailListView.m
SOGo/UI/Mailer/UIxMailListView.wox
SOGo/UI/Mailer/Version
SOGo/UI/Mailer/mailer.css

index 47845a4bfdd309de86975c25d0133a3eace32b5b..ddd1f9c58d109809519809f6a136dcfeddbcc63d 100644 (file)
@@ -1,3 +1,11 @@
+2004-10-02  Helge Hess  <helge.hess@opengroupware.org>
+
+       * v0.9.7
+
+       * show messages in an IMAP4 folder
+
+       * mailer.css: remote calendar CSS not required in mailer
+
 2004-09-29  Helge Hess  <helge.hess@opengroupware.org>
 
        * added toolbar images (v0.9.6)
index f94e21d8f6f7d41998a8de2da8a3922e806401c1..ab945b9479baad266c24db3a8ef9c8007fb06b2d 100644 (file)
@@ -25,7 +25,6 @@
 
 @interface UIxMailListView : UIxComponent
 {
-
 }
 
 @end
 
 @implementation UIxMailListView
 
-- (id)defaultAction {
-  NSArray *uids;
-  NSArray *msgs;
+- (NSString *)messageSubject {
+  id tmp;
   
-  [self logWithFormat:@"default action ..."];
+  tmp = [self valueForKeyPath:@"message.envelope.subject"];
+  if ([tmp isKindOfClass:[NSString class]])
+    return tmp;
   
+  if ([tmp isKindOfClass:[NSData class]]) { // TODO: change that somehow ...
+    tmp = [[NSString alloc] initWithData:tmp encoding:NSUTF8StringEncoding];
+    return [tmp autorelease];
+  }
+  return [tmp stringValue];
+}
+
+- (NSArray *)messages {
+  NSArray *uids;
+  NSArray *msgs;
+
   uids = [[self clientObject] fetchUIDsMatchingQualifier:nil
                              sortOrdering:@"SUBJECT"
                              range:NSMakeRange(0, 50)];
   
-  [self logWithFormat:@"UIDs: %@", [uids componentsJoinedByString:@", "]];
+  [self logWithFormat:@"#UIDs: %d", [uids count]];
 
   /*
     Allowed fetch keys:
                                               @"ENVELOPE",
                                             nil]];
   [self logWithFormat:@"  msg #%d", [[msgs valueForKey:@"fetch"] count]];
-  // keys: envelope
-  
+  return [msgs valueForKey:@"fetch"];
+}
+
+- (id)defaultAction {
+  [self logWithFormat:@"default action ..."];
   return self;
 }
 
index b9f4ed7fe6a29fd53c954c00bcf522b57ecb09ff..c324b80afe5d5c7b1e33c054c3e3065580c0a589 100644 (file)
 
   <div class="embedwhite_out">
     <div class="embedwhite_in">
+      <table border="0" width="100">
+        <var:foreach list="messages" item="message">
+          <tr class="tableview">
+            <td><var:string value="message.envelope.date"/></td>
+            <td><var:string value="messageSubject"/></td>
+            <td><var:string value="message.envelope.from.email"/></td>
+            <td><var:string value="message.envelope.to.email"/></td>
+            <td><var:string value="message.flags"/></td>
+          </tr>
+        </var:foreach>
+      </table>
       Folder List
     </div>
   </div>
index 0eb47da345be1d4c8ac5a363234ca3f2c77473cb..cab297dce179f93daddb8c8e20c17af86c0b5d3b 100644 (file)
@@ -1,3 +1,3 @@
 # $Id$
 
-SUBMINOR_VERSION:=6
+SUBMINOR_VERSION:=7
index b32121b6dba192850fb2bcfb6f74024035ad898a..caaa246e639d77c9aae76005c08bab1e0cbb5c69 100644 (file)
   font-size:        10pt;
 }
 
-/* day overview */
-
-
-.dayoverview_content {
-  padding:          1px;
-  margin:           0px 0px 0px 0px;
-  vertical-align:   top;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:   0pt;
-  font-size:        9pt;
-}
-
-.dayoverview_content_time {
-  background-color: #d2d2cc;
-  text-align:       center;
-}
-
-.dayoverview_content_time_link {
-  font-size:        8pt;
-}
-.dayoverview_content_time_link a {
-  color:            #0033cc;
-  text-decoration:  none;
-}
-.dayoverview_content_time_link a:hover {
-  color:            #ff0000;
-  text-decoration:  underline;
-}
-
-.dayoverview_content_apts {
-  color:            #0033cc;
-  background-color: #e8e8e0;
-  text-align:       left;
-  vertical-align:   top;
-}
-
-.dayoverview_cal {
-  color:            #000000;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  font-size:        10pt;
-  letter-spacing:   0pt;
-  padding:          0px 0px 0px 0px;
-  margin:           0px 0px 0px 0px;
-}
-
-.dayoverview_cal table {
-  padding:          0px 0px 0px 0px;
-  margin:           0px 0px 0px 0px;
-}
-
-.dayoverview_cal td {
-  padding:          0px 0px 0px 0px;
-  margin:           0px 0px 0px 0px;
-}
-
-.dayoverview_cal a {
-  color:            #000000;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  font-size:        10pt;
-  letter-spacing:   0pt;
-  padding:          0px;
-  text-decoration:  none;
-}
-.dayoverview_cal a:hover {
-  text-decoration:  underline;
-}
-
-.dayoverview_cal_title {
-  background-color: #d2d2cc;
-  text-align:       center;
-  font-size:        10pt;
-  font-weight:      bold;
-  letter-spacing:   0pt;
-}
-
-.dayoverview_cal_day_header {
-  background-color: #d2d2cc;
-  text-align:       center;
-  vertical-align:   top;
-  font-size:        11pt;
-/* width:            24px; */
-/* padding:          2px 2px 2px 2px; */
-/*  margin:           2px 2px 2px 2px; */
-}
-
-.dayoverview_cal_content {
-  color:            #0033cc;
-  background-color: #e8e8e0;
-  text-align:       center;
-  vertical-align:   top;
-}
-
-.dayoverview_cal_content_hilite {
-  color:            #0033cc;
-  background-color: #fffff0;
-  text-align:       center;
-  vertical-align:   top;
-}
-
-.dayoverview_cal_content_selected {
-  color:            #ff0000;
-}
-.dayoverview_cal_content_selected a {
-  color:            #ff0000;
-}
-.dayoverview_cal_content_selected a:hover {
-  color:            #ff0000;
-}
-
-.dayoverview_cal_content_dimmed {
-  color:            #0033cc;
-  background-color: #d2d2cc;
-  text-align:       center;
-  vertical-align:   top;
-}
-.dayoverview_cal_content_dimmed a {
-  color:            #5a5a5a;
-}
-.dayoverview_cal_content_dimmed a:hover {
-  color:            #5a5a5a;
-}
-
-
-/* day printview */
-
-
-.dayprintview {
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:   0pt;
-  font-size:        10pt;
-}
-
-td.dayprintview_time {
-  font-size:        10pt;
-  font-weight:      bold;
-  text-align:       center;
-}
-
-td.dayprintview_content {
-  font-size:        10pt;
-  text-align:       left;
-}
-
-h1.dayprintview, h2.dayprintview {
-  font-size:        11pt;
-  font-weight:      bold;
-  margin:           0px;
-  padding:          0px;
-  text-align:       center;
-}
-
-h1.dayprintview {
-  font-style:       italic;
-}
-
-
-/* week overview */
-
-
-.weekoverview_title {
-  font-size:        10pt;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:   0pt;
-  color:            #000000;
-  background-color: #d2d2cc;
-}
-
-.weekoverview_title a {
-  color:            #0033cc;
-  text-decoration: none;
-}
-
-.weekoverview_title_hilite {
-  font-size:        10pt;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:   0pt;
-  color:            #000000;
-  background-color: #d2d2cc;
-  font-weight:      bold;
-}
-
-.weekoverview_title_hilite a {
-  color:            #0033cc;
-  text-decoration: none;
-}
-
-.weekoverview_title_daylink {
-  font-size:        12pt;
-  color:            #0033cc;
-  font-weight:      bold;
-}
-
-.weekoverview_title_newlink {
-  font-size:        8pt;
-}
-
-.weekoverview_holidayinfo {
-  font-size:        8pt;
-  font-weight:      bold;
-}
-
-.weekoverview_content {
-  color:            #FFFFFF;
-  background-color: #e8e8e0;
-}
-
-.weekoverview_content a {
-  color:           #0000FF;
-  font-family:     Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:  0pt;
-  text-decoration: none;
-}
-
-.weekoverview_content_hilite {
-  background-color: #fffff0;
-}
-
-.weekoverview_content_hilite a {
-  color:           #0000FF;
-  font-family:     Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:  0pt;
-  text-decoration: none;
-}
-
-
-/* week columnsview */
-
-
-.weekcolumnsview {
-}
-
-.weekcolumnsview_title {
-  font-size:        10pt;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:   0pt;
-  color:            #000000;
-  background-color: #d2d2cc;
-  padding:          4px;
-}
-
-.weekcolumnsview_title a {
-  color:            #0033cc;
-  text-decoration: none;
-}
-
-.weekcolumnsview_title_hilite {
-  font-size:        10pt;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:   0pt;
-  color:            #000000;
-  background-color: #d2d2cc;
-  font-weight:      bold;
-  padding:          4px;
-}
-
-.weekcolumnsview_title_hilite a {
-  color:            #0033cc;
-  text-decoration: none;
-}
-
-.weekcolumnsview_title_daylink {
-  font-size:        12pt;
-  color:            #0033cc;
-  font-weight:      bold;
-}
-
-.weekcolumnsview_title_newlink {
-  font-size:        8pt;
-}
-
-.weekcolumnsview_holidayinfo {
-  font-size:        8pt;
-  font-weight:      bold;
-}
-
-.weekcolumnsview_content {
-  color:            #FFFFFF;
-  background-color: #e8e8e0;
-}
-
-.weekcolumnsview_content a {
-  color:           #0000FF;
-  font-family:     Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:  0pt;
-  text-decoration: none;
-}
-
-.weekcolumnsview_content_hilite {
-  background-color: #fffff0;
-}
-
-.weekcolumnsview_content_hilite a {
-  color:           #0000FF;
-  font-family:     Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:  0pt;
-  text-decoration: none;
-}
-
-.weekcolumnsview_cal {
-  color:            #000000;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  font-size:        10pt;
-  letter-spacing:   0pt;
-  padding:          0px 0px 0px 0px;
-  margin:           0px 0px 0px 0px;
-}
-
-.weekcolumnsview_cal table {
-  padding:          0px 0px 0px 0px;
-  margin:           0px 0px 0px 0px;
-}
-
-.weekcolumnsview_cal td {
-  padding:          0px 0px 0px 0px;
-  margin:           0px 0px 0px 0px;
-}
-
-.weekcolumnsview_cal a {
-  color:            #000000;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  font-size:        10pt;
-  letter-spacing:   0pt;
-  padding:          0px;
-  text-decoration:  none;
-}
-.weekcolumnsview_cal a:hover {
-  text-decoration:  underline;
-}
-
-.weekcolumnsview_cal_title {
-  background-color: #d2d2cc;
-  text-align:       center;
-  font-size:        10pt;
-  font-weight:      bold;
-  letter-spacing:   0pt;
-}
-
-.weekcolumnsview_cal_day_header {
-  background-color: #d2d2cc;
-  text-align:       center;
-  vertical-align:   middle;
-  font-size:        11pt;
-  width:            20px;
-  padding:          2px 2px 2px 2px;
-  margin:           2px 2px 2px 2px;
-}
-
-.weekcolumnsview_cal_content {
-  color:            #000000;
-  background-color: #e8e8e0;
-  text-align:       center;
-  vertical-align:   middle;
-  font-size:        10pt;
-  letter-spacing:   0pt;
-}
-
-.weekcolumnsview_cal_content_hilite {
-  color:            #000000;
-  background-color: #fffff0;
-  text-align:       center;
-  vertical-align:   middle;
-  font-size:        10pt;
-  letter-spacing:   0pt;
-}
-
-.weekcolumnsview_cal_content_dimmed {
-  color:            #5a5a5a;
-  background-color: #d2d2cc;
-  text-align:       center;
-  vertical-align:   middle;
-  font-size:        10pt;
-  letter-spacing:   0pt;
-}
-
-.weekcolumnsview_cal_week {
-  background-color: #d2d2cc;
-  width:            16pt;
-  text-align:       center;
-  vertical-align:   middle;
-}
-
-
-/* week printview */
-
-td.weekprintview {
-  border:           1px solid;
-}
-
-h1.weekprintview, h2.weekprintview {
-  font-size:        10pt;
-  font-weight:      bold;
-  margin:           0px;
-  padding:          0px;
-  text-align:       center;
-}
-
-h1.weekprintview {
-  font-size:        12pt;
-  font-style:       italic;
-}
-
-
-.weekprintview_title {
-  font-size:        11pt;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:   0pt;
-}
-
-.weekprintview_title_hilite a {
-  color:            #0033cc;
-  text-decoration: none;
-}
-
-.weekprintview_holidayinfo {
-  font-size:        10pt;
-  font-weight:      bold;
-}
-
-.weekprintview_content, .weekprintview_apt_time {
-  font-size:        10pt;
-}
-
-.weekprintview_apt_time {
-  font-weight:      bold;
-  font-style:       italic;
-}
-
-
-/* month overview */
-
-
-.monthoverview {
-  color:            #000000;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  font-size:        10pt;
-  letter-spacing:   0pt;
-  padding:          2px;
-}
-
-.monthoverview a {
-  color:            #0033cc;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  font-size:        7pt;
-  font-style:       normal;
-  font-weight:      normal;
-  letter-spacing:   0pt;
-  text-decoration:  none;
-}
-
-.monthoverview a:hover {
-  text-decoration:  underline;
-}
-
-.monthoverview_title {
-  background-color: #d2d2cc;
-  text-align:       center;
-}
-
-.monthoverview_week {
-  background-color: #d2d2cc;
-  width:            16pt;
-  text-align:       center;
-  vertical-align:   middle;
-}
-
-.monthoverview_week a {
-  color:            #000000;
-  font-size:        10pt;
-}
-
-.monthoverview_week_hilite {
-  background-color: #fffff0;
-  width:            16pt;
-  text-align:       center;
-  vertical-align:   middle;
-}
-
-.monthoverview_week_hilite a {
-  color:            #000000;
-  font-size:        10pt;
-}
-
-.monthoverview_content {
-  background-color: #e8e8e0;
-  font-size:        9pt;
-  height:           60;
-}
-.monthoverview_content a {
-  font-style:       italic;
-  font-weight:      bold;
-}
-.monthoverview_content td {
-  text-align:       left;
-  vertical-align:   top;
-}
-
-.monthoverview_content_hilite {
-  background-color: #fffff0;
-  font-size:        9pt;
-  height:           60;
-}
-.monthoverview_content_hilite a {
-  font-style:       italic;
-  font-weight:      bold;
-}
-.monthoverview_content_hilite td {
-  text-align:       left;
-  vertical-align:   top;
-}
-
-.monthoverview_content_dimmed {
-  background-color: #d2d2cc;
-  font-size:        9pt;
-  height:           60;
-}
-.monthoverview_content_dimmed a {
-  font-style:       normal;
-  font-weight:      normal;
-}
-.monthoverview_content_dimmed td {
-  text-align:       left;
-  vertical-align:   top;
-}
-
-.monthoverview_day a {
-  color:            #000000;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  font-size:        12pt;
-}
-
-.monthoverview_day_new a {
-  font-style:       normal;
-  font-weight:      normal;
-}
-
-.monthoverview_day_new a:hover {
-  font-style:       normal;
-  font-weight:      normal;
-  color:            #ff0000;
-}
-
-.monthoverview_content_link {
-  font-style:       normal;
-  font-weight:      normal;
-}
-
-/* month printview */
-
-.monthprintview {
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  letter-spacing:   0pt;
-  font-size:        9pt;
-}
-
-h1.monthprintview_header, h2.monthprintview_header {
-  font-size:        10pt;
-  font-weight:      bold;
-  margin:           0px;
-  padding:          0px;
-  text-align:       center;
-}
-
-h1.monthprintview_header {
-  font-size:        12pt;
-  font-style:       italic;
-}
-
-.monthprintview_title {
-  text-align:       center;
-}
-
-.monthprintview_week {
-  width:            16pt;
-  text-align:       center;
-  vertical-align:   middle;
-}
-
-.monthprintview_apt, .monthprintview_apt_time {
-  font-size:        7pt;
-}
-
-.monthprintview_apt_time {
-  font-weight:      bold;
-  font-style:       italic;
-}
-
-td.monthprintview_content {
-  text-align:       left;
-  vertical-align:   top;
-  font-style:       italic;
-  font-weight:      bold;
-  font-size:        12pt;
-  height:           60;
-}
-
-td.monthprintview_content_dimmed {
-  text-align:       left;
-  vertical-align:   top;
-  font-size:        12pt;
-  height:           60;
-}
-
-
-/* year overview */
-
-
-.yearoverview {
-  color:            #000000;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  font-size:        10pt;
-  letter-spacing:   0pt;
-  padding:          0px 0px 0px 0px;
-  margin:           0px 0px 0px 0px;
-}
-
-.yearoverview table {
-  padding:          0px 0px 0px 0px;
-  margin:           0px 0px 0px 0px;
-}
-
-.yearoverview td {
-  padding:          0px 0px 0px 0px;
-  margin:           0px 0px 0px 0px;
-}
-
-.yearoverview a {
-  color:            #000000;
-  font-family:      Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
-  font-size:        10pt;
-  letter-spacing:   0pt;
-  padding:          0px;
-  text-decoration:  none;
-}
-.yearoverview a:hover {
-  text-decoration:  underline;
-}
-
-.yearoverview_title {
-  background-color: #d2d2cc;
-  text-align:       center;
-  font-size:        10pt;
-  font-weight:      bold;
-  letter-spacing:   0pt;
-}
-
-.yearoverview_day_header {
-  background-color: #d2d2cc;
-  text-align:       center;
-  vertical-align:   middle;
-  font-size:        10pt;
-  width:            18px; /* this delimits all td's! */
-}
-
-.yearoverview_content {
-  color:            #0033cc;
-  background-color: #e8e8e0;
-  text-align:       center;
-  vertical-align:   middle;
-  font-weight:      bold;
-  font-style:       italic;
-}
-.yearoverview_content a {
-  color:            #0033cc;
-}
-.yearoverview_content a:hover {
-  color:            #ff0000;
-}
-
-.yearoverview_content_hilite {
-  color:            #0033cc;
-  background-color: #fffff0;
-  text-align:       center;
-  vertical-align:   middle;
-  font-weight:      bold;
-  font-style:       italic;
-}
-.yearoverview_content_hilite a {
-  color:            #0033cc;
-}
-.yearoverview_content_hilite a:hover {
-  color:            #ff0000;
-}
-
-.yearoverview_content_dimmed {
-  color:            #0033cc;
-  background-color: #d2d2cc;
-  text-align:       center;
-  vertical-align:   middle;
-}
-.yearoverview_content_dimmed a {
-  color:            #0033cc;
-}
-.yearoverview_content_dimmed a:hover {
-  color:            #ff0000;
-}
-
-.yearoverview_week {
-  background-color: #d2d2cc;
-  width:            16pt;
-  text-align:       center;
-  vertical-align:   middle;
-}
-
-.yearoverview_week_hilite {
-  background-color: #fffff0;
-  width:            16pt;
-  text-align:       center;
-  vertical-align:   middle;
-}
-
-
 
 /* new stuff for Thunderbird like mailer */
 
@@ -843,3 +132,11 @@ td.tb_icon a {
 .tbicon_junk        { background-image: url(tbtb_trash.png);       }
 .tbicon_print       { background-image: url(tbtb_print.png);       }
 .tbicon_stop        { background-image: url(tbtb_deletedoc.png);   }
+
+
+/* mail tableview */
+
+.tableview { 
+  font-size:   10pt;
+  font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
+}