All same item auto fill, mailbox macro broken, please help repair

Can someone repair this macro please? It stopped working with the dragonflight expansion.

/run local I,n=1;for i=1,12 do I=I+(GetSendMailItem(i)and 1 or 0)i,n=GameTooltip:GetItem()n=n:match"Hitem:%d+:“end for b=0,4 do for s=1,32 do if(GetContainerItemLink(b,s)or”"):find(n)then PickupContainerItem(b,s)ClickSendMailItemButton(I)I=I+1 end end end

what did this macro do?
at the mailbox it filled the “send mail” tab with all of one specific item from your bags, for example all the linen cloth in your bags

how did it work?
you hover an item in your bags for example linen cloth, then click the macro and it would fill the “send mail” tab with all the linen cloth in you bags
(I think for some reason you had to be on the “inbox” tab for the macro to work and then switch to the “send mail” tab to see the result, but I think that was just when you key pressed the macro so it did not fill the recipient name with the key pressed)

I miss this macro, it was very useful to me.

thanks

Postal has something similar if you want an addon solution.

Unfortunately the Postal addon’s Quickattach and Express features won’t let you select just one specific item (for example only linen cloth), it fills the mail with all similar items found in your bag.

I used this makro, too.

It’s really sad it doesn’t work anymore, help pls.

Some stuff was moved over to the C_Container namespace:
https://wowpedia.fandom.com/wiki/Category:API_namespaces/C_Container

Untested and over 255

/run local I,n=1;for i=1,12 do I=I+(GetSendMailItem(i)and 1 or 0)i,n=GameTooltip:GetItem()n=n:match"Hitem:%d+:"end for b=0,4 do for s=1,32 do if(C_Container.GetContainerItemLink(b,s)or""):find(n)then C_Container.PickupContainerItem(b,s)ClickSendMailItemButton(I)I=I+1 end end end
1 Like

Tyvm.

10/c