FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 07-10-2012, 05:06 AM
"Eddie G.O'Connor Jr-I"
 
Default Matching message headers in mutt hooks

On 07/08/2012 10:57 PM, Edward M wrote:

On 07/08/2012 06:07 PM, Eddie G.O'Connor Jr-I wrote:
(stuck trying to decide if I want to go the C, C#, C++ route...or the
Python way)!.....any tips there?...


when I went to vist some people i knew from ixsystems, freebsd
foundation, netbsd project couple months ago
I brought up that i wanted to get into programming and which would
be the best language
for a noob, self taught, like myself, they recommened python
because it is simple to learn and it teaches programming concepts,etc
i went with their advice and went with python 3. Iam currently
reading

Python Programming for the Absolute Beginner, 3rd Edition. great book.
Cool!...then I'm going to go that route as well.....time for me to
branch out and try new avenues of increasing my income!....once again
thanks for the info! If I have any more inquiries I'll be sure to open a
new thread as the moderator for these forums don't want me just
discussing random things in someone else's thread!



EGO II

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-10-2012, 01:34 PM
Suvayu Ali
 
Default Matching message headers in mutt hooks

Hi Alex,

On Mon, Jul 09, 2012 at 02:02:39PM +0200, Alexander Volovics wrote:
> On Mon, Jul 09, 2012 at 11:37:37AM +0200, Suvayu Ali wrote:
>
> > How does one handle attachments? I saw the pipe command and tried to
> > pipe a pdf file to Evince, but it didn't seem to work as I had expected.
> > Do I need an old school viewer like gv for this to work? It's also
> > possible I didn't specify the command properly. I get a lot of
> > pdf/ps/eps/png attachments, so this is crucial need for me.
>
> You could do something like the following:
> Create in ~/ the files .mime.types and .mailcap
>
> ~/.mime.types
> application/pdf pdf
>
> ~/.mailcap
> application/pdf; evince %s; test=test -n "$DISPLAY"
> application/pdf; pdftotext %s %s.txt ; cat %s.txt ; rm -f %s.txt ;
> copiousoutput
>
> then edit ~/.muttrc and add:
> auto_view text/html message/* application/pdf
>
> If I didn't make any mistake you should get a text rendering
> of the pdf directly in mutt (for a quick look).
> I you want to see the pdf in evince hit 'v', select the pdf
> and hit 'enter'.
>

Opening the attachement part works wonderfully! I didn't seem to see a
preview, but then it could be because the pdf was a beamer presentation
with lots of plots.

Thanks a lot.

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-10-2012, 02:23 PM
Alexander Volovics
 
Default Matching message headers in mutt hooks

On Tue, Jul 10, 2012 at 03:34:12PM +0200, Suvayu Ali wrote:

> > You could do something like the following:
> > Create in ~/ the files .mime.types and .mailcap
> >
> > ~/.mime.types
> > application/pdf pdf
> >
> > ~/.mailcap
> > application/pdf; evince %s; test=test -n "$DISPLAY"
> > application/pdf; pdftotext %s %s.txt ; cat %s.txt ; rm -f %s.txt ;
> > copiousoutput
> >
> > then edit ~/.muttrc and add:
> > auto_view text/html message/* application/pdf
> >
> > If I didn't make any mistake you should get a text rendering
> > of the pdf directly in mutt (for a quick look).
> > I you want to see the pdf in evince hit 'v', select the pdf
> > and hit 'enter'.

> Opening the attachement part works wonderfully! I didn't seem to see a
> preview, but then it could be because the pdf was a beamer presentation
> with lots of plots.

I should probably have indicated that 'copiousoutput' should be
on the SAME line as "application/pdf; pdftotext %s %s.txt ; cat %s.txt
; rm -f %s.txt ;"

I don't use it myself anymore so I tried it now and that works.

I would also change the ~/.muttrc entry to:
auto_view text/html application/pdf
(leave out the 'message/*')

I am a bit rusty on mutt mime so I copied from an old laptop
I hardly ever use anymore where I also have the following line in
the ~/.mailcap file:
text/html; elinks -dump %s; nametemplate=%s.html; copiousoutput
to get a text vesion of html mail.

Success
Alexander



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-10-2012, 02:34 PM
Suvayu Ali
 
Default Matching message headers in mutt hooks

Hi Alex,

On Tue, Jul 10, 2012 at 04:23:21PM +0200, Alexander Volovics wrote:
>
> I should probably have indicated that 'copiousoutput' should be
> on the SAME line as "application/pdf; pdftotext %s %s.txt ; cat %s.txt
> ; rm -f %s.txt ;"
>
> I don't use it myself anymore so I tried it now and that works.
>

Yes, I suspected it was a typo so I looked up `man mailcap' before
trying it. I tried with another pdf, again a beamer presentation but
this time more text than plots and I could see a preview indeed!

> I would also change the ~/.muttrc entry to:
> auto_view text/html application/pdf
> (leave out the 'message/*')
>

Okay, I'll leave out the message.

> I am a bit rusty on mutt mime so I copied from an old laptop
> I hardly ever use anymore where I also have the following line in
> the ~/.mailcap file:
> text/html; elinks -dump %s; nametemplate=%s.html; copiousoutput
> to get a text vesion of html mail.
>

My line looks similar except for s/elinks/w3m/.

Thanks a lot.



--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-10-2012, 08:55 PM
"Paul W. Frields"
 
Default Matching message headers in mutt hooks

On Tue, Jul 10, 2012 at 04:34:01PM +0200, Suvayu Ali wrote:
> Hi Alex,
>
> On Tue, Jul 10, 2012 at 04:23:21PM +0200, Alexander Volovics wrote:
> >
> > I should probably have indicated that 'copiousoutput' should be
> > on the SAME line as "application/pdf; pdftotext %s %s.txt ; cat %s.txt
> > ; rm -f %s.txt ;"
> >
> > I don't use it myself anymore so I tried it now and that works.
> >
>
> Yes, I suspected it was a typo so I looked up `man mailcap' before
> trying it. I tried with another pdf, again a beamer presentation but
> this time more text than plots and I could see a preview indeed!
>
> > I would also change the ~/.muttrc entry to:
> > auto_view text/html application/pdf
> > (leave out the 'message/*')
> >
>
> Okay, I'll leave out the message.
>
> > I am a bit rusty on mutt mime so I copied from an old laptop
> > I hardly ever use anymore where I also have the following line in
> > the ~/.mailcap file:
> > text/html; elinks -dump %s; nametemplate=%s.html; copiousoutput
> > to get a text vesion of html mail.
> >
>
> My line looks similar except for s/elinks/w3m/.
>
> Thanks a lot.

I'm no mutt expert, but I keep my configs here for public copying/use:
http://pfrields.fedorapeople.org/configs/mutt/

Obviously you should not just copy my config in wholesale or things
will break badly. ;-) But you can look through it for ideas. If you
don't know what a particular command means, look at the mutt docs in
/usr/share/doc/mutt-* on your machine, or GIYF. Hope this is helpful
to you!

--
Paul W. Frields http://paul.frields.org/
gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233 5906 ACDB C937 BD11 3717
http://redhat.com/ - - - - http://pfrields.fedorapeople.org/
The open source story continues to grow: http://opensource.com
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-10-2012, 09:51 PM
Heinz Diehl
 
Default Matching message headers in mutt hooks

On 10.07.2012, Paul W. Frields wrote:

> I'm no mutt expert, but I keep my configs here for public copying/use:
> http://pfrields.fedorapeople.org/configs/mutt/

My config, including keybind, colours and other stuff is here:
http://www.fritha.org/dot-muttrc.tar.xz

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-11-2012, 08:20 AM
Suvayu Ali
 
Default Matching message headers in mutt hooks

Hi Paul and Heinz,

On Tue, Jul 10, 2012 at 11:51:50PM +0200, Heinz Diehl wrote:
> On 10.07.2012, Paul W. Frields wrote:
>
> > I'm no mutt expert, but I keep my configs here for public copying/use:
> > http://pfrields.fedorapeople.org/configs/mutt/
>
> My config, including keybind, colours and other stuff is here:
> http://www.fritha.org/dot-muttrc.tar.xz
>

Thanks a lot both of you. These will be very helpful as I setup
everything.

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-11-2012, 08:58 AM
"Eddie G.O'Connor Jr-I"
 
Default Matching message headers in mutt hooks

On 07/11/2012 04:20 AM, Suvayu Ali wrote:

Hi Paul and Heinz,

On Tue, Jul 10, 2012 at 11:51:50PM +0200, Heinz Diehl wrote:

On 10.07.2012, Paul W. Frields wrote:


I'm no mutt expert, but I keep my configs here for public copying/use:
http://pfrields.fedorapeople.org/configs/mutt/

My config, including keybind, colours and other stuff is here:
http://www.fritha.org/dot-muttrc.tar.xz


Thanks a lot both of you. These will be very helpful as I setup
everything.


I too thank you all for your info! As soon as I can get my little
hodge-podge home setup straightened out I might look into this!



EGO II


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 05:51 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org