Thread: Mail API...
View Single Post
03-27-09, 05:49 PM   #6
Yhor
A Pyroguard Emberseer
 
Yhor's Avatar
Join Date: May 2007
Posts: 1,077
Okay, I misunderstood your intention. I think.

The basic thing I want to do is "identify a list of matching messages, then grab all objects and money from them." The second part seems to be the hard part. I have something that works about 80% of the time, but sometimes you have to reset it and try again, and I don't know exactly why. I'm not sure whether there's a viable way to approach this.
So what you're trying to "fix" is when Simplemail makes an attempt to grab all items from the mail, it leaves a few behind? and generally (guessing, from my experience), this happens more frequently when the item count is greater in size (not stacks in a single slot)? If this is true in your case, I'll offer the idea I had as to why this happens.

Non bulk mail, for me, seems to collect almost instantly and grabs items as fast as I can click them or as fast as my mail mod attempts to grab them (I haven't used a mailmod in awhile, my last one was postal (I think). Rarely ever an issue with single item mail.

Bulk mail seemed to have problems grabbing all items, it would appear to skip items and collect the next, very sporadic 'looking' behaviour. After paying close attention to this, I noticed that it actually did not skip the items as it appeared it had, but instead, it was making the action on the items to grab them so fast that it 'got caught' in a time restriction, such as a GCD for mail (I'm not sure there is such a thing, I'm just giving my recollection of what the behaviour looked like).

I wonder if it's possible to put a timer on the 'grab' function to throttle it down enough, to maybe sync up with the server, or whatever the issue may be. And I am curious if what I'm suggesting is even the -real- cause.

I hope I don't sound like a complete idiot, and actually help with my observations. I don't know anything about the mail API: If it sounds completely unreasonable, or if I just don't have enough experience to help, I completely understand you telling me to get lost .

Hopefully someone who -does- know more than me can tear theirselves away from the legalese threads and give something new instead of hashing over the same thing until it's dust in the wind .

~The last part was joking, please bash me in PMs; if you must bash me, don't do it here.
  Reply With Quote