Projects
Kolab:3.4
cyrus-imapd
batchreconstruct
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File batchreconstruct of Package cyrus-imapd (Revision 12)
Currently displaying revision
12
,
Show latest
#!/usr/bin/perl # # Usage: batchreconstruct inputfile # # Purpose: Runs the Cyrus reconstruct command on each newly-created # Cyrus mailbox created by folderxfer # # Input: List of usernames, one per line # #$Id: batchreconstruct,v 1.1 2004/02/04 12:59:42 karsten Exp $ #$whoami = "/usr/ucb/whoami"; # Solaris $whoami = "/usr/bin/whoami"; $reconstruct = "/usr/lib/cyrus-imapd/reconstruct"; $cmd = "$reconstruct -r"; chop ($iam = `$whoami`); if ($iam ne "cyrus" ) { die "You must be cyrus to run this script!\n"; } $users = "$ARGV[0]"; if (!$users) { die "Usage: $0 input_file\n"; } open(MB,"$users") || die "can't open $users"; while (<MB>) { chop; system("$cmd user.$_"); } close MB;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.