methodtMaildir.Generation
function Generation: Integer;
A COUNTER THAT MOVES WHENEVER A MAILBOX'S CONTENTS MAY HAVE CHANGED THROUGH THIS OBJECT - a delivery, an APPEND, an EXPUNGE, in any mailbox of the tree. Only its changing means anything; the value does not.
It is how an IMAP session parked in IDLE knows a rescan is worth doing without listing a directory every second. It cannot see a change made by ANOTHER PROCESS writing into the same tree, so a consumer that has to notice those rescans on a timer as well.