Subject: Reading attachments

From: Atle Weibell <[email-masked]>
Date: Wed, 11 Jun 2003 12:24:46 +0200 (CEST)

Hello all,

I'm using pine 4.56 on a linux platform (via ssh from Windows) and each
time I recieve a MS Word document (or rich text) as an attachment, I have
to bounce the mail to another account where I can open them in Windows.

Have anyone experience with convertion software like Antiword
(http://www.winfield.demon.nl/) or other solutions to this problem...?

Of course, I keep telling my contacts not to use MS Word for text
documents that could might as well be written as plain text, in 1/10th
size...

regards,
-- 
Atle Weibell | [email-masked] | pr 51690007 | mo 41690007 |
                               | wk 51963087 | fx 51690717 |
-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Rico Barth <[email-masked]>
Date: Wed, 11 Jun 2003 13:01:28 +0200 (Westeuropäische Sommerzeit)

Hi Atle!

> to bounce the mail to another account where I can open them in Windows.

Do you have the possibility to use the Mail account with Pop/Imap. If
there's a way like that you could use PC-Pine for Windows. I use it and it
rules:-) All functions are the same and the mimetypes are taken from
Windows.

PDF's or other open file formats are the better way as attachments. :-)

Bye

Rico

--
Dipl.-Math. Rico Barth
T-Systems
Systems Integration
Berater BU Sachsen
Anschrift: Clausstrasse 3 , 09126 Chemnitz
Telefon:   +49 ( 371) 5359 - 350
Telefax:   +49 ( 371) 5359 - 133
Mobil:     +49 ( 160) 94 82 15 82
E-Mail:    [email-masked]
Internet:  http://www.t-systems.com

PGP-Key:
Fingerprint: 8A56 C021 6240 EAD5  AB42 EA2B 9B2E 1405  874C 8377
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x874C8377

---

From: [email-masked]
Date: Wed, 11 Jun 2003 13:08:40 +0200 (CEST)

Rico,

Yes, I use PC-Pine, but when I'm behind a firewall (at work) I'm not able
to use pop/imap, so I'm bound to the ssh-terminal, and hence neither
attachments are readable in pine as long as they are not plain text... :(

-- 
Atle Weibell | [email-masked]

---

From: Rico Barth <[email-masked]>
Date: Wed, 11 Jun 2003 13:18:05 +0200 (Westeuropäische Sommerzeit)

Hi Atle!

> attachments are readable in pine as long as they are not plain text... :(

In Pine Forum any weeks ago there was a discussion about using ssh in
pine. There's a way but I don't know it. In this context you could use any
Pop/Imap account with ssh-encryption. Search the articles any weeks ago or
search through pine documentation. Then you can use PC-Pine with ssh.

If you want use the unix/linux-Version there's the package

debian/stable 	 word2x 1:0.005-4.1   (60.2k)
  	         Translates Word files into ascii text or LaTeX

Bye

Rico

PGP-Key:

---

From: daniel lance herrick <[email-masked]>
Date: Wed, 11 Jun 2003 08:34:01 -0400 (EDT)

> to bounce the mail to another account where I can open them in Windows.

If I understand correctly, your monitor and
keyboard are Windows, the link to the linux box is
ssh, and pine is running on the linux box.

If you are running eXceed or cygwin on the Windows
box, then Star Office on the linux box will
display Microsoft office documents on your Windows
monitor. (There is some complication involved in
Access documents [another database engine needed
from somewhere - I didn't care and ignored the
message], but Word and Powerpoint and Excel
display fine.)

eXceed is commer$hial $oftware, but cygwin and
star office are freely available on the net. Star
office comes on a separate CDROM in official
RedHat distributions.

dan

---

From: daniel lance herrick <[email-masked]>
Date: Wed, 11 Jun 2003 08:36:05 -0400 (EDT)

> attachments are readable in pine as long as they are not plain text... :(

You might also be able to tunnel the imap through
ssh if you study the ssh man pages hard enough.

dan

---

From: Nancy McGough <[email-masked]>
Date: Wed, 11 Jun 2003 14:01:18 +0100 (BST)

> ssh if you study the ssh man pages hard enough.

Yes, if there's a port (say 9876) that your firewall doesn't
block, you can set up Pine to access your IMAP server via
localhost:9876. I've got info about ssh port forwarding on my
Power Pine page in this section:

 <http://www.ii.com/internet/messaging/pine/pc/#ssh>

Hope this helps,
Nancy

-- 
Nancy McGough            <http://www.ii.com>            Infinite Ink
Writing about procmail, imap, pine, spam-deflexion strategies & more

---

From: Gopi Sundaram <[email-masked]>
Date: Wed, 11 Jun 2003 10:02:22 -0500 (CDT)

> (http://www.winfield.demon.nl/) or other solutions to this problem...?

For most Word documents, I just use "strings". In the attachment index,
(|)Pipe to strings.

-- 
Gopi Sundaram
http://www.zrox.net/Mail/Pine/

---

From: James Miller <[email-masked]>
Date: Wed, 11 Jun 2003 10:50:59 -0500 (CDT)

I'm using Pine 4.21 on an older machine in a virtual console (as opposed
to under X).  I cannot seem to get Pine to use zgv as an image viewer for
attachments: I've tried creating mimetype and mailcap files with relevant
entries, but have not succeeded with that method.  Nor has the method of
simply adding the zgv binary to the "image-viewer" entry in the config
menu.  When I try to open an image attachment (e.g., jpeg) by highlighting
it and hitting return, I get the message "image decoding" with a progress
meter which, once 100% is reached, then switches to the zgv screen which
also has its own progress meter displayed (as typical) in the middle of
the screen.  But zgv almost immediately exits, not displaying any graphic
nor showing (for the brief time it displays) any activity in its progress
meter.  I'm left back at the Pine screen listing the attachment.  What am
I doing wrong?  Can I expect zgv to work with Pine as an image display
utility for attachments?  Has anyone else tried zgv with Pine?

Thanks, James

PS zgv works fine otherwise on this machine (e.g., as an image viewer
under Links browser).  Mimetype and mailcap files were created from
material copied and pasted from sample files found on the web, subjected
to some editing.
-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Kenneth Crudup <[email-masked]>
Date: Wed, 11 Jun 2003 10:47:36 -0700 (PDT)

> attachments are readable in pine as long as they are not plain text... :(

Since you can run "ssh" and there's a way to tunnel POP/IMAP via "ssh",
then you can get to your "home" servers directly. I'm sure someone has
already posted a solution you could google on.

	-Kenny

-- 
Kenneth R. Crudup  Sr. SW Engineer, Scott County Consulting, Los Angeles
H: 3801 E. Pacific Coast Hw #9, Long Beach, CA 90804-2014 (888) 454-8181
W: 2052 Alton Parkway, Irvine, CA 92606-4905	     (949) 252-1111-X240

---

From: Mats Dufberg <[email-masked]>
Date: Wed, 11 Jun 2003 21:41:31 +0200 (CEST)

> (http://www.winfield.demon.nl/) or other solutions to this problem...?

Yes, I use it all the time. It is the best text renderer of MS-word files
that I know of. It does a much better job than word itself.

Mats

-----------------------------------------------------------------
Mats Dufberg                                      [email-masked]
Blaoarvsgraend 42                                  +46-8-38 48 59
SE-162 45 Vaellingby, Sweden                      +46-70-258 2588

---

From: Mats Dufberg <[email-masked]>
Date: Wed, 11 Jun 2003 21:45:53 +0200 (CEST)

> attachments are readable in pine as long as they are not plain text... :(

If you sit on a Windows computer, and have ssh access to the computer with
pine I suggest that you use WinSCP <http://winscp.vse.cz/eng/> to move the
files from unix to windows. That is what I do. I "detach" the word files
with pine and save them into a "transport" directory, to which I always
have an open WinSCP session from my Windows computer.

Mats

---

From: James Miller <[email-masked]>
Date: Wed, 11 Jun 2003 16:07:08 -0500 (CDT)

Here's what I've managed to find on the web so far related to this topic.
First, a post from the pine-info list, as follows:

----------POST COPIED FROM pine-info-----------------
Viewing attached pictures with Pine 4.00

	Can anyone tell how can I use this feature?

I inserted this line in the global pine 4.00 configuration file:

image-viewer=/usr/bin/zgv

...but when I test this thing by trying to view and attached jpeg image
the text console just flickers (kinda changes into graphic mode) but it
becomes black a half a second and then is coming back to the text mode
screen like nothing happened. No actually, I tryied againg and I can see
that graphic mode image loading completion bar of zgv. But it won't
display any message only comes back to text mode.

When stopping this process with scroll lock I cand see

                           [VIEWER command launched]

                      [Decoding "Image, """ |          |]

                          [Displaying attachment     ]

and I can see a /usr/bin/zgv /tmp/img-JPE[some_number]

I THINK:        PERSONALLY I think that it is an encoding decoding problem
(mime, uue, base64 - stuff like this...). I think pine is trying to feed
zgv with raw 7 bit data :((((

	Anyone manage to view images with pine 4.00? Is this a bug or...?
... I have to make an script that decodes images? That would be pretty
much work to do... think and you'll agree...

	This would be a nice feature if it would work...

----------END POST COPIED FROM pine-info-------------------

This sounds very similar to the problem I'm encountering, except I'm using
a much newer version than this individula was.  Seems there was no
response to his query.

Then, I found this at http://www.math.washington.edu/~chappa/pine/info/viewer.html
, which could also be relevant:

----------BEGIN SECOND EXCERPT---------------------------
Fix a bug when calling the image viewer
Versions of pine the patch is available for: pine 4.32

This patch allows you to fix a bug that makes pine erase the image opened
by your image-viewer, before you can see it.

Last Updated 17:44:49 PST Fri Jan 19 2001.
-------------END SECOND EXCERPT---------------------------

This refers to a much newer release of Pine than the one I'm using, and
it's not clear if the bug concerned only this release.  But the
description of the bug seems much like the problem I'm having.

Any response?

James

---

From: "James Miller (office)" <[email-masked]>
Date: Thu, 12 Jun 2003 14:44:12 -0500 (CDT)

Here's a further twist on this problem.  I thought of testing the
image-viewer capability in Pine 4.21 with some graphics program other than
zgv to see if it was a more general problem with Pine handling graphics
attachments (specifically jpegs, in this case).  I suppose I could try out
other graphics formats as well . . . maybe I'll try that.  In the
absence of other non-X graphics renderers, I decided to try Dillo, which
renders jpegs, as the image-viewer for Pine from the virtual console.
Since Dillo runs under X, I did this for the image-viewer line: xinit -e
Dillo.  Well, attempting to view that image did fire up X and Dillo did
open: but all that was displayed by Dillo were alot of incomprehensible
characters and symbols - no images.  This does seem to indicate that the
problem is the way Pine is passing on the attachment to the image viewing
program (as the fellow whose post I passed along seemed to have been
observing: "mime, uue, base64 - stuff like this...). I think pine is
trying to feed zgv with raw 7 bit data").  To confirm whether this is the
case, I may next try running Pine under X with Dillo as the image-viewer
and see if that makes any difference.  Likewise, I may try opeing other
graphics formats.  I also dropped a note to the author of zgv to find out
if he has heard of any problems with zgv displaying graphics formats under
Pine.

James

---

From: Kenneth Crudup <[email-masked]>
Date: Thu, 12 Jun 2003 12:51:14 -0700 (PDT)

On Thu, 12 Jun 2003, James Miller (office) wrote:

> attachments (specifically jpegs, in this case).

FWIW, I use "xv" to look at attached graphics and have never had a
problem (but then, the earliest Pine I've ever used was 4.33, now
4.56).

	-Kenny

---

From: "James Miller (office)" <[email-masked]>
Date: Thu, 12 Jun 2003 15:13:33 -0500 (CDT)

> problem (but then, the earliest Pine I've ever used was 4.33, now
Well, that sheds some further perhaps interesting light on the problem.
In one of my posts I pasted an excerpt from the web that referred to a
patch for Pine 4.32, intended to make its image-viewer feature handle
graphics correctly (the graphics were "being erased" before they could get
viewed, according to that page).  Maybe this is a more general problem
afflicting Pine versions prior to 4.33?  Just as a clarification, isn't xv
an X application? I.e., requires being run under Xwindows?  I'm trying to
work from a console where possible, since this is an older machine and
non-X apps run much more efficiently on it.  And, after all, console is
sort of the essential character of Pine, it seems to me.

Thanks, James

---

From: Kenneth Crudup <[email-masked]>
Date: Thu, 12 Jun 2003 13:30:19 -0700 (PDT)

On Thu, 12 Jun 2003, James Miller (office) wrote:

> And, after all, console is sort of the essential character of Pine,
> it seems to me.

Yeah- in an *xterm*! :-)

	-Kenny "f.exec "xterm -n Pine -T Pine -geometry =120x70 -e pine \
	  -p {imap.panix.com/user=kenny/ssl/novalidate-cert}INBOX.remote_pinerc &" Crudup