Building an interface to unexpunge for users

Adam Tauno Williams awilliam at whitemice.org
Wed Mar 31 14:30:34 EDT 2010


On Mon, 2010-03-29 at 16:22 +0100, David Mayo wrote:
> Bron Gondwana wrote:
> > On Mon, Mar 29, 2010 at 11:28:50AM +0100, David Mayo wrote:
> >> We have recently upgraded to Cyrus 2.3 and are making full use of the 
> >> "delayed delete" feature, and we are considering writing an interface to 
> >> allow users to undelete their own messages and mailboxes.
> >> Before I start work on this myself, I thought I'd check with people here 
> >> to see if anyone has any tips or code they are willing to share. I hope 
> >> we will be able to publish the product we create.
> > Are you planning to use the unexpunge tool behind the scenes for this,
> > or something more hooked into the innards?
> > (I ask because the innards are going through a big overhaul at the moment,
> > but I hope to keep the unexpunge tool working nicely!)
> I haven't given this much thought as I wanted to check if someone had a 
> working solution or some ideas they wanted to share. My thinking was 
> that we'd have a Perl script on our web site that SSHed into our IMAP 
> server and ran the unexpunge command with appropriate options.

Could this be implemented as an extended IMAP command?  Like sq,
mboxcfg, etc... so that the operation could be performed over an IMAP
connection.  This is much nicer to use and integrate than the some-tool
approach.



More information about the Info-cyrus mailing list