RE: autoresponder

2001-06-13 Thread Lu Vo

See my previous post regarding this topic.
The patch I included does exactly this and I am using it successfully.

Lu
 

> -Original Message-
> From: plx [mailto:plx]On Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, June 12, 2001 6:22 AM
> To: vpopmail_mailing_list
> Subject: autoresponder
> 
> 
> Hi,
> 
> does anybody know how to do an autoresponder only for one mail account
> and only for one week (during my vacation...hehehee),
> but i  do want to keep receiving mails in my inbox
> 
> thanxs
> 
> plx



RE: File Error 6 (qmailadmin)

2001-05-16 Thread Lu Vo

This problem is very likely caused by some ISP rapidly switching IPs in the
same session thus what is recorded in the MAILDIR/*.qw file does not match
the subsequent requests.

One way to tell is to monitor your web server log file to see if this is
true.  If it is,
the solution to this is to tell your users who are experiencing problems to
disable the use of proxy for this particular URL.

Regards,
Lu

> -Original Message-
> From: Kieran Barnes [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 14, 2001 2:49 AM
> To: Vchkpw Mailing List (E-mail)
> Subject: File Error 6 (qmailadmin)
>
>
> Hi,
>
> I am getting a "File Error 6" problem randomly in qmailadmin.
>
> I can login fine, but from then on the error pops up when I go into any of
> the other pages.
> Most of the time its fine, but occasionally this error occours and logs me
> out.
>
> The qmailadmin binary seems fine,
>
> -rwsr-sr-x1 vpopmail vchkpw 282169 Apr 14 22:31 qmailadmin
> (running under apache 1.3.19)
>
> I am running qmailadmin-0.42 with vpopmail-4.9.10
>
> Anybody got any ideas on how to fix this?
>
> Regards,
>
> Kieran Barnes
> Signum 1226 Ltd
> Use our Web site at...  http://www.1226.net
> Phone us on... 01772 622889
> Fax us on...   01772 622558




maildrop advice needed please

2001-05-04 Thread Lu Vo

I am currently using vpopmail, qmailadmin and sqwebmail.
All domains are name-based sharing only vpopmail as user and vchkpw as
group.
I would like to have all virtual POP users have the ability to filter their
incoming e-mails on the server.

Has anyone implemented this and would maildrop fulfill the job ?

I would greatly appreciate any advice on this.

Thanks.

Lu




RE: sqwebmail logout users when refresh browser

2001-04-28 Thread Lu Vo

That is a good point and I have just done that to a dozen files.

Thanks.

Lu


> -Original Message-
> From: Bill Shupp [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, April 28, 2001 11:30 AM
> To: [EMAIL PROTECTED]; Rick Updegrove
> Cc: [EMAIL PROTECTED]
> Subject: Re: sqwebmail logout users when refresh browser
> 
> 
> on 4/28/01 12:41 PM, Lu Vo at [EMAIL PROTECTED] wrote:
> 
> > Well,
> > I know not to do it but for most clients, it is an automatic 
> reflex to check
> > for new mails since there is no "check mail" button.
> > 
> > Thanks,
> > Lu
> 
> It's pretty easy to make a "Check Mail" button.  In the HTML source, copy
> the line that displays the "Folders" link, and just change the 
> text between
> the  tags.  I'm not sure how many templates need to be 
> changed, but I did
> this once for the same reason.
> 
> Bill



RE: sqwebmail logout users when refresh browser

2001-04-28 Thread Lu Vo

Well,
I know not to do it but for most clients, it is an automatic reflex to check
for new mails since there is no "check mail" button.

Thanks,
Lu


> -Original Message-
> From: Rick Updegrove [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, April 28, 2001 12:56 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: sqwebmail logout users when refresh browser
>
>
> From: "Lu Vo" <[EMAIL PROTECTED]>
> > Does anyone know why I get logged out when I refresh my browser during
> > sqwebmail session ?
> > Is there a way to stop that ?
>
> Yes.  Do not refresh your browser.
>
> Why exactly would you want to use "refresh" anyway?
>
>
> Rick Up




sqwebmail logout users when refresh browser

2001-04-27 Thread Lu Vo

Does anyone know why I get logged out when I refresh my browser during
sqwebmail session ?
Is there a way to stop that ?

Thanks.

Lu




RE: qmailadmin/autoresponder patch

2001-04-27 Thread Lu Vo

Here is a patch that turns autoresonder into vacation.
Someone suggested using directory to do this.  Thanks.

Now, someone please fix the GUI to allow this as an option so one can have a
choice to receive the e-mail or not.


--- autorespond.c.orig  Fri Apr 27 14:13:52 2001
+++ autorespond.c.new   Fri Apr 27 14:18:49 2001
@@ -125,13 +125,6 @@
exit(0);
}

-
-   if ( check_local_user(ActionUser) ) {
-   fprintf(actout, "%s %s\n", get_html_text("175"),
ActionUser);
-   addautorespond();
-   exit(0);
-   }
-
if ( strlen(ActionUser) == 0 ) {
fprintf(actout, "%s\n", get_html_text("176"));
addautorespond();
@@ -173,14 +166,19 @@

if ( (fs = fopen(TmpBuf, "w")) == NULL ) ack("123", 123);

-   fprintf(fs,
-"|%s/autorespond 1 5 %s/%s/message %s/%s\n",
-   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2);
-
-   if ( strlen(Newu) > 0 ) {
-   fprintf(fs, "&%s\n", Newu);
+   if ( check_local_user(ActionUser) ) {
+   fprintf(fs, "|%s/autorespond 1 5 %s/%s/message
%s/%s\n%s/%s/Maildir/",
+   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2,
RealDir, ActionUser);
+   }
+   else {
+   fprintf(fs, "|%s/autorespond 1 5 %s/%s/message %s/%s\n",
+   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2);
}
-   fclose(fs);
+
+if ( strlen(Newu) > 0 ) {
+fprintf(fs, "&%s\n", Newu);
+}
+fclose(fs);

/*
 * Make the autoresponder message file
@@ -299,9 +297,14 @@
sprintf(TmpBuf, ".qmail-%s", ActionUser);
if ( (fs = fopen(TmpBuf, "w")) == NULL ) ack("123", 123);

-   fprintf(fs,
-"|%s/autorespond 1 5 %s/%s/message %s/%s\n",
-   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2);
+   if ( check_local_user(ActionUser) ) {
+   fprintf(fs, "|%s/autorespond 1 5 %s/%s/message
%s/%s\n%s/%s/Maildir/",
+   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2,
RealDir, ActionUser);
+   }
+else {
+fprintf(fs, "|%s/autorespond 1 5 %s/%s/message
%s/%s\n",
+AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2);
+}

if ( strlen(Newu) > 0 ) {
fprintf(fs, "&%s\n", Newu);
[root@umail2 qmailadmin-0.45]# cp autorespond.c autorespond.c.new
cp: overwrite `autorespond.c.new'? y
[root@umail2 qmailadmin-0.45]# diff -u autorespond.c.orig autorespond.c.new
--- autorespond.c.orig  Fri Apr 27 14:13:52 2001
+++ autorespond.c.new   Fri Apr 27 15:03:20 2001
@@ -125,13 +125,6 @@
exit(0);
}

-
-   if ( check_local_user(ActionUser) ) {
-   fprintf(actout, "%s %s\n", get_html_text("175"),
ActionUser);
-   addautorespond();
-   exit(0);
-   }
-
if ( strlen(ActionUser) == 0 ) {
fprintf(actout, "%s\n", get_html_text("176"));
addautorespond();
@@ -173,9 +166,14 @@

if ( (fs = fopen(TmpBuf, "w")) == NULL ) ack("123", 123);

-   fprintf(fs,
-"|%s/autorespond 1 5 %s/%s/message %s/%s\n",
-   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2);
+   if ( check_pop_user(ActionUser) ) {
+   fprintf(fs, "|%s/autorespond 1 5 %s/%s/message
%s/%s\n%s/%s/Maildir/",
+   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2,
RealDir, ActionUser);
+   }
+   else {
+   fprintf(fs, "|%s/autorespond 1 5 %s/%s/message %s/%s\n",
+   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2);
+   }

if ( strlen(Newu) > 0 ) {
fprintf(fs, "&%s\n", Newu);
@@ -299,9 +297,14 @@
sprintf(TmpBuf, ".qmail-%s", ActionUser);
if ( (fs = fopen(TmpBuf, "w")) == NULL ) ack("123", 123);

-   fprintf(fs,
-"|%s/autorespond 1 5 %s/%s/message %s/%s\n",
-   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2);
+   if ( check_pop_user(ActionUser) ) {
+   fprintf(fs, "|%s/autorespond 1 5 %s/%s/message
%s/%s\n%s/%s/Maildir/",
+   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2,
RealDir, ActionUser);
+   }
+   else {
+   fprintf(fs, "|%s/autorespond 1 5 %s/%s/message %s/%s\n",
+   AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2);
+   }

if ( strlen(Newu) > 0 ) {
fprintf(fs, "&%s\n", Newu);
@@ -356,4 +359,14 @@
}
closedir(mydir);

+}
+
+check_pop_user( user )
+char *user;
+{
+ struct stat buf;
+   if ( stat(user, &buf) == 0 ) {
+return(-1);
+}
+   return(0);
 }




qmailadmin/autoresponder

2001-04-26 Thread Lu Vo

I am trying to change autoresonder.c from qmailadmin source to skip the
forwards information in .qmail-user  and display the autoresponder info but
with no luck so far.

Example,
in .qmail-lu,  I have:
&[EMAIL PROTECTED]
&[EMAIL PROTECTED]
|/usr/local/bin/autorespond 1 5
/usr/local/vpopmail/domains/vpop.hostation.com/LU/message
/usr/local/vpopmail/domains/vpop.hostation.com/LU

As it is now, emails sent to [EMAIL PROTECTED] gets forwarded to the two
addresses above as well as get autoresponded to.

However, show_autoresponder does not show the appropriate line because it
could not find the key word autorespond in the first line which is
&[EMAIL PROTECTED]

I know what I need to do but I have been unsuccessful in modifying the code.
It needs to skip all lines that do not conatin autorespond and continue
through the file.

Can someone out there who is more adept than I give me a hand ?

Just trying to make autoreponder behaving a bit more like vacation.

BTW, if you are interested, here is what I did to addautorespondnow() and
modautorespondnow() functions:

old:
fprintf(fs,
"|%s/autorespond 1 5 %s/%s/message %s/%s\n",

new:
sprintf(TmpBuf3,
"|%s/autorespond 1 5 %s/%s/message %s/%s\n",
AUTORESPOND_BIN, RealDir, TmpBuf2, RealDir, TmpBuf2);

dotqmail_add_line(ActionUser,TmpBuf3);

Not sure about deletion though :-)


Thanks in advance.

Lu