PeekMail v1.0 Another version of the GREAT MailChecker (or MailPeeker???, write to me about this question...). To all the following that write me: excuse me, but I was much busy in last 2 weeks, and I'll be so for the next 2. The aim of this proggy is to help lazy people to check for new mail. Once you have placed it on a toolmanager button(s!) and (or) in the amitcp:db/user-startnet you must not wait some seconds to start your mailer, simply press the toolmanager button. Getting online there will be no need to start mailer too, if you place it in Amitcp:db/user-startnet. Arent' you lazy?!? Great! This program is for you! If you start your mailer every time you want to know about your mail, you lost precious time! What is better then this proggy? *************** Configuration: *************** Simply: Take your provider's sheet with your personal information about your account. Assume that username and password are those given for e-mail, and server is the POP3 server. Weeeeellll, add the line at AmiTcp:db/user-startnet: PeekMail username password server Done! OPS.... I forgot some options. If your server use APOP, you must add keyword APOP. Normally, if (and only IF) there's mail PeekMail open a requester (10x Nico!), if you prefer some word on current shell, just apply NOREQ. If you want PeekMail pop up a requester (of write something in shell) if there isn't mail too, well, keyword SILLY or BORE (those are equivalent) are for you. Example! My server use APOP, I don't want to be warned if there isn't mail and I hate requester! PeekMail TBJ mypassword ser.mail.it APOP NOREQ UnderStood? ***** Well... let's see new option... MAILER by setting this keyword you can specify a program to launch by a gadget that you can select if there's new mail. The stack is set to 32768, so there should be non error, even with MUI program. You can set the argument too ... (e.g. MAILER "Work:INet/GetMail user pass" <---- look the ->"<-) The program you set is search in the path, if you add the full path (like in example above), the directory will be changed, then the program will be launched. In future will be possible to simulate a WB launch, and the stacksize will be read from the icon (if present). EVERY Tell to PeekMail to not terminate, and to check mail every the set minutes. EVERY 5 will check the mail every 5 minutes. For now PeekMail not autodetache from parent, so launch it with Run <>nil: PeekMail blah blah blah.... Otherwise it will alt your current shell. ERROR If set, display error message in a requester. To end PeekMail click on Exit when the requester appear. If you want to terminate PeekMail without wait the next requester: If PeekMail is resident, it can be terminated by a ctrl-C (^C) to its processes, it will terminate ASAP (at the next mail check). By the way, you can StopNet when you want, if peekmail cannot connect (and even if it's connected) it terminate in safe mode. Usage in scripts: If there's new mail, PeekMail return a WARN. If PeekMail is resident, and it's terminated normally, it return the WARN if the last check reveal new mail. So simply do: PeekMail user pass host if WARN YAM else Echo :( endif But now is more simply do: PeekMail user pass host MAILER "YAM" To install your language catalog, if present, just click on the appropriate script in Install_catalog. In future PeekMail: become a commodity; detache from parent; read the mailer's stacksize from icon (if present); will simulate wblaunch, if requested; will change your life !!!! ******************************************************************************* If there's some features you'd like to see in future version,or you are looking for a good chat, or simply you want to thank me for this stupid proggy, don't hesitate, write to: omannelli@gr.tdnet.it and specify that mail is for Andre' Vellori!