by StefanHaupt » Fri Mar 10, 2006 9:13 am
Jose,
you can save the email into a ascii-file and then parse this file into an array. This array you can easily save in a dbf.
This is a sample to do it, depending on the fileformat you have change it, to fit your needs.
[code]
oFile := TTxtFile():New (aFile[i])
IF oFile != nil
DO WHILE !oFile:lEof() // lesen bis Dateiende
cTmp := oFile:ReadLn() // Zeile lesen
IF !EMPTY (cTmp) // Leer ??
IF AT (":",cTmp) > 0 // Neuer Abschnitt ?
cSection := ParseStr (1,":",cTmp)
cData := ALLTRIM (ParseStr (2,":",cTmp))
cData := IIF (EMPTY (cData), "", cData) // nil-Werte abfangen
DO CASE
CASE "RETURN" $ UPPER (cSection)
aMsg[RETURN_PATH] := cData
CASE "DATE" $ UPPER (cSection)
cData+=ParseStr(3,":",cTmp) // Uhrzeit ber