Pegasus Mail Suggestions
WM_FM_TIMER?

Another suggestion:  just use Sleep(n)  to do something at intervals

Martin

<p>Another suggestion:  just use Sleep(n)  to do something at intervals</p><p>Martin </p>

I wanted an extension to do something at regular intervals (read from a mail slot).  But I could not use SetTimer() without creating a window, a thread, and a message pump.  Perhaps a future version (and a future SDK) will include WM_FM_TIMER.  The extension could SetTimer() using the HWND of its host (FORMINIT's hParent) and that window would turn WM_TIMER messages (with unknown IDs if applicable) into WM_FM_TIMER messages sent to the extension's call back function.

I wanted an extension to do something at regular intervals (read from a mail slot).  But I could not use SetTimer() without creating a window, a thread, and a message pump.  Perhaps a future version (and a future SDK) will include WM_FM_TIMER.  The extension could SetTimer() using the HWND of its host (FORMINIT's hParent) and that window would turn WM_TIMER messages (with unknown IDs if applicable) into WM_FM_TIMER messages sent to the extension's call back function.

Well a suggestion would be to use a logging extension type, and then you can get a message every time the  POP3 service finds a new message, presuming you do regular automatic scanning for incoming mail

WLOG_NEWPOP3MESSAGE       
(*  Sent by WinPMail's POP3 client the moment it has completed the  *)
(*  download of a message. *)

Martin

 

 

 

 

<p>Well a suggestion would be to use a logging extension type, and then you can get a message every time the  POP3 service finds a new message, presuming you do regular automatic scanning for incoming mail </p><p>WLOG_NEWPOP3MESSAGE        (*  Sent by WinPMail's POP3 client the moment it has completed the  *) (*  download of a message. *)</p><p>Martin </p><p> </p><p> </p><p> </p><p> </p>

You were trying to explain that you didn't want to issue a timer. Why?

The whole extension process relys on Windows messages flowing between Pegasus Mail and the extension, so you have to have a message handler. I use Delphi and when I define my procedures and functions, I identify those that are to be recognised as part of the windows message loop,

ie to receive a message:    procedure fminit(var msg: tmessage); message wm_fm_init;

and to send back to Pegasus Mail use: sendmessage(pegparent,wm_f_getbasedir,128, longint(@zts[0]));

Martin

<p>You were trying to explain that you didn't want to issue a timer. Why?</p><p>The whole extension process relys on Windows messages flowing between Pegasus Mail and the extension, so you have to have a message handler. I use Delphi and when I define my procedures and functions, I identify those that are to be recognised as part of the windows message loop,</p><p> ie to receive a message:    procedure fminit(var msg: tmessage); message wm_fm_init; </p><p>and to send back to Pegasus Mail use: sendmessage(pegparent,wm_f_getbasedir,128, longint(@zts[0])); </p><p>Martin </p>
0
-1
0
This topic is closed

Related Topics

live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft