Re: mutt deletes attachement before libreoffice tries to open it
On 25.04.12,18:12, Marcelo Luiz de Laia wrote: > On Wed, 25 Apr 2012, David Haguenauer wrote: > > > > Sometime I got the same problem here. However, I see that I only get > > > this issue when libreoffice is already running! > > > > I believe this is a different issue. What probably happens in your > > in your case ... > > > ... if LibreOffice is already running, Mutt's call does > > not start a new instance; rather, the second invocation returns very > > quickly after forwarding the filename to the existing LibreOffice > > instance: there is a race condition between Mutt (that deletes the > > attachment file) and LibreOffice (that tries to open it). > > > Yes! You are right! This is a different issue and mutt deletes the > attachment before libreoffice tries to open it. > > So, I have oppened a new thread. > Could you post the output of this command? egrep "vnd|word" ~/.mailcap Jostein
Re: mutt deletes attachement before libreoffice tries to open it
On Thu, 26 Apr 2012, Jostein Berntsen wrote: > On 25.04.12,18:12, Marcelo Luiz de Laia wrote: > > On Wed, 25 Apr 2012, David Haguenauer wrote: > > > > > > Sometime I got the same problem here. However, I see that I only get > > > > this issue when libreoffice is already running! > > > > > > I believe this is a different issue. What probably happens in your > > > in your case ... > > > > > ... if LibreOffice is already running, Mutt's call does > > > not start a new instance; rather, the second invocation returns very > > > quickly after forwarding the filename to the existing LibreOffice > > > instance: there is a race condition between Mutt (that deletes the > > > attachment file) and LibreOffice (that tries to open it). > > > > > > Yes! You are right! This is a different issue and mutt deletes the > > attachment before libreoffice tries to open it. > > > > So, I have oppened a new thread. > > > > Could you post the output of this command? > > egrep "vnd|word" ~/.mailcap > > > Jostein Please, found it here: http://pastebin.com/J0WXpmtz My mailcap is into ~/.mutt/mailcap -- O___ - Marcelo Luiz de Laia c/ /'_ - Diamantina (*) \(*)- Minas Gerais ~- Brazil ^- Linux user number 487797
Re: mutt deletes attachement before libreoffice tries to open it
On 26.04.12,06:17, Marcelo Luiz de Laia wrote: > On Thu, 26 Apr 2012, Jostein Berntsen wrote: > > > On 25.04.12,18:12, Marcelo Luiz de Laia wrote: > > > On Wed, 25 Apr 2012, David Haguenauer wrote: > > > > > > > > Sometime I got the same problem here. However, I see that I only get > > > > > this issue when libreoffice is already running! > > > > > > > > I believe this is a different issue. What probably happens in your > > > > in your case ... > > > > > > > ... if LibreOffice is already running, Mutt's call does > > > > not start a new instance; rather, the second invocation returns very > > > > quickly after forwarding the filename to the existing LibreOffice > > > > instance: there is a race condition between Mutt (that deletes the > > > > attachment file) and LibreOffice (that tries to open it). > > > > > > > > > Yes! You are right! This is a different issue and mutt deletes the > > > attachment before libreoffice tries to open it. > > > > > > So, I have oppened a new thread. > > > > > > > Could you post the output of this command? > > > > egrep "vnd|word" ~/.mailcap > > > > > > Jostein > > Please, found it here: > > http://pastebin.com/J0WXpmtz > > My mailcap is into ~/.mutt/mailcap > It seems like most of your entries are bound to openoffice(soffice) instead of libreoffice. Try to change all entries to libreoffice instead. Jostein
Re: mutt deletes attachement before libreoffice tries to open it
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. -- O___ - Marcelo Luiz de Laia c/ /'_ - Diamantina (*) \(*)- Minas Gerais ~- Brazil ^- Linux user number 487797
Re: mutt deletes attachement before libreoffice tries to open it
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
Re: can't read attached file docx
On Thu, Apr 26, 2012 at 08:26:33AM +0200, Jostein Berntsen wrote: > Date: Thu, 26 Apr 2012 08:26:33 +0200 > From: Jostein Berntsen > To: mutt-users@mutt.org > Subject: Re: can't read attached file docx > User-Agent: Mutt/1.5.21 (2010-09-15) > I have these entries for docx files in my ~/.mailcap: > > application/vnd.msword; mutt_bgrun libreoffice3.5 %s; #test=RunningX > application/vnd.openxmlformats-officedocument.wordprocessingml.document; > mutt_bgrun libreoffice3.5 %s; #test=RunningX > You might check out the mutt_bgrun script as well to make it work. > Jostein Thanks for your advice but the result is the same as before. But thanks to you I discovered mutt_bgrun, and the Gary Johnson's Mutt Page :) -- Gérard signature.asc Description: Digital signature
Re: can't read attached file docx
On 2012-04-26, Gerard ROBIN wrote: > On Thu, Apr 26, 2012 at 08:26:33AM +0200, Jostein Berntsen wrote: > > I have these entries for docx files in my ~/.mailcap: > > > > application/vnd.msword; mutt_bgrun libreoffice3.5 %s; #test=RunningX > > application/vnd.openxmlformats-officedocument.wordprocessingml.document; > > mutt_bgrun libreoffice3.5 %s; #test=RunningX > > > You might check out the mutt_bgrun script as well to make it work. > > > Jostein > > Thanks for your advice but the result is the same as before. > But thanks to you I discovered mutt_bgrun, and the Gary Johnson's Mutt Page :) I hope you find it helpful. I was going to suggest that earlier, but I don't think it solves this particular problem. mutt_bgrun copies the attachment to a temporary file, runs the viewer on that file, then deletes that file when the viewer exits. If libreoffice3.5 returns immediately, you still have the same problem of the file being deleted before the viewer can open it. One solution would be to modify mutt_bgrun to not delete the temporary file. Then you have to solve the problem of accumulated temporary files. Another approach would be to put something like 'sleep 60' on the line before 'rm -f "$tmpfile"' in mutt_bgrun to keep the temporary file around long enough for the viewer to open it before it is deleted. Regards, Gary
Re: New mail indicator
Hi Diep Pham Van, maybe you're looking for the setting "mark_old", which marks new messages as old if you leave the mailbox. Greetings, Stephan On Fri, Apr 20, 2012 at 05:03:51AM +, Diep Pham Van wrote: > So, I'm the only one who has this problem? > > On Wed, Apr 18, 2012 at 10:51:02PM +0700, Diep Pham Van wrote: > > I have a very simple question but cannot find the answer anywhere. > > > > I have mutt setup with offlineimap using maildir format. When I press > > `y` to change to one of my mailbox, and there is some unread mail in > > the current folder, if I change to another folder, the new mail > > indicator ('N' character) disappear. How can I keep that 'N'? I > > always have a hard time searching for unread mails. > > > > -- > > PHẠM Văn Điệp > > > > h : http://favadi.com > > e : i...@favadi.com > > m : +84 984 339 841 > >_ > > ASCII ribbon campaign ( ) > > - against HTML email X > > & vCards / \ > > -- > PHẠM Văn Điệp > > h : http://favadi.com > e : i...@favadi.com > m : +84 984 339 841 >_ > ASCII ribbon campaign ( ) > - against HTML email X > & vCards / \
Re: New mail indicator
I don't think that `mark_old` solve my problem. I have `set mark_old=no` in my .muttrc. When turn it on, If I leave the folder with unread mails, the new mail indicator is still disappear. And the unread emails now mark with a `O`, make me even more difficult to find out where they are. On Thu, Apr 26, 2012 at 08:16:49PM +0200, Stephan Saathoff wrote: > Hi Diep Pham Van, > > maybe you're looking for the setting "mark_old", which marks new messages > as old if you leave the mailbox. > > Greetings, > Stephan > > On Fri, Apr 20, 2012 at 05:03:51AM +, Diep Pham Van wrote: > > So, I'm the only one who has this problem? > > > > On Wed, Apr 18, 2012 at 10:51:02PM +0700, Diep Pham Van wrote: > > > I have a very simple question but cannot find the answer anywhere. > > > > > > I have mutt setup with offlineimap using maildir format. When I press > > > `y` to change to one of my mailbox, and there is some unread mail in > > > the current folder, if I change to another folder, the new mail > > > indicator ('N' character) disappear. How can I keep that 'N'? I > > > always have a hard time searching for unread mails. > > > > > > -- > > > PHẠM Văn Điệp > > > > > > h : http://favadi.com > > > e : i...@favadi.com > > > m : +84 984 339 841 > > >_ > > > ASCII ribbon campaign ( ) > > > - against HTML email X > > > & vCards / \ > > > > -- > > PHẠM Văn Điệp > > > > h : http://favadi.com > > e : i...@favadi.com > > m : +84 984 339 841 > >_ > > ASCII ribbon campaign ( ) > > - against HTML email X > > & vCards / \
Re: New mail indicator
* Diep Pham Van [04-26-12 22:30]: > I don't think that `mark_old` solve my problem. I have `set > mark_old=no` in my .muttrc. When turn it on, If I leave the folder > with unread mails, the new mail indicator is still disappear. And the > unread emails now mark with a `O`, make me even more difficult to find > out where they are. If you set mark_old to "no" then unread mails will remain marked "N", but the directory containing the *new* (or unread) will only show it contains new mail until you have accessed that directory. The fine mutt manual really does explain this. If the directory contains mail with a date newer than the directory access date, it will show as having *new* mail. If the *unread* (or new) mail has a date *older* than the directory access date, mutt will not show that the directory contains new mail. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535@ http://linuxcounter.net
Re: New mail indicator
So, is there an easy way to change that behaviour? On Thu, Apr 26, 2012 at 11:33:02PM -0400, Patrick Shanahan wrote: > * Diep Pham Van [04-26-12 22:30]: > > I don't think that `mark_old` solve my problem. I have `set > > mark_old=no` in my .muttrc. When turn it on, If I leave the folder > > with unread mails, the new mail indicator is still disappear. And the > > unread emails now mark with a `O`, make me even more difficult to find > > out where they are. > > If you set mark_old to "no" then unread mails will remain marked "N", but > the directory containing the *new* (or unread) will only show it contains > new mail until you have accessed that directory. > > The fine mutt manual really does explain this. If the directory contains > mail with a date newer than the directory access date, it will show as > having *new* mail. If the *unread* (or new) mail has a date *older* than > the directory access date, mutt will not show that the directory contains > new mail. > > -- > (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 > http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 > http://en.opensuse.org openSUSE Community Member > Registered Linux User #207535@ http://linuxcounter.net -- PHẠM Văn Điệp h : http://favadi.com e : i...@favadi.com m : +84 984 339 841 _ ASCII ribbon campaign ( ) - against HTML email X & vCards / \