Our 89 300TE exhibits this behavior on and off.
Check out this site, good technical info and they can fix it too. No affiliation, and no experience with them, just a company that looks like it can help.
http://www.gdl-online.com/begin.html
Brian
89 300TE 165,xxx
84 733i 5speed 145,xxx