Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: how to log message headers in log file / raw text file?
PostPosted: 2010-01-15 06:53 
New user
New user

Joined: 2009-11-12 16:06
Posts: 11
Hi

I want to write one VC++ application OR VB Script which can find unread mails [mails which are not downloaded by client] for particular account and write that data in one log file.

How can I extract message header for each message for particular account?

Any help is appreciated.

Regards,

Yogesh


Top
 Profile  
 
 Post subject: Re: how to log message headers in log file / raw text file?
PostPosted: 2010-01-18 21:20 
Developer

Joined: 2003-11-21 01:09
Posts: 6394
Location: Sweden
You could write a custom scripts in the OnAcceptMessage event (using VBScript) to extract the headers and log them to a file.

It's tricky to log to a text file though, since you have to take into multi-threading into account. (What happens if two messages are received at the same time and hMailServer tries to log both of them to file at the same time).


Top
 Profile  
 
 Post subject: Re: how to log message headers in log file / raw text file?
PostPosted: 2010-01-19 08:56 
New user
New user

Joined: 2009-11-12 16:06
Posts: 11
Hi Martin,

Thank you for your response. I am beginner for vbscripts with hmailserver. can you please provide any sample script for the same?

OnAcceptMessage() is based on any events? is there any documentation available for this api?


Top
 Profile  
 
 Post subject: Re: how to log message headers in log file / raw text file?
PostPosted: 2010-01-19 14:50 
Moderator
User avatar

Joined: 2007-06-14 05:12
Posts: 9385
Location: 'The Outback' Australia
http://www.hmailserver.com/documentatio ... ce_scripts

_________________
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
Documentation


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest



Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group