Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General Discussion » View Thread |
Messages 1 to 1 of 1 total |
Anyone suggest a better way |
Tue, Dec 2 2008 9:38 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | With the email part of my app I'm going to do a wadge of antispam tests befor downloading the body of the email. Those that survive will have the encoded email stored in iemInbound. A separate background process will decode them and do some sorting out. This background thread will be started before the email download is finished so more emails might be added to iemInbound as its processing. I've come up with the idea below so that I (hopefully) catch these.
iemInbound.Filter := 'NOT _DecodeProblem'; iemInbound.Filtered := True; iemInbound.First; while not iemInbound.RecordCount > 0 do begin iemInbound.First; try except MakeLogEntry(ltDecodeProblem, MainIn, 'Decode problem encountered', nil, logDecodingError); iemInbound.Edit; iemInbound.FieldByName('_DecodeProblem').AsBoolean := True; iemInbound.Post; end; end; Any better ideas? Roy Lambert |
This web page was last updated on Thursday, March 28, 2024 at 06:05 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |