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

25
LINES

< > BotCompany Repo | #1003712 // Test gandiDefaultFolder

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

Uses 590K of libraries. Click here for Pure Java version (1142L/8K/26K).

!752

!include #1003711

p {
  S user = "stefansbot@futurechat.me";
  S pass = loadSecretTextFileMandatory("gmail-pw").trim();

  listFolders(gandiDefaultFolder(user, pass), "");  
/*
  Folder inbox = gmailDefaultFolder(user, pass).getFolder("[Google Mail]/Sent Mail");
  inbox.open(Folder.READ_ONLY);
  int idx = inbox.getMessageCount();
  print("Loading message " + idx);
  Message msg = inbox.getMessage(idx);
  print("To: " + InternetAddress.toString(msg.getRecipients(Message.RecipientType.TO)));")*/
}

svoid listFolders(Folder folder, S prefix) ctex {
  Folder[] folderList = folder.list();
  for (int i = 0; i < folderList.length; i++) {
    print(prefix + folderList[i].getFullName());
    listFolders(folderList[i], prefix + "  ");
  }
}

Author comment

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: 532 / 589
Referenced in: [show references]