Sam Varshavchik <[EMAIL PROTECTED]> writes:
> Lloyd Zusman writes:
>
>> Sam, is the queue ID really generated within the "submit" process, like
>> the documentation seems to be indicating? If so, could you point me to
>> the code where this is done?
>
> Yes, in courier/submit2.C, SubmitFile::name1stctlfile().
Thank you.
This routine produces a path name whose basename is ...
TTTTTTTTTT.PPPPP.HHHHHHH
... where TTTTTTTTTT is the injection time in decimal
PPPPP is the current pid in decimal
HHHHHHHH is the hostname
However, I'm looking for the actual queue ID, as shown in the mailq
command:
IIIIIIII.TTTTTTTT.PPPPPPPP
... where IIIIIIII is the control file inode in hex
TTTTTTTT is the injection time in hex
PPPPPPPP is the pid in hex
I presume that I can generate this second ID by taking the injection
time and pid from the first ID and converting to hex, and by taking the
hex representation of the inode of the control file whose name is
specified with the full pathname returned by
SubmitFile::name1stctlfile().
Is that correct?
Thanks.
--
Lloyd Zusman
[EMAIL PROTECTED]
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users