projects
/
org.ibex.mail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
272b3ed
)
path fixes
author
adam
<adam@megacz.com>
Sun, 21 Jan 2007 23:11:17 +0000
(23:11 +0000)
committer
adam
<adam@megacz.com>
Sun, 21 Jan 2007 23:11:17 +0000
(23:11 +0000)
darcs-hash:
20070121231117
-5007d-
f4003ddebcc577cf895e840b2ae9cef87defe916
.gz
src/org/ibex/mail/Main.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/mail/Main.java
b/src/org/ibex/mail/Main.java
index
413800c
..
d8d7562
100644
(file)
--- a/
src/org/ibex/mail/Main.java
+++ b/
src/org/ibex/mail/Main.java
@@
-35,14
+35,16
@@
public class Main implements Listener {
private static final Auth auth = new Auth();
private static class Auth implements Login {
public Account anonymous() {
private static final Auth auth = new Auth();
private static class Auth implements Login {
public Account anonymous() {
- final Mailbox root =
- FileBasedMailbox.getFileBasedMailbox(Mailbox.STORAGE_ROOT + "/user", true).slash("anonymous", false);
- if (root==null) return null;
- return new Account("anonymous", null, root.slash("anonymous", true)){
+ try {
+ final Mailbox root =
+ FileBasedMailbox.getFileBasedMailbox(Mailbox.STORAGE_ROOT + "/list", false);
+ if (root==null) return null;
+ return new Account("anonymous", null, root){
public Mailbox getMailbox(Class protocol) {
return super.getMailbox(protocol);
}
};
public Mailbox getMailbox(Class protocol) {
return super.getMailbox(protocol);
}
};
+ } catch (Exception e) { throw new RuntimeException(e); }
}
public Object login(String user, String pass, Class protocol) { return login(user, pass); }
public Account login(String user, String pass) {
}
public Object login(String user, String pass, Class protocol) { return login(user, pass); }
public Account login(String user, String pass) {