[Dovecot] 2.2.4 - Some questions about and needing help with quota-status

Timo Sirainen tss at iki.fi
Thu Aug 1 15:29:15 EEST 2013


On 19.7.2013, at 16.02, Axel Luttgens <AxelLuttgens at swing.be> wrote:

> Le 18 juil. 2013 à 11:25, Axel Luttgens a écrit :
> 
>> [...]
>> It is to be noted that no lines in the log are related to possible problems encountered for launching [the dict server]. It is a bit as if quota_check() in src/plugins/quota/quota-status.c always immediately returned with 1 at the first test.
>> [...]
> 
> Tracing with gdb, it appears this is indeed the case.
> 
> Here's the beginning of quota_check():
> 
> 	static int
> 	quota_check(struct mail_user *user, uoff_t mail_size, const char **error_r)
> 	{
> 		struct quota_user *quser = QUOTA_USER_CONTEXT(user);
> 		[...]
> 
> 		if (quser == NULL) {
> 			/* no quota for user */
> 			return 1;
> 		}
> 		[...]
> 
> and one has for quser:
> 
> 	(gdb) p quser
> 	$1 = (struct quota_user *) 0x0

And if you're still stuck with this, set a breakpoint to quota_mail_user_created and step through it to figure out why MODULE_CONTEXT_SET() isn't being called.




More information about the dovecot mailing list