File indexing completed on 2025-01-05 04:58:36

0001 #!/bin/bash
0002 
0003 sudo echo "sam user.doe.* cyrus c;
0004 dm user.doe.*;
0005 sam user.doe cyrus c;
0006 " | cyradm --auth PLAIN -u cyrus -w admin localhost
0007 
0008 #Create a bunch of test messages in the test folder
0009 # FIXME: this does not work
0010 
0011 # FOLDERPATH=/var/spool/imap/d/user/doe/#calendars/Default
0012 # SRCMESSAGE=/src/sink/examples/caldavresource/tests/data/cyrusevent
0013 # sudo mkdir -p $FOLDERPATH
0014 # sudo chown -R cyrus:mail /var/spool/imap/d/user/doe/#calendars
0015 # sudo tee <$SRCMESSAGE >/dev/null $FOLDERPATH/{1..1000}.
0016 
0017 # sudo chown -R cyrus:mail $FOLDERPATH
0018 # sudo reconstruct "user.doe.#calendars.Default"