Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Unknown method GMail::Messages::date_get_gm

Quote Reply
Unknown method GMail::Messages::date_get_gm
My Gmail installation has been running flawlessly for several months now, in fact I haven't touched it for weeks. All of a sudden it started throwing this yesterday every time incoming.pl runs:

Unknown method GMail::Messages::date_get_gm at /home/webmail/cgi-bin/admin/GMail/Messages.pm line 162.

Nothing has changed that I know of and certainly nothing was going on when this started happening. All settings appear to be intact and Gmail seems to run fine otherwise (sends mail, can browse online, just nothing coming in). Some quick help would be greatly appreciated.

thanks,
Michael Coyne
seaturtle.org
Quote Reply
Re: [mcoyne] Unknown method GMail::Messages::date_get_gm In reply to
Interesting, I deleted the first message in the gmail mailbox on the server and it ran fine after that, so something about the message must have been screwing up incoming.pl. Unfortunately I didn't make a copy, but I believe I can get a copy out of my arcives if anyone at GT would like to take a look. Seems like pretty bad mojo, maybe a malformed message bringing down GMail?
Michael Coyne
seaturtle.org
Quote Reply
Re: [mcoyne] Unknown method GMail::Messages::date_get_gm In reply to
Psuedo-related problem (in that it involves incoming.pl). That last fix only resulted in the download of 23 or so of 74 back-logged messages. Then I got the verbose output pasted below. After I upped the limit for the account that incoming choked on it worked fine. Seems like it had problems bouncing a large message and failed?


GMail (4557): Connecting to POP server domain.com. at /home/webmail/batch/incoming.pl line 307.
GT::Mail::POP3 (4557): Attempting to connect .. at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 280.
GT::Mail::POP3 (4557): Connected to domain.com on port 110 at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 292.
GT::Mail::POP3 (4557): Going to login at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 314.
GT::Mail::POP3 (4557): Attempting to log in via clear text ... at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 362.
GT::Mail::POP3 (4557): --> USER user at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 152.
GT::Mail::POP3 (4557): <-- +OK User name accepted, password please at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 178.
GT::Mail::POP3 (4557): --> PASS password at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 152.
GT::Mail::POP3 (4557): <-- +OK Mailbox open, 51 messages at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 178.
GT::Mail::POP3 (4557): --> STAT at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 152.
GT::Mail::POP3 (4557): <-- +OK 51 131958 at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 178.
GT::Mail::POP3 (4557): STAT successful - count: 51 size: 131958 at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 499.
GT::Mail::POP3 (4557): Login successful. at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 381.
GMail (4557): 51 message(s) on server. at /home/webmail/batch/incoming.pl line 317.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT * FROM users WHERE email = 'admin@localhost' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT * FROM dgraph WHERE ( dgraph_userid = '1' ) at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT COUNT(*) FROM dgraph WHERE dgraph_userid = '1' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT COUNT(*) FROM folders WHERE folders_userid = '1' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::Mail::POP3 (4557): --> LIST at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 152.
GT::Mail::POP3 (4557): <-- +OK Mailbox scan listing follows at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 178.
GT::Mail::POP3 (4557): 51 messages listed. at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 524.
GMail (4557): Parsing the header of message number 1. at /home/webmail/batch/incoming.pl line 480.
GT::Mail::POP3 (4557): Getting head of message 1 ... at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 391.
GT::Mail::POP3 (4557): --> TOP 1 0 at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 152.
GT::Mail::POP3 (4557): <-- +OK Top of message follows at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 178.
GT::Mail::POP3 (4557): Top of message 1 retrieved. at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 406.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT password FROM users WHERE email = 'username@domain.com' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT password FROM users WHERE email = 'username@domain.com' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GMail (4557): Looking at (username@domain.com) from the 'To' line at /home/webmail/batch/incoming.pl line 572.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT * FROM users WHERE email = 'username@domain.com' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT * FROM dgraph WHERE ( dgraph_userid = '29' ) at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT COUNT(*) FROM dgraph WHERE dgraph_userid = '29' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT COUNT(*) FROM folders WHERE folders_userid = '29' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT COUNT(*) FROM msgtrack WHERE msgtrack_userid = '29' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT * FROM filter WHERE filter_userid = '29' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::Mail::POP3 (4557): Getting message 1 ... at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 424.
GT::Mail::POP3 (4557): --> RETR 1 at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 152.
GT::Mail::POP3 (4557): <-- +OK 1032 octets at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 178.
GT::Mail::POP3 (4557): Message 1 retrieved. at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 443.
GT::Mail::Parse (4557): Type is (text), Subtype is (plain) at /home/webmail/cgi-bin/admin/GT/Mail/Parse.pm line 293.
GT::Mail::Parse (4557): Decoding single part. at /home/webmail/cgi-bin/admin/GT/Mail/Parse.pm line 335.
GT::Mail::Parse (4557): No Boundries. at /home/webmail/cgi-bin/admin/GT/Mail/Parse.pm line 357.
GT::Mail::Parse (4557): Not reparsing. at /home/webmail/cgi-bin/admin/GT/Mail/Parse.pm line 364.
GT::Mail::Parse (4557): Decoding 7bit at /home/webmail/cgi-bin/admin/GT/Mail/Parse.pm line 368.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT msgs_size,msgs_mid FROM msgs WHERE msgs_checksum = '2512828a8a9f49ccd3e06ebb4b33adbf' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GMail (4557): Inserting message for userid (username@domain.com). at /home/webmail/batch/incoming.pl line 664.
GT::SQL::Driver::MYSQL (4557): Preparing query: INSERT INTO msgtrack (msgtrack_look,msgtrack_account,msgtrack_mid,msgtrack_fid,msgtrack_userid,msgtrack_status,msgtrack_id) VALUES ('clear','0','22902','1','29','New',NULL) at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT email,userid,users_space_used FROM users WHERE userid = '29' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: UPDATE users SET users_space_used = users_space_used + 1018 WHERE userid = '29' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GMail (4557): Looking at (username@domain.com) from the 'To' line at /home/webmail/batch/incoming.pl line 572.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT * FROM users WHERE email = 'username@domain.com' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT * FROM dgraph WHERE ( dgraph_userid = '2' ) at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT COUNT(*) FROM dgraph WHERE dgraph_userid = '2' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GT::SQL::Driver::MYSQL (4557): Preparing query: SELECT COUNT(*) FROM folders WHERE folders_userid = '2' at /home/webmail/cgi-bin/admin/GT/SQL/Driver/MYSQL.pm line 35.
GMail (4557): Validation: Message size (2096268) brings the user over there max limit (2000000.00) at /home/webmail/batch/incoming.pl line 608.
GMail (4557): Bouncing message, it is too big. at /home/webmail/batch/incoming.pl line 613.
GMail (4557): Bouncing message. at /home/webmail/batch/incoming.pl line 752.
Can't call method "set" on an undefined value at /home/webmail/batch/incoming.pl line 764.
GT::Mail::POP3 (4557): --> QUIT at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 152.
GT::Mail::POP3 (4557): <-- +OK Sayonara at /home/webmail/cgi-bin/admin/GT/Mail/POP3.pm line 178.
Michael Coyne
seaturtle.org
Quote Reply
Re: [mcoyne] Unknown method GMail::Messages::date_get_gm In reply to
What version of Gossamer Mail are you running? The line numbers in the errors don't seem to match up with 2.0.6 code. Have you made any changes to the code?

Adrian
Quote Reply
Re: [brewt] Unknown method GMail::Messages::date_get_gm In reply to
The admin says version 2.0.6-Upgrade. And yes, I have made some modifications to the code to get it to handle BCCs and some maillists better.

See this post for changes to incoming.pl:
http://www.gossamer-threads.com/...orum.cgi?post=185881

I added $head->split_field('X-Envelope-To') at line 513.

I've made the changes to Messages.pm mentioned here:
http://www.gossamer-threads.com/...orum.cgi?post=185963

SooooCrazy
Line 162 in Messages.pm is now the line in sub AUTOLOAD:
die "Unknown method GMail::Messages::$attrib";

And Line 764 in incoming.pl is now the line in sub bounce:
$h->set('X-Reason' => $reason);

I also just noticed that there are about 1200 or so files built up in my ..data/users/ADMIN/bounce directory, each with header info and an X-Reason: xxx. Should it be storing these or does that mean they are not really getting bounced?

thanks,
Michael Coyne
seaturtle.org
Quote Reply
Re: [mcoyne] Unknown method GMail::Messages::date_get_gm In reply to
In Reply To:
Unknown method GMail::Messages::date_get_gm at /home/webmail/cgi-bin/admin/GMail/Messages.pm line 162.
Not sure why that's happening, but date_get_gm is a GT::Date method. Is there a "user GT::Date ..." line near the top of GMail/Messages.pm?

In Reply To:
$h->set('X-Reason' => $reason);
Looking at the output from incoming.pl, it looks like it hasn't parsed the mail header, before it tries to bounce it. I made an account go over their limit and it's parsing the mail before bouncing, so it will be fixed in 2.1 Smile. I'd probably have to look at the code and take a look at the system to debug the problem. If it's not a big problem, just wait for 2.1 (very soon!).

In Reply To:
I also just noticed that there are about 1200 or so files built up in my ..data/users/ADMIN/bounce directory, each with header info and an X-Reason: xxx. Should it be storing these or does that mean they are not really getting bounced?
incoming.pl stores them there until outgoing.pl is run. outgoing.pl is the one that actually does the bouncing. Is your outgoing.pl running (on a regular basis)?

Adrian
Quote Reply
Re: [mcoyne] Unknown method GMail::Messages::date_get_gm In reply to
Just to let you know, the changes that you have made (incoming.pl, and Messages.pm) have been implemented into 2.1 (with some modifications though).

Adrian
Quote Reply
Re: [brewt] Unknown method GMail::Messages::date_get_gm In reply to
In Reply To:
Not sure why that's happening, but date_get_gm is a GT::Date method. Is there a "user GT::Date ..." line near the top of GMail/Messages.pm?

Yeah, it's got use GT::Date qw/date_transform date_get timegm timelocal/;. Hmm, do I need to add date_get_gm to that list?

In Reply To:
Looking at the output from incoming.pl, it looks like it hasn't parsed the mail header, before it tries to bounce it. I made an account go over their limit and it's parsing the mail before bouncing, so it will be fixed in 2.1 Smile. I'd probably have to look at the code and take a look at the system to debug the problem. If it's not a big problem, just wait for 2.1 (very soon!).

OK, no big deal, this is the first time it's happened so I'll just wait.

In Reply To:
incoming.pl stores them there until outgoing.pl is run. outgoing.pl is the one that actually does the bouncing. Is your outgoing.pl running (on a regular basis)?

I have outgoing.pl set to run every 15 minutes, but I just noticed that my copy outgoing.pl has no bytes (ie the file is empty)Crazy. Go figure. It may have happened during install because the file mod date is before my last GM upgrade, unless something else is going on. Can you send me a copy of outgoing.pl so I can drop it in?

thanks,
Michael Coyne
seaturtle.org
Quote Reply
Re: [mcoyne] Unknown method GMail::Messages::date_get_gm In reply to
In Reply To:
Hmm, do I need to add date_get_gm to that list?
nope. Does this happen all the time?

The outgoing.pl from 2.0.6 is attached.

Adrian
Quote Reply
Re: [brewt] Unknown method GMail::Messages::date_get_gm In reply to
In Reply To:
Does this happen all the time?

Nope, this is the first time I've noticed it after several months of use.

In Reply To:
The outgoing.pl from 2.0.6 is attached.

Thanks for the file. It parsed through a few of the bounces and then came up with a new error. It gives this as it parses through each file:
Code:
Argument "" isn't numeric in gt at /home/webmail/cgi-bin/admin/GT/Mail.pm line 158.
Argument "" isn't numeric in gt at /home/webmail/cgi-bin/admin/GT/Mail.pm line 158.
Argument "" isn't numeric in gt at /home/webmail/cgi-bin/admin/GT/Mail/Parse.pm line 94.
Unsuccessful stat on filename containing newline at /home/webmail/cgi-bin/admin/GT/Template/Parser.pm line 113.

then:

Code:
Argument "" isn't numeric in gt at /home/webmail/cgi-bin/admin/GT/Mail.pm line 158.
A fatal error has occured:
GT::Mail::Send (19400): SMTP: Unspecified communications error: '501 5.5.4 Domain name required for sender address
'. at /home/webmail/cgi-bin/admin/GT/Mail.pm line 298.

Please enable debugging to find more information about this error
I'm travelling right now and verbose and degug output gives too much for me to deal with with my slow connection and laptop. Unless what I've included so far helps I'll have to deal with this later or just wait for v2.1.

FWIW, it seems like each time I run outgoing.pl it parses through a few files, giving the first set of errors I pasted above, then bails with the second error (see attached file). Each time a few more files disappear from the bounce directory. So maybe it's timing out or running out of memory or some such?
Michael Coyne
seaturtle.org