|Index > Scribe > Script problem: MoveThing always moves mail to Trash|
|Author/Date||Script problem: MoveThing always moves mail to Trash|
|I'm trying to use MoveThing to organize mail, but it doesn't work.
The script is:
if (Mail.From.Name.Find("BitsDuJour") >= 0)
Fd = GetFolder("/news/BitsDuJour");
When filtering unread email, the unread count for the target folder appears to increase by the number of email that is being moved into it. Clicking on the target folder causes the count to revert to its previous value and the mail is not present in the target folder.
The mail can only be found in the Trash. The unread count of the Trash folder does not indicate any new unread mail until the Trash folder is selected. At this point, the count increases by the number of filtered messages, indicating that all of the mail that was moved went into the Trash (generally not the most desirable target).
|I had a look at this recently and couldn't reproduce the issue you're seeing. That's not to say I don't believe you but I will need to add some more logging to the filtering code and see if that hilights where the problem really is.
I don't have a lot of time this month, mostly holidays and so on. I just thought you'd like to hear an update, and that I haven't been ignoring you.
|Thanks for the update. Is that enhanced logging part of build 65?|
|No I didn't get to add that in.|
|I thought I would try this again.
It is no longer trashing the email, but it doesn't move the email either.
When filtering a selected email, it flashes a message box on the screen and then moves to the next email in the folder.
Does the MoveThing function still work? I'm using v2.8 release beta8.
|I've got this working now. Another filter was moving it back again.|