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

15
LINES

< > BotCompany Repo | #1003711 // gandiDefaultFolder

JavaX fragment (include)

lib 1003225 // (JavaMail)

import javax.mail.*;
import javax.mail.internet.*;

static Folder gandiDefaultFolder(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("mail.gandi.net", user, pass);
  
  ret store.getDefaultFolder();
}

Author comment

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, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003711
Snippet name: gandiDefaultFolder
Eternal ID of this version: #1003711/1
Text MD5: b2b0228ea7e651bb9dbc5d36f886cd16
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-26 02:04:50
Source code size: 400 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 504 / 698
Referenced in: #1003712 - Test gandiDefaultFolder
#1007891 - imapCheckConnection