On 26.04.12,08:07, Marcelo Luiz de Laia wrote:
> On Thu, 26 Apr 2012, Jostein Berntsen wrote:
> 
> > It seems like most of your entries are bound to openoffice(soffice) instead
> > of libreoffice. Try to change all entries to libreoffice instead.
> > 
> > Jostein
> > 
> 
> Thank you very much, but, it dosen't solve that problem.
> 
> If libreoffice is alread running, I coundn't open the attachment.
> 

Could you try use mutt_bgrun with you mailcap entries?

Enter this script into your path:

https://github.com/jgm/scripts/blob/master/mutt_bgrun

and entries like these in your mailcap file:

application/msword;             mutt_bgrun libreoffice3.5 %s; 
#test=RunningXapplication/vnd.msword;             mutt_bgrun libreoffice3.5 %s; 
#test=RunningX
application/vnd.openxmlformats-officedocument.wordprocessingml.document; 
mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/excel;              mutt_bgrun libreoffice3.5 %s; #test=Running
application/msexcel;            mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/excel;              mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/msexcel;            mutt_bgrun libreoffice3.5 %s; #test=Running
application/vnd.ms-excel;       mutt_bgrun libreoffice3.5 %s; #test=Running
application/vnd.ms-excel;       mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/x-excel;            mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/x-excel;            mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/x-msexcel;          mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/ms-Excel;           mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;      
mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/vnd.openxmlformats;         mutt_bgrun libreoffice3.5 %s; 
application/vnd.ms-powerpoint;  mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/x-mspowerpoint;     mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/ppt;                mutt_bgrun libreoffice3.5 %s; #test=RunningX
application/pdf; mutt_bgrun okular %s; #test=RunningX
application/postscript;         mutt_bgrun ghostview %s; #test=RunningX
application/rtf;                mutt_bgrun libreoffice3.5 %s; #test=RunningX
image/*;                        mutt_bgrun okular %s;# test=RunningX
image/*;                        mutt_bgrun gwenview %s;#test=RunnningX  


Jostein

Reply via email to