Sam Varshavchik wrote:

It's always safe to append more stuff to the control file. Whether it's safe to rewrite it from scratch is something I need to think about.

At the time submit calls run_filter, that's not true. "ctlfile" is open and the write pointer will indicate the end of the file. If a filter adds data to the control file, that pointer does not change, so anything that submit writes to the file will overwrite the records that were added by the filter.


I've tried calling closectl() and openctl(), but that causes submit to create a new control file, which is messy (and may crash submit; submitting a new message didn't work and I didn't spend a lot of time tracking down the problem I'd created).

ctlfile doesn't seem to support a seekp() method that can jump to the end of the file.

Do you have any suggestions regarding what sort of change you'd be most willing to accept which would allow me to make changes to the ctlfile from a filter program?


------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to