Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.messages.find().snapshot().forEach( function (mail) {
- if (mail.headers.To && mail.headers.To.split) {
- mail.headers.To = mail.headers.To.split(/[ ,]+/);
- db.messages.save(mail);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement