Packages that use WebMail.SessionObject
Package
Description
The SusiMail webapp (mail.war): webmail interface with POP3 and SMTP clients over I2P and local caching.
Uses of WebMail.SessionObject in i2p.susi.webmail
Fields in i2p.susi.webmail declared as WebMail.SessionObjectModifier and TypeFieldDescriptionprivate final WebMail.SessionObjectWebMail.ConnectWaiter._soThe session waiting for the fetch.private final WebMail.SessionObjectWebMail.LoadWaiter._soThe session rendering the page.private final WebMail.SessionObjectWebMail.EmailSender.sessionObjectThe session sending the mail.Methods in i2p.susi.webmail that return WebMail.SessionObjectModifier and TypeMethodDescriptionprivate WebMail.SessionObjectWebMail.getSessionObject(HttpSession httpSession) The session's state, creating it if needed.Methods in i2p.susi.webmail with parameters of type WebMail.SessionObjectModifier and TypeMethodDescriptionprivate static StringBuilderWebMail.composeDraft(WebMail.SessionObject sessionObject, String from, String to, String cc, String bcc, String subject, String text, List<Attachment> attachments) Take the data from the parameters, and put it in a StringBuilder suitable for writing out as a Draft.private static StringBuilderWebMail.composeDraft(WebMail.SessionObject sessionObject, RequestWrapper request) Take the data from the request, and put it in a StringBuilder suitable for writing out as a Draft.WebMail.getCurrentFolder(WebMail.SessionObject session, RequestWrapper request) The folder selected in the request.private static MailCacheWebMail.getCurrentMailCache(WebMail.SessionObject session, RequestWrapper request) The mail cache for the requested folder.private static StringWebMail.getDefaultSender(WebMail.SessionObject sessionObject) The sender string.private static WebMail.StateWebMail.processComposeButtons(WebMail.SessionObject sessionObject, RequestWrapper request) Process buttons of compose message dialog This must be called BEFORE processStateChangeButtons so we can add the attachment before SEND.private static WebMail.StateWebMail.processConfigButtons(WebMail.SessionObject sessionObject, RequestWrapper request, boolean isPOST, WebMail.State state) Processes the config buttons, both entering and exiting the page.private static booleanWebMail.processDownloadLink(WebMail.SessionObject sessionObject, String showUIDL, RequestWrapper request, HttpServletResponse response) Process download link in message view.private static voidWebMail.processDraftAttachmentLink(WebMail.SessionObject sessionObject, RequestWrapper request, HttpServletResponse response) Process thumbnail link in compose view Draft attachments are stored in the SessionObject and identified by hashcode only.private static intWebMail.processFolderButtons(WebMail.SessionObject sessionObject, int page, RequestWrapper request) Process buttons of folder view.private static WebMail.StateWebMail.processGenericButtons(WebMail.SessionObject sessionObject, RequestWrapper request, WebMail.State state) Handle the common folder and message buttons.private static WebMail.StateWebMail.processLogin(WebMail.SessionObject sessionObject, RequestWrapper request, WebMail.State state) Start of state change and button processing: handle the login form, connecting to the mailbox.private static WebMail.StateWebMail.processLogout(WebMail.SessionObject sessionObject, RequestWrapper request, boolean isPOST, WebMail.State state) End the session and show the login page.private static StringWebMail.processMessageButtons(WebMail.SessionObject sessionObject, String showUIDL, RequestWrapper request) Process buttons of message view.private static booleanWebMail.processSaveAsLink(WebMail.SessionObject sessionObject, String showUIDL, RequestWrapper request, HttpServletResponse response) Process save-as link in message view.private static voidWebMail.processSortingButtons(WebMail.SessionObject sessionObject, RequestWrapper request) Applies the sort buttons found in the request.private static WebMail.StateWebMail.processStateChangeButtons(WebMail.SessionObject sessionObject, RequestWrapper request, boolean isPOST, WebMail.State state) Process all buttons, which possibly change internal state.private static voidWebMail.renderNotifications(StringBuilder buf, boolean showRefresh, WebMail.SessionObject sessionObject) Renders the notification banners if needed.private static booleanWebMail.saveDraft(WebMail.SessionObject sessionObject, String uidl, StringBuilder draft) Write out the draft.private static booleanWebMail.saveDraftLocked(Log log, WebMail.SessionObject sessionObject, MailCache toMC, String uidl, StringBuilder draft) Caller must hold the MailCache write lock.private static booleanWebMail.sendAttachment(WebMail.SessionObject sessionObject, MailPart part, HttpServletResponse response, boolean isRaw) Stream one attachment part to the browser.private static booleanWebMail.sendMail(WebMail.SessionObject sessionObject, Draft draft) Take the data from the request, and put it in a StringBuilder suitable for writing out as a Draft.private static booleanWebMail.sendMailSaveAs(WebMail.SessionObject sessionObject, Mail mail, HttpServletResponse response) Send the mail to be saved by the browser.private static voidWebMail.showCompose(PrintWriter out, WebMail.SessionObject sessionObject, RequestWrapper request) Show the compose form.private static voidWebMail.showFolder(PrintWriter out, WebMail.SessionObject sessionObject, MailCache mc, RequestWrapper request) Show the message list for a folder.private static voidWebMail.showLoading(PrintWriter out, WebMail.SessionObject sessionObject, RequestWrapper request) Show the loading page, refreshed by meta tag.private static voidWebMail.showMessage(PrintWriter out, WebMail.SessionObject sessionObject, MailCache mc, String showUIDL, boolean reallyDelete, WebMail.HtmlMode allowHTML) Show one message with its parts.private static WebMail.StateWebMail.threadedStartup(WebMail.SessionObject sessionObject, boolean offline, WebMail.State state, String host, int pop3PortNo, String user, String pass) Starts one thread to load the emails from disk, and in parallel starts a second thread to connect to the POP3 server (unless user clicked the 'read mail offline' at login).private static voidWebMail.waitForLoad(WebMail.SessionObject sessionObject, MailCache mc) Blocking wait, bounded to 5 seconds so a stuck loader cannot hang the servlet thread indefinitely.Constructors in i2p.susi.webmail with parameters of type WebMail.SessionObjectModifierConstructorDescriptionWaits for the mailbox to connect for this session.EmailSender(WebMail.SessionObject so, Draft d, String s, List<String> recip, StringBuilder bod, List<Attachment> att, String b) Prepares to send one draft through SMTP.LoadWaiter(WebMail.SessionObject so, MailCache mc) Waits for the mailbox to load for this session.