I actually discovered this is a mysql related problem. If
anyone has a
clue to the 'why' please shoot.
mysql> select * from maia_mail_recipients where
mail_id=9536 and
type='C';
+---------+--------------+------+---------------+
| mail_id | recipient_id | type | token |
+---------+--------------+------+---------------+
| 9536 | 20 | C | expired209536 |
| 9536 | 31 | C | expired319536 |
+---------+--------------+------+---------------+
2 rows in set (0.02 sec)
mysql> delete from maia_mail_recipients where
mail_id=9536 and type='C'
limit 1;
Query OK, 0 rows affected (0.00 sec)
mysql> delete from maia_mail_recipients where
mail_id=9536 and type='C'
and recipient_id=20 limit 1;
Query OK, 1 row affected (0.03 sec)
Hell if I know what this is. It seems to only do damage if I
insert a
unique entry.
Rgds,
Michiel
-----Oorspronkelijk bericht-----
Van: maia-users-bounces renaissoft.com
[mailto:maia-users-bounces renaissoft.com] Namens
Michiel van den Berg
Verzonden: vrijdag 29 juni 2007 14:41
Aan: Maia
Onderwerp: [Maia-users] FW: maia_mail keeps growin
Report to the list to ;)
-----Oorspronkelijk bericht-----
Van: Erik Weber [mailto:twiztar gmail.com]
Verzonden: vrijdag 29 juni 2007 14:39
Aan: Michiel van den Berg
Onderwerp: Re: [Maia-users] maia_mail keeps growin
Michiel van den Berg wrote:
> Yes, im just doing that. Added some debug info to. It
says its
deleting all the mail for id=x but it actually doesn't do
this. For
example:
>
> 2007-06-29 12:26:51 Maia: [process-quarantine-sub]
Learned mail item
3320 as spam and reported it
> 2007-06-29 12:26:51 Maia: [process-quarantine-sub]
Deleted
spam/non-spam recipient references to mail item 3320 type C
> 2007-06-29 12:26:51 Maia: [process-quarantine-sub]
Retaining mail item
3320, since it still has recipient references.
> 2007-06-29 12:26:51 Maia: [process-quarantine-sub]
TIMING [total 1556
ms] - msg-prep: 5 (0%), send-report: 1549 (100%),
delete-mail: 3 (0%),
rundown: 0 (0%)
>
> DB:
> 3320 20 C expired203320
> 3320 31 C expired313320
>
> If I remove 1 of the lines from the DB in
maia_mail_recieved, it does
actually delete the other entry & mail entry to. But as
long as there
are 2 or more lines. It doesn't delete them.
>
> It does seem like the delete statement in
process-quarantine-sub is
good. The amavis user I use for db connectivity also has the
proper
delete right as I can manually delete a row when logged in
as that user.
And it also deletes the row if there is only 1 on the ID.
Besides that I
really have no clue whats going on at this moment. But I
will keep
debugging.
>
>
The mail wouldn't happen to have multiple recipients?
--
Erik
_______________________________________________
Maia-users mailing list
Maia-users renaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
_______________________________________________
Maia-users mailing list
Maia-users renaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
|