1 | lib 1400087 // gimap |
2 | |
3 | import com.google.code.javax.mail.*; |
4 | import com.google.code.javax.mail.internet.*; |
5 | import com.google.code.com.sun.mail.imap.*; |
6 | |
7 | static Folder googleCode_gmailDefaultFolder() { |
8 | ret googleCode_gmailDefaultFolder(gmailDefaultUser()); |
9 | } |
10 | |
11 | static Folder googleCode_gmailDefaultFolder(S user) { |
12 | ret googleCode_gmailDefaultFolder(user, findGMailPassword(user)); |
13 | } |
14 | |
15 | static Folder googleCode_gmailDefaultFolder(S user, S pass) ctex { |
16 | new Properties props; |
17 | props.setProperty("mail.store.protocol", "imaps"); |
18 | |
19 | Session session = Session.getInstance(props, null); |
20 | |
21 | URLName urlName = new URLName("imap.gmail.com"); |
22 | IMAPSSLStore store = new IMAPSSLStore(session, urlName); |
23 | |
24 | store.connect("imap.gmail.com", user, pass); |
25 | |
26 | ret store.getDefaultFolder(); |
27 | } |
Began life as a copy of #1003301
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: | #1016626 |
Snippet name: | googleCode_gmailDefaultFolder |
Eternal ID of this version: | #1016626/8 |
Text MD5: | 53db1a6ca9ff3d358b993325d2038e2b |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-25 21:52:11 |
Source code size: | 809 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 400 / 473 |
Version history: | 7 change(s) |
Referenced in: | [show references] |