This script performs a login into an iserv account to show you the number of unread emails, the subjects and an link directing to them.
For using this script you need to prepare it first. Therefore some changes need to be made in the beginning:
iservhost="ISERVHOST"
where ISERVHOST is like: https://demo-iserv.de/idesk/lact="ACCOUNT"
where ACCOUNT is the users account like: bjoern.muellerlpwd="PASSWORD"
where PASSWORD is the users password.
DO NOT SAVE YOUR PASSWORD IN THIS SCRIPT IF SOMEONE ELSE COULD READ THAT, OR IF IT IS REACHABLE FROM THE INTERNET
The output will be visible running ./iserv_email.sh
in the console, but before the output we see the STD-OUT from cURL. link
If you want the output in another script, do emailoutput=$(./iserv_email.sh)
To get the output into a seperate file, uncomment line 51.
When iserv 3 is released offically and maybe has an API that will make it possible to stay permanently logged in like the iserv3 app does (sadly it is currently limited to the iserv3 app). Also it will be is much easier to get these information like email-data,...
UPDATE: Since iserv3 is available now, I am working to use their API (even if there's no documentation about :P) and build a new script to perform these tasks. It is a lot easier now; be patient :D Check out my iserv3-email-preview. It acts like this script but uses the powerfull Iserv3 API