unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* .. regarding opening the attached files ...
@ 2012-04-16 11:02 David Belohrad
  2012-04-16 14:56 ` Mark Walters
  0 siblings, 1 reply; 9+ messages in thread
From: David Belohrad @ 2012-04-16 11:02 UTC (permalink / raw)
  To: notmuch


Dear Experts, 
could someone give me a hint:

I receive an email with attachment. It says it is a pdf, e.g. like this:

 [ Ultra_Low_Noise_AC_Beam_Transformer2.pdf: application/pdf ]

when I click on it, I would assume, that it opens the file using
'default' application, which is - when looking into file associations -
okular.

Instead, it opens a dialog box to save the attachment first. This is not
really desired.

Is there any way how to change it? It seems that is does it will all
attachments, not only pdf. Regardless of whether correct file
association is made in the KDE.

thanks a lot


-- 
.david.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: .. regarding opening the attached files ...
  2012-04-16 11:02 David Belohrad
@ 2012-04-16 14:56 ` Mark Walters
  2012-04-16 15:19   ` Jameson Graef Rollins
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Walters @ 2012-04-16 14:56 UTC (permalink / raw)
  To: David Belohrad, notmuch

On Mon, 16 Apr 2012, David Belohrad <david@belohrad.ch> wrote:
> Dear Experts, 
> could someone give me a hint:
>
> I receive an email with attachment. It says it is a pdf, e.g. like this:
>
>  [ Ultra_Low_Noise_AC_Beam_Transformer2.pdf: application/pdf ]
>
> when I click on it, I would assume, that it opens the file using
> 'default' application, which is - when looking into file associations -
> okular.
>
> Instead, it opens a dialog box to save the attachment first. This is not
> really desired.
>
> Is there any way how to change it? It seems that is does it will all
> attachments, not only pdf. Regardless of whether correct file
> association is made in the KDE.

Hi

it is customizable under M-x customize-group notmuch -> notmuch-show ->
Notmuch Show Part Button Default Action:

The "view" option  uses the mailcap entry to open the attachment.

Best wishes

Mark

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: .. regarding opening the attached files ...
  2012-04-16 14:56 ` Mark Walters
@ 2012-04-16 15:19   ` Jameson Graef Rollins
  2012-04-16 16:45     ` Jeremy Nickurak
  0 siblings, 1 reply; 9+ messages in thread
From: Jameson Graef Rollins @ 2012-04-16 15:19 UTC (permalink / raw)
  To: Mark Walters, David Belohrad, notmuch

[-- Attachment #1: Type: text/plain, Size: 776 bytes --]

On Mon, Apr 16 2012, Mark Walters <markwalters1009@gmail.com> wrote:
> On Mon, 16 Apr 2012, David Belohrad <david@belohrad.ch> wrote:
>> I receive an email with attachment. It says it is a pdf, e.g. like this:
>>
>>  [ Ultra_Low_Noise_AC_Beam_Transformer2.pdf: application/pdf ]
>>
>> when I click on it, I would assume, that it opens the file using
>> 'default' application, which is - when looking into file associations -
>> okular.
...
> it is customizable under M-x customize-group notmuch -> notmuch-show ->
> Notmuch Show Part Button Default Action:
>
> The "view" option  uses the mailcap entry to open the attachment.

Also, when the cursor is on the button you can hit 'o' to open with
default mailcap app, 's' to save, and 'v' to view with a specified app.

jamie.

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: .. regarding opening the attached files ...
  2012-04-16 15:19   ` Jameson Graef Rollins
@ 2012-04-16 16:45     ` Jeremy Nickurak
  2012-04-16 17:03       ` Jameson Graef Rollins
  0 siblings, 1 reply; 9+ messages in thread
From: Jeremy Nickurak @ 2012-04-16 16:45 UTC (permalink / raw)
  To: Jameson Graef Rollins; +Cc: notmuch

On Mon, Apr 16, 2012 at 09:19, Jameson Graef Rollins
<jrollins@finestructure.net> wrote:
> Also, when the cursor is on the button you can hit 'o' to open with
> default mailcap app, 's' to save, and 'v' to view with a specified app.

Is there any way of just getting it to ignore mailcap, and send
everything to xdg-open? It's always bothered me that there are 2
databases for file associations: mailcap (used only by Emacs, afaict),
and the xdg/gnome configuration (used by everything else).

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: .. regarding opening the attached files ...
@ 2012-04-16 16:54 David Belohrad
  2012-04-16 17:01 ` Jeremy Nickurak
  0 siblings, 1 reply; 9+ messages in thread
From: David Belohrad @ 2012-04-16 16:54 UTC (permalink / raw)
  To: Jeremy Nickurak; +Cc: notmuch

Does kde use the same database as gnome? 

Jeremy Nickurak <not-much@trk.nickurak.ca>napsal/a:

>On Mon, Apr 16, 2012 at 09:19, Jameson Graef Rollins
><jrollins@finestructure.net> wrote:
>> Also, when the cursor is on the button you can hit 'o' to open with
>> default mailcap app, 's' to save, and 'v' to view with a specified app.
>
>Is there any way of just getting it to ignore mailcap, and send
>everything to xdg-open? It's always bothered me that there are 2
>databases for file associations: mailcap (used only by Emacs, afaict),
>and the xdg/gnome configuration (used by everything else).

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: .. regarding opening the attached files ...
  2012-04-16 16:54 David Belohrad
@ 2012-04-16 17:01 ` Jeremy Nickurak
  0 siblings, 0 replies; 9+ messages in thread
From: Jeremy Nickurak @ 2012-04-16 17:01 UTC (permalink / raw)
  To: David Belohrad; +Cc: notmuch

No idea. I expect they don't use mailcap though... any KDE users here?

On Mon, Apr 16, 2012 at 10:54, David Belohrad <david@belohrad.ch> wrote:
> Does kde use the same database as gnome?
>
> Jeremy Nickurak <not-much@trk.nickurak.ca>napsal/a:
>
>>On Mon, Apr 16, 2012 at 09:19, Jameson Graef Rollins
>><jrollins@finestructure.net> wrote:
>>> Also, when the cursor is on the button you can hit 'o' to open with
>>> default mailcap app, 's' to save, and 'v' to view with a specified app.
>>
>>Is there any way of just getting it to ignore mailcap, and send
>>everything to xdg-open? It's always bothered me that there are 2
>>databases for file associations: mailcap (used only by Emacs, afaict),
>>and the xdg/gnome configuration (used by everything else).

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: .. regarding opening the attached files ...
  2012-04-16 16:45     ` Jeremy Nickurak
@ 2012-04-16 17:03       ` Jameson Graef Rollins
  0 siblings, 0 replies; 9+ messages in thread
From: Jameson Graef Rollins @ 2012-04-16 17:03 UTC (permalink / raw)
  To: Jeremy Nickurak; +Cc: notmuch

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

On Mon, Apr 16 2012, Jeremy Nickurak <not-much@trk.nickurak.ca> wrote:
> On Mon, Apr 16, 2012 at 09:19, Jameson Graef Rollins
> <jrollins@finestructure.net> wrote:
>> Also, when the cursor is on the button you can hit 'o' to open with
>> default mailcap app, 's' to save, and 'v' to view with a specified app.
>
> Is there any way of just getting it to ignore mailcap, and send
> everything to xdg-open? It's always bothered me that there are 2
> databases for file associations: mailcap (used only by Emacs, afaict),
> and the xdg/gnome configuration (used by everything else).

Yes, gnome is very obnoxious that way.  mailcap has been around *much*
longer than gnome.  There was really no reason for them to reinvent the
wheel.

Right now 'view part' command runs notmuch-show-view-part function,
which calls mm-display-part.  You might check in mm- config settings to
see if there's anything there you can tweak.

jamie.



[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: .. regarding opening the attached files ...
@ 2012-04-16 17:38 David Belohrad
  2012-04-16 18:02 ` Justus Winter
  0 siblings, 1 reply; 9+ messages in thread
From: David Belohrad @ 2012-04-16 17:38 UTC (permalink / raw)
  To: Jeremy Nickurak; +Cc: notmuch

Well that's why I'm asking. I'm kde user.  kde has its own handling of file associations. I assume that it is different solution than gnome has. Hence one might conclude that there is no standard how to provide associations and thus emacs one is as good as all the others 



Jeremy Nickurak <jeremy@nickurak.ca>napsal/a:

>No idea. I expect they don't use mailcap though... any KDE users here?
>
>On Mon, Apr 16, 2012 at 10:54, David Belohrad <david@belohrad.ch> wrote:
>> Does kde use the same database as gnome?
>>
>> Jeremy Nickurak <not-much@trk.nickurak.ca>napsal/a:
>>
>>>On Mon, Apr 16, 2012 at 09:19, Jameson Graef Rollins
>>><jrollins@finestructure.net> wrote:
>>>> Also, when the cursor is on the button you can hit 'o' to open with
>>>> default mailcap app, 's' to save, and 'v' to view with a specified app.
>>>
>>>Is there any way of just getting it to ignore mailcap, and send
>>>everything to xdg-open? It's always bothered me that there are 2
>>>databases for file associations: mailcap (used only by Emacs, afaict),
>>>and the xdg/gnome configuration (used by everything else).
>
>
>
>-- 
>Jeremy Nickurak -= Email/XMPP: -= jeremy@nickurak.ca =-

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: .. regarding opening the attached files ...
  2012-04-16 17:38 .. regarding opening the attached files David Belohrad
@ 2012-04-16 18:02 ` Justus Winter
  0 siblings, 0 replies; 9+ messages in thread
From: Justus Winter @ 2012-04-16 18:02 UTC (permalink / raw)
  To: David Belohrad; +Cc: notmuch

Hi David,

Quoting David Belohrad (2012-04-16 19:38:03)
>[...]

Your mail client is not including any in-reply-to or reference headers
which is *very* annoying for all notmuch users. You can see your mail
thread breaking apart at your replies in the mailing list archive
[0]. And please don't TOFU post to mailing lists.

Thanks,
Justus

0: http://notmuchmail.org/pipermail/notmuch/2012/thread.html#10673

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-04-16 18:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-16 17:38 .. regarding opening the attached files David Belohrad
2012-04-16 18:02 ` Justus Winter
  -- strict thread matches above, loose matches on Subject: below --
2012-04-16 16:54 David Belohrad
2012-04-16 17:01 ` Jeremy Nickurak
2012-04-16 11:02 David Belohrad
2012-04-16 14:56 ` Mark Walters
2012-04-16 15:19   ` Jameson Graef Rollins
2012-04-16 16:45     ` Jeremy Nickurak
2012-04-16 17:03       ` Jameson Graef Rollins

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).