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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Tony Finch
日付:  
To: Martin Nielsen
CC: exim-users
新しいトピック: Re: [exim] Exim quota and getting space used value out
題目: 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}}