Package de.spotnik.gpl.provider

Examples of de.spotnik.gpl.provider.GetSystemPropertyAction


                this.root = new File(mailhome);
            }
        }
        if( this.root == null)
        {
            PrivilegedAction a = new GetSystemPropertyAction("user.name");
            String userhome = (String) AccessController.doPrivileged(a);
            this.root = new File(userhome, "Mail"); // elm
            if( !this.root.exists())
            {
                this.root = new File(userhome, "mail");
View Full Code Here


            {
                PrivilegedAction a;
                if( File.separatorChar == '/')
                {
                    // Try some common (UNIX) locations.
                    a = new GetSystemPropertyAction("user.name");
                    String username = (String) AccessController.doPrivileged(a);
                    inbox = new File("/var/mail/" + username); // GNU
                    if( !inbox.exists())
                    {
                        inbox = new File("/var/spool/mail/" + username);
                        // common alternative
                    }
                }
                if( !inbox.exists())
                {
                    a = new GetSystemPropertyAction("user.home");
                    String userhome = (String) AccessController.doPrivileged(a);
                    inbox = new File(userhome, "Mailbox"); // qmail etc
                }
            }
            return new MboxFolder(this, inbox, true);
View Full Code Here

TOP

Related Classes of de.spotnik.gpl.provider.GetSystemPropertyAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.