|
|
|
|
![]() ![]() |
Jun 18 2005, 08:08 PM
Post
#11
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 147 Joined: 2-June 05 From: Klass-World Member No.: 7,802 |
How bout a 2 for 1, he joined Trap17 for this but now he can help out at http://www.antilost.com also.
I am eagerly waiting for the source to use on my webpage. Do we need to specificly email like http://www.dcrez.co.uk/create/gmail/gmail.php?q=index says or will it be posted somewhere? |
|
|
|
Jun 19 2005, 12:13 PM
Post
#12
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 351 Joined: 19-October 04 From: India Member No.: 1,824 |
Thats great work...
congrats to evilguru... nice idea by BuffaloHELP. Its so bad that I dont know php, but let me see if I can do something similar with jsp/servlets. I might give it a try next month, a lil busy at the job currently. nyways, keep up the good work... Cheers. |
|
|
|
Jun 19 2005, 12:48 PM
Post
#13
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 10 Joined: 17-June 05 Member No.: 8,371 |
Hello, you can find the source code for the program here: http://www.dcrez.co.uk/create/gmail/gmail.zip
It has been tested on PHP 4.3.11 (red hat) and PHP 5.0.4 (win, IIS). To use it all you need to do is edit Gmail.php replacing <user> and <pass> with your Gmail user name and password for the storage account you will be using (there is NO way for the user to ever see your Gmail user name or password as it is all server side). The system itself is very simple, it searches your Gmail account for a conversation in which the subject is the same as a $_GET['q'] argument (mails which have not been read yet are returned as <b><subject></b>, so I strip the <b> tags first). I use an edited version of the open source libgmailer 0.7a (http://gmail-lite.sourceforge.net/index2.html#gmailer), with the changes being to how attachments are handled, libgmailer by default overides the CURL output settings, getting it to write to a file so I have changed this back to the CURL default (browser) and commented out some session stuff. There are still some changes to made (eg page support needs to be a bit better). Hope you all like it |
|
|
|
Jun 19 2005, 02:38 PM
Post
#14
|
|
|
Ancient Enigma ![]() Group: [MODERATOR] Posts: 1,753 Joined: 11-July 04 From: under the stars Member No.: 76 |
thanks for sharing your work with us, evilguru!
do you have a development site for this? hope you can get one up. better to have one to track updates and comments. QUOTE(evilguru @ Jun 19 2005, 08:48 PM) Hello, you can find the source code for the program here: http://www.dcrez.co.uk/create/gmail/gmail.zip
It has been tested on PHP 4.3.11 (red hat) and PHP 5.0.4 (win, IIS). To use it all you need to do is edit Gmail.php replacing <user> and <pass> with your Gmail user name and password for the storage account you will be using (there is NO way for the user to ever see your Gmail user name or password as it is all server side). The system itself is very simple, it searches your Gmail account for a conversation in which the subject is the same as a $_GET['q'] argument (mails which have not been read yet are returned as <b><subject></b>, so I strip the <b> tags first). I use an edited version of the open source libgmailer 0.7a (http://gmail-lite.sourceforge.net/index2.html#gmailer), with the changes being to how attachments are handled, libgmailer by default overides the CURL output settings, getting it to write to a file so I have changed this back to the CURL default (browser) and commented out some session stuff. There are still some changes to made (eg page support needs to be a bit better). Hope you all like it |
|
|
|
Jun 19 2005, 02:49 PM
Post
#15
|
|
|
"Betsuni" ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,023 Joined: 9-April 05 From: Japan Member No.: 5,445 |
Wow! That's a useful tip. The only thing is I doubt I'll ever have the time to actually do this task...not to mention I'm still at the beginning stages of learning php.
|
|
|
|
Jun 19 2005, 04:03 PM
Post
#16
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 424 Joined: 13-July 04 Member No.: 87 |
Quite interesting. Cool challenge. But I think this would not work. Why I say so? This is because if this were possible, Google would go burst. I'm sure Google hires experts to help prevent this from happening. Furthermore, the storage space is most likely share resource, which means the space might not be there.
Despite saying this, I would stick to this thread and see how it goes. I might be proven wrong. -Shackman |
|
|
|
Jun 19 2005, 04:44 PM
Post
#17
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,438 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
I know that evilguru is working on zip attachment files. I tried mpg file and it showed up as decoded text strings (no streaming or downloading mpg file). Perhaps it's in the libgmailer somewhere to tell how to handle such files?
|
|
|
|
Jun 19 2005, 06:47 PM
Post
#18
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 10 Joined: 17-June 05 Member No.: 8,371 |
The problem itself is not with libgmailer, but with how the browser handles appliction/xxxx streams, as these can not be 'shown' in the browser so it takes to download them. With a zip file it will download it under the name gmail.php and if you have any text-editors associtated with .php files it will try to open it in them (as it thinks it is downloading a .php file due to the extension .php). I believe there are ways to get past this problem and am looking into them. The same is true of mpg files.
I have just added support for different users, but it is still in very early stages. If you would like to use it go to: http://www.dcrez.co.uk/create/gmail/account.php and 'create' an account (in which the information is added to a MySql database), then to view it you can do http://www.dcrez.co.uk/create/gmail2.php?id=<your handle>&q=<subject of email> where <your handle> is the handle of the account you created and <subject of email> is the subject of the conversation in which to read the first attachment from. Still got a fair bit of work to do on it however. |
|
|
|
Jun 20 2005, 03:28 AM
Post
#19
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 205 Joined: 17-June 05 Member No.: 8,330 |
Well, if they can make a Gmail filesystem I dont see why this cant be done.
|