Re: [Exim] IMAP quotas help needed

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Justo Alonso
Dátum:  
Címzett: Jeffrey Wheat, Jason Stratford
CC: exim-users
Tárgy: Re: [Exim] IMAP quotas help needed
On Monday 19 May 2003 19:41, Jeffrey Wheat wrote:
> Justo,


first... sorry... I'm very busy at this time (in the last month.. ;(()

I "remake" the patch to support the features that you suggest.

Then the patch, at this moment have:
    - Full support (I think) for the maildirsize file of the courier imap server


    - maildir_size_file  boolean option. With this option set, exim lookup for
the quota in the maildirsize file in user directory.


    - If the maildirsize file don't exist, the quota option is used, and exim
save this value in the file, and check size of the directory.


    - If the file have negative values in size field, then recalculate the size
of the directory.


    - If the maildirsize file size is over 2K, then recalculate.


    - Support ok the quota_threshold_value option.


check it... and sorry again... por my english, and for the latter fo the
email...

When I have many time... I try to support count quota (number of files in the
directory), at this time the patch only support nbytes quota (the size of the
directory)

justo

>
>     Thank you for the patch. I have installed it
> with the latest exiscan-acl patch and aside from
> having to alter maildirsize.h to change the header
> <pcre.h> to "../pcre/pcre.h" it compiled without a
> problem on FreeBSD 5.0. I am not exactly a programmer
> so I need to ask the following questions:

>
>     When a maildirsize file is not present in the
> directory tree, does exim look for a quota setting
> in the transports such as:

>
>     quota = ${lookup mysql {MYSQL_QUOTA}}

>
> where the query is:
>
>     MYSQL_QUOTA = SELECT DISTINCT quota FROM accounts
> WHERE domain LIKE '${quote_mysql:$domain}' AND username
> LIKE '${quote_mysql:$local_part}'

>
> and create the file if not present? What if the quota is
> changed in the database, will the change be reflected in
> the maildirsize file?
>
>
>     Do I need to continue using these three additional
> settings:

>
>     maildir_tag = ,S=$message_size
>     quota_size_regex = ,S=(\d+)
>     no_quota_is_inclusive

>
> and lastly, if the user is seen to be over quota, does exim
> still use the quota_warn_message setting in exim.conf?
>
> Many thanks for your help
> Jeff
>
> > -----Original Message-----
> > From: Justo Alonso [mailto:justo.alonso@eresmas.com]
> > Sent: Friday, May 16, 2003 5:45 AM
> > To: Jason Stratford; exim-users@???
> > Cc: Jeffrey Wheat
> > Subject: Re: [Exim] IMAP quotas help needed
> >
> > On Thursday 15 May 2003 11:25, Jason Stratford wrote:
> > > Jeff,
> >
> > Hi,
> >     I wrote a patch to support maildirsize file from
> > courier-imap. I paste some
> > functions from courier 1.7.1.

> >
> >     This support add de option maildir_size_file in the
> > config file. If this
> > boolean option have a true value, then exim see the quota
> > from this file, in
> > the same form that courier-imap.

> >
> > This patch is for exim-4.20.
> >
> > enjoy it... and probe it.... this work fine for me.. but ...
> > for you ???
> >
> > > I have a patch for exim-4.14 that replaces the standard
> >
> > maildir quota
> >
> > > handling with methods extracted from courier-imap version 1.7.0 to
> > > handle the creation and management of maildirsize files. I
> >
> > have been
> >
> > > using it for a few months now without problems, and also had an
> > > earlier version working on exim-4.04 from courier 1.5.x for quite a
> > > while.
> > >
> > > The patch itself is not the best as its essentially the required
> > > routines hacked out of the courier code base with the exim source
> > > modified to call the courier bits. I would have preferred modifying
> > > the courier base to create a proper library that could be linked to
> > > from exim (maybe when I have time, haven't so far as there
> >
> > is too much
> >
> > > courier specific stuff that is not needed in the current maildir
> > > module and its dependants in the courier source base).
> > >
> > > You are welcome to try my patch, let me know and I will send it too
> > > you. Of course it comes with the standard disclaimer, works
> >
> > for me but
> >
> > > may make your system disappear up its own rear end!
> > >
> > > Regards
> > > Jason
> > >
> > > Quoting Philip Hazel <ph10@???>:
> > > > On Wed, 14 May 2003, Jeffrey Wheat wrote:
> > > > > What is NOT happening is that when I issue a
> >
> > courier-imap command
> >
> > > > > of 00003 getquota user nothing is returned because exim is not
> > > > > handling maildirsize files whatsoever.
> > > >
> > > > I am not a maildir or courier expert, and I don't know anything
> > > > about maildirsize files. There's nothing on the Wish List, so I
> > > > assume nobody has raised this issue before.
> > > >
> > > > > My original question was to see if exim has the ability or has
> > > > > been patched or to have planned support for maildirsize in the
> > > > > future.
> > > >
> > > > If I knew what ability was required, I could answer better, but I
> > > > suspect the current answer is "no".
> > > >
> > > >
> > > > --
> > > > Philip Hazel            University of Cambridge Computing Service,
> > > > ph10@???      Cambridge, England. Phone: +44

> >
> > 1223 334714.
> >
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.478 / Virus Database: 275 - Release Date: 5/6/2003
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.478 / Virus Database: 275 - Release Date: 5/6/2003