A senior Sun news editor and reporter have gone on trial accused of paying a "secret police informant" for tips.
The newspaper's then head of news, Chris Pharo, and district reporter Jamie Pyatt were allegedly involved in a corrupt relationship with a Surrey police officer.
Between 2002 and 2011, the officer received about £10,000 from the newspaper, a jury at the Old Bailey was told yesterday.
Prosecutor Julian Christopher QC told jurors that during the course of his duties, the officer, identified as 2044, passed on details about incidents, arrests and celebrities.
He also had access to the police computer system to find out more information about stories, the court heard.
The lawyer said: "In short, he became the Sun's secret paid informant within Surrey police."
The overall picture was clear and undisputed he told the jury, adding that it was for jurors to decide if what the officer did amounted to misconduct and whether, by paying him, either or both of the defendants were "knowingly encouraging" the corrupt relationship.
The jury heard that in emails to Pharo, his boss, Pyatt, who worked in the Thames Valley area, referred to his tipster as "my senior Surrey police contact … an excellent contact".
By 2011, Pyatt was describing him as being invaluable if any news broke in Surrey, Christopher said.
Pyatt allegedly made 18 requests for cash payments for his contact.
Christopher said: "The prosecution suggest that the evidence includes emails which make it abundantly plain that Chris Pharo knew that Jamie Pyatt was requesting payments for a police officer who had provided information which he should not have been providing and in that knowledge, allowed cash to be paid.
"Whether or not he passed on to those above him the fact that this was a payment to a serving police officer for police information may not be apparent but whether he did or not, we are concerned in this case with what he did and his state of mind when he did it."
In many cases, Pyatt sent payment requests to Pharo, so there could be "no doubt" that the senior journalist knew it was for a police officer, he added.
Pharo did not have the ultimate say in whether money was paid out, but would assess how much a source should get for a contribution to a particular story.
Christopher told the jury: "This was cash to be paid to a serving police officer in proverbial brown envelopes for providing information which everybody knew he was not allowed to provide."
When he was interviewed by police, Pyatt said he had never paid a police officer.
However, Christopher said it was now accepted to have been a lie.
Pharo, 46, from Sandhurst, Kent and Pyatt, 52, from Windsor, deny aiding and abetting misconduct in a public office between 22 April, 2002, and 12 January, 2011.
Christopher told jurors that Pyatt's first contact with the officer might have dated back to 2000 and a story about a rape allegation against singer Mick Hucknall.
Then in April 2002, he allegedly paid the officer for a story about murdered schoolgirl Milly Dowler which was headlined "Milly body found".
A month later, the prosecution alleged, the same officer was a source for a follow up story headlined "Milly man held".
But Pyatt disputes both instances, the court was told.
There followed three payments related to "trophy rapist" Tony Imiela leading to an article in March 2004, the court heard.
In September of that year, Pyatt allegedly claimed for a collect picture of "quadruple killer" Daniel Gonzalez.
Documents also showed the reporter put in expenses for meeting the officer for lunch in Windsor to pick up witness statements about two Surrey Police officers accused of raping a woman they were supposed to help, the court heard.
The trial, which is expected to last up to four weeks, continues.
Email pged@pressgazette.co.uk to point out mistakes, provide story tips or send in a letter for publication on our "Letters Page" blog