Thread Tools Display Modes
12-01-14, 06:04 PM   #1
darkancient
A Murloc Raider
Join Date: Sep 2011
Posts: 7
[Modification/Suggestion] Automatically deleting Postmaster mails

Hi,

I wanted to share this modification I made for the EasyMail addon which automatically deletes Postmaster mails after removing the attachments.
It would be great if you could incorporate it into the RealUI package. If not then I will leave it here for other interested players.

[Valid for RealUI v8.1 r8a]
Go to Interface\AddOns\EasyMail\EasyMail.lua and replace lines 1085-1087 with:
Code:
if (OpenMailFrame:IsVisible()) then
	local packageIcon, stationeryIcon, sender, subject, money, CODAmount = GetInboxHeaderInfo(CurMail);
	if (sender == "The Postmaster" and subject == "Recovered Item" and AttIndex > ATTACHMENTS_MAX and InboxFrame.openMailID and InboxFrame.openMailID >= 1) then
	  OpenMail_Delete();
	end
	HideUIPanel(OpenMailFrame);
end
  Reply With Quote
12-01-14, 07:34 PM   #2
Gethe
RealUI Developer
 
Gethe's Avatar
Premium Member
Featured
Join Date: Sep 2008
Posts: 942
Good add, though I've made a minor modification to support non english clients, plus Thaumaturge Vashreen.

However, localization for this needs to be hard coded, so if anyone has translations for either one of these senders it would be greatly appreciated.
__________________
Knowledge = Power; Be OP

  Reply With Quote

WoWInterface » Featured Projects » RealUI » [Modification/Suggestion] Automatically deleting Postmaster mails


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off