Bob Proulx | 1 Oct 2006 08:57
Favicon
Gravatar

Re: mailcap

Toby wrote:
> Bob Proulx wrote:
> > That implies to me that you want a text mode pdf reader.
> 
> FYI pdftotext (from xpdf-utils) gives a readable output from most PDFs

Oh very good!  I had not known about pdftotext before.  But looking at
it I see that it requires an input file as a file and won't read
stdin.  Therefore it appears to me that it needs a wrapper script to
adapt it nicely for use in mailcap.  Here is one possibility.

  #!/bin/sh
  case $1 in
    *.pdf)
      TMPNAME="$(dirname "$1")/$(basename "$1" .pdf).txt"
      trap 'rm -f "$TMPNAME"' EXIT
      pdftotext "$1"
      cat "$TMPNAME"
      exit 0
      ;;
  esac
  echo "Error: Needs NAME.pdf file argument." 1>&2
  exit 1

With that pdftotext.sh wrapper then the following mailcap entry works
for me.

  application/pdf; pdftotext.sh '%s'; copiousoutput; description=Portable Document Format; nametemplate=%s.pdf

Bob
(Continue reading)

Christian Ebert | 1 Oct 2006 13:47
X-Face
Picon
Gravatar

Re: mailcap

* Bob Proulx on Sunday, October 01, 2006 at 00:57:46 -0600:
> Toby wrote:
>> FYI pdftotext (from xpdf-utils) gives a readable output from most PDFs
> 
> Oh very good!  I had not known about pdftotext before.  But looking at
> it I see that it requires an input file as a file and won't read
> stdin.

errmh, the following works for me:

$ grep pdftotext ~/.mailcap
application/pdf; pdftotext -layout %s -; copiousoutput

c
--

-- 
_B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>

Bob Proulx | 1 Oct 2006 17:14
Favicon
Gravatar

Re: mailcap

Christian Ebert wrote:
> Bob Proulx wrote:
> > Oh very good!  I had not known about pdftotext before.  But looking at
> > it I see that it requires an input file as a file and won't read
> > stdin.
> 
> errmh, the following works for me:
> 
> $ grep pdftotext ~/.mailcap
> application/pdf; pdftotext -layout %s -; copiousoutput

Very good.  I missed this in the man page:

  If text-file is not specified, pdftotext converts file.pdf to
  file.txt.  If text-file is ´-’, the text is sent to stdout.

That certainly makes things much simpler with no temporary files to
worry about.  Thanks for pointing that out.

Bob

Michelle Konzack | 2 Oct 2006 00:19
Picon
Favicon

Re: mailcap

Am 2006-10-01 00:57:46, schrieb Bob Proulx:
> Oh very good!  I had not known about pdftotext before.  But looking at
> it I see that it requires an input file as a file and won't read

???

> stdin.  Therefore it appears to me that it needs a wrapper script to
> adapt it nicely for use in mailcap.  Here is one possibility.

All entries in the mailcap are associated with a %s
which mean string/inputfile and NOT STDIN.

Greetings
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant

--

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Michelle Konzack | 1 Oct 2006 23:37
Picon
Favicon

Re: OT: advanced mailbox protocols

Am 2006-09-27 18:36:31, schrieb Enrico Weigelt:

> * (full text) searching 

You mean server side?  -  This exist already

> * direct access to metadata and single message parts

IMAP

> * storage / encoding abstraction

???

> * update notification

Exist already

> * keywording / tagging (listings by keywords, etc)

IMAP

> * compression

Where?  ...and IF, - for what?
This would be a gigantic Server-Overload!

> * virtual mailboxes (ie. defined upon queries)

???
(Continue reading)

Michael Tatge | 2 Oct 2006 14:52
Picon

Re: mailcap

* On Mon, Oct 02, 2006 Michelle Konzack (linux4michelle <at> freenet.de) muttered:
> Am 2006-10-01 00:57:46, schrieb Bob Proulx:
> > Oh very good!  I had not known about pdftotext before.  But looking at
> > it I see that it requires an input file as a file and won't read
> 
> ???
> 
> > stdin.  Therefore it appears to me that it needs a wrapper script to
> > adapt it nicely for use in mailcap.  Here is one possibility.
> 
> All entries in the mailcap are associated with a %s
> which mean string/inputfile and NOT STDIN.

Wrong, mailcap uses STDIN *unless* %s is used.

HTH,

Michael
--

-- 
Your program is sick!  Shoot it and put it out of its memory.

PGP-Key-ID: 0xDC1A44DD
Jabber:     init[0] <at> amessage.de

Gary Johnson | 2 Oct 2006 22:13

Re: Muttrc Attribution help

On 2006-09-26, Chris Davis <davisfactor <at> gmail.com> wrote:
> Hi all,
> 
> I'm setting up Mutt to work in an Outlook enviornment and I have a
> question on setting the attribution parameter.
> 
> I would like my replies to look similar to Outlooks, like so:
> 
> -----Original Message-----
> From: Sender's name
> Sent: Monday, September 25, 2006 11:10AM
> To: Recipient 1; Recipient 2 <recipient2 <at> yourdomain.com>; Recipient 3
> Cc: Recipient 4; Internal Group 1
> Subject: Subject line goes here
> 
> 
> Currently, my attribution line looks like this:
> 
> set attribution="\n\n\n-----Original Message-----\nFrom: %f\nSent:
> %{%A, %B %d, %Y %I:%M %p}\nTo: %t\nSubject: %s \n"
> 
> Which semi-works.
> 
> The first problem is that it doesn't list any Cc: recipients.
> The second problem is that the To: field looks like this:  To: To Recipient 
> 1
> The third problem is that it only lists the first recipient of the
> original email.
> 
> 
(Continue reading)

Gary Johnson | 2 Oct 2006 23:53

Re: Aborted unmodified message.

Sorry for the long delay in responding.  I was away on vacation for 
a week.

On 2006-09-27, TALEB Hakim <TALEB <at> daps.finances.gov.ma> wrote:
> Hello Gary,
> 
> * Gary Johnson <garyjohn <at> spk.agilent.com> [2006-09-22, 13:46 -0700]:
> 
> > 2.  Figure out what's different between your system and your 
> >     brother's system.
>  
> Perhaps it's due to such a thing. I could make mutt working on 
> Windows 2000 but not under WinXP LSD. I don't know but it seems 
> Ulf Erikson's binary release of mutt works properly only for 
> Windows 95/98/ME/2000, as said on his site.

I don't know enough about Windows to speculate on why his binary 
might not work on XP, but it seems safer to use something you're 
sure works.

>  
> > 3.  Start with a configuration that works and make incremental 
> >     changes toward the configuration that doesn't work.
> 
> > In this case, Edit works sort-of.  Being a "DOS" program, Edit 
> > should understand the path 
> > 'C:\mutt\bin\settings\Temp\mutt-LSDBOT-xxx-x', so it might be useful 
> > to find out why Edit doesn't like it.  Perhaps there is no file 
> > there.  Then you could make a copy of Edit (call it Edit2), put 
> > Edit2 in the directory where Vim resides and verify that mutt can 
(Continue reading)

Cameron McCormack | 3 Oct 2006 08:32
Picon
Gravatar

Mailbox cycling

Hi.

I remember years ago mutt (for me) used to, after pressing 'c' to change
mailboxes, cycle through the mailboxes with new mail with each press of
space.  mutt doesn't do this for me any more.  Instead, pressing space
will only show the first mailbox with new mail; it won't cycle.  Is there any
problem with this feature when using maildirs?

My .muttrc has

  set folder="~/.maildir/"
  mailboxes = =box1 =box2 ...

(among other things).

Any idea what the problem could be?

Thanks,

Cameron

--

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam <at> jabber.org  ▪  ICQ 26955922  ▪  MSN cam <at> mcc.id.au

Cameron McCormack | 3 Oct 2006 08:41
Picon
Gravatar

UTF-8 characters in to_chars

Hi again.

I'd like to use some non-ASCII Unicode characters in the to_chars
variable.  But if I try it, I just get the default replacement character
(U+FFFD) displayed instead.  Unicode characters display fine in the
subject lines in the message index, though.  Is this possible?

Thanks,

Cameron

--

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam <at> jabber.org  ▪  ICQ 26955922  ▪  MSN cam <at> mcc.id.au


Gmane