[sork] new to the list

Nate Mollring nmollring@cennecs.org
Fri, 6 Sep 2002 13:46:21 -0500


Another change to vacation.php:

function unset_vacation($user, $realm, $pass) {
        $myFile = $this->write_temp_file("| /usr/bin/procmail ~/.procmailrc");
        if (! $this->ftp_copy_file($user, $realm, $pass, $myFile, ".qmail") )
             return false;

        if (! $this->ftp_delete_file($user, $realm, $pass, ".vacation.msg") ) 
            return false;
        // we could, but don't, check for errors on these...
        // they are more-or-less harmless without the above two files...
        $this->ftp_delete_file($user, $realm, $pass, ".vacation.pag");
        $this->ftp_delete_file($user, $realm, $pass, ".vacation.dir");
        $this->ftp_delete_file($user, $realm, $pass, ".vacation.db");
        return true;

I did this so when I remove vacation it puts the proper procmail call in .qmail
This works great.  I can enable the vacation and it work, then disable it and 
procmail works.  The only problem is that without the procmail call when 
vacation is enabled I don't get a copy of the email they send--it gets 
discarded then the vacation message is sent to the sender.  I simply need to 
know how to make 2 lines in the .qmail file.
thanks,
Nate

Quoting Eric Rostetter <eric.rostetter@physics.utexas.edu>:

> Quoting Nate Mollring <nmollring@cennecs.org>:
> 
> > I use an e-smith distro with qmail/procmail.
> 
> Never dealt with this, so I'd need your help, or someone else using this,
> to hash out an answer.
> 
> > vacation message.  My other vacation program puts the 'stuff' for
> vacation
> > into the .qmail file.
> 
> Can you share with us exactly what it puts in the .qmail file?
> 
> > How can I get this to work with the Horde vacation--it would
> > be nice if all my user could do their own vacation via Horde.
> 
> Well, if the stuff it puts in .qmail is the same stuff we put in .forward,
> then it should be a simple change of filename.  This is, unless there is
> other stuff in .qmail also that we can't mess with.  
> 
> There may also be some config items in qmail you can set?  For example,
> courier uses a .courier file, but you can get around this in the following
> way:
> 
> COURIER NOTES:
> --------------
> I'm told this module will work okay with courier if you add the line
> 
> || dotforward
> 
> to the user's .courier file.  Otherwise courier won't use the .forward
> file.
> So, an example .courier file might contain:
> 
> || dotforward
> ./Maildir
> 
> Maybe there is a similar feature for qmail???
> 
> > thanks,
> 
> -- 
> Eric Rostetter
> The Department of Physics
> The University of Texas at Austin
> 
> "TAD (Technology Attachment Disorder) is an unshakable, impractical
> devotion
> to a brand, platform, product line, or programming language. It's
> relatively
> harmless among the rank and file, but when management is afflicted the
> damage
> can be measured in dollars. It's also contagious -- someone with sufficient
> political clout can infect an entire organization."
> 
> --"Enterprise Strategies" columnist Tom Yager.
> 


-- 
Central Nebraska Community Services
http://www.welcome2cncs.com