Mikael Böök | 1 Feb 17:02
Picon

Re: How to make Alpine recognize .doc, .odt,.docx again?


It seems that the /etc/mailcap which I have edited on my (personal) 
laptop, where I have installed alpine under ubuntulinux 10.0, is 
every now and then being replaced by a procedure I do not control, and 
thus, without my knowledge. As a consequence, the lines I have added to my 
/etc/mailcap in order to make Alpine open Libre Office, when it recognizes 
a .doc or an .odt , disappear.
What is going on here? 
Mikael

On Tue, 17 Jan 2012, Mikael Book wrote:

>
> Thanks, Mirko, for your advice.
>
> My  /etc/mailcap had no lines about .doc, .docx and .odt so I added the 
> following three lines:
>
> application/MSWORD; /opt/libreoffice3.4/program/swriter '%s'; "$DISPLAY"
> application/vnd.openxmlformats-officedocument.wordprocessingml.document 
> /opt/libreoffice3.4/program/swriter '%s';$
> application/vnd.oasis.opendocument.text; /opt/libreoffice3.4/program/swriter 
> '%s'; "$DISPLAY"
>
> It works for .doc and .odt, but not for .docx. But that's not Alpine's fault, 
> I guess.
>
> Mikael
>
>
(Continue reading)

Favicon

Re: How to make Alpine recognize .doc, .odt,.docx again?

On Wed, 1 Feb 2012, Mikael Böök wrote:

>
> It seems that the /etc/mailcap which I have edited on my (personal) 
> laptop, where I have installed alpine under ubuntulinux 10.0, is every 
> now and then being replaced by a procedure I do not control, and thus, 
> without my knowledge. As a consequence, the lines I have added to my 
> /etc/mailcap in order to make Alpine open Libre Office, when it 
> recognizes a .doc or an .odt , disappear.
> What is going on here? Mikael

To avoid the issue altogether, you can add mailcap items to ~/.mailcap 
(.mailcap in your HOME directory)

Presumably, when you install software that has mailcap entries, the 
system is regenerating /etc/mailcap from some list of all system-wide 
mailcap entries.  Possibly, it's just ported over from MIME type 
entries.  And, there may even be something in the /etc/mailcap comments 
which describes what process is overwriting it.

--

-- 
Best,
Ben
Picon

Re: How to make Alpine recognize .doc, .odt,.docx again?

On Wed, 1 Feb 2012, Mikael Böök wrote:

> 
> It seems that the /etc/mailcap which I have edited on my (personal) laptop,
> where I have installed alpine under ubuntulinux 10.0, is every now and then
> being replaced by a procedure I do not control, and thus, without my
> knowledge. As a consequence, the lines I have added to my /etc/mailcap in
> order to make Alpine open Libre Office, when it recognizes a .doc or an .odt ,
> disappear.
> What is going on here? Mikael

My first shot: this is the normal Ubuntu update-mime routine called
whenever any application is installed, updated or changed in any other way
which may be used in mime-attachment handling (so this may be about any
file-handling application).  It takes the right to freely change contents
of /etc/mailcap, _except_ what is contained between the lines

# ----- User Section Begins ----- #

and 

# -----  User Section Ends  ----- #

So I do my personal, but system-wide configuration between these lines,
and update-mime respects it. As these are in the beginning of the file,
they should take precedence over what may be contained later on. 

Hope this helps, 

Mirko
(Continue reading)

Hugh Sasse | 1 Feb 19:18
Picon
Picon

Re: How to make Alpine recognize .doc, .odt,.docx again?


On Wed, 1 Feb 2012, Mirko Hessel-von Molo wrote:

> On Wed, 1 Feb 2012, Mikael Böök wrote:
> 
> > 
> > It seems that the /etc/mailcap which I have edited on my (personal) laptop,
> > where I have installed alpine under ubuntulinux 10.0, is every now and then
> > being replaced by a procedure I do not control, and thus, without my
> > knowledge. As a consequence, the lines I have added to my /etc/mailcap in
> > order to make Alpine open Libre Office, when it recognizes a .doc or an .odt ,
> > disappear.
> > What is going on here? Mikael
> 
> My first shot: this is the normal Ubuntu update-mime routine called
> whenever any application is installed, updated or changed in any other way
> which may be used in mime-attachment handling (so this may be about any
> file-handling application).  It takes the right to freely change contents
> of /etc/mailcap, _except_ what is contained between the lines
> 
> # ----- User Section Begins ----- #
> 
> and 
> 
> # -----  User Section Ends  ----- #
> 
> So I do my personal, but system-wide configuration between these lines,

I don't think that means anything :-).  It can't be personal and system
wide.  From experience of other Unix systems, this sort of thing in an
(Continue reading)

Lucio Chiappetti | 2 Feb 10:05
Picon

Re: How to make Alpine recognize .doc, .odt, .docx again?

On Wed, 1 Feb 2012, Benjamin R. Haskell wrote:
> On Wed, 1 Feb 2012, Mikael B????k wrote:

>> It seems that the /etc/mailcap which I have edited on my (personal) 
>> laptop, [...] is every now and then being replaced

> To avoid the issue altogether, you can add mailcap items to ~/.mailcap 
> (.mailcap in your HOME directory)

You can even have MORE than one mailcap files (anywhere) and let alpine 
know of all of them (MSC or edit .pinerc for instance I have

Mailcap Search Path = ~/.mailcap:~/.mailcap.pine

There is also a Mimetype Search Path, which can be handled similarly

Just to remind, mailcap associates a MIME type to a viewer, while mimetype 
associates a file extension to a MIME type

e.g. if you want to handle a file DECLARED to be PDF (application/pdf) 
with e.g. acrobat or okular or xpdf, you edit mailcap.

If instead you want to make sure a file with termination .pdf is handled 
by those clients EVEN WHEN DECLARED SOMETHING ELSE, like e.g. 
octet-stream, then you edit mimetype.

As a security, alpine will ask you permission to start the client when 
using the extension to override the mime type
Hugh Sasse | 2 Feb 11:04
Picon
Picon

Re: How to make Alpine recognize .doc, .odt,.docx again?


--
Dr. Hugh Sasse, PhD, BSc(Hons)
Computer Systems Electronic Engineer, Department of Engineering
DE MONTFORT UNIVERSITY

T: +44 (0) 116 207 8062
E: hgs@...
W: dmu.ac.uk

On Wed, 1 Feb 2012, Mirko Hessel-von Molo wrote:

> On Wed, 1 Feb 2012, Hugh Sasse wrote:
> 
> > 
> > On Wed, 1 Feb 2012, Mirko Hessel-von Molo wrote:
> > 
> > > On Wed, 1 Feb 2012, Mikael Böök wrote:
> > > 
> > > > 
> > > > It seems that the /etc/mailcap which I have edited on my (personal) laptop,
> > > > where I have installed alpine under ubuntulinux 10.0, is every now and then
> > > > being replaced by a procedure I do not control, and thus, without my
> > > > knowledge. As a consequence, the lines I have added to my /etc/mailcap in
> > > > order to make Alpine open Libre Office, when it recognizes a .doc or an .odt ,
> > > > disappear.
> > > > What is going on here? Mikael
> > > 
> > > My first shot: this is the normal Ubuntu update-mime routine called
> > > whenever any application is installed, updated or changed in any other way
(Continue reading)

Mikael Böök | 2 Feb 13:41
Picon

Copy (Shift-Control-C)


Does Copy (Shift-Control-C) work in your alpine? In mine it does not. 
Nor can I mark a word or passage in a mail message for copying.

Mikael

Mikael Böök | 2 Feb 13:45
Picon

Re: How to make Alpine recognize .doc, .odt, .docx again?


Thanks again for your advice. I created ~/mailcap and stored the lines

application/MSWORD; /opt/libreoffice3.4/program/swriter '%s'; "$DISPLAY"
application/vnd.oasis.opendocument.text; /opt/libreoffice3.4/program/swriter '%s'; "$DISPLAY"
application/vnd.openxmlformats-officedocument.wordprocessingml.document
/opt/libreoffice3.4/program/swriter '%s';$
application/x-rtf /opt/libreoffice3.4/program/swriter '%s'; "$DISPLAY"

there, and this helps, except for docx and rtf.

Mikael

John Haverty | 2 Feb 15:36
Picon
Favicon

Re: Copy (Shift-Control-C)

Mikael,

Are you using Alpine on Windows, Linux, or Mac?  I use Alpine on Windows 
7 and Ctrl-Shift-C copies for me.  I did a quick check through the 
settings and I do not see anything that would re-map that setting or a 
setting that has to be checked.  It does work on mine though.

John

On 2/2/2012 6:41 AM, Mikael Böök wrote:
>
> Does Copy (Shift-Control-C) work in your alpine? In mine it does not. 
> Nor can I mark a word or passage in a mail message for copying.
>
> Mikael
>
>
>
> _______________________________________________
> Alpine-info mailing list
> Alpine-info <at> u.washington.edu
> http://mailman2.u.washington.edu/mailman/listinfo/alpine-info
Dan | 2 Feb 17:50
Picon
Favicon

Re: Copy (Shift-Control-C)

On Thu, 2 Feb 2012, John Haverty wrote:

> Are you using Alpine on Windows, Linux, or Mac?  I use Alpine on
> Windows 7 and Ctrl-Shift-C copies for me.  I did a quick check
> through the settings and I do not see anything that would re-map
> that setting or a setting that has to be checked.  It does work on
> mine though.

...and if it's Linux with X, you can copy to the X clipboard using
shift-left-button-drag, and paste from the X clipboard using
shift-middle-button.

--

-- 

HTH,

Dan

Gmane