If anybody else needs ZimbraNotify to check all folders, not just the Inbox, here is the simple edit.
On line 333 Change the mail uri to:
Code:my $zimbra_mail_uri : shared = "/?fmt=atom&query=is:unread";
If anybody else needs ZimbraNotify to check all folders, not just the Inbox, here is the simple edit.
On line 333 Change the mail uri to:
Code:my $zimbra_mail_uri : shared = "/?fmt=atom&query=is:unread";
I have just installed Zimbranotify on Ubuntu - very good, nice job!
The only thing I thought that would be nice was that you were automatically logged onto your account when you selected "Open Zimbra" (-:
I found this URL:
It gives a JSP and a Java example, albeit it says the Java version is for windows I found with a couple of edits it compiled and ran ok on Ubuntu!
After a bit of trail and error I got everything working so when I clicked on "Open Zimbra" Firefox started and automatically logged me onto my Zimbra account.
So, incase others are interested this is what I had to do:
1/ I followed the instructions on the URL above for activating pre-auth using ZMPROV, stored the key it supplied and rebooted my server.
2/ I copied the JAVA example program and stored this on my local machine and called it zimbrapreauthloader.java in a new directory.
3/ I didn't have a java compile installed so just installed the latest SUN JDK using "Synaptic Package Manager".
4/ I then edited the zimbrapreauthloader.java module and made the following changes. (NOTE: I am no Java expert so I made these on a trial-and-error basis and they seemed to work for me!):
changed line 37 to:
public class zimbrapreauthloader {
changed line 42 to:
public zimbrapreauthloader() {
on line 46 - I changed this to use the full user name for my Zimbra account e.g username@domain.com
so the line of code would be:
String account = "username@domain.com";
on line 50 - I entered the key I stored from step 1 above
on line 52 I changed https to http.
I am not sure if this is due to my Zimbra server setup but I could not auto-logon using a secure HTTPS connection - it just failed every time. So I tried using a non-secure HTTP connection and it was ok. I am doing all this on a local network so I am not too concerned about not using HTTPS for this process.
I changed line 53 to:
String openBrowser = "firefox ";
5/ Started a "terminal" and changed to the new directory I created in step 2 above.
6/ Enter the following command to compile the JAVA program:
javac zimbrapreauthloader.java
7/ Then to test the program I entered the following command:
java zimbrapreauthloader
If everything is working this should start FireFox and you should find you Zimbra account inbox displayed.
8/ I then copied the "class" files from the Java compile to the /usr/local/bin:
sudo cp *.class /usr/loca/bin
NOTE:This is the same instruction as supplied for install ZimbaNotify to automcatically run.
9/ I started ZimbraNotify, right clicked on the tray icon, then selected "Prefrences". In the "External Commands->"Command to execute on clicking the tray icon" field I then entered:
java --cp /usr/local/bin/ zimbrapreauthloader
NOTE: This same command can used as a desktop launcher to get you straight into you Zimbra account without having to enter your logon details.
Anyway, I hope this of of use to others.
One last thing - in you Perl script there is a comment about mousing into the "no new mail" tooltip. I would like to always be able to start Zimbra from the "Open Zimbra" option on ZimbraNotify but my Perl is even worse than my Java and I have not yet been able to work out the code changes to get this tooltip, and the other tooltips that are not persistant, to be persistant when the mouse moves off the tray icon? If you have time could you post these code change to the Perl script?
Snib
Excellent program, just installed and it is looks really good!
I configued Pre-Auth with ZimbraNotify to autologon to a Zimbra account when the "Open Zimbra" option is selected. Currently the account name is hardcoded into the Java program from the URL below but this way you get directly into the account without having to go via the Zimbra logon screen and enter your user name and password.
The main details are at this URL but the Java program needed a few changes.
Preauth - Zimbra :: Wiki
If anyone is interested is setting this up let me know and I will post the full details on how I got this working.
In the PERL script there is a comment about persistance when moving the mouse over the "no new mail" tooltip. I would like to always be able to start zimbra from the "Open Zimbra" option but the tooltip is only persitant when unread mail is present. How can the script me changed so that all the tooltips are persistant if the mouse is moved over them so that I can select the "Open Zimbra option at any time?
Snib
Pardon me for reviving this thread - I'm not sure if this is the right place to put this - but I have something to report on this topic.
If your Zimbra server controls multiple domains and your users must log in using the @ portion of their e-mail address, this script does not work (They will get the error "Error: 403 permission denied: you do not have sufficient permissions").
Here's the fix:
- Remove from line 710 (the URL):
Code:$username[0]:$password\@- Add line 714:
which is after:Code:$req->authorization_basic($user, $password);Code:my $req = HTTP::Request->new(GET => $req_string);
Enjoy.
I thouth this was working ok.
But thank you for the correction.
Patricio Bruna
http://www.it-linux.cl/pbruna
You're welcome.
Perhaps I have an old version?
I downloaded it from the Zimbra Gallery just today, and it identifies itself as ZimbraNotify v0.3. Of note, though (if it matters), I'm using Zimbra 4.5.9 and not 5.x.
Hi I tried ZimbraNotify, but got an error:
So I installed these Modules. All modules installed without any problems, but when i try to start ZimbraNotify it fails:Warning: Gtk2 not found ...
Warning: Gtk2::TrayIcon not found ...
Warning: threads not found ...
So, im relatively new to the cpan modules ... do i have to activate something?ucm@laptop ~ $ zimbra/zimbranotify
Warning: threads not found ...
[...]
ucm@laptop ~ $ perl -MCPAN -e 'install threads'
CPAN: Storable loaded ok
Going to read /home/ucm/.cpan/Metadata
Database was generated on Mon, 04 Aug 2008 23:02:46 GMT
threads is up to date.
I'm using gentoo linux (64Bit) with perl 5.8.8 ...
@nate.wheeler: thx for the hint from post 21
greetings from austria
gregor
hi,
how can i extend zimbranotify to notify me if a calendar-entry pops up?
ok,
another question: zimbranotify stucks with 50new messages because i didn't have new unread messages in my mailbox.
where does zimbranotify store the informations (password, tempfiles, ...)?
or what should can i do?
There are currently 1 users browsing this thread. (0 members and 1 guests)