| 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.
|  | | 
03-05-2009, 08:50 AM
| | | 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 | 
03-05-2009, 08:53 AM
| | Intermediate Member | |
Posts: 15
| | Hello,
I am using Ubuntu 8.10 and I cannot seem to get this to work. I get an error stating: Error: 501 can only handle messagesappointmentstasksdocuments
I used the GTK2::Trayicon and Crypt:SSLeay packages available through synaptic as they seem to be the same versions as those at The CPAN Search Site - search.cpan.org and also seem to satisfy the dependencies. Any ideas? | 
03-05-2009, 08:55 AM
| | Intermediate Member | |
Posts: 15
| | Pretty bizzare! Two nearly identical questions posted within minutes of eachother! | 
03-06-2009, 06:06 AM
| | Project Contributor | |
Posts: 77
| | Hi,
First im going to try to make some time an post the new version of zimbranotify im working on.
The error 501 is coming from the Zimbra Server, it has nothing to do with perl or any perl module, did you make any modification to the script? if is so, what modification did you do? | 
03-06-2009, 07:49 AM
| | Intermediate Member | |
Posts: 15
| | Hi PBruna,
I did not make any modifications to the script. A new version would be great! Please let me know if I can help test anything. | 
03-06-2009, 08:47 AM
| | | Likewise, no modifications... Server side, I have changed the default ports that Zimbra is listening on - since I'm also running Apache on there, it needed to default to different ports.
In preferences, I set the port number with the domain name - mail.example.com:1234 If the port number is not set, the connection just times out... which I would expect. So, it seems to be hitting the Zimbra server at least...
Could this configuration be an issue? Is there a work around?
Thanks for the reply! | 
03-15-2009, 01:15 AM
| | | Very usefull app. Thanx! | 
06-16-2009, 11:39 AM
| | | HTTP Error 501 - can only handle messages/appointments/tasks/documents Hi!
I also got the 501 HTTP error, but was able to find out the cause of the problem. If there is an ampersand (@) in the password, authentication fails because the GET-Request looks like this:
https://user:p@ssword@host.domain/zimbra/home/user/inbox.atom?query=is:unread
Of course this won't work...
The solution is to authenticate using the HTTP::Headers function:
--- zimbranotify.orig 2008-02-14 13:42:07.000000000 +0100
+++ zimbranotify 2009-06-16 18:51:49.000000000 +0200
@@ -707,10 +707,12 @@
my @username = split(/\@/,$user);
my $httpmode = $save_ssl ? "https" : "http";
- my $req_string = "$httpmode://$username[0]:$password\@$server$zimbra_path$user$zimbra_mail_u ri";
+ my $req_string = "$httpmode://$server$zimbra_path$user$zimbra_mail_uri";
$http_status->enqueue($trans{notify_check});
- my $req = HTTP::Request->new(GET => $req_string);
+ my $hdr = new HTTP::Headers;
+ $hdr->authorization_basic($username[0], $password);
+ my $req = HTTP::Request->new("GET", $req_string, $hdr);
my $error;
my $response = $ua->request($req);
Hope this helps... ;-)
Regards,
Daniel | 
07-31-2009, 04:01 AM
| | Intermediate Member | |
Posts: 23
| | Quote:
Originally Posted by pbruna Hi,
First im going to try to make some time an post the new version of zimbranotify im working on. | That's great news, I assume it's the SOAP version.
Looking forward to, I'm sure it's highly sought-after.
Is there any help or support you need?
Thanks,
Störm | | Thread Tools | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |