<<< Date Index >>>     <<< Thread Index >>>

Re: How can I know if error happens when sending mail?



indeed can not interrupt mutt, but can send a local mail to myself instead i 
think ...

lars

On Mon, 01 Jun 2009, Kyle Wheeler wrote:

> On Tuesday, June  2 at 12:08 AM, quoth Chengqi(Lars) Song:
> > Thanks for the method you provided. In fact I thought of that too. 
> > But still it's not efficient to watch that log file everytime after 
> > sending a mail. Logwatch should work but still I wonder if there is 
> > any easier way to do this job. Could we possible wrap msmtp in a 
> > shell script, and in the script call pass all parameters to msmtp 
> > and watch consequential results? Have anybody done that?
> 
> Sure, you could do that, but what then? What should the shell script 
> do if sending the message fails? It can't interrupt your mutt 
> session...
> 
> ~Kyle
> -- 
> The government of the United States is not in any sense founded on the 
> Christian Religion.
>                                        -- US Treaty with Tripoly, 1797