I'd like to get all my imported mail to put its attachments into the attach folder and shrink my mailbase (there's lots and lots and lots of mail and I think that is what is impacting Poco's performance, it is slow to retrieve, slow to search, etc).

FYI--Current The Bat User.

I've been playing with the script (very similar to one at work we use, reverse polish notation and all).

I've found a wealth of scripts on removing attachments, reattaching, and manipulating them (fantastic) but nothing on splitting them off.

In looking at the script, what has got me is how to save it as a file. where is SaveAttachment, or WriteToFile? or some routine similar? It would be a great keyword (SaveAttachment adds an X-poco header, saves the file to X, and removes it from the base if you SaveMessage, yadda, yadda, yadda)

I'd like to get all my imported mail to put its attachments into the attach folder and shrink my mailbase (there's lots and lots and lots of mail and I think that is what is impacting Poco's performance, it is slow to retrieve, slow to search, etc).

FYI--Current The Bat User.

I've been playing with the script (very similar to one at work we use, reverse polish notation and all).

I've found a wealth of scripts on removing attachments, reattaching, and manipulating them (fantastic) but nothing on splitting them off.

In looking at the script, what has got me is how to save it as a file. where is SaveAttachment, or WriteToFile? or some routine similar? It would be a great keyword (SaveAttachment adds an X-poco header, saves the file to X, and removes it from the base if you SaveMessage, yadda, yadda, yadda)

Any help appreciated.

Unfortunately there isn't a SaveAttachment command (yet, it has been requested as an enhancement in Bug Traction). To write to a file use the SaveBody command (I have only used this for text files, I'm not sure if it would work for a binary file).