Re: [FR] number of files to message "Unlinking files in mailbox".

2014-10-01 Thread Bron Gondwana
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


deduplication issue

2014-10-01 Thread gavin . gray
We run our cyrus 2.4 murder with deduplication switched on.

Generally speaking this works well, but every so often user's complain
about receiving duplicate messages.

We've been taking a look at our delivery logs and our delivery db and it
does seem to sometimes behave oddly

e.g a series of messages gets delivered with the same Message-ID and if
dump deliver.db

we can see this sort of thing:

id: to: user.
at: 1411970492  uid: 24022
id: to: user.
at: 1411974127  uid: 24023
id: to: user.
at: 1411977693  uid: 24026
id: to: user.
at: 1411988514  uid: 24031
id: to: user.
at: 1411992092  uid: 24033
id: to: user.
at: 1412059168  uid: 24042
id: to: user.
at: 1412060492  uid: 24043
id: to: user.
at: 1412070549  uid: 24051
id: to: user.
at: 1412073074  uid: 24053
id: to: user.
at: 1412075354  uid: 24055


these are quite isolated incidents, but surely this shouldn't happen at
all? I suppose I'm asking if there are any known reasons why the
deduplication process might behave in this way?


We run cyr_expire -E 1 every night

Gavin Gray
Edinburgh University Information Services
Rm 2013 JCMB
Kings Buildings
Edinburgh
EH9 3JZ
UK
tel +44 (0)131 650 5987
email gavin.g...@ed.ac.uk

--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

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


[FR] number of files to message "Unlinking files in mailbox".

2014-10-01 Thread Sergey
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