What kind of line endings was samba passing through to Linux? Did samba pass through a 1AH character control--z too? Caller-id messages depending on format are specific as to line counts so perl could be used to count lines and save messages correctly even without use of control-z I think.