if _G.MailFrame then
	ApplyCloseButton(MailFrameCloseButton)

	MailFrame.PortraitContainer.CircleMask:Hide()

	MailFramePortrait:SetSize(61, 61)
	MailFramePortrait:ClearAllPoints()
	MailFramePortrait:SetPoint("TOPLEFT", -6, 8)

	ApplyTitleBg(MailFrame)
	ApplyNineSlicePortrait(MailFrame)

	MailFrameTab2:ClearAllPoints()
	MailFrameTab2:SetPoint("LEFT", MailFrameTab1, "RIGHT", -8, 0)

	for i = 1, 2 do
		ApplyBottomTab(_G['MailFrameTab'..i])

		_G["MailFrameTab"..i]:HookScript("OnShow", function()
			MailFrameTab1:SetWidth(45 + MailFrameTab1:GetFontString():GetStringWidth())
			MailFrameTab2:SetWidth(40 + MailFrameTab2:GetFontString():GetStringWidth())
		end)
	end

	SendMailScrollFrame.ScrollBar:SetSize(25, 560)
	SendMailScrollFrame.ScrollBar:ClearAllPoints()
	SendMailScrollFrame.ScrollBar:SetPoint("TOPLEFT", SendMailScrollFrame, "TOPRIGHT", 3, 3)
	SendMailScrollFrame.ScrollBar:SetPoint("BOTTOMLEFT", SendMailScrollFrame, "BOTTOMRIGHT", 6, -2)

	ApplyScrollBarArrow(SendMailScrollFrame.ScrollBar)
	ApplyScrollBarTrack(SendMailScrollFrame.ScrollBar.Track)
	ApplyScrollBarThumb(SendMailScrollFrame.ScrollBar.Track.Thumb)
end

if _G.OpenMailFrame then
	ApplyCloseButton(OpenMailFrameCloseButton)

	OpenMailFrame.PortraitContainer.CircleMask:Hide()

	OpenMailFramePortrait:SetSize(61, 61)
	OpenMailFramePortrait:ClearAllPoints()
	OpenMailFramePortrait:SetPoint("TOPLEFT", -6, 8)

	ApplyTitleBg(OpenMailFrame)
	ApplyNineSlicePortrait(OpenMailFrame)

	OpenMailScrollFrame.ScrollBar:SetSize(25, 560)
	OpenMailScrollFrame.ScrollBar:ClearAllPoints()
	OpenMailScrollFrame.ScrollBar:SetPoint("TOPLEFT", OpenMailScrollFrame, "TOPRIGHT", 3, 3)
	OpenMailScrollFrame.ScrollBar:SetPoint("BOTTOMLEFT", OpenMailScrollFrame, "BOTTOMRIGHT", 6, -2)

	ApplyScrollBarArrow(OpenMailScrollFrame.ScrollBar)
	ApplyScrollBarTrack(OpenMailScrollFrame.ScrollBar.Track)
	ApplyScrollBarThumb(OpenMailScrollFrame.ScrollBar.Track.Thumb)
end