Re: [AMaViS-user] "sel_penpals_msgid" SQL query

2007-06-01 Thread Riaan Kok
> > > It seems like the only advantage of that preferential ordering is for > the > > snmp counter, as the 'rid' return value from that query is not used > > anywhere else, and the other 4 return values are all from the msgs table > > (static for multiple recipients).. Unless I'm missing something

Re: [AMaViS-user] "sel_penpals_msgid" SQL query

2007-06-01 Thread Mark Martinec
Riaan, > > It is correct as it stands. It is not a condition, it is an expresion. > > ORDER BY expression [ ASC | DESC | USING operator ] [, ...] > > The rid=? compares the rid from a field with a recipient id > > we have in the message under test, returning true or false. > > The ORDER BY rid=?

Re: [AMaViS-user] "sel_penpals_msgid" SQL query

2007-06-01 Thread Riaan Kok
On 01/06/07, Mark Martinec <[EMAIL PROTECTED]> wrote: > > Riaan, > > > (line 910 in V2.5.1 of amavisd) > > 'sel_penpals_msgid' => # with a nonempty message-id references list > > "SELECT msgs.time_num, msgs.mail_id, subject, message_id, rid". > > " FROM msgs JOIN msgrcpt ON msgs.mail_id=msgrcp

Re: [AMaViS-user] "sel_penpals_msgid" SQL query

2007-06-01 Thread Mark Martinec
Riaan, > (line 910 in V2.5.1 of amavisd) > 'sel_penpals_msgid' => # with a nonempty message-id references list > "SELECT msgs.time_num, msgs.mail_id, subject, message_id, rid". > " FROM msgs JOIN msgrcpt ON msgs.mail_id=msgrcpt.mail_id". > " WHERE sid=? AND content!='V' AND ds='P' AND messa

[AMaViS-user] "sel_penpals_msgid" SQL query

2007-06-01 Thread Riaan Kok
Hi there, I'm thinking of doing the penpal thing, but, just to check, is this right?: (line 910 in V2.5.1 of amavisd) 'sel_penpals_msgid' => # with a nonempty message-id references list "SELECT msgs.time_num, msgs.mail_id, subject, message_id, rid". " FROM msgs JOIN msgrcpt ON msgs.mail_id=m