View Full Version : Gmail Issues


jakethewus
07-13-2005, 07:02 AM
After a bit of a fight with our ISP we have got gmail downloader installed and created a filter as per the readme.txt

Gmail shows a test email with a attachment and body txt goes to that filter

But we get this issues

syntax error at gmail.cgi line 77, near ") ">$_</a><BR>""
Execution of gmail.cgi aborted due to compilation errors.

Code is gmail.cgi is

Content();
print "File List<P>";
foreach $key (keys %files) {
@file = split(/\,/,$files{$key});
foreach (@file) {

print "<a href=$url?Get_File&$key&" . uri_escape($_) ">$_</a><BR>";

Jafo
07-13-2005, 03:09 PM
Sounds like your version is corrupted as that is now how that line appears in the distrobution, you may want to re-upload it. Line should look like:
print "<a href=$url?Get_File&$key&" . uri_escape($_) . ">$_</a><BR>";

jakethewus
07-13-2005, 05:03 PM
Ok uploaded and modified the gmail.cgi and error has disappeared

New errror now

unable to login 500 Can't locate object method "new" via package "LWP::Protocol::https::Socket"


Any furher advice please?

Jafo
07-13-2005, 05:06 PM
You need the LWP module.

jakethewus
07-13-2005, 06:00 PM
Thanks my ISP told us that it was installed I will ask them to install it for us and see.

jakethewus
07-14-2005, 02:36 AM
Ok ISP has installed and its now go thru but we get

"unable to login Problem getting js_version, password incorrect? "

Checked the password and username all correct

Made a filter under google and create "myfiles" updated the gmail.cgi

jakethewus
07-14-2005, 04:43 PM
Still have no real idea of the issue above any one have this error before?

jakethewus
07-17-2005, 12:56 AM
Bump Please Would really like to use this script if some one could help us?

jakethewus
07-17-2005, 08:35 PM
Any one?

Ok ISP has installed and its now go thru but we get

"unable to login Problem getting js_version, password incorrect? "

Checked the password and username all correct

Made a filter under google and create "myfiles" updated the gmail.cgi

jakethewus
07-18-2005, 06:29 PM
Bump Please Would really like to use this script if some one could help us?

jakethewus
07-22-2005, 07:10 PM
Bump Please Would really like to use this script if some one could help us?

johnhb
07-23-2005, 01:44 AM
have installed the same script and got the same error message:

"unable to login Problem getting js_version, password incorrect? "

and after trying 2 times got the message:

unable to login unknown error (module not smart enough)

So I am not sure what is wrong...all data (login and password) are entered correctly.

jakethewus
07-23-2005, 08:08 AM
Yes we have the same correct user name and password???

Does any one have any ideas?

jakethewus
07-24-2005, 03:32 PM
We have been posting here for over a week to get a relpy for gmail downloader issues. We know this is a free script but has any one got it to actually work or got support for it? We dont mean to complain but to see it working would incourage us to actually buy the other scripts. Our site has over 30 scripts in total,

Please can some one tell us what the error means or if they have actually got gmail downloader to work?

Jafo
07-25-2005, 05:02 AM
My guess is, unless your username and password are wrong, you probably have to upgrade the Gmail.pm file to the latest version.

Located here:

http://search.cpan.org/src/XANTUS/WWW-GMail-0.05/GMail.pm

jakethewus
07-25-2005, 07:12 PM
Still have this issue

"unable to login Problem getting js_version, password incorrect? "


Downloaded the latest version GMail.pm

http://search.cpan.org/src/XANTUS/WWW-GMail-0.05/

User Name and Password Correct and checked


if ($res->is_success) {
$self->{debug} && print STDERR "Request success\n";
$content = $res->content;

if ($content =~ m/top.location\s=\s"([^"]+)";/) {
$self->{debug} && print STDERR "Got login cookie\n";
$self->{debug} && print STDERR "Saving cookie jar\n";

# make sure we save our cookies
$self->{jar}->save();

$self->{debug} && print STDERR "Requesting cookie check\n";

# load the CheckCookie url
#PersistentCookie=yes
# $req = HTTP::Request->new(GET => 'https://www.google.com/accounts/CheckCookie?service=mail&continue=http%3A%2F%2Fgmail.google.com%2Fgmail&chtml=LoginDoneHtml');
$req = HTTP::Request->new(GET => 'https://www.google.com/accounts/'.$1);

$res = $self->{ua}->request($req);
delete $self->{http_status_line};
if ($res->is_success) {
$self->{debug} && print STDERR "Request success\n";
$content = $res->content;
# TODO check content?
$req = HTTP::Request->new(GET => 'http://www.google.com/');
$res = $self->{ua}->request($req);

return 1 if ($self->js_version());
} else {
$self->{error} = $res->status_line;
}
} elsif ($content =~ m/Username and password do not match/i) {
$self->{debug} && print STDERR "Username and/or password do not match\n";
$self->{error} = "Username and/or password do not match";
return -1;
} else {
$self->{debug} && do {
open(FH,">/tmp/gmail-debug.txt");
print FH $content;
close(FH);
print STDERR "Uknown error, content dumped to /tmp/gmail-debug.txt\n";
};
$self->{error} = "unknown error (module not smart enough)";
}
} else {
$self->{debug} && print STDERR "Request failure error[".$res->status_line."]\n";
$self->{error} = $res->status_line;
}

$self->{debug} && print STDERR "login() error...\n";

return 0;
}


Also not debug file is written

return 1 if ($self->js_version());
} else {
$self->{error} = $res->status_line;
}
} elsif ($content =~ m/Username and password do not match/i) {
$self->{debug} && print STDERR "Username and/or password do not match\n";
$self->{error} = "Username and/or password do not match";
return -1;
} else {
$self->{debug} && do {
open(FH,">/tmp/gmail-debug.txt");
print FH $content;
close(FH);
print STDERR "Uknown error, content dumped to /tmp/gmail-debug.txt\n";

Jafo
07-25-2005, 07:13 PM
Dunno what to tell you, the module is throwing the error, perhaps you should contact the module writer.

raidedguy
07-30-2005, 04:14 AM
I really hate putting this view of the problem into the air, but the folks at google are verry smart, it is possible that they found a way to deny access to the script... if this error is happening alot, i have seen them in the past make it so that non-browser applications that try and get on cause the account to be blocked for 24 hours...