Hello all, 

I am currently using mutt 1.5.18 within a python script for reporting some 
activities about an embedded linux system. 
I do not get any problem when launching the mutt command within a terminal but 
I get troubles when launching from my python script. 

The command I use is pretty simple : 
echo "body of the mail" | mutt -s "mail's subject" [email protected] 

That command is called in the python script by: 
retvalue = os.system(command) 

I check the retvalue returned (which seems to me equivalent to the use of $? 
env variable) and I found out that retvalue is sometimes equal to 256... 
I'm looking for documentations about mutt return codes but didn't find anything 
neither on the web nor on the mutt sources. 

Does anyonee could explaining to me where to obtain docs about such codes 
and/or explaining me the meaning of this 256 return code ? 
I also tried to use the -d2 option in the command line. It works when I use a 
terminal command line but not within my python script and I can't find 
any produced .muttdebug file. 
Any suggestion about that matter ? 

Thanks in advance 

Mathieu 



Reply via email to