Re: [exim] Exim quota and getting space used value out

Inizio della pagina
Delete this message
Reply to this message
Autore: Tony Finch
Data:  
To: Martin Nielsen
CC: exim-users
Nuovi argomenti: Re: [exim] Exim quota and getting space used value out
Oggetto: Re: [exim] Exim quota and getting space used value out
On Fri, 16 May 2008, Martin Nielsen wrote:
>
> When exim is running in debug mode it sums up the total space used for
> each delivery and it has a few lines where it states how much space the
> user has used in all. I'm very interested in getting that value out so I
> can use it in exim to update a database with current space used for that
> particular user.


Exim does the quota calculations after it has dropped privilege, so there
isn't much you can do at that point. In order for you to be able to do
something with the quota usage value, the transport process would have to
communicate the value up to its parent process, and there would have to be
a post-delivery expansion string hook or something like that. I'm not sure
the added complexity is worth it.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}