Thread Tools Display Modes
11-15-14, 11:18 AM   #1
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Mail: Auto Remove empty Massages

Is there an addon to Auto Remove the empty messages? I get spamed with items/gold I did not loot and it always comes with a Text - so when I take the item it stays in my Mail.

I'm currently using easymail.
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________

Last edited by Tonyleila : 11-15-14 at 12:01 PM.
  Reply With Quote
11-15-14, 01:11 PM   #2
Darxon
A Warpwood Thunder Caller
AddOn Compiler - Click to view compilations
Join Date: Jan 2007
Posts: 93
Thumbs up

Been looking for an addon that does this to
__________________
  Reply With Quote
11-17-14, 01:03 AM   #3
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Any news on this awful plague?
A "remove all Massages without Items" Button woud be ok too.
Is it even possible? Is there realy no addon yet?

__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
11-18-14, 11:42 AM   #4
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
Lua Code:
  1. local postmaster = {
  2.     ['Der Postmeister'] = true,
  3.     ['The Postmaster'] = true,
  4. }
  5. local f=CreateFrame("Frame")
  6. f:SetScript("OnEvent", function(self,event)
  7.     for i=GetInboxNumItems(),1,-1 do
  8.         local packageIcon, stationeryIcon, sender, subject, money, CODAmount, daysLeft, hasItem, wasRead, wasReturned, textCreated, canReply, isGM =GetInboxHeaderInfo(i)
  9.         if(postmaster[sender]) then
  10.             if(money and money >0) then
  11.                 TakeInboxMoney(i)
  12.             end
  13.             if(hasItem) then
  14.                 for j = 1, ATTACHMENTS_MAX_RECEIVE do
  15.                     local name, texture, count, quality, canUse = GetInboxItem(i, j)
  16.                     if(name) then
  17.                         TakeInboxItem(i,j)
  18.                     end
  19.                 end
  20.             end
  21.             C_Timer.After(5, function() DeleteInboxItem(i) end)
  22.         end
  23.     end
  24. end
  25. f:RegisterEvent("MAIL_INBOX_UPDATE")

You can alter the timer to fit your latency. Not sure if it would work to delete it without the delay.

Lua Code:
  1. C_Timer.After(5, function() DeleteInboxItem(i) end)
__________________
The cataclysm broke the world ... and the pandas could not fix it!

Last edited by Rilgamon : 11-18-14 at 11:46 AM.
  Reply With Quote
11-18-14, 01:56 PM   #5
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Thank you, but the code you posted did not do anything for me. Did I do something wrong? What is it supposed to do? Have you tested it?
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
11-18-14, 02:47 PM   #6
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
In theory it loops through the postmaster-mails and takes the money, the items and waits a few seconds before it tries to delete the mail. Sometimes it works, sometimes not ... with only a few mails it worked, with 12 mails it failed.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
11-20-14, 02:32 AM   #7
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Sooo anyone has an idea how to fix it so that it works 100%?

Maybe a keybind or even a Button to delete a Mail that dosen't have items with it

Please!
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________
  Reply With Quote
11-20-14, 02:42 AM   #8
Kkthnx
A Cobalt Mageweaver
 
Kkthnx's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2011
Posts: 247
Its worked for me everytime. No issues so far.
__________________
Success isn't what you've done compared to others. Success is what you've done compared to what you were made to do.
  Reply With Quote
11-20-14, 04:40 AM   #9
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
My guess is a combination of server lag, processing power and disk drive speed is responsible for the randomness. But it could also be my limited programming skills ;-)
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
11-20-14, 04:45 AM   #10
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
Originally Posted by Tonyleila View Post
Maybe a keybind or even a Button to delete a Mail that dosen't have items with it

Please!
I thought everyone has Postal installed or I would have mentioned it earlier. It comes with such a button for each mail.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
11-20-14, 12:07 PM   #11
elcius
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Sep 2011
Posts: 75
Lua Code:
  1. /run DM=DM or C_Timer.NewTicker(0.5,function()for i=1,50 do local _,_,_,_,m,_,_,e = GetInboxHeaderInfo(i)DeleteInboxItem((e or m>0) and 0 or i)end end)
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Mail: Auto Remove empty Massages

Thread Tools
Display Modes

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