patch attached



This patch is for version 0.8.0-pre1 which was available from the
website. It changes the From: column to a To: column for Sentbox,
Draftbox, and Outbox and lists email out accordingly.

Standard disclaimer: It works for me. YMMV.

One note about 0.8.0-pre1, if you do 'make distclean' it deletes the
.spec file. not good. :)

-s
diff -ur balsa-0.8.0-pre1/AUTHORS balsa-0.8.0-pre1-swaters/AUTHORS
--- balsa-0.8.0-pre1/AUTHORS	Sat Apr  8 15:59:55 2000
+++ balsa-0.8.0-pre1-swaters/AUTHORS	Sat May 20 03:51:14 2000
@@ -16,9 +16,12 @@
 		a CVS tree near you....)
 	Anthony DeRobertis	<asd@suespammers.org>
 		for patches and ideas
+	Stephen Waters		<swaters@amicus.com>
+		patch to display To: header for outgoing mail
+		instead of the From: header
 	and our bug reporters and stompers
 
-Versio 0.6.0:
+Version 0.6.0:
 
 	Code from:
 
diff -ur balsa-0.8.0-pre1/ChangeLog balsa-0.8.0-pre1-swaters/ChangeLog
--- balsa-0.8.0-pre1/ChangeLog	Tue Apr 18 22:23:32 2000
+++ balsa-0.8.0-pre1-swaters/ChangeLog	Sat May 20 03:42:21 2000
@@ -1,3 +1,8 @@
+2000-05-20  Stephen Waters  <swaters@amicus.com>
+
+	* patch to display To: header for outgoing mail rather than
+	  the From: header.
+	  
 2000-04-18  Peter Williams  <peter@beta.newton.cx>
 
 	* balsa.spec.in: Fixes to make RPMs work. Now I understand
diff -ur balsa-0.8.0-pre1/INSTALL balsa-0.8.0-pre1-swaters/INSTALL
--- balsa-0.8.0-pre1/INSTALL	Tue Dec 21 13:44:34 1999
+++ balsa-0.8.0-pre1-swaters/INSTALL	Sat May 20 03:57:45 2000
@@ -1,4 +1,4 @@
-Balsa E-Mail Client 0.6.0
+Balsa E-Mail Client 0.8.0
 
 Copyright (C) 1997-1999 Jay Painter and Stuart Parmenter
 See 'COPYING' for licence information.
diff -ur balsa-0.8.0-pre1/src/balsa-index.c balsa-0.8.0-pre1-swaters/src/balsa-index.c
--- balsa-0.8.0-pre1/src/balsa-index.c	Tue Apr  4 16:34:51 2000
+++ balsa-0.8.0-pre1-swaters/src/balsa-index.c	Sat May 20 03:25:17 2000
@@ -329,7 +329,8 @@
 {
   GList *list;
   guint i = 0;
-
+  gchar *new_title;
+  
   g_return_if_fail (bindex != NULL);
 
   if (bindex->mailbox == mailbox)
@@ -353,6 +354,15 @@
    */
   bindex->mailbox = mailbox;
 
+  /*
+   * rename "from" column to "to" for outgoing mail
+   */
+  new_title = "To";
+  if (mailbox == balsa_app.sentbox ||
+      mailbox == balsa_app.draftbox ||
+      mailbox == balsa_app.outbox)
+    gtk_clist_set_column_title (GTK_CLIST (bindex), 3, new_title);
+  
   if (mailbox->open_ref == 0)
     mailbox_open_ref (mailbox);
 
@@ -396,7 +406,9 @@
   gchar buff1[1024], buff2[1024];
   gchar *text[6];
   gint row;
-
+  GList *list;
+  Address *addy;
+    
   g_return_if_fail (bindex != NULL);
   g_return_if_fail (message != NULL);
 
@@ -407,18 +419,36 @@
   text[1] = NULL;		/* flags */
   text[2] = NULL;		/* attachments */
   text[3] = buff2;
-
-  if (message->from)
+  if (bindex->mailbox ==  balsa_app.sentbox ||
+      bindex->mailbox ==  balsa_app.draftbox ||
+      bindex->mailbox ==  balsa_app.outbox)
     {
-      if (message->from->personal)
-	snprintf (text[3], 1024, "%s", message->from->personal);
+      if (message->to_list)
+        {
+          list = g_list_first (message->to_list);
+          addy = list->data;
+          if (addy->personal)
+            snprintf (text[3], 1024, "%s", addy->personal);
+          else
+            snprintf (text[3], 1024, "%s", addy->mailbox);
+        }
       else
-	snprintf (text[3], 1024, "%s", message->from->mailbox);
+        text[3] = NULL;
     }
   else
-    text[3] = NULL;
+    {
+      if (message->from)
+        {
+          if (message->from->personal)
+	    snprintf (text[3], 1024, "%s", message->from->personal);
+          else
+	    snprintf (text[3], 1024, "%s", message->from->mailbox);
+        }
+      else
+        text[3] = NULL;
+    }
+  
   text[4] = message->subject;
-
   text[5] = message->date;
 
   row = gtk_clist_append (GTK_CLIST (bindex), text);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]