Exemplo n.º 1
0
        private bool LoadMessage()
        {
            StoreObjectId storeObjectId = QueryStringUtilities.CreateItemStoreObjectId(base.UserContext.MailboxSession, base.Request, false);

            if (storeObjectId != null)
            {
                base.Item = (this.message = Utilities.GetItem <MessageItem>(base.UserContext, storeObjectId, new PropertyDefinition[0]));
                return(false);
            }
            string formParameter  = Utilities.GetFormParameter(base.Request, "hidid", false);
            string formParameter2 = Utilities.GetFormParameter(base.Request, "hidchk", false);

            if (Utilities.IsPostRequest(base.Request) && !string.IsNullOrEmpty(formParameter) && !string.IsNullOrEmpty(formParameter2))
            {
                storeObjectId = Utilities.CreateStoreObjectId(base.UserContext.MailboxSession, formParameter);
                base.Item     = (this.message = Utilities.GetItem <MessageItem>(base.UserContext, storeObjectId, formParameter2, new PropertyDefinition[0]));
            }
            if (this.message == null)
            {
                string queryStringParameter = Utilities.GetQueryStringParameter(base.Request, "email", false);
                if (!string.IsNullOrEmpty(queryStringParameter))
                {
                    StoreObjectId storeObjectId2 = null;
                    if (MailToParser.TryParseMailTo(queryStringParameter, base.UserContext, out storeObjectId2))
                    {
                        storeObjectId = storeObjectId2;
                        base.Item     = (this.message = Utilities.GetItem <MessageItem>(base.UserContext, storeObjectId, new PropertyDefinition[0]));
                    }
                }
            }
            return(true);
        }
Exemplo n.º 2
0
        // Token: 0x060020D7 RID: 8407 RVA: 0x000BD350 File Offset: 0x000BB550
        protected override void OnLoad(EventArgs e)
        {
            string queryStringParameter = Utilities.GetQueryStringParameter(base.Request, "exdltdrft", false);

            if (!string.IsNullOrEmpty(queryStringParameter))
            {
                this.DeleteExistingDraft = true;
            }
            string queryStringParameter2 = Utilities.GetQueryStringParameter(base.Request, "fId", false);

            if (queryStringParameter2 != null)
            {
                this.targetFolderId = OwaStoreObjectId.CreateFromString(queryStringParameter2);
            }
            if (base.Item == null)
            {
                string queryStringParameter3 = Utilities.GetQueryStringParameter(base.Request, "email", false);
                if (!string.IsNullOrEmpty(queryStringParameter3))
                {
                    StoreObjectId mailboxItemStoreObjectId = null;
                    if (MailToParser.TryParseMailTo(queryStringParameter3, base.UserContext, out mailboxItemStoreObjectId))
                    {
                        base.OwaContext.PreFormActionId = OwaStoreObjectId.CreateFromMailboxItemId(mailboxItemStoreObjectId);
                        this.DeleteExistingDraft        = true;
                    }
                }
            }
            string queryStringParameter4 = Utilities.GetQueryStringParameter(base.Request, "fRABcc", false);

            this.isReplyAllBcc = (0 == string.CompareOrdinal("1", queryStringParameter4));
        }