Col Mackrory wrote:
>
> Hello All,
>
> I am looking for a way to test if there is mail to send - and only bringing
> up the link if the answer is positive.
>
> Before using Diald I happily ran shell script - that albeit clumsy - did
> the job. Now using Diald the script brings the link up.
>
> Note - if I ran the script from root Diald only brought up the link if
> there was mail to send. When I run it from cron - I get the indication that
> no mail is there to send - but the link comes up anyway.
>
> So...I am looking for a shell script I can use that will test if I have
> mail - and only bring the linkup if I do.
>
The mqueue command causes sendmail to bring up the link
unless you run sendmail in deferred mode.
In sendmail.cf, use this option:
O DeliveryMode=deferred
In deferred mode sendmail queues all messages
and takes no action at all to deliver them until
you run "sendmail -q", which you can run from
a cron job, or have diald run it when the link comes up.
--
Jan Carlson
[EMAIL PROTECTED] Scarborough, Ontario, Canada
Mailed with Netscape 4.5 on Red Hat Linux 5.2
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]