After all these years, I still never managed to get a definitive answer to this question: what kind of miles can you earn on a codeshare flight where the marketing and operating carriers are not common partners in (almost) any mileage program? For example, for a flight from Zurich to Tel Aviv that has a Swiss flight number, but is actually operated by El Al, can you earn:
1) ...Star Alliance miles?
2) ...Matmid points?
3) ...only miles from a program that is partners with both El Al AND Swiss, such as South African?
4) ...no miles whatsoever of any type?
If anyone has any actual experience (or at least first-hand knowledge) that they can share - not just guesswork and speculation - I would really appreciate it.
Thanks!