Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1016625 // Test GMail Server-Side Search [WORKS]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 557K of libraries. Click here for Pure Java version (1947L/13K).

!7

import com.google.code.javax.mail.search.GmailRawSearchTerm;

static Message[] msgs;

p {
  Folder inbox = googleCode_gmail_inbox();
  inbox.open(Folder.READ_ONLY);
  time {
    // Strangely, there is no option to limit the number of results
    // returned...
    msgs = inbox.search(new GmailRawSearchTerm("Bruno"));
  }
  print("Found " + n2(msgs, "message"));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016625
Snippet name: Test GMail Server-Side Search [WORKS]
Eternal ID of this version: #1016625/10
Text MD5: b91f93ed285530c67cbc1790d83fdca4
Transpilation MD5: e7d0dc0ec0f84ab7736d14b4a285e76e
Author: stefan
Category: javax / mail
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-25 21:49:25
Source code size: 384 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 292 / 798
Version history: 9 change(s)
Referenced in: [show references]