[horde] Small patch for "Sork -> vacation" module

Jan Schneider jan at horde.org
Mon Dec 28 21:44:25 UTC 2009


Zitat von Ruben Squartini <ruben at auger.org.ar>:

> Hi!
>
> Playing around with an option from "Sork -> vacation": "Allow user  
> to change 'From' if driver supports it", I found that code points to  
> a non existing object ($driver).
>
> Patch follows, I hope this is somehow usefull.
>
> Regards,
> Ruben.
>
>
>
> user at machine# diff -uNr horde-webmail-1.2.4/vacation/lib/Driver.php  
> /usr/share/horde3/vacation/lib/Driver.php
> --- horde-webmail-1.2.4/vacation/lib/Driver.php	2009-08-04  
> 08:05:42.000000000 -0300
> +++ /usr/share/horde3/vacation/lib/Driver.php	2009-12-28  
> 11:11:50.000000000 -0200
> @@ -252,7 +252,7 @@
>          }
>          // Include the mail sender if the driver supports it.
>          if ($GLOBALS['conf']['vacation']['from'] &&
> -            $driver->hasCapability('changeFrom')) {
> +	      $this->hasCapability('changeFrom')) {
>              $vacationtxt .= 'From: '
>                  . MIME::encode($from, NLS::getCharset()) . "\n";
>          }
> @@ -317,7 +317,7 @@
>          // supports it.
>          $from = '';
>          if ($GLOBALS['conf']['vacation']['from'] &&
> -            $driver->hasCapability('changeFrom')) {
> +	      $this->hasCapability('changeFrom')) {
>              if (preg_match('/^From: ([^\n]*)\n(.+)$/s',
>                             $message, $matches)) {
>                  $from = MIME::decode($matches[1], NLS::getCharset());
>
>
> ====================
>
> El contenido del presente mensaje y sus adjuntos, es confidencial,  
> privado y de uso exclusivo de los destinatarios a los cuales esta  
> dirigido, pudiendo contener información privilegiada y legalmente  
> protegida. Queda prohibida la revisión, divulgación, publicación,  
> modificación, copia, distribución o acción en relación con esta  
> información, por personas o entidades distintas al destinatario. Si  
> usted, por alguna razón, lo ha recibido por error, por favor tenga  
> la amabilidad de re-enviarlo al remitente y eliminarlo de su  
> sistema. Las opiniones contenidas son exclusivas de su autor y no  
> representan necesariamente, la opinión del Observatorio o sus  
> Instituciones asociadas. Muchas gracias!
> http://www.auger.org.ar
>
> This e-mail transmission and it's attachments are confidential,  
> private and of exclusive use of their legal recipients, can content  
> legally privileged information. If you are not the intended  
> recipient, you are hereby notified that any disclosure, copying,  
> distribution, or reliance upon the contents of this e-mail is  
> strictly prohibited. If you have received this e-mail transmission  
> in error, please reply to the sender, so that the Observatory can  
> arrange for proper delivery, and then please delete the message from  
> your system. Opinions expressed are exclusive from the author and  
> are not necessarily shared or supported by the Observatory or  
> partner Institutions. Thank you!
> http://www.auger.org.ar
> -- 
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>


Please create a ticket on http://bugs.horde.org/.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list