[imp] Unofficial patches for importing addresses to 2.2.4.

John McCoy, Jr. jmccoy@mills.edu
Wed, 7 Mar 2001 09:43:50 -0800


The patch for displaying the users email address in the "header bar" did not
work for me until I added some curly brackets.
You will probably have to fix some formatting, as this email will no doubt
get truncated.


diff -urN horde.stock/imp/config/defaults.php3.dist
horde.statusbar-user/imp/config/defaults.php3.dist
--- horde.stock/imp/config/defaults.php3.dist	Tue Aug 22 21:57:38 2000
+++ horde.statusbar-user/imp/config/defaults.php3.dist	Thu Sep 21 16:06:07
2000
@@ -423,4 +423,6 @@
 // $default->path_to_rpm = '/usr/bin/rpm';
 // $default->path_to_dpkg = '/usr/bin/dpkg';

+$default->show_statusbar_user = true;
+
 ?>
diff -urN horde.stock/imp/mailbox.php3 horde.statusbar-user/imp/mailbox.php3
--- horde.stock/imp/mailbox.php3	Fri Sep 15 16:20:08 2000
+++ horde.statusbar-user/imp/mailbox.php3	Thu Sep 21 16:06:42 2000
@@ -242,7 +242,10 @@

 }
 if (empty($status_string)) {
-  $status_string = $lang->mailbox . ': ' . $imp->label;
+	if ($default->show_statusbar_user){
+		$status_string = $imp->user . (strstr($imp->user, "@") ? "" :
"@$imp->from_server") . ": " . $lang->mailbox . ': ' . $imp->label;
+     }
+	else {
+		$status_string = $lang->mailbox . ': ' . $imp->label;
+	}
 }


************************
John McCoy, Jr
Central Systems Administrator
Mills College, Oakland, CA
510-430-3321
jmccoy@mills.edu
************************

-----Original Message-----
From: Chris Crowley [mailto:ccrowley@tulane.edu]
Sent: Wednesday, March 07, 2001 6:48 AM
To: imp@lists.horde.org
Subject: Re: [imp] Unofficial patches for importing addresses to 2.2.4.


> Hi John,
>
> where do I get this unofficial patch for contacts-file?
>

http://horde.net/~jwm/software/imp/

I found it in the archives:
http://marc.theaimsgroup.com/?l=imp

Chris




--
IMP mailing list: http://horde.org/imp/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@lists.horde.org