issue when creating .procmailrc when using INGO

View: New views
2 Messages — Rating Filter:   Alert me  

issue when creating .procmailrc when using INGO

by Ilo Lorusso :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


I'm using ingo for rule filtering on my horde system.
now I have the backend setup so it will install the .procmailrc using SSH
this works fine, but I dont want my uses to have ssh access to the
server so I have the user shell /usr/bin/scponly assigned to all my
users.

This should allow for my users to have there .procmailrc installed as
per normal as Ive tested with Winscp and I am able to transfter files
to any user account with there login details.

Now Ive noticed when you save you filters or vacation message which
uses .procmailrc  , the file gets created as /home/myusername
/'.procmailrc' the actual quotes within the filename aswell..  (as I
said if I loggin as the same user and transfer a file it does not get
created with the quotes within the filename)


Any Idea why this is happening ?

are there not to many quotes within some PHP code within INGO



I tried modifiying  this  varible $this->_params['filename'] from the
in the below code but even if I staticly define the value, the
filename gets created with quotes. Does this call not happen though
another file aswell that could possibly have to many quotes?

filename - /var/www/html/horde/ingo/lib/Driver/vfs.php

    function setScriptActive($script)
    {
        $result = $this->_connect();
        if (is_a($result, 'PEAR_Error')) {
            return $result;
        }

        if (empty($script)) {
            $result =
$this->_vfs->deleteFile($this->_params['vfs_path'],
$this->_params['filename']);
        } else {
            $result =
$this->_vfs->writeData($this->_params['vfs_path'],
$this->_params['filename'] , $script, true);
        }
        if (is_a($result, 'PEAR_Error')) {
            return $result;
        }

Any help

Appreciated.

Ilo
--
Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: ingo-unsubscribe@...

Re: issue when creating .procmailrc when using INGO

by Jan Schneider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Zitat von Ilo Lorusso <sneak147@...>:

> Hi,
>
>
> I'm using ingo for rule filtering on my horde system.
> now I have the backend setup so it will install the .procmailrc using SSH
> this works fine, but I dont want my uses to have ssh access to the
> server so I have the user shell /usr/bin/scponly assigned to all my
> users.
>
> This should allow for my users to have there .procmailrc installed as
> per normal as Ive tested with Winscp and I am able to transfter files
> to any user account with there login details.
>
> Now Ive noticed when you save you filters or vacation message which
> uses .procmailrc  , the file gets created as /home/myusername
> /'.procmailrc' the actual quotes within the filename aswell..  (as I
> said if I loggin as the same user and transfer a file it does not get
> created with the quotes within the filename)
>
>
> Any Idea why this is happening ?
>
> are there not to many quotes within some PHP code within INGO
>
>
>
> I tried modifiying  this  varible $this->_params['filename'] from the
> in the below code but even if I staticly define the value, the
> filename gets created with quotes. Does this call not happen though
> another file aswell that could possibly have to many quotes?
>
> filename - /var/www/html/horde/ingo/lib/Driver/vfs.php
>
>     function setScriptActive($script)
>     {
>         $result = $this->_connect();
>         if (is_a($result, 'PEAR_Error')) {
>             return $result;
>         }
>
>         if (empty($script)) {
>             $result =
> $this->_vfs->deleteFile($this->_params['vfs_path'],
> $this->_params['filename']);
>         } else {
>             $result =
> $this->_vfs->writeData($this->_params['vfs_path'],
> $this->_params['filename'] , $script, true);
>         }
>         if (is_a($result, 'PEAR_Error')) {
>             return $result;
>         }
>
> Any help
>
> Appreciated.

You should rather look at horde/lib/VFS/ssh2.php.

Jan.

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

--
Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: ingo-unsubscribe@...