Bulk mail sending made really easy
This is a maintained version of the original BulkMail2 that you can find over at curse.com
dhedbor has been good enough to take over the project on curse.com and upgrade the addon to use Ace3 based libraries.
Please begin to migrate to the curse.com version, once that is in a release status I will be deleting this version on wowI.
local itype, isubtype = select(6, GetItemInfo(itemID))
for dest, rules in pairs(rulesCache) do
if dest ~= UnitName("player") and (rules[itemID] or rules[itype] and rules[itype][isubtype]) then canddest = dest end
if dest == UnitName("player") then canddest = nil end -- added by me
if canddest then
local xrules = autoSendRules[canddest].exclude
for _, xID in ipairs(xrules.items) do if itemID == xID then canddest = nil end end
for _, xset in ipairs(xrules.pt31Sets) do
if pt:ItemInSet(itemID, xset) == true then canddest = nil end
rdest = canddest or rdest