Uses 590K of libraries. Click here for Pure Java version (1142L/8K/26K).
1 | !752 |
2 | |
3 | !include #1003711 |
4 | |
5 | p { |
6 | S user = "stefansbot@futurechat.me"; |
7 | S pass = loadSecretTextFileMandatory("gmail-pw").trim(); |
8 | |
9 | listFolders(gandiDefaultFolder(user, pass), ""); |
10 | /* |
11 | Folder inbox = gmailDefaultFolder(user, pass).getFolder("[Google Mail]/Sent Mail"); |
12 | inbox.open(Folder.READ_ONLY); |
13 | int idx = inbox.getMessageCount(); |
14 | print("Loading message " + idx); |
15 | Message msg = inbox.getMessage(idx); |
16 | print("To: " + InternetAddress.toString(msg.getRecipients(Message.RecipientType.TO)));")*/ |
17 | } |
18 | |
19 | svoid listFolders(Folder folder, S prefix) ctex { |
20 | Folder[] folderList = folder.list(); |
21 | for (int i = 0; i < folderList.length; i++) { |
22 | print(prefix + folderList[i].getFullName()); |
23 | listFolders(folderList[i], prefix + " "); |
24 | } |
25 | } |
Began life as a copy of #1003302
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003712 |
Snippet name: | Test gandiDefaultFolder |
Eternal ID of this version: | #1003712/1 |
Text MD5: | b4deecb3925a16525f66d63c8683d216 |
Transpilation MD5: | d29639fb39b7a715f511467008a71a69 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-26 02:14:33 |
Source code size: | 771 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 533 / 590 |
Referenced in: | [show references] |