

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
34 messages in net.sourceforge.lists.courier-users[courier-users] ctlfile (was: Re: Cou...| From | Sent On | Attachments |
|---|---|---|
| Julian Mehnle | Jan 18, 2005 12:03 pm | |
| Scott | Jan 18, 2005 6:57 pm | |
| Frederik Dannemare | Jan 18, 2005 7:54 pm | |
| Julian Mehnle | Jan 19, 2005 4:00 am | |
| Alexander Lazic | Jan 19, 2005 5:01 am | |
| Julian Mehnle | Jan 19, 2005 7:50 am | |
| Alexander Lazic | Jan 19, 2005 2:07 pm | |
| Jay Lee | Jan 19, 2005 2:23 pm | |
| Gordon Messmer | Jan 19, 2005 3:18 pm | |
| Sam Varshavchik | Jan 19, 2005 3:35 pm | |
| Julian Mehnle | Jan 19, 2005 3:42 pm | |
| Gordon Messmer | Jan 19, 2005 3:56 pm | |
| Sam Varshavchik | Jan 19, 2005 4:07 pm | |
| Mitch (WebCob) | Jan 19, 2005 4:42 pm | |
| Mitch (WebCob) | Jan 19, 2005 4:46 pm | |
| Sam Varshavchik | Jan 19, 2005 5:13 pm | |
| Gordon Messmer | Jan 19, 2005 6:11 pm | |
| Sam Varshavchik | Jan 19, 2005 6:17 pm | |
| Gordon Messmer | Jan 19, 2005 10:38 pm | |
| Alexander Lazic | Jan 20, 2005 2:29 am | |
| Alessandro Vesely | Jan 20, 2005 4:56 am | |
| Mark Bucciarelli | Jan 21, 2005 1:02 pm | |
| Julian Mehnle | Jan 21, 2005 3:03 pm | |
| Julian Mehnle | Jan 24, 2005 8:15 am | |
| Gordon Messmer | Jan 26, 2005 10:51 am | |
| Gordon Messmer | Jan 26, 2005 12:53 pm | .patch |
| Sam Varshavchik | Jan 26, 2005 4:22 pm | |
| Gordon Messmer | Jan 26, 2005 10:46 pm | |
| Alessandro Vesely | Jan 28, 2005 1:49 am | |
| Gordon Messmer | Jan 28, 2005 10:37 am | |
| Bill Long | Jan 29, 2005 3:42 pm | |
| Sam Varshavchik | Jan 29, 2005 4:51 pm | |
| Bill Long | Jan 29, 2005 5:29 pm | |
| Bill Long | Jan 30, 2005 1:23 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | [courier-users] ctlfile (was: Re: Courier::Filter 0.16 | Actions... |
|---|---|---|
| From: | Alessandro Vesely (ves...@tana.it) | |
| Date: | Jan 28, 2005 1:49:41 am | |
| List: | net.sourceforge.lists.courier-users | |
Gordon Messmer wrote:
Sam Varshavchik wrote:
I think that ctlfile should be opened for append mode.
...capital idea. Am I wrong to assume that all of the calls to open() in the openctl() function should have the same flags?
I'm not sure what you mean. And I wonder what sense may have to truncate and append at the same time. (And O_TRUNC is not needed on systems where O_CREAT | O_EXCL make the open fail in case the file already exists.)
[...] - O_WRONLY | O_TRUNC | O_CREAT | O_EXCL, + O_WRONLY | O_TRUNC | O_CREAT | O_EXCL | O_APPEND, PERMISSION);
An lseek(fd, 0, SEEK_END) upon return from the filter should suffice.
To make the question clear to all, I include an example of a cltfile I used to get the first times my filter attempted to write to it. Althought the ctlfile is flushed, its read/write pointer is not adjusted.
| sa...@tana.it | fdns; north (north.tana.it [194.243.254.162]) | e | t | M0003024A.403B5AF6.0000359B | rcou...@north.tana.it | R | N | E1078236505 | | p1077660505 | these 36 bytes overwrite the head of filter's output | W1077646105 | | ... tail of filter's output goes here | ... | A1077632052 | ...
where the first letter on each line is the data type (as defined in comctlfile.h)
N = COMCTLFILE_DSN is written by AddRecipient() that issues a sync(). E = COMCTLFILE_EXPIRES is written by closectl() after filtering. p = COMCTLFILE_FAXEXPIRES ditto W = COMCTLFILE_WARNING ditto A = COMCTLFILE_NEXTATTEMPT is not in submit2.C








.patch