It could be done, sure.  There's already some stuff in the snmp code for 
counting calls to commands (like pop3 does) - but what you're looking for is 
more counting messages expunged.  You'd need to add a global datastructure, a 
function to update it, and call it from within the index_expunge loop, or maybe 
even directly within mailbox_rewrite_index_record, depending if you wanted it 
to be imapd specific or not.

Bron.

On Wed, Oct 1, 2014, at 06:18 PM, Sergey wrote:
> Hello.
> 
> Sometimes I want to have information on the number of deleted
> messages. It is possible for pop3 only now: 
> cyrus/pop3[9787]: counts: retr=<3> top=<0> dele=<3>
> 
> It would be good to add a number to the message "Unlinking files":
> Unlinking N file(s) in mailbox ...
> Can it be done ?
> 
> -- 
> Regards,
> Sergey
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


-- 
  Bron Gondwana
  br...@fastmail.fm
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Reply via email to