Mahmood and Dart were both given extended sentences and will serve two-thirds of their prison terms rather than half, and will spend five years on licence.
Dart refused to stand when he was sentenced, saying: "I don't wish to stand up, I believe ruling and judging is only for Allah."
The judge said that they were all "committed fundamentalists" who would have been prepared to kill.
He told Dart and Mahmood:
I'm satisfied to the required criminal standard that neither of you had ruled out an attack in the United Kingdom, and that you, Mahmood, were looking at arming yourself with a bomb.
More top news
Dozens of African-American former agents will receive $24 million in settlement of a class-action lawsuit alleging racial discrimination.
The case was triggered by wheelchair user Doug Paulley who boarded a bus but could not get on because a pram was in the wheelchair space.
A dog which recovered from being stabbed by her owner for urinating on a bag of cannabis has had to be put to sleep.