Skip to content

dsi-univ-rennes1/testPythonZimbraApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests de l'API Zimbra

Ce projet est prévu pour tester les fonctionnalités de l'API ZImbra.

Bibliothèque pythonzimbra utilisée

Documentation de python-zimbra : https://github.com/Zimbra-Community/python-zimbra

D'autres exemples de code utilisant pythonzimbra

Installation

git clone git@github.com:dsi-univ-rennes1/testPythonZimbraApi.git
cd testPythonZimbraApi
python3.5 -m venv venv
venv/bin/pip install --requirement requirements.txt
cp example-zimbra.json my-conf.json
vim example-zimbra.json
./testPythonZimbra.py --help

Exemples d'appel

./testPythonZimbra.py --conf=prod-conf.json --createFolder --email=user@my.dom --folder='Quarantaine_Phishing'
./testPythonZimbra.py --conf=prod-conf.json --createIdentity --email=user@my.dom --for=user2@dom --id=New_Avatar --display='User' | jq .
./testPythonZimbra.py --conf=prod-conf.json --deleteIdentity --email=user@my.dom --id=New_Avatar| jq .
./testPythonZimbra.py --conf=prod-conf.json --getAccountInfo --email=user@my.dom | jq .
./testPythonZimbra.py --conf=prod-conf.json --getFolder --email=user@my.dom --folder='/' -depth=0
./testPythonZimbra.py --conf=prod-conf.json --getMailCount --email=user@my.dom --folder='/inbox'
./testPythonZimbra.py --conf=prod-conf.json --getIdentities --email=user@my.dom | jq .
./testPythonZimbra.py --conf=prod-conf.json --getInfo --email=user@my.dom | jq .
./testPythonZimbra.py --conf=prod-conf.json --getMsg --email=user@my.dom --id=12567
./testPythonZimbra.py --conf=prod-conf.json --getMsg --email=user@my.dom --id=12567 --part=1.2
./testPythonZimbra.py --conf=prod-conf.json --getPrefs --email=user@my.dom | jq .
./testPythonZimbra.py --conf=prod-conf.json --getRights --email=user@my.dom --right=sendAs
./testPythonZimbra.py --conf=prod-conf.json --grantAccessFolder --email=user@my.dom --id=2 --for=user2@dom.fr
./testPythonZimbra.py --conf=prod-conf.json --grantRights --right=viewFreeBusy --type=dom --domain=my.dom --email=user@my.dom | jq .
./testPythonZimbra.py --conf=prod-conf.json --modifyIdentity --email=user@my.dom --for=user2@dom --id=New_Avatar --display='User' | jq .
./testPythonZimbra.py --conf=prod-conf.json --moveMsg --email=user@my.dom --id=963827 --folder=8_Perso
./testPythonZimbra.py --conf=prod-conf.json --search --email=user@my.dom --folder=Inbox
./testPythonZimbra.py --conf=prod-conf.json --search --email=user@my.dom --query='from:user@univ-avignon.fr'
./testPythonZimbra.py --conf=prod-conf.json --search --email=user@my.dom --query='#X-Mailer:"PHPMailer 6.0.2"'
./testPythonZimbra.py --conf=prod-conf.json --search --getMsg --email=user@my.dom --id=962266

About

Tests de l'API ZImbra

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages