반응형

g4j - GMail API for Java

GMailer API for Java (g4j) is set of API that allows Java programmer to communicate to GMail. With G4J programmers can made Java based application that based on huge storage of GMail.

An Email application, GMailer for Java is also built to demonstrate the usage of the API. It is planned to include minimalist email capabilities such as browse, search, read, send mail and download attachment.

This software is distributed in GNU General Public Lincense (GPL).

Download

The g4j package includes the library, the Email application and javadocs. The g4j-deps package is required if you want to compile g4j. Current version of API is 0.3.12 and Email application is 0.3.4.

For latest source code you can Browse CVS Repository or get the CVS by:

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/g4j login

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/g4j co src

Check the project statistics, woo we've made 10000+ lines of code in a month!

Release Notes 0.3.12

G4J finally support the new contact list interface! (read only)

Matthias fix bug in GMailer that scroll the message to bottom. He have also added open browser function, the links in messages now clickable!

You would need Java Runtime Environment (JRE) to run this software, download it in http://java.sun.com/

To use the software, run g4j.bat on Windows or g4j.sh on Unix. To Use the library include the g4j-lib.jar in your programs.

If you encounter error message: "sun.security.validator.ValidatorException: No trusted certificate found" while connecting gmail, please read the solution.

This program is developed mainly in Windows XP & 2000, it have not been tested on other platforms. If you encounter any problem please post a message in project support page.

G4J

Set of API that allows Java programmer to communicate to GMail. API is avaliable online.

  • Version 0.3.11 - (15-Oct-2004)
    Fixed: Support the new gmail contact interface, GMContact structure changed, new function GMConnector.getContact() replace old requestContact()
  • Version 0.3.10 - (7-Oct-2004)
    Added: GMConnector.fetchOriginalMail(String id) added, download original mail source from gmail
    Added: Preliminary support of send mail.
    Bugfix: "Drafts" mail now being prased correctly
  • Version 0.3.9 (5-Oct-2004)
    Update: GMail new mailbox "Drafts" supported
  • Version 0.3.4 (27-Sep-2004)
    Features: With multi-threaded http client, single connector can send multiple request at the same time
    Features: Parse the java script redirection in request()
  • Version 0.3.3 (22-Sep-2004)
    Bug Fix: Correctly parse escaped characters such as ' " < > \n and \r;
    Features: Implement missing "message body" packets in entries in conversation
  • Version 0.3 (18-Sep-2004)
    API to download conversation and open attachment as InputStream
  • Version 0.2
    API to retrive threads from mailbox/label and search message
  • Version 0.1
    API to connect to GMail

GMailer for Java

Minimalist Email client that retive email from Gmail.

Features:

  • Check and monitor mailboxes
  • Read mail
  • Search mail
  • Minimized to SysTray in Windows and Linux KDE3
  • Message saved to local disk and can be read later offline
  • Version 0.3.4
    (16-Oct-2004)
    Added: Open gmail home page (like original gmail notifier)
    Added: Open links in message
    Bugfix: Scroll to buttom when open a message
  • Version 0.3.3
    (15-Oct-2004)
    Added: Search messages
    Bugfix: Show offline message list correctly
    Bugfix: Click the sys tray icon before the program completely loaded, the program would popup and behave strangly
    Enhance: new toolbar buttons for better looks, across different platform/LAF
  • Version 0.3.2
    (7-Oct-2004)
    Added: Debug console
    Bugfix: Fix the problem that when exit without login, the software might not exiting properly.
    Bugfix: "Drafts" mail now being displayed correctly
  • Version 0.3.1
    (5-Oct-2004)
    Update: GMail new mailbox "Drafts" supported
  • Version 0.3 (3-Oct-2004)
    - BUGFIX: Reformat the message pane so that user can use mouse wheel to scroll message content.
    - ENHANCEMENT: improved performance to apply a LAF
  • Version 0.3-pre3 (1-Oct-2004)
    - FEATURES: Look and Feel chooser avaliable in option, features JGoodies Look and feel and theme
    - ENHANCEMENT: Show or hide message content using a better method, preformance improved
    - BUGFIX: Correctly disable menu items/toolbar buttons
  • Version 0.3-pre2 (27-Sep-2004)
    If a message is already downloaded, now GMailer read message from local disk instead of download again
    With multi-threaded g4j api and rewritten usage of threads, the general performance is improved
    Correct the tooltips of the systray icon
  • Version 0.3-pre1 (26-Sep-2004)
    Save data to local drive, the programs now can work offline to read downloaded message.
    Rewrite UI, now looks more comfortable. Add serveral icons, partly from Eclipse and others are draw by me.
  • Version 0.21 (22-Sep-2004)
    Open message body (partly)
  • Version 0.2 (18-Sep-2004)
    Added support of minimized to SysTray in Windows and KDE3; Support of auto connect and check message and various UI fix (18-Sep-2004)
  • Version 0.1
    This version connect to GMail and listing mailboxes. Searching, Viewing email and download attachment would be included in future release.

Acknowledgement

This project is inspried and motivated by GMailer for PHP and Gmail Agent API , their great works make me want to have an Java Implementation of their kind. Their open sources also made the understanding of GMail's protocol much easier, Thank You!

This project is not possible without following open source softwares:

  • Apache Jakarta Commons HTTPClient to access web page
  • Apache Jakrata Commons Codec to decode email
  • SysTray for Java to make the System Tray tricks
  • SIXBS (Simple XML Bean Serialization) from tagtraum industries, for saving document in XML
  • JGoodies for better UI looks
  • Concurrent Utilities from Doug Lea
  • BeanShell for embbed scripting engine
  • Eclipse for their nice icons
  • Google for their GMail, of course

Support and Contribution

If you have any problem, opinion, or software that built on g4j, please tell me via email or Sourceforge Forum!

Thanks Teodor and Samanth to join this project! They would help me to make GMailer more usable and I can focus more on the G4J API.

If you can join us, send me an email. You can also browse the todo list and give us suggestions!

Related Projects

  • Rishabh made gavamail , a POP3 inetrface for gmail in Java

About Me

I am a tiny programmer in a big enterprise in Hong Kong.

Read my blog in www.siuying.net ( Chinese Content )

[출처] g4j - GMail API for Java|작성자 후니


반응형
다른 분들의 블로그를 보다가 성격테스트라고 해서 한번 해보았다.

그다지 맞을꺼 같진 않지만 이거 의외로 나하고 비슷한 면이 있는듯 하다.

특히 마지막 부분이.... 그다지 좋아하고 싫어 하는 구분이 모호한거 같다.. 특히 예체능쪽은..

일단 링크를   http://idsolution.co.kr/?mode=home

객관적이고 메마른, 비주류의 영역

“램프를 만들어 낸 것은 어둠이었고, 나침반을 만들어 낸 것은 안개였고, 탐험을 하게 만든 것은 배고픔이었다.” – 빅토르 위고

 

이곳은 질서정연한 인과관계, 철두철미한 결단력, 깔끔하고 가벼운 것을 좋아하는, 사심 없는 취향을 위한 공간입니다.

 

군중심리, 오빠부대, 순정 신파극, 삼각관계 멜로 드라마, 현실감각 없는 낭만주의자, 성형 연예인, 취향이나 종교를 강요하는 인간들은 이곳에서 제거될 것입니다. 

 

이 영역에 속하는 사람들에는 다음과 같은 특징들이 있습니다 

  • 남들이 뭘 하던 기본적으로 무관심한 편. 멀리 떨어져 객관적으로 사물을 바라보는 것을 좋아함
     
  • 현실 세계에선 까다로운 비주류이지만, 인터넷에선 불만 가득한 주류 계층을 형성함
     
  • 간결하고 논리적이고 특이한 것을 선호. 일단은 뭔가 새롭고 독창적인 것을 원하지만 자신이 아는 상식과 논리에 벗어나는 것은 싫어함
     
  • 대체로 좋아하고 싫어하는 것에 기준이 모호해서 대중적인 영화 소설 음악에 끌리기도 함.
반응형

이클립스 내에서도 메신저를 사용할 수 있다고 하네요.

업무 틈틈히 메신저를 켜지 않고도 이클립스를 통해 메신저가 가능하니 편할꺼 같네요.

그리고 농땡이 부리는 것 같이 보이지도 않으니... +_+

자 설명을 시작하도록 하죠.

일단 메뉴의 Help > Software Updates 에서 Available Software 탭을 선택하고
Add Site 버튼을 눌러서 http://download.eclipse.org/rt/ecf/2.1/3.4/updateSite/site.xml 을 추가
이클립스 3.4에서 돌아가는 2.1버전의 ECF를 설치 하면 하면된다.

다를 이클립스 버전은 http://www.eclipse.org/ecf  참고



MSN과 IRC default로 지원하고 , Jabber API를 사용하는 구글토크는 XMPP 항목을 이용하면 된다.

참고로 스카이프는 default 에서 빠져 있으므로 위와 같은 방법으로 추가 하면 된다.
http://ecf1.osuosl.org/update/2.0/site.xml



Communications 퍼스펙티브의 툴바를 보면 각 메신저 항목들을 확인할수 있다.


MSN 메신저에 로그인 해보자.


로그인된 화면이다.


여기서 대화하고자 하는 상대를 더블클릭하면 채팅창이 뜬다.


그리고 참고로 Skype 메신저를 사용하기 위해서는 프로그램이 설치되어 있어야 한다.
Skype 메신저에 로그인 한 다음 이클립스에서 Skype 로그인 할 경우 실행중인 스카이프에 신호가 온다.

이러헤 인증을 해부면 eclipse에서 사용이 가능하다.

관련 정보
http://www.okjsp.pe.kr/seq/131593 okjsp techtrend article
ECF; Eclipse Communication Framework
http://www.eclipse.org/ecf
http://download.eclipse.org/rt/ecf/2.1/3.4/updateSite/site.xml

skype provider (맥용만 없음)
http://ecf1.osuosl.org/update/2.0/site.xml
dev wiki
http://wiki.eclipse.org/index.php/Skype_Provider
skype java api
https://developer.skype.com/wiki/Java_API

+ Recent posts