[turba] Turba and IMP

Christian Couder christian@alcove.fr
Thu, 30 Nov 2000 19:05:43 +0100


---------------------- multipart/mixed attachment
Chuck Hagenbuch wrote:

> Quoting Christian Couder <christian@alcove.fr>:
>
> > Turba should work without IMP, using the default mailer (that means
> > mailto links), but I couldn't find no config option and no config tes=
t
> > for this.
>
> In horde/config/registry.php:
> $__horde_registry['mail']['compose'] =3D 'imp';
>
> Change that to 'default'.

Thanks I did it and I also made some changes so that
it works when there is no IMP.

Here are the files.

Regards,

--
Christian COUDER christian@alcove.fr
Ing=E9nieur Informatique Libre
Alc=F4ve - http://www.alcove.fr/



---------------------- multipart/mixed attachment
A non-text attachment was scrubbed...
Name: adv_search.php
Type: application/x-httpd-php
Size: 4915 bytes
Desc: not available
Url : http://lists.horde.org/archives/turba/attachments/fba3d92f/adv_search.php

---------------------- multipart/mixed attachment
<script language="javascript">
var ToAddresses = new Object();
function toggleTo (address) {
	if (ToAddresses[address])
		ToAddresses[address] = null;
	else
		ToAddresses[address] = address;
}

var CcAddresses = new Object();
function toggleCc (address) {
	if (CcAddresses[address])
		CcAddresses[address] = null;
	else
		CcAddresses[address] = address;
}

var BccAddresses = new Object();
function toggleBcc (address) {
	if (BccAddresses[address])
		BccAddresses[address] = null;
	else
		BccAddresses[address] = address;
}

function compose () {
	var to = '';
	for (address in ToAddresses) {
		if (ToAddresses[address] != null) {
			if (to != '')
				to += ',%20';
			to += address;
		}
	}
  
	var cc = '';
	for (address in CcAddresses) {
		if (CcAddresses[address] != null) {
			if (cc != '')
				cc += ',%20';
			cc += address;
		}
	}
  
	var bcc = '';
	for (address in BccAddresses) {
		if (BccAddresses[address] != null) {
			if (bcc != '')
				bcc += ',%20';
			bcc += address;
		}
	}
  
	return '&to=' + to + '&cc=' + cc + '&bcc=' + bcc;
}

function get_mailto() {

	var mailto = '';

	for (address in ToAddresses) {
		if (ToAddresses[address] != null) {
			mailto += (mailto == '') ? 'to=' : '&to=';
			mailto += address;
		}
	}
  
	for (address in CcAddresses) {
		if (CcAddresses[address] != null) {
			mailto += (mailto == '') ? 'cc=' : '&cc=';
			mailto += address;
		}
	}
  
	for (address in BccAddresses) {
		if (BccAddresses[address] != null) {
			mailto += (mailto == '') ? 'bcc=' : '&bcc=';
			mailto += address;
		}
	}

	window.location = "mailto:?" + mailto;
}

</script>

<form name="dirsearch" action="adv_search.php" method="post">
<input type="hidden" name="actionID" value="1">

<table border="0" width="100%" cellpadding="0" cellspacing="0">

<tr class="header">
	<td class="header" align="left" colspan="6">
		<b><?= _("Advanced Directory Search") ?></b>
	</td>
</tr>

<tr>
	<td class="control">
		<?= _("From") ?>
	</td>
	<td class="control" colspan="5">
		<font size="-1">
		<select name="source" onChange="javascript:dirsearch.submit()">
			<?= $source_options ?>
		</select>
		</font>
	</td>
</tr>
<tr>
	<td class="control">
		<?= _("Find") ?>
	</td>
	<td class="control" colspan="5">&nbsp;</td>
</tr>

---------------------- multipart/mixed attachment
<tr>
	<td class="control">&nbsp;</td>
	<td class="control">
		<font size="-1">
		<?= _($criteria) ?>
		</font>
	</td>
	<td class="control">
		<font size="-1">
		<?= _("matching") ?>
		</font>
	</td>
	<td class="control">
		<font size="-1">
		<input type="text" size="15" name="<?= $criteria ?>">
		</font>
	</td>
	<td class="control" colspan="2">&nbsp;</td>
</tr>

---------------------- multipart/mixed attachment
<tr>
	<td class="control" colspan="6">
		<input type="submit" name="search" value="<?= _("Search") ?>">

	</td>
</tr>
</table>

<p>

<table border="0" cellpadding="1" cellspacing="0" width="100%"><tr class="header">
  <td class="smallheader">
    <b><?= ("Search&nbsp;Results") ?></b>
  </td>
  <td align="right" class="smallheader">
    <a class="menuitem" href="<?= $compose_url ?>"><?= _("Send Message") ?></a> |
    <a class="menuitem" href="<?php Horde::purl('adv_search.php?clear=1') ?>"><?= _("Clear Search") ?></a>
  </td>
</tr>

<tr><td colspan="2" class="item"><table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr>
  <th class="item" width="1"><?= _("To") ?></th>
  <th class="item" width="1"><?= _("Cc") ?></th>
  <th class="item" width="1"><?= _("Bcc") ?></th>
  <th class="item" width="35%" align="left">
    <a href="javascript:sortby(<?php echo LASTNAME ?>);">
    <?= _("Name") ?></a></th>
  <th class="item" width="35%" align="left">
    <a href="javascript:sortby(<?php echo EMAIL ?>);">
    <?= _("Email") ?></a></th>
  <th class="item" width="35%" align="left">
    <a href="javascript:sortby(<?php echo ALIAS ?>);">
    <?= _("Nickname") ?></a></th>
</tr>

---------------------- multipart/mixed attachment--