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 10000 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 10000 5 %s/%s/message %s/%s\n",

new:
        sprintf(TmpBuf3,
"|%s/autorespond 10000 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

Reply via email to