[Dovecot] fts plugin - purpose of get_last_uid() ?
It looks like the uid returned is only used as an indication of whether the maildir is fully indexed or not, is that correct?
In my setup, the index is built externally and will _always_ be up-to-date. Getting the last uid would mean running a query, which, whilst inexpensive, seems unnecessary if my understanding of the purpose of get_last_uid() is correct.
thanks Per Jessen, Zürich
On 17.9.2010, at 9.46, Per Jessen wrote:
It looks like the uid returned is only used as an indication of whether the maildir is fully indexed or not, is that correct?
Yes.
In my setup, the index is built externally and will _always_ be up-to-date. Getting the last uid would mean running a query, which, whilst inexpensive, seems unnecessary if my understanding of the purpose of get_last_uid() is correct.
Right.
Timo Sirainen wrote:
On 17.9.2010, at 9.46, Per Jessen wrote:
It looks like the uid returned is only used as an indication of whether the maildir is fully indexed or not, is that correct?
Yes.
In my setup, the index is built externally and will _always_ be up-to-date. Getting the last uid would mean running a query, which, whilst inexpensive, seems unnecessary if my understanding of the purpose of get_last_uid() is correct.
Right.
I guess I left out the most important question - what could I return as last uid to indicate 'all indexed'?
/Per Jessen, Zürich
Per Jessen wrote:
Timo Sirainen wrote:
On 17.9.2010, at 9.46, Per Jessen wrote:
It looks like the uid returned is only used as an indication of whether the maildir is fully indexed or not, is that correct?
Yes.
In my setup, the index is built externally and will _always_ be up-to-date. Getting the last uid would mean running a query, which, whilst inexpensive, seems unnecessary if my understanding of the purpose of get_last_uid() is correct.
Right.
I guess I left out the most important question - what could I return as last uid to indicate 'all indexed'?
got it - maildir_uidlist_get_next_uid().
/Per Jessen, Zürich
participants (2)
-
Per Jessen
-
Timo Sirainen