streams-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfrank...@apache.org
Subject [4/6] git commit: STREAMS-174 | Change google4j to the latest release and update the mechanism for fetching e-mails to a mechanism supported in that release
Date Wed, 24 Sep 2014 18:21:59 GMT
STREAMS-174 | Change google4j to the latest release and update the mechanism for fetching e-mails
to a mechanism supported in that release


Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/5c76c174
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/5c76c174
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/5c76c174

Branch: refs/heads/master
Commit: 5c76c1742ae9f0b5fcf97633797a13d902d544a0
Parents: 0759b49
Author: Stanton Sievers <ssievers@w2odigital.com>
Authored: Tue Sep 16 14:54:26 2014 -0400
Committer: Stanton Sievers <ssievers@w2odigital.com>
Committed: Tue Sep 16 14:54:26 2014 -0400

----------------------------------------------------------------------
 .../streams-provider-google/google-gmail/pom.xml     |  2 +-
 .../google/gmail/provider/GMailImapProviderTask.java | 15 +--------------
 2 files changed, 2 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/5c76c174/streams-contrib/streams-provider-google/google-gmail/pom.xml
----------------------------------------------------------------------
diff --git a/streams-contrib/streams-provider-google/google-gmail/pom.xml b/streams-contrib/streams-provider-google/google-gmail/pom.xml
index a277e5d..05d3709 100644
--- a/streams-contrib/streams-provider-google/google-gmail/pom.xml
+++ b/streams-contrib/streams-provider-google/google-gmail/pom.xml
@@ -70,7 +70,7 @@
         <dependency>
             <groupId>com.googlecode.gmail4j</groupId>
             <artifactId>gmail4j</artifactId>
-            <version>0.5-SNAPSHOT</version>
+            <version>0.4</version>
         </dependency>
     </dependencies>
 

http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/5c76c174/streams-contrib/streams-provider-google/google-gmail/src/main/java/com/google/gmail/provider/GMailImapProviderTask.java
----------------------------------------------------------------------
diff --git a/streams-contrib/streams-provider-google/google-gmail/src/main/java/com/google/gmail/provider/GMailImapProviderTask.java
b/streams-contrib/streams-provider-google/google-gmail/src/main/java/com/google/gmail/provider/GMailImapProviderTask.java
index e17dfda..2beeb88 100644
--- a/streams-contrib/streams-provider-google/google-gmail/src/main/java/com/google/gmail/provider/GMailImapProviderTask.java
+++ b/streams-contrib/streams-provider-google/google-gmail/src/main/java/com/google/gmail/provider/GMailImapProviderTask.java
@@ -46,20 +46,7 @@ public class GMailImapProviderTask implements Runnable {
     @Override
     public void run() {
 
-        Calendar calendar = new GregorianCalendar();
-
-        calendar.set(Calendar.YEAR, 2000);
-        calendar.set(Calendar.MONTH, 0);
-        calendar.set(Calendar.DAY_OF_MONTH, 0);
-        calendar.set(Calendar.HOUR, 0);
-        calendar.set(Calendar.MINUTE, 0);
-        calendar.set(Calendar.SECOND, 0);
-        calendar.set(Calendar.MILLISECOND, 0);
-
-        final List<GmailMessage> messages = this.provider.imapClient.getMessagesBy(
-                GmailClient.EmailSearchStrategy.DATE_GT,
-                calendar.getTime().toString()
-        );
+        final List<GmailMessage> messages = this.provider.imapClient.getUnreadMessages();
 
         for (GmailMessage message : messages) {
 


Mime
View raw message