Very few accurate tests have ever been performed on this subject. Actually, I would even go so far as to say that no accurate test has yet been performed.
The closest test to being an accurate one for 15th century mail was performed by Alan Williams in The Knight and the Blast Furnace. He tested both a 15th century piece of mail and a replica of it made by Erik Schmid (one of the best makers of replica mail), and found that both resisted thrusts from a spear, a blow from a halberd and an arrow quite well, although the original mail and the padding underneath was penetrated fully at 120j, which is within the range of the Mary Rose longbows (and whether or not those are accurate in a 15th century context is not a can of worms I want to open).
With that said, the test was not performed using an arrow, but with a simulated arrowhead and, I believe, a drop machine. The dynamics of an arrow are very different, as the flexing of the shaft can reduce penetration. We also don't know whether the rings were hardened, if they were all riveted, or what kind of steel they were made from, so it's not possible to apply these results backwards in time to earlier mail.
What we can know for certain is that the arrows of the Saracens were not particularly useful against mail. We have references to crossbowmen in the Third Crusade with numerous arrows sticking out of their mail or gambesons who were entirely unaffected, and we have gems like this paragraph from Jean de Joinville:
Once when they flung it at us, it fell close beside the tortoise-tower that my Lord of Courtenay's men were guarding, and buried itself in the river bank. And presently comes a knight, named " the Albigensis," and: "Sir," says he to me, "unless you help us, we are all burnt; for the Saracens have let fly so many of their fire-darts, that it is just like a great hedge all ablaze bearing down on our turret." We jumped up, and hurried to the spot, and found that he had spoken the truth. We put out the fire, and before we had got it under, we were covered from head to foot with the fire-darts that the Saracens shot across the river.
I'm not well read enough to know of a similar source referring to the ability or inability of Western arrows or crossbow bolts to penetrate mail, but it probably depended a great deal on the range, the angle, the type and quality of the mail and the energy of the arrow. The same would apply to thrusts from sword or spear. Obviously it must have done some good against them or else it would have been abandoned and, likewise, it can't have been perfect or there would not have been a need to reinforce it first with leather, then replace it with plate armour.
Another commented has already done an excellent job answering the question. They did mention that few or no accurate tests have been conducted, which I agree with. To elaborate though, here are a few common issues with tests so you can make a more informed judgement next time you see a video about it:
Finally, let's forget the science and think in terms of common sense. Essentially every person who was able to afford mail used it. There was virtually no debate that its protection was worth the added weight. Its widespread use over a huge area and a great period of time is proof of its effectiveness. On the other hand, if it was utterly impenetrable then there would be no point in the later development and use of plate armor.