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

12
LINES

< > BotCompany Repo | #1003302 // Test gmailDefaultFolder with sent mail (show last recipient)

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

Uses 590K of libraries. Click here for Pure Java version (1270L/9K/30K).

1  
!752
2  
3  
p {
4  
  S user = "stefan.reich.maker.of.eye";
5  
  
6  
  Folder inbox = gmailDefaultFolder(user).getFolder("[Google Mail]/Sent Mail");
7  
  inbox.open(Folder.READ_ONLY);
8  
  int idx = inbox.getMessageCount();
9  
  print("Loading message " + idx);
10  
  Message msg = inbox.getMessage(idx);
11  
  print("Last msg sent to: " + InternetAddress.toString(msg.getRecipients(Message.RecipientType.TO)));
12  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003302
Snippet name: Test gmailDefaultFolder with sent mail (show last recipient)
Eternal ID of this version: #1003302/1
Text MD5: cc4c839fcafaa5b1ae68312cde55d52c
Transpilation MD5: b938a4a95ddd32594e2e28675b52176b
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-16 23:30:27
Source code size: 391 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 564 / 674
Referenced in: [show references]