!include once #1015973 // JavaMail /*static Folder imapDefaultFolder() { ret imapDefaultFolder(imapDefaultUser()); } static Folder imapDefaultFolder(S user) { ret imapDefaultFolder(user, findEmailPassword(user)); }*/ static Folder imapDefaultFolder(S host, S user, S pass) ctex { new Properties props; props.setProperty("mail.store.protocol", "imaps"); Session session = Session.getInstance(props, null); Store store = session.getStore(); store.connect(host, user, pass); ret store.getDefaultFolder(); }
Began life as a copy of #1003301
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010554 |
Snippet name: | imapDefaultFolder |
Eternal ID of this version: | #1010554/3 |
Text MD5: | 34f23afb4f39a0735694180f6040107e |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-02 14:14:02 |
Source code size: | 543 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 462 / 483 |
Version history: | 2 change(s) |
Referenced in: | [show references] |