This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygstart, mutt or mailcap?


On Mon Feb 24 10:13:27 2003, Ajay Simha wrote:
> On Sun Feb 23 13:07:07 2003, Igor Pechtchanski wrote:
> > Ajay,
> > 
> > On Sat, 22 Feb 2003, Ajay Simha wrote:
> > 
> > > On Fri Feb 21 10:09:23 2003, Igor Pechtchanski wrote:
> > > > On Fri, 21 Feb 2003, Ajay Simha wrote:
> > > > > On Fri Feb 21 09:33:58 2003, Igor Pechtchanski wrote:
> > > > > > On Fri, 21 Feb 2003, Ajay Simha wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > This is what my .mailcap looks like:
> > > > > > >
> > > > > > > ===========================================
> > > > > > > text/html; lynx -dump %s; copiousoutput; nametemplate=3D%s.html
> > > > > > > Application/MSWORD;      cygstart %s; copiousoutput;
> > > > > > > Application/VND.MS-EXCEL; cygstart %s; copiousoutput;
> > > > > > > Application/PDF; cygstart %s; copiousoutput;
> > > > > > > Application/vnd.ms-powerpoint; cygstart %s; copiousoutput;
> > > > > > > Application/MSEXCEL; cygstart %s; copiousoutput;
> > > > > > > Application/octet-stream; cygstart %s; copiousoutput;
> > > > > > > ===========================================
> > > > > > >
> > > > > > > I'm using mutt 1.4i. When I try to view a word doc it lauches fine but
> > > > > > > in the middle of doing other things like reading email or doing
> > > > > > > something else my word doc seems to get corrupted.
> > > > > > >
> > > > > > > However I don't see this problem if I save the file and *then* run
> > > > > > > cygstart or directly open it in word.
> > > > > > >
> > > > > > > BTW here is where the tmp file is created:
> > > > > > >
> > > > > > > [asimha at asimha-w2k02 ~]$ ls -lt /tmp
> > > > > > > ls: /tmp/mutt-asimha-w2k02-1736-194: No such file or directory
> > > > > > > ls: /tmp/mutt-asimha-w2k02-1736-33: No such file or directory
> > > > > > > total 4550
> > > > > > > -rw-------    1 asimha   None       483328 Feb 21 02:41 Dell-lab-summary.001736.doc
> > > > > > > -rwxrwxrwx    1 asimha   ????????      162 Feb 21 02:41 ~$ll-lab-summary.001736.doc
> > > > > > > drwxrwxrwx+  12 asimha   None         8192 Feb 21 02:22 aspell-0.50.3
> > > > > > > -rwxrwxrwx    1 Administ None      3962880 Feb 21 02:18 aspell-0.50.3.tar
> > > > > > > -rw-rw-rw-    1 asimha   None          187 Feb 21 01:47 lpr.log
> > > > > > > -rw-rw-rw-    1 asimha   None       201918 Feb 21 00:39 XWinrl.log
> > > > > > > [asimha at asimha-w2k02 ~]$
> > > > > > >
> > > > > > > Any clues here?
> > > > > > >
> > > > > > > Thanks,
> > > > > > > -ajay
> > > > > >
> > > > > > Ajay,
> > > > > >
> > > > > > Two WAGs:
> > > > > > 1) Is your /tmp mount binary or text?  If text, try remounting as binary.
> > > > > > Also see if adding "binmode" to your $CYGWIN helps.
> > > > > > 2) This one's really wild, but I know Windews has this stupid dependence
> > > > > > on the name of the file.  Try using the nametemplate trick ("%s.doc", or
> > > > > > something), and see if it helps.
> > > > > >       Igor
> > > > >
> > > > > Hey thanks for the quick reply.
> > > > >
> > > > > Regarding 2) it *is* a .doc if not the default windows handler would not
> > > > > work for it.
> > > >
> > > > Umm, yes, I'm slow today.  However, the '????????' in your ls output
> > > > indicates that your /etc/{passwd,group} aren't up to date.  See
> > > > <http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-RELEASE1.3.20> for
> > > > details.  Probably unrelated, but something to fix anyway.
> > >
> > > I tried everything now it may have something to do with starting it
> > > directly from a view command within mutt.  If I save it and then start
> > > it either through windows or cygstart command it does not have any
> > > corruption.
> > 
> > Just had a wild idea: try setting your .doc rule in your .mailcap as follows:
> > 
> > Application/MSWORD;      cp %s /tmp/blah.doc && cygstart /tmp/blah.doc; copiousoutput;
> > 
> > It should set the permissions and ownership of /tmp/blah.doc to your
> > current user...  Don't know if it'll help...
> 
> Nope :-(
> 
> Did not.
> 
> > 
> > > Also I could not figure out what exactly is causing:
> > > > > > > -rwxrwxrwx    1 asimha   ????????      162 Feb 21 02:41 ~$ll-lab-summary.001736.doc
> > >
> > > the ???????
> > > is it a group not found in my /etc/group?
> > 
> > See <http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-RELEASE1.3.20>
> > 
> > > I wonder what group word is running as when it creates this tmp file?
> > 
> > Try "ls -nl /tmp".
> 
> [asimha at asimha-w2k02 ~]$ ls -ln /tmp
> ls: /tmp/mutt-asimha-w2k02-1872-83: No such file or directory
> total 1318
> -rw-------    1 1040     513         29696 Feb 24 10:10 VPLS_capability_Questionnaire.doc
> -rw-rw-rw-    1 1040     513          2086 Feb 24 09:31 XWinrl.log
> -rw-------    1 1040     513        483328 Feb 24 10:08 blah.doc
> -rw-rw-rw-    1 1040     513          9058 Feb 23 21:49 flashfxp12-k.zip
> -rw-rw-rw-    1 1040     513        823253 Feb 23 21:49 flashfxp12.zip
> -rwxrwxrwx    1 1040     65535         162 Feb 24 10:10 ~$LS_capability_Questionnaire.doc
>                          ^^^^^

I checked the win-nt groups againgst my /etc/group and all the groups seem to be present:


SYSTEM:S-1-5-18:18:
None:S-1-5-21-1458511060-810114045-807829424-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Power Users:S-1-5-32-547:547:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:
Debugger Users:S-1-5-21-1458511060-810114045-807829424-1009:1009:


-ajay
> [asimha at asimha-w2k02 ~]$ 
> > 
> > You also didn't define exactly what you meant by "corrupted" in your
> 
> I don't know if I already answered this one. What I mean by corrupted is it has
> rectangular boxes in my word doc (the entire page). And this may not happen for a while
> for example it may only happen when I open a second word doc.
> 
> -ajay
> > original message.  Does it create a corrupted document when you save it
> > from Word?  Does the temp file get truncated?  At exactly what moment does
> > it get corrupted?
> > 	Igor
> > -- 
> > 				http://cs.nyu.edu/~pechtcha/
> >       |\      _,,,---,,_		pechtcha at cs dot nyu dot edu
> > ZZZzz /,`.-'`'    -.  ;-;;,_		igor at watson dot ibm dot com
> >      |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
> >     '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
> > 
> > Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
> >   -- /usr/games/fortune
> > 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]