Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Reading "New Email Message" Infos from GMail to Gcommunity?

Quote Reply
Reading "New Email Message" Infos from GMail to Gcommunity?
Hello All:

How can I read "New Email Message" Information from Gmail to Gcommunity's home?

Please give some directions.
Thank you, peter
Quote Reply
Re: [pyc] Reading "New Email Message" Infos from GMail to Gcommunity? In reply to
Hi,

Just to confirm, you want to display if a user has new mail inside of Community?

If so, it will take a global with some custom programming. Something like:

Code:
sub {
my $gmail_id = shift;
my $db = GT::SQL->new("/path/to/gmail/data/admin/defs");
my $count = $db->table('msgtrack')->count( {
msgtrack_userid => $gmail_id,
msgtrack_folderid => 1,
msgtrack_status => 'New'
});
return $count;
}

and you need to pass in the gmail user id.

Hope that helps,

Alex
--
Gossamer Threads Inc.