Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 47

Thread: ZimbraNotify (aka: toaster wannabe)

  1. #21
    Snib is offline New Member
    Join Date
    Mar 2008
    Posts
    3
    Rep Power
    7

    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:


    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

  2. #22
    Snib is offline New Member
    Join Date
    Mar 2008
    Posts
    3
    Rep Power
    7

    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

  3. #23
    SilenceIT is offline Starter Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    2
    Rep Power
    6

    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.

  4. #24
    pbruna is offline Project Contributor
    Join Date
    Feb 2006
    Posts
    90
    Rep Power
    9

    Default

    I thouth this was working ok.
    But thank you for the correction.

  5. #25
    SilenceIT is offline Starter Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    2
    Rep Power
    6

    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.

  6. #26
    Uncle CM is offline Starter Member
    Join Date
    Aug 2008
    Posts
    1
    Rep Power
    6

    Default

    Hi I tried ZimbraNotify, but got an error:

    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:

    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 ...

  7. #27
    gregor is offline Loyal Member
    Join Date
    Sep 2008
    Posts
    98
    Rep Power
    6

    Default

    @nate.wheeler: thx for the hint from post 21
    greetings from austria
    gregor

  8. #28
    gregor is offline Loyal Member
    Join Date
    Sep 2008
    Posts
    98
    Rep Power
    6

    Default

    hi,

    how can i extend zimbranotify to notify me if a calendar-entry pops up?

  9. #29
    gregor is offline Loyal Member
    Join Date
    Sep 2008
    Posts
    98
    Rep Power
    6

    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?

  10. #30
    internalkernel's Avatar
    internalkernel is offline Active Member
    Join Date
    Mar 2009
    Location
    got root?
    Posts
    26
    Rep Power
    6

    Default

    This thread seems to have gone dormant... but hopefully, someone out there is still listening... This is a great project! and something that is so needed for the linux end.

    I'm getting an Error: 501 can only handle messagesappointmentstasksdocuments

    I've tried SSL on/off, all my packages are properly installed... just at a loss here. Any info would be helpful... thanks again

Page 3 of 5 FirstFirst 12345 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •