You're right, but note that most store-bought sourdough breads are barely sourdough at all; they're mostly just flavored but don't undergo the traditional fermentation process which takes too long for bread corporations more interested in moving stock. Roman legions actually survived largely off of long-fermented sourdough bread.
There is a variety of science going on, mostly in mice, about how intestinal microbiota (bacteria/parasites/fungi?) can affect behavior, emotion, and mental development (Review paper: The micro-biome gut-brain axis, 2011. Review paper 2009). Does any of it have relevance to those of us who'd like to be better rationalists? I'm just beginning to look into this and I'm not a biologist, so I could use help. I'll reference some interesting papers here and give interesting excerpts.
To start off with something easy to read, here is an excerpt from a press release for this 2011 paper about effects on mice:
Working with healthy adult mice, the researchers showed that disrupting the normal bacterial content of the gut with antibiotics produced changes in behaviour; the mice became less cautious or anxious. This change was accompanied by an increase in brain derived neurotrophic factor (BDNF), which has been linked, to depression and anxiety.
When oral antibiotics were discontinued, bacteria in the gut returned to normal.
"This was accompanied by restoration of normal behaviour and brain chemistry," Collins said.
To confirm that bacteria can influence behaviour, the researchers colonized germ-free mice with bacteria taken from mice with a different behavioural pattern. They found that when germ-free mice with a genetic background associated with passive behaviour were colonized with bacteria from mice with higher exploratory behaviour, they became more active and daring. Similarly, normally active mice became more passive after receiving bacteria from mice whose genetic background is associated with passive behaviour.
While previous research has focused on the role bacteria play in brain development early in life, Collins said this latest research indicates that while many factors determine behaviour, the nature and stability of bacteria in the gut appear to influence behaviour and any disruption, from antibiotics or infection, might produce changes in behaviour.
The writing in the abstract is a lot more abstruse, but perhaps substantially more accurate too. I'd be happy to know if anyone can translate it more accurately than this press release. (E.g. they didn't just transfer bacteria)
Naturally, the experimenters are doing things to the mice they'd never get away with on people, and so less is known about the relevance to humans. For example, normal humans may already have reasonably healthy bacteria. College students, for example, did not have a significant reduction in exam-related anxiety by consuming yogurt rather than placebo [citation]. Nor did healthy 1 to 3 year olds miss less school because by consuming a Gerber product with yogurt [citation].
However, humans with chronic fatigue syndrome who consumed a potent pro-biotic had reduced anxiety (but not reduced depression): [citation]
Interestingly, the ongoing clinical trials don't seem to be following up on this line of treatment, instead focusing mainly on drugs or alternative therapy. The jury seems to still be out in inflammatory bowel disease.
Late-onset autism, is associated with bacterial irregularities [citation] and can respond to oral vancomycin (an antibiotic) [citation].
Going back to mice, these findings indicate that the bacteria that are present during development have a lasting effect:
Hejitz et.al.: Normal gut microbiota modulates brain development and behavior, 2011.
Here, we report that colonization by gut microbiota impacts mammalian brain development and subsequent adult behavior. Using measures of motor activity and anxiety-like behavior, we demonstrate that germ free (GF) mice display increased motor activity and reduced anxiety, compared with specific pathogen free (SPF) mice with a normal gut microbiota. ... Hence, our results suggest that the microbial colonization process initiates signaling mechanisms that affect neuronal circuits involved in motor control and anxiety behavior.
They found that if they "conventionalized" the germ free mice early enough (i.e. if they infected them with the usual bacteria) that they'd be pretty much normal. However, if they tried to do this on adults, it was too late, so the absence of the bacteria during development had an enduring effect on behavior.
Encouraged by the observation that early colonization of GF mice could normalize several behavioral patterns of GF mice, we explored whether there is a sensitive/critical period for the effects of the normal gut microbiota on behavior. We therefore conventionalized adult GF mice and studied their behavior in open field test as described above. Notably, conventionalization of adult mice failed to normalize the behavior of GF mice (Fig. 1F and Fig. S4).
Conversely, if the animal is subjected to stress, this can change the composition of microbiota. [citation]
Whew. That's a lot of material. And there's still so much more to find out. Let me know what you find, or what you think the next experiment should be.
DISCLAIMER: I am not an expert in medicine. Nothing here should be construed as medical advice. See your doctor.