Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Users

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 03-19-2008, 03:54 PM
Intermediate Member
 
Posts: 16
Default

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";
Reply With Quote
  #22 (permalink)  
Old 03-26-2008, 06:36 AM
New Member
 
Posts: 3
Arrow ZimbraNotify and PreAuth automatic logon

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:
Preauth - Zimbra :: Wiki
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
Reply With Quote
  #23 (permalink)  
Old 03-26-2008, 07:09 AM
New Member
 
Posts: 3
Default ZimbraNotify and PreAuth automatic logon

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
Reply With Quote
  #24 (permalink)  
Old 05-16-2008, 11:25 AM
Starter Member
 
Posts: 2
Cool BUGFIX: Error: 403 permission denied: you do not have sufficient permissions

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:
    Code:
    $req->authorization_basic($user, $password);
    which is after:
    Code:
    my $req = HTTP::Request->new(GET => $req_string);

Enjoy.
Reply With Quote
  #25 (permalink)  
Old 05-16-2008, 12:29 PM
Project Contributor
 
Posts: 77
Default

I thouth this was working ok.
But thank you for the correction.
__________________
Patricio Bruna
http://www.it-linux.cl/pbruna
Reply With Quote
  #26 (permalink)  
Old 05-16-2008, 12:38 PM
Starter Member
 
Posts: 2
Default

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.
Reply With Quote
  #27 (permalink)  
Old 08-05-2008, 05:01 AM
Starter Member
 
Posts: 1
Default

Hi I tried ZimbraNotify, but got an error:

Quote:
Warning: Gtk2 not found ...
Warning: Gtk2::TrayIcon not found ...
Warning: threads not found ...
So I installed these Modules. All modules installed without any problems, but when i try to start ZimbraNotify it fails:

Quote:
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.
So, im relatively new to the cpan modules ... do i have to activate something?
I'm using gentoo linux (64Bit) with perl 5.8.8 ...
Reply With Quote
  #28 (permalink)  
Old 09-21-2008, 03:30 PM
Active Member
 
Posts: 41
Default

@nate.wheeler: thx for the hint from post 21
greetings from austria
gregor
Reply With Quote
  #29 (permalink)  
Old 09-23-2008, 10:30 AM
Active Member
 
Posts: 41
Default

hi,

how can i extend zimbranotify to notify me if a calendar-entry pops up?
Reply With Quote
  #30 (permalink)  
Old 10-01-2008, 01:20 PM
Active Member
 
Posts: 41
Default

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?
Reply With Quote

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0