Re: [vchkpw] customizing quota messages

2003-03-25 Thread dWi saSonO b
On Mon, 24 Mar 2003 14:48:55 -0600
Nick Harring [EMAIL PROTECTED] wrote:

 Michael -
 Thanks for the reply, however it begs a follow up question. If I put full
 headers in the file, does vpopmail write the quota message directly into the
 users maildir, or does it use qmail-inject to run the message through the
 normal local delivery path?
 Thanks,
 Nick
 

the easiest way i see that from code is using .quotawarn.msg 

   /* Look in the domain for a .quotawarn.msg */
sprintf(quotawarnmsg, %s/.quotawarn.msg, TheDomainDir);
if ( ((fdin=open(quotawarnmsg, O_RDONLY))  0) ||
   (stat(quotawarnmsg, sb)0)) {

/* if that fails look in vpopmail dir */
sprintf(quotawarnmsg, %s/domains/.quotawarn.msg, VPOPMAILDIR);
if ( ((fdin=open(quotawarnmsg, O_RDONLY))  0) ||
  (stat(quotawarnmsg, sb)0)) {
return(0);

changing all fopen .quotawarn.msg to user side and give user each own quotawarn msg 
with his to: header

the other way is full debug on source to get user address and make some parse message 
to user


-- 
thx
onOs
UPPTI - Universitas Brawijaya



[vchkpw] customizing quota messages

2003-03-24 Thread Nick Harring
Title: customizing quota messages





I'm new to the list, however I've searched the archives and couldn't find an answer to this, nor could I find it in the docs, so I think I'm not duplicating a previous question. 

I run a site where I have users in a dozen or so domains, and need to customize the quota warn messages, not with custom internal text, but to set the reply-to and other header information to reflect the appopriate domain. I'm using vpopmail 5.2.1 with qmail and courier imap/pop. Is this functionality supported in 5.3 or do I need to patch 5.2.1 to support this? 

Also, if I do patch it and make it flexible, would there be interest in my submitting said patches for inclusion in future versions? I'd really like to see this functionality added, and am willing to do the heavy lifting to get it working, however I'd rather not have to continue to maintain an independent patchset if at all possible.

Thanks in advance,
Nicholas Harring
System Administrator
Webley Systems, Inc.





Re: [vchkpw] customizing quota messages

2003-03-24 Thread Michael Bowe
vpopmail supports custom quota warning messages already.

It does the following :

looks for a .quotawarn.msg file in the domain's directory
(ie vpopmail/domains/domainname)
if it cant find on there then it looks in the domain root directory
(ie vpopmail/domains)

So, all you need to do is create your custom quota warning file
(including custom From and Reply-To headers) and place
it into the domain's directory and you are right to go.

An example of the format if this file can be found in the
quotawarn.msg file that is in the vpopmail source dir.

There also is some basic info in the README.quotas file
in the vpopmail source dir

Michael.


- Original Message -
From: Nick Harring [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 6:38 AM
Subject: [vchkpw] customizing quota messages


 I'm new to the list, however I've searched the archives and couldn't find
an
 answer to this, nor could I find it in the docs, so I think I'm not
 duplicating a previous question.
 I run a site where I have users in a dozen or so domains, and need to
 customize the quota warn messages, not with custom internal text, but to
set
 the reply-to and other header information to reflect the appopriate
domain.
 I'm using vpopmail 5.2.1 with qmail and courier imap/pop. Is this
 functionality supported in 5.3 or do I need to patch 5.2.1 to support
this?
 Also, if I do patch it and make it flexible, would there be interest in my
 submitting said patches for inclusion in future versions? I'd really like
to
 see this functionality added, and am willing to do the heavy lifting to
get
 it working, however I'd rather not have to continue to maintain an
 independent patchset if at all possible.
 Thanks in advance,
 Nicholas Harring
 System Administrator
 Webley Systems, Inc.





RE: [vchkpw] customizing quota messages

2003-03-24 Thread Nick Harring
Title: RE: [vchkpw] customizing quota messages





Michael -
Thanks for the reply, however it begs a follow up question. If I put full headers in the file, does vpopmail write the quota message directly into the users maildir, or does it use qmail-inject to run the message through the normal local delivery path?

Thanks,
Nick


-Original Message-
From: Michael Bowe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 24, 2003 2:47 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] customizing quota messages



vpopmail supports custom quota warning messages already.


It does the following :


looks for a .quotawarn.msg file in the domain's directory
(ie vpopmail/domains/domainname)
if it cant find on there then it looks in the domain root directory
(ie vpopmail/domains)


So, all you need to do is create your custom quota warning file
(including custom From and Reply-To headers) and place
it into the domain's directory and you are right to go.


An example of the format if this file can be found in the
quotawarn.msg file that is in the vpopmail source dir.


There also is some basic info in the README.quotas file
in the vpopmail source dir


Michael.



- Original Message -
From: Nick Harring [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 6:38 AM
Subject: [vchkpw] customizing quota messages



 I'm new to the list, however I've searched the archives and couldn't find
an
 answer to this, nor could I find it in the docs, so I think I'm not
 duplicating a previous question.
 I run a site where I have users in a dozen or so domains, and need to
 customize the quota warn messages, not with custom internal text, but to
set
 the reply-to and other header information to reflect the appopriate
domain.
 I'm using vpopmail 5.2.1 with qmail and courier imap/pop. Is this
 functionality supported in 5.3 or do I need to patch 5.2.1 to support
this?
 Also, if I do patch it and make it flexible, would there be interest in my
 submitting said patches for inclusion in future versions? I'd really like
to
 see this functionality added, and am willing to do the heavy lifting to
get
 it working, however I'd rather not have to continue to maintain an
 independent patchset if at all possible.
 Thanks in advance,
 Nicholas Harring
 System Administrator
 Webley Systems, Inc.






RE: [vchkpw] customizing quota messages

2003-03-24 Thread Michael Bowe
I believe it writes the warning message direct into the user's Maildir


Michael Bowe (B.App.Sc)
Managing Director - Pipeline Internet
96 Pakington Street, Geelong West. VIC. 3218
Tel (03) 5229 7643
Fax (03) 5229 0282
Mobile 0419 242 136
http://www.pipeline.com.au/
  

-Original Message-
From: Nick Harring [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 25 March 2003 7:49 AM
To: 'Michael Bowe'; [EMAIL PROTECTED]
Subject: RE: [vchkpw] customizing quota messages


Michael - 
Thanks for the reply, however it begs a follow up question. If I put full
headers in the file, does vpopmail write the quota message directly into the
users maildir, or does it use qmail-inject to run the message through the
normal local delivery path?
Thanks, 
Nick 
-Original Message- 
From: Michael Bowe [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 24, 2003 2:47 PM 
To: [EMAIL PROTECTED] 
Subject: Re: [vchkpw] customizing quota messages 


vpopmail supports custom quota warning messages already. 
It does the following : 
looks for a .quotawarn.msg file in the domain's directory 
(ie vpopmail/domains/domainname) 
if it cant find on there then it looks in the domain root directory 
(ie vpopmail/domains) 
So, all you need to do is create your custom quota warning file 
(including custom From and Reply-To headers) and place 
it into the domain's directory and you are right to go. 
An example of the format if this file can be found in the 
quotawarn.msg file that is in the vpopmail source dir. 
There also is some basic info in the README.quotas file 
in the vpopmail source dir 
Michael. 


- Original Message - 
From: Nick Harring [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 6:38 AM 
Subject: [vchkpw] customizing quota messages 


 I'm new to the list, however I've searched the archives and couldn't find 
an 
 answer to this, nor could I find it in the docs, so I think I'm not 
 duplicating a previous question. 
 I run a site where I have users in a dozen or so domains, and need to 
 customize the quota warn messages, not with custom internal text, but to 
set 
 the reply-to and other header information to reflect the appopriate 
domain. 
 I'm using vpopmail 5.2.1 with qmail and courier imap/pop. Is this 
 functionality supported in 5.3 or do I need to patch 5.2.1 to support 
this? 
 Also, if I do patch it and make it flexible, would there be interest in my

 submitting said patches for inclusion in future versions? I'd really like 
to 
 see this functionality added, and am willing to do the heavy lifting to 
get 
 it working, however I'd rather not have to continue to maintain an 
 independent patchset if at all possible. 
 Thanks in advance, 
 Nicholas Harring 
 System Administrator 
 Webley Systems, Inc. 
 




RE: [vchkpw] customizing quota messages

2003-03-24 Thread Nick Harring
Title: RE: [vchkpw] customizing quota messages





Thanks much for all the info, we solved our problem!
Thanks again.


Nicholas Harring
System Administrator
Webley Systems, Inc
877-609-4795



-Original Message-
From: Michael Bowe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 24, 2003 5:06 PM
To: [EMAIL PROTECTED]
Subject: RE: [vchkpw] customizing quota messages



I believe it writes the warning message direct into the user's Maildir



Michael Bowe (B.App.Sc)
Managing Director - Pipeline Internet
96 Pakington Street, Geelong West. VIC. 3218
Tel (03) 5229 7643
Fax (03) 5229 0282
Mobile 0419 242 136
http://www.pipeline.com.au/
 


-Original Message-
From: Nick Harring [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 25 March 2003 7:49 AM
To: 'Michael Bowe'; [EMAIL PROTECTED]
Subject: RE: [vchkpw] customizing quota messages



Michael - 
Thanks for the reply, however it begs a follow up question. If I put full
headers in the file, does vpopmail write the quota message directly into the
users maildir, or does it use qmail-inject to run the message through the
normal local delivery path?
Thanks, 
Nick 
-Original Message- 
From: Michael Bowe [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 24, 2003 2:47 PM 
To: [EMAIL PROTECTED] 
Subject: Re: [vchkpw] customizing quota messages 



vpopmail supports custom quota warning messages already. 
It does the following : 
looks for a .quotawarn.msg file in the domain's directory 
(ie vpopmail/domains/domainname) 
if it cant find on there then it looks in the domain root directory 
(ie vpopmail/domains) 
So, all you need to do is create your custom quota warning file 
(including custom From and Reply-To headers) and place 
it into the domain's directory and you are right to go. 
An example of the format if this file can be found in the 
quotawarn.msg file that is in the vpopmail source dir. 
There also is some basic info in the README.quotas file 
in the vpopmail source dir 
Michael. 



- Original Message - 
From: Nick Harring [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 6:38 AM 
Subject: [vchkpw] customizing quota messages 



 I'm new to the list, however I've searched the archives and couldn't find 
an 
 answer to this, nor could I find it in the docs, so I think I'm not 
 duplicating a previous question. 
 I run a site where I have users in a dozen or so domains, and need to 
 customize the quota warn messages, not with custom internal text, but to 
set 
 the reply-to and other header information to reflect the appopriate 
domain. 
 I'm using vpopmail 5.2.1 with qmail and courier imap/pop. Is this 
 functionality supported in 5.3 or do I need to patch 5.2.1 to support 
this? 
 Also, if I do patch it and make it flexible, would there be interest in my


 submitting said patches for inclusion in future versions? I'd really like 
to 
 see this functionality added, and am willing to do the heavy lifting to 
get 
 it working, however I'd rather not have to continue to maintain an 
 independent patchset if at all possible. 
 Thanks in advance, 
 Nicholas Harring 
 System Administrator 
 Webley Systems, Inc.