Re: Going GUI...er

2020-04-04 Thread Brian Salter-Duke
I set this up long ago and now at the age of 80 I am beginning 
to forget what I did. Basically I have mutt set up so when the cursor 
is on a message, typing 'v' shows the bits of it. If only html, or
if there are several sections I move the cursor to the html section.
I them hit 'm' and it opens the html in google. It is messy but it 
works.

On Sat, Apr 04, 2020 at 09:41:59AM +0200, Vegard Svanberg wrote:
> Hi,
> 
> I love Mutt.
> 
> However, I'm increasingly finding myself having to resort to various
> tricks to deal with HTML only emails (with picture attachments),
> calendar invites, and other oddities and awkward stuff people send.
> 
> My Holy Grail, which would be a native Mutt GUI client, I guess, doesn't
> seem to exist.
> 
> I don't know how I would survive with a regular GUI client like
> Thunderbird or Evolution. I've tried, but they all suck. Mutt's
> keybindings, search and navigation features are irreplaceable.
> 
> Currently I'm running Mutt from a machine which I ssh into from 5 other
> computers I use frequently (IMAP backend - self-hosted).
> 
> Suggestions? What does everyone else do?
> 
> -- 
> Vegard Svanberg  [*Takapa@IRC (EFnet)]

-- 
On two occasions I have been asked [by members of Parliament], "Pray, Mr. 
Babbage, if you put into the machine wrong figures, will the right answers 
come out?". I am not able rightly to comprehend the kind of confusion of 
ideas that could provoke such a question.
   -- Charles Babbage
Brian Salter-Duke (Brian Duke) Email: brian(DOTjames(DOTduke(AT)gmail(DOT)com


A mutt related fetchmail problem.

2017-10-05 Thread Brian Salter-Duke
I use fetchmail to download emails from two different accounts into mutt. This
worked fine for years on my desktop and then my laptop when travelling. I am
currently travelling and using my laptop.

Some times I get the following output:-

fetchmail: No mail for b_d...@bigpond.net.au at pop.telstra.com
fetchmail: Server certificate verification error: unable to get local issuer 
certificate
fetchmail: Broken certification chain at: /OU=GlobalSign Root CA - 
R2/O=GlobalSign/CN=GlobalSign
fetchmail: This could mean that the server did not provide the intermediate 
CA's certificate(s), 
   which is nothing fetchmail could do anything about.  For details, 
please see the 
   README.SSL-SERVER document that ships with fetchmail.
fetchmail: This could mean that the root CA's signing certificate is not in the 
trusted CA 
   certificate location, or that c_rehash needs to be run on the 
certificate directory. 
   For details, please see the documentation of --sslcertpath and 
--sslcertfile in the 
   manual page.
fetchmail: OpenSSL reported: error:14090086:SSL 
routines:SSL3_GET_SERVER_CERTIFICATE:certificate 
   verify failed
fetchmail: SSL connection failed.
fetchmail: socket error while fetching from 
brian.james.d...@gmail.com@pop.gmail.com
fetchmail: Query status=2 (SOCKET

It get the mail from bigpond account, but fails on the gmail account. On the
surface, it seems that the CA's signing certificate is corrupt. If that was the
case it would always fail. But it does not always fail. Sometimes is downloads
fine. I am using different wi-fi connections and it seems that once it starts
to fail with one wi-fi it continues to fail even after a reboot, but I am not
certain about that. With a new wi-fi it sometime works fine and then later it
fails. Sometimes it fails at first and then works. I have run c_rehash and that
does change anything. I can of course read gmail mail in firefox, but I want to
download it.

Can anyone throw any light on this?

Regards to all mutters, Brian.
-- 
Brian Salter-Duke (Brian Duke) Email: brian.james.d...@gmail.com 
 Web: http://www.salter-duke.bigpondhosting.com/brian/index.htm 


Re: group mailings with blind cc

2016-04-15 Thread Brian Salter-Duke
On Fri, Apr 15, 2016 at 04:13:47PM -0400, Jon LaBadie wrote:
> On Fri, Apr 15, 2016 at 09:48:26PM +0200, Alarig Le Lay wrote:
> > On Fri Apr 15 14:40:27 2016, Jon LaBadie wrote:
> > > I'm trying to set up a way to send periodic notices
> > > to a list of people with the restriction that the
> > > recipients email addresses not be generally visible,
> > > thus they would be listed in the Bcc: header.
> > > 
> [snip]
> > 
> > Hi,
> > 
> > Why do you don’t set up a mailing list? That’s their aim.
> > If you do so, you don’t have to care about Bcc header, just send a mail
> > to tf...@jgcomp.com.
> > 
> 
> Not enough traffic.  I wouldn't expect more than
> 1 or 2 messages a year.  Like meet times change
> in the summer, revert in fall.
> 
> jl
> -- 
> Jon H. LaBadie j...@jgcomp.com
>  11226 South Shore Rd.  (703) 787-0688 (H)
>  Reston, VA  20190  (703) 935-6720 (C)

How large is the list. If it is not too large, just make a group alias
in your alias file and send the message putting that alias in the Bcc line.
I do that for about 30 or 40 people.

Brian.

-- 
I really didn't foresee the Internet. But then, neither did the computer 
industry. Not that that tells us very much, of course - the computer 
industry didn't even foresee that the century  was going to end.   
   -- Douglas Adams 
Brian Salter-Duke (Brian Duke) Email: brian.james.duke(AT)gmail(DOT)com


Re: select wrapped lines / click long url / bug 3453

2015-11-28 Thread Brian Salter-Duke
On Sat, Nov 28, 2015 at 08:28:29AM +0100, Matthias Apitz wrote:
> El día Saturday, November 28, 2015 a las 06:18:56PM +1100, Erik Christiansen 
> escribió:
> 
> > On 28.11.15 07:01, Brian Salter-Duke wrote:
> > > I use a Ubuntu terminal and the url above shows up highlighted in blue.
> > > I hold the mouse over it and right click brings up a menu. I select
> > > "open in browser" and it does just that. For attached html I use 
> > > mutt_bgrun. I have a script with several alternatives:-
> 
> Hello,
> 
> Which terminal is this exactly in Ubuntu? I'm used to use uRxvt in an
> KDE4 environment in FreeBSD. This does not have this mouse-over/menu
> feature, at leasr AFAIK.
> 
>   matthias

I am not sure. I am using Ubuntu 12.04 with unity and it is what is called 
"terminal", if you look
in the dash home.

Brian.

> -- 
> Matthias Apitz, ✉ g...@unixarea.de,  http://www.unixarea.de/  ☎ 
> +49-176-38902045

-- 
A Computer is like a horse, it will sense weakness.
-- Greg Wettstein
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: select wrapped lines / click long url / bug 3453

2015-11-27 Thread Brian Salter-Duke
On Fri, Nov 27, 2015 at 07:01:24PM +, David Woodfall wrote:
> >Hi!
> >
> >I'm currently using mutt in xterm, and I finally got tired of copy
> >long urls (wrapped in multiple lines) from mutt to browser. Ideally, I'd
> >like to be able to open urls by clicking them.
> >
> >It looks like xterm doesn't support clicking on urls, so I'm ready to
> >switch to any other terminal emulator which will support this feature.
> >Right now I'm experimenting with Konsole, but it's just a random choice.
> >
> >   Side note about 'markers': I'd like them, but had to switch them off
> >   to avoid junk inside urls. Ideally, I'd like to be able to have
> >   markers in all wrapped lines except inside urls - is that possible?
> >
> >Problem is, konsole doesn't detect wrapped urls as single line. While
> >investigating this issue I noticed line selection (using triple-click) also
> >doesn't detect lines wrapped by mutt as single line (but it does work for
> >lines wrapped by other apps like less or bash, both in xterm and konsole).
> >
> >So, looks like something is broken in mutt.
> >Maybe this issue is already known: http://dev.mutt.org/trac/ticket/3453
> >
> >
> >I don't like to use url shorteners because of several reasons:
> >- I wanna see real url before opening it
> >- private urls unintentionally made public
> >- changing content of incoming emails may break things (like pgp signatures)
> >- probably won't work for outgoing emails
> >and first reason is most important.
> >
> >I know about urlview, but it both doesn't show long urls well and more
> >complicated to use than just copy (with disabled markers).
> >
> >Can anyone recommend any other solutions? How you open long urls?
> >
> >-- 
> > WBR, Alex.
> 
> It would be nice to see this fixed somehow. I've used urlview in the
> past but I prefer to see links in the context of the surrounding text.
> 
> Dave

I use a Ubuntu terminal and the url above shows up highlighted in blue.
I hold the mouse over it and right click brings up a menu. I select
"open in browser" and it does just that. For attached html I use 
mutt_bgrun. I have a script with several alternatives:-

#!/bin/bash 
#
# see_html
# script to give choice of viewer for html attachments
#
# Brian Salter-Duke <b_d...@bigpond.net.au>
# This version: 13 May 2007
#---
#
view2="4"
echo "Menu for possible applications."
echo
echo "  1   Use lynx"
echo "  2   Use w3m"
echo "  3   Use Firefox"
echo "  4   Use Google Chrome"
echo "  0   Exit"
echo
echo 
echo -n "Type in the number of the application you want: "
read viewer
if [ -z $viewer ]; then
viewer=$view2
fi
#
case $viewer in
0)
exit
;;
1)
echo "lynx -dump -force_html $1"
lynx -dump -force_html $1 > /tmp/out$$
/usr/bin/less /tmp/out$$
rm /tmp/out$$
;;
2) 
echo "w3m -dump $1"
#/usr/bin/w3m -dump $1 > /tmp/out$$
/usr/bin/w3m -dump -T text/html -I %{charseti} $1 | /usr/bin/less
#/usr/bin/less /tmp/out$$
#rm /tmp/out$$
;;
3) 
echo "Using Firefox for $1"
mutt_bgrun firefox $1
;;
4) 
echo "Using google-chrome for $1"
mutt_bgrun google-chrome -enable-plugins $1
;;
esac

These solutions have been around for a long time. Am I missing something?

Brian
-- 
"The box said 'Windows 95 or better', so I installed Linux"
-- Unknown
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Use of vcalendar with mutt

2015-07-30 Thread Brian Salter-Duke
On Thu, Jul 30, 2015 at 10:14:39PM +0200, Bernard Massot wrote:
 Le 30/07/2015 à 07:36, Brian Salter-Duke a écrit :
  I will try to attach it. Thanks for all your help.
 It worked fine for me. If didn't for you it means you missed something.
 Here is my setup:
 
 In ~/.muttrc:
 auto_view text/calendar
 
 In ~/.mailcap:
 text/calendar; ~/.mutt/vcalendar-filter; copiousoutput

I finally got there. One problem was that I had a text/* line in
mailcap. I had to put the text/calendar above it. 

Then my mailcap had this comment in it from way back - I forget where.

# Mutt can only edit attachments if they have a mailcap edit entry.
# (This would be a good thing to fix.)  However, a mailcap entry
# apparently must include the display function--it can't be defaulted.
# The combination cat; copiousoutput comes close to the default in
# that in invokes the default pager on the output of cat.  However,
# there is apparently no way to specify the default editor--a shell
# environment variable such as $VISUAL or $EDITOR is as close as we can
# get.
#

I had to follow it. The commented text/calendar line if I uncomment it
does not work, but the one below does. So I am there, but why? Any thoughts.

#text/calendar; /home/brian/.mutt/vcalendar-filter 
text/calendar; /home/brian/.mutt/vcalendar-filter; copiousoutput; edit=$VISUAL 
%s
 
A further question - where is the path set to find the mailcap file?

Thanks for your help.

Brian.

 Did you forget to make vcalendar-filter executable?
 Test it independently from Mutt. Save the text/calendar part in
 /tmp/foo.ics and run:
 ~/.mutt/vcalendar-filter  /tmp/foo.ics
 What does that return?
 
 For the reference, here is how your mail looks with my setup:
 
 
 Date: Mon, 20 Jul 2015 10:27:13 +1000
 From: Karen Drakatos karen.draka...@monash.edu
 To: PharmacyHDRStudents
 Cc: 
 Subject: REMINDER: 2015 3MT competition this Friday
 
 [-- Autoview using ~/.mutt/vcalendar-filter --]
 Timezone: AUS Eastern Standard Time
 
 
 Summary : REMINDER: 2015 3MT competition this Friday
 
 Description : Dear all
 
   You’re invite to attend the 2015 Faculty Three Minute
   Thesis (3MT®) competition. Every researcher knows that
   one of the key elements to making an impact with your
   research is to convey its importance to the general
   public. But, could you explain your research is just three
   minutes? That is the unique challenge that awaits our fast-
   thinking graduate research students who have entered the
   3MT® competition! Please come along and show your support
   to our students who will provide engaging, inspirational
   and a concise three minute summary of their work. For
   catering purposes, please accept this calendar invitation.
   Date: Friday, 24th July 2015 Venue: Cossar Hall Mural
   Section Time: Please ensure you arrive and be seated no
   later than 12pm. The start time will be 12pm sharp.
 
 
 Location: Cossar Hall
 Dtstart : 2015-07-24 12:00
 Dtend   : 2015-07-24 14:00
 
 -- 
 Bernard Massot

-- 
On two occasions I have been asked [by members of Parliament], Pray, Mr. 
Babbage, if you put into the machine wrong figures, will the right answers 
come out?. I am not able rightly to comprehend the kind of confusion of 
ideas that could provoke such a question.
   -- Charles Babbage
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Use of vcalendar with mutt

2015-07-29 Thread Brian Salter-Duke
On Thu, Jul 23, 2015 at 09:32:29AM +1000, Brian Salter-Duke wrote:
 
 Le 22/07/2015 à 20:31, Brian Salter-Duke a écrit :
  It does have a lot od email addresses in it. If you email me, I will send 
  you a
  copy , but I do not think I can put it to the list.
 You can edit it directly from Mutt (with the 'e' key) before sending it
 to this list. It would be better this way.

I will try to attach it. Thanks for all your help.

Brian

-- 
English is about as pure as a cribhouse whore. We don't just borrow words; 
on occasion, English has pursued other languages down alleyways to beat 
them unconscious and riffle [sic] their pockets for new vocabulary
-- James D. Nicoll
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au
---BeginMessage---
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VTIMEZONE
TZID:AUS Eastern Standard Time
BEGIN:STANDARD
DTSTART:16010401T03
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
TZOFFSETFROM:+1100
TZOFFSETTO:+1000
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16011007T02
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=10
TZOFFSETFROM:+1000
TZOFFSETTO:+1100
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ATTENDEE;CNCREATED:20150720T002712Z
DESCRIPTION:Dear all \n\nYou’re invite to attend the 2015 Faculty Three M
	inute Thesis (3MT®) competition.\nEvery researcher knows that one of the 
	key elements to making an impact with your research is to convey its impor
	tance to the general public.  But\, could you explain your research is jus
	t three minutes?  \nThat is the unique challenge that awaits our fast-thin
	king graduate research students who have entered the 3MT® competition!  \
	nPlease come along and show your support to our students who will provide 
	engaging\, inspirational and a concise three minute summary of their work.
	 \nFor catering purposes\, please accept this calendar invitation. \nDate:
		Friday\, 24th July 2015\nVenue:	Cossar Hall Mural Section\nTime:	Please e
	nsure you arrive and be seated no later than 12pm. The start time will be 
	12pm sharp.\n
DTEND;TZID=AUS Eastern Standard Time:20150724T14
DTSTAMP:20150720T002712Z
DTSTART;TZID=AUS Eastern Standard Time:20150724T12
LAST-MODIFIED:20150720T002713Z
LOCATION:Cossar Hall
PRIORITY:5
SEQUENCE:1
SUMMARY;LANGUAGE=en-au:REMINDER: 2015 3MT competition this Friday
TRANSP:OPAQUE
UID:04008200E00074C5B7101A82E008D047944DCF7DD001000
	01000C0F6B5DA0EA60A4A919327F0F675DD5E
X-ALT-DESC;FMTTYPE=text/html:!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//E
	N\nHTML\nHEAD\nMETA NAME=Generator CONTENT=MS Exchange Server ve
	rsion 14.02.5004.000\nTITLE/TITLE\n/HEAD\nBODY\n!-- Converted f
	rom text/rtf format --\n\nP DIR=LTRSPAN LANG=en-auFONT FACE=Calib
	riDear all /FONT/SPAN/P\n\nP DIR=LTRSPAN LANG=en-au/SPANS
	PAN LANG=en-au/SPANSPAN LANG=en-au/SPANSPAN LANG=en-au/SPA
	N/P\n\nP DIR=LTRSPAN LANG=en-au/SPANSPAN LANG=en-auFONT FA
	CE=CalibriYou’re invite to attend the 2015 Faculty Three Minute Thesi
	s (3MT®) competition./FONT/SPAN/P\n\nP DIR=LTRSPAN LANG=en-au
	FONT FACE=CalibriEvery researcher knows that one of the key elements t
	o making an impact with your research is to convey its importance to the g
	eneral public.nbsp\; But\, could you explain your research is just three 
	minutes?nbsp\; /FONT/SPAN/P\n\nP DIR=LTRSPAN LANG=en-auFONT 
	FACE=CalibriThat is the unique challenge that awaits our fast-thinking 
	graduate research students who have entered the 3MT® competition!nbsp\; 
	/FONT/SPAN/P\n\nP DIR=LTRSPAN LANG=en-auFONT FACE=CalibriP
	lease come along and show your support to our students who will provide en
	gaging\, inspirational and a concise three minute summary of their work. 
	/FONT/SPAN/P\n\nP DIR=LTRSPAN LANG=en-auFONT FACE=CalibriFo
	r catering purposes\, please accept this calendar invitation. /FONT/SPA
	N/P\n\nP DIR=LTRSPAN LANG=en-au/SPANSPAN LANG=en-auFONT FA
	CE=CalibriDate:nbsp\;nbsp\; Friday\, 24/FONT/SPANSPAN LANG=en-a
	uSUPFONT FACE=Calibrith/FONT/SUP/SPANSPAN LANG=en-auFON
	T FACE=Calibri July 2015/FONT/SPAN/P\n\nP DIR=LTRSPAN LANG=en
	-auFONT FACE=CalibriVenue:nbsp\; Cossar Hall Mural Section/FONT/
	SPAN/P\n\nP DIR=LTRSPAN LANG=en-auFONT FACE=CalibriTime:nbsp
	\;nbsp\; Please ensure you arrive and be seated no later than 12pm. The s
	tart time will be 12pm sharp./FONT/SPAN/P\n\nP DIR=LTRSPAN LANG=
	en-au/SPANSPAN LANG=en-au/SPANSPAN LANG=en-au/SPANSPAN LA
	NG=en-au/SPAN/P\n\nP DIR=LTRSPAN LANG=en-au/SPANSPAN LANG=
	en-auFONT FACE=CalibriRegards/FONT/SPAN/P\n\nP DIR=LTRSPAN
	 LANG=en-au/SPANSPAN LANG=en-auFONT FACE=CalibriKaren Drakato
	s/FONT/SPAN/P\n\nP DIR=LTRSPAN LANG=en-auFONT FACE=Calibri
	Postgraduate Research Programs Administrator /FONT/SPAN/P\n\nP DIR=
	LTRSPAN LANG=en-auFONT FACE=CalibriFaculty of Pharmacy and Pharma
	ceutical Sciences/FONT/SPAN/P\n\nP DIR=LTRSPAN LANG=en-auFONT
	 FACE=CalibriMonash University (Parkville Campus)/FONT

Re: Use of vcalendar with mutt

2015-07-22 Thread Brian Salter-Duke
On Wed, Jul 22, 2015 at 10:48:02AM +0200, Bernard Massot wrote:
 Le 22/07/2015 à 15:41, Brian Salter-Duke a écrit :
  I have that in my muttrc, but in the case where the only part of
  the email shows as:-
   
  1 [ 8.6K] no descriptionquoted-printable text/calendar
  
  it gives:-
  
  [-- Autoview using cat --]
  
  at the top of the plain text output. I am puzzled.
 Could you send us an example of such a mail? (If you have one with no
 private information in it.)
 Attach the whole mail, so that we can look at the headers.
 -- 
 Bernard Massot

It does have a lot od email addresses in it. If you email me, I will send you a
copy , but I do not think I can put it to the list.

Brian.
-- 
~
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Use of vcalendar with mutt

2015-07-21 Thread Brian Salter-Duke
On Mon, Jul 20, 2015 at 11:44:03PM +0200, Bernard Massot wrote:
 Le 20/07/2015 à 13:31, Brian Salter-Duke a écrit :
  I used vcalender long ago, but then had no use for it, but I am now getting 
  a
  lot of important emails from the university where I have an adjunct
  appointment. I work at home and I do not have the Windows nonsense that full
  time members of the department have to use.
 I'm not sure if this is what you meant, but iCalendar format is not
 Windows nonsense. It's a plain text format standardized in a RFC.
 
  In my mailcap I have:-
  
  text/calendar; /home/brian/.mutt/vcalendar-filter; copiousoutput
  application/ics; /home/brian/.mutt/vcalendar-filter; copiousoutput
 You have to use auto_view text/calendar application/ics in your
 .muttrc as well.
 Otherwise Mutt shows it as plain text, i.e. in its raw format.

Thanks for the suggestion.

I have that in my muttrc, but in the case where the only part of
the email shows as:-
 
1 [ 8.6K] no descriptionquoted-printable text/calendar

it gives:-

[-- Autoview using cat --]

at the top of the plain text output. I am puzzled.

Brian.

 -- 
 Bernard Massot

-- 
Using encryption on the Internet is the equivalent of arranging an
armored car to deliver credit-card information from someone living in a
cardboard box to someone living on a park bench.
-- Gene Spafford
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Use of vcalendar with mutt

2015-07-19 Thread Brian Salter-Duke
I used vcalender long ago, but then had no use for it, but I am now getting a
lot of important emails from the university where I have an adjunct
appointment. I work at home and I do not have the Windows nonsense that full
time members of the department have to use. I use mutt as I have done for
longer than I can now remember.

In my mailcap I have:-

text/calendar; /home/brian/.mutt/vcalendar-filter; copiousoutput
application/ics; /home/brian/.mutt/vcalendar-filter; copiousoutput

from long ago. 

I have now got the second line to work when there is a *.ics attachment. 
I had to download and install several perl modules used by vcalendar-filter
which were not on my current machine.

However I get messages where the whole email is text/calendar with
nothing else.  Typing 'v' just shows:-

1 [ 8.6K] no description  quoted-printable text/calendar

Opening that gives:-

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VTIMEZONE
TZID:AUS Eastern Standard Time
BEGIN:STANDARD
DTSTART:16010401T03
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
TZOFFSETFROM:+1100
TZOFFSETTO:+1000
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16011007T02
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=10
TZOFFSETFROM:+1000
TZOFFSETTO:+1100
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT

and so on. Is that expected or is there a way to get something
a bit more useful?

It is a long time ago when I added anything usefull to the mutt project, so
many thanks to all who have kept it going so well over the years. It must also
be many years since I posted here.

Cheers, Brian.

-- 
On two occasions I have been asked [by members of Parliament], Pray, Mr. 
Babbage, if you put into the machine wrong figures, will the right answers 
come out?. I am not able rightly to comprehend the kind of confusion of 
ideas that could provoke such a question.
   -- Charles Babbage
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Can not delete attachements

2015-02-20 Thread Brian Salter-Duke
I am receiving emails from a colleague that have the following attachements:-

1 [  10M] no description7bit 
multipart/alternative
2 [ 3.6K] no description   
quoted-printable text/plain
3 [  10M] no description  7bit 
multipart/mixed
4 [ 3.8K] no description
quoted-printable text/html
5 [ 9.4M] H2-paper.docx  base64 
application/vnd.openxmlformats-officedocument.wordprocess
6 [ 0.2K] no description
7bit text/html
7 [ 816K] H2-paper.pdfbase64 
application/pdf
8 [ 2.5K] no description
quoted-printable text/html
9 [ 7.2K] smime.p7s   base64 
application/pkcs7-signature

I can save the docx and pgf files, but having done so, I want to delete them
from the email, which of course I want to save. However it will not let me.  It
is something to do with the smime.p7s signiture. How can I delete the large
files?  Any help eould be appreciated.

Cheers, Brian.

-- 
Brian Salter-Duke (Brian Duke) b_d...@bigpond.net.au  
Melbourne, Australia.


Re: pop(s),smtp(s)

2014-11-03 Thread Brian Salter-Duke
On Mon, Nov 03, 2014 at 12:55:07PM -0500, DaleKelly wrote:
 On 11/03/2014 11:41 AM, John Niendorf wrote:
 Just a note: ~/ is shorthand for/home/dale/
 
 
 installed from repository, more recent
 
 set up my ~/.muttrc file
 
 with these additions
 
 set smtp_host=smtp://u...@smtpout.secureserver.net:80
 set pop_host=pop://u...@pop.secureserver.net:110
 
 (can't use port 25 for my SMTP server, 80 works on Thunderbird,
 trying to get a lower memory footprint for email/news, have problems
 with desktop switcher)
 
 get these errors
 
 dale@dale-W3653:~$ mutt
 Error in /home/dale/.muttrc, line 136: smtp_host: unknown variable
 source: errors in /home/dale/.muttrc
 Press any key to continue...

This is pointing to the problem. Look at line 136. Is line 136 the one
you give above:-

set smtp_host=smtp://u...@smtpout.secureserver.net:80

Do you have to replace user with your user name? 

When you type mutt -v at the prompt, do you get +USE_SMTP in the
output, or do you get -USE_SMTP? If you get the latter you have not
compiled mutt with SMTP support so it will not recognise smtp_host.

You have the error message. You have the manual. Just search until you
debug this problem.

Brian.
 
 
 (mutt loads but emails sent are not received)
 
 -- 
 (my whereabouts below)
 http://www.dalekelly.org/

-- 


Re: Long urls

2013-03-30 Thread Brian Salter-Duke
On Sat, Mar 30, 2013 at 02:56:18PM +0100, John Niendorf wrote:
 I am using Mutt-patched from the Ubuntu repository (Yes, I am one of the 
 unwashed.)
 Anyway, it works really well except that if a url extends to multiple lines, 
 Mutt can't figure it out and clicking leads to a page not found error.
 
 I tried copying the url, but when I highlight the lines with the url I end up 
 copying a bunch of other stuff that is not in the url (like part of the list 
 of folders in the Mutt side panel, for example).
 
 Does anyone know a way to deal with long urls aside from opening up 
 Thunderbird?

urlview or urlscan. They are in the Ubuntu synopticpackage manager.
 
 Thanks for any advice, I really appreciate it.
 
 John

-- 


Re: Is it supposed to be possible to deliver mail while mutt has the mbox open?

2013-03-24 Thread Brian Salter-Duke
I looked at a mbox that was entirely created under Ubuntu and there are
blank lines at the end of each message before the From line.


On Sat, Mar 23, 2013 at 03:28:29PM +, Chris Green wrote:
 On Sun, Mar 24, 2013 at 01:22:56AM +1100, Erik Christiansen wrote:
  On 23.03.13 12:40, Chris Green wrote:
   Well I first actually tried it and saw no blank line.
   
   I've now looked throught my archive (1845 mailboxes) and most of them,
   saved with mutt, using S[ave], seem *not* to have a blank line either.
   There are some with blank lines between but I suspect that's because of
   migrating back and forth between various formats quite a lot over the
   years.
  
  That is weird, because I'm using:
 Mutt 1.5.21+145 (2a1c5d3dd72e) (2012-12-30)
  but have used a whole string of older mutts over the years. And I've
  never made (or heard of) a related config setting which could explain
  the behavioural difference.
  
   Certainly my current mutt 1.5.21 doesn't put a blank line in there and
   it's quite standard from the Ubuntu repositories (though I suppose they
   *might* have done something funny to it).
  
  So your mailboxes, viewed in vim or similar, have the /^From / line
  immediately following the last non-blank line of the previous message!!?
  That's something I've never seen ... in decades, mostly with mutt.
  
 Here, I've just sent myself three test E-Mails and have saved them to a
 mailbox called test, here is the result:-
 
 From MAILER-DAEMON Sat Mar 23 15:19:20 2013
 Return-Path: ch...@zbmc.eu
 X-Original-To: chris
 Delivered-To: ch...@zbmc.eu
 Received: by chris.zbmc.eu (Postfix, from userid 1000)
 id 94F62380255; Sat, 23 Mar 2013 15:19:20 + (GMT)
 Date: Sat, 23 Mar 2013 15:19:20 +
 From: Chris Green ch...@isbd.co.uk
 To: Chris Green ch...@zbmc.eu
 Subject: Test
 Message-ID: 20130323151920.GC10234@chris
 MIME-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 User-Agent: Mutt/1.5.21 (2010-09-15)
 Content-Length: 31
 Lines: 3
 
 This is test 3
 
 --
 Chris Green
 From MAILER-DAEMON Sat Mar 23 15:18:53 2013
 Return-Path: ch...@zbmc.eu
 X-Original-To: chris
 Delivered-To: ch...@zbmc.eu
 Received: by chris.zbmc.eu (Postfix, from userid 1000)
 id B4267380255; Sat, 23 Mar 2013 15:18:53 + (GMT)
 Date: Sat, 23 Mar 2013 15:18:53 +
 From: Chris Green ch...@isbd.co.uk
 To: Chris Green ch...@zbmc.eu
 Subject: Test1
 Message-ID: 20130323151853.GA10234@chris
 MIME-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 User-Agent: Mutt/1.5.21 (2010-09-15)
 Status: O
 Content-Length: 31
 Lines: 3
 
 This is test 1
 
 --
 Chris Green
 From MAILER-DAEMON Sat Mar 23 15:19:06 2013
 Return-Path: ch...@zbmc.eu
 X-Original-To: chris
 Delivered-To: ch...@zbmc.eu
 Received: by chris.zbmc.eu (Postfix, from userid 1000)
 id 12196380255; Sat, 23 Mar 2013 15:19:06 + (GMT)
 Date: Sat, 23 Mar 2013 15:19:06 +
 From: Chris Green ch...@isbd.co.uk
 To: Chris Green ch...@zbmc.eu
 Subject: Test2
 Message-ID: 20130323151905.GB10234@chris
 MIME-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 User-Agent: Mutt/1.5.21 (2010-09-15)
 Status: O  
 Content-Length: 31
 Lines: 3
 
 This is test 2
 
 --
 Chris Green
 
 
 I saved them separately (i.e. I didn't do a tag-save), nothing else
 special at all, as you can see I didn't save them in the order I
 sent them.
 
 'mutt -v' returns:-
 
 chris$ mutt -v
 Mutt 1.5.21 (2010-09-15)
 Copyright (C) 1996-2009 Michael R. Elkins and others.
 Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
 Mutt is free software, and you are welcome to redistribute it
 under certain conditions; type `mutt -vv' for details.
 
 System: Linux 3.5.0-26-generic (x86_64)
 ncurses: ncurses 5.9.20110404 (compiled with 5.9)
 libidn: 1.25 (compiled with 1.25)
 hcache backend: tokyocabinet 1.4.47
 Compile options:
 -DOMAIN
 +DEBUG
 -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  +USE_FCNTL
 -USE_FLOCK   
 +USE_POP  +USE_IMAP  +USE_SMTP  
 -USE_SSL_OPENSSL  +USE_SSL_GNUTLS  +USE_SASL  +USE_GSS
 +HAVE_GETADDRINFO  
 +HAVE_REGCOMP  -USE_GNU_REGEX  
 +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
 +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
 +CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME
 +CRYPT_BACKEND_GPGME  
 -EXACT_ADDRESS  -SUN_ATTACHMENT  
 +ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS
 +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR  
 +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  
 -ISPELL
 

Re: sidebar patch

2013-02-11 Thread Brian Salter-Duke
On Mon, Feb 11, 2013 at 09:53:17AM +0100, Scott Stevenson wrote:
 On Mon, Feb 11, 2013 at 06:56:46AM +1100, Brian Salter-Duke wrote:
  On Sun, Feb 10, 2013 at 06:46:11PM +0100, Scott Stevenson wrote:
   On Sun, Feb 10, 2013 at 07:52:57PM +0530, dexter wrote:
I'm new to mutt, just installed one and getting 
to know it, how do i get sidebar in mutt, google
search tells me that i have to apply a patch,
i'm running on ubuntu, where can i get this patch?
   
   Debian and derivatives such as Ubuntu provide a `mutt-patched` package,
   which includes the sidebar patch.
  
  I have Ubuntu 12.04 and Mutt 1.5.21 (2010-09-15) unmodified by me. It
  does not have the sidebar patch as far as I can see. 
 
 Then I suspect you have the `mutt` package [0] installed rather than
 `mutt-patched` [1]. The sidebar patch is only included in the latter.
 
 [0] http://packages.ubuntu.com/precise/mail/mutt
 [1] http://packages.ubuntu.com/precise/mail/mutt-patched

Yes, you are right. mutt has a whole lot of patches included, so I did
not think to look for a more patched version. I have long been wary
about the sidebar patch but had never tried it. I now understand why it
is not included in the main release and I fully support that. It is
easier to use mutt without it. Unfortunately installing mutt-patched
installed /usr/bin/mutt-patched but overwrote /usr/bin/mutt to be a soft
link to mutt-patched. I had to uninstall mutt-patched and then reinstall
mutt to get rid of the sidebar. Back to normal now.

Brian.
 -- 
 Scott Stevenson

-- 
I really didn't foresee the Internet. But then, neither did the computer 
industry. Not that that tells us very much, of course - the computer 
industry didn't even foresee that the century  was going to end.   
   -- Douglas Adams 
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: sidebar patch

2013-02-11 Thread Brian Salter-Duke
On Mon, Feb 11, 2013 at 03:16:08PM -0600, Luis Mochan wrote:
 On Tue, Feb 12, 2013 at 08:02:39AM +1100, Brian Salter-Duke wrote:
  On Mon, Feb 11, 2013 at 09:53:17AM +0100, Scott Stevenson wrote:
   On Mon, Feb 11, 2013 at 06:56:46AM +1100, Brian Salter-Duke wrote:
On Sun, Feb 10, 2013 at 06:46:11PM +0100, Scott Stevenson wrote:
 On Sun, Feb 10, 2013 at 07:52:57PM +0530, dexter wrote:
  ...
  easier to use mutt without it. Unfortunately installing mutt-patched
  installed /usr/bin/mutt-patched but overwrote /usr/bin/mutt to be a soft
  link to mutt-patched. I had to uninstall mutt-patched and then reinstall
  mutt to get rid of the sidebar. Back to normal now.
  
 
 Under Debian you could run 
 
   sudo update-alternatives --config mutt
 
 to choose which mutt (patched or not) to run by default. I guess that
 Ubuntu is similar. Thus, it was not really necessary to
 uninstall/reinstall in order to test and choose among the two mutt versions. 
 Of
 course, you already did...

Indeed. I used the synaptic package manager. That is probably more
simple minded than updating from a prompt in the terminal. Nevertheless
it is very easy to use.

Brian.

 Best regards,
 Luis
 
 
 -- 
 
   o
 W. Luis Mochán,  | tel:(52)(777)329-1734 /(*)
 Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `/   /\
 Apdo. Postal 48-3, 62251 |   (*)/\/  \
 Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/
 GPG: DD344B85,  2ADC B65A 5499 C2D3 4A3B  93F3 AE20 0F5E DD34 4B85
 

-- 
First they ignore you, then they laugh at you, then they fight you,
then you win. 
  -- Gandhi, being prophetic about Linux.
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: sidebar patch

2013-02-11 Thread Brian Salter-Duke
On Mon, Feb 11, 2013 at 03:55:09PM -0600, Luis Mochan wrote:
 On Tue, Feb 12, 2013 at 08:29:29AM +1100, Brian Salter-Duke wrote:
  ...
   
   Under Debian you could run 
   
 sudo update-alternatives --config mutt
   
   to choose which mutt (patched or not) to run by default. I guess that
   Ubuntu is similar. Thus, it was not really necessary to
   uninstall/reinstall in order to test and choose among the two mutt 
   versions. Of
   course, you already did...
  
  Indeed. I used the synaptic package manager. That is probably more
  simple minded than updating from a prompt in the terminal. Nevertheless
  it is very easy to use.
  
 
 I guess there is some confusion: Synaptic, like aptitude and apt-get,
 is for installing and removing packages. Update-alternatives is to
 choose which program to use when you have several programs installed
 that offer similar functionality, such as the patched and the
 un-patched versions of mutt. You may install both using synaptics and
 then choose which one to use (by default) without uninstalling the
 other. 

No, that is not how it worked. I had the normal mutt for months.
Yesterday I installed mutt-patched and it overwrote mutt. It was just a
link to mutt-patched. Am I missing something?

Brian.

 Regards,
 Luis
 
 
 -- 
 
   o
 W. Luis Mochán,  | tel:(52)(777)329-1734 /(*)
 Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `/   /\
 Apdo. Postal 48-3, 62251 |   (*)/\/  \
 Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/
 GPG: DD344B85,  2ADC B65A 5499 C2D3 4A3B  93F3 AE20 0F5E DD34 4B85
 

-- 
A child of five could understand this!  Fetch me a child of five. 
   -- Marx (guess which one)
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: sidebar patch

2013-02-11 Thread Brian Salter-Duke
On Mon, Feb 11, 2013 at 10:22:35PM -0600, Luis Mochan wrote:
 On Tue, Feb 12, 2013 at 09:22:20AM +1100, Brian Salter-Duke wrote:
  ...
   I guess there is some confusion: Synaptic, like aptitude and apt-get,
   is for installing and removing packages. Update-alternatives is to
   choose which program to use when you have several programs installed
   that offer similar functionality, such as the patched and the
   un-patched versions of mutt. You may install both using synaptics and
   then choose which one to use (by default) without uninstalling the
   other. 
  
  No, that is not how it worked. I had the normal mutt for months.
  Yesterday I installed mutt-patched and it overwrote mutt. It was just a
  link to mutt-patched. Am I missing something?
  
 Dear Brian,
 
  I guess there is still some confusion. When you installed
 mutt-patched, mutt was overwritten. The same thing happened to me.  In
 my system, /usr/bin/mutt is a link pointing to
 /etc/alternatives/mutt. Furthermore, /etc/alternatives/mutt is a link
 pointing to /usr/bin/mutt-patched, which is the actual binary for the
 patched version of mutt. Using the command update-alternatives as I
 mentioned a couple of messages ago, this link may be replaced by a
 link to /usr/bin/mutt-org, which is the binary for the unpatched
 mutt. Thus I can experiment alternating freely between mutt-patched
 and mutt (unpatched) without having to uninstall either. I use Debian,
 but I understand that the 'alternatives' system is available in Ubuntu
 also. 
 
 Best regards,
 Luis

Many thanks. I understand it now. It is indeed like your describe in
Ubuntu. I had just not come across this alternates idea before.

Brian.

-- 
Rectify the anomaly.
 The worst slogan used by an education trade union.
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: sidebar patch

2013-02-10 Thread Brian Salter-Duke
On Sun, Feb 10, 2013 at 06:46:11PM +0100, Scott Stevenson wrote:
 On Sun, Feb 10, 2013 at 07:52:57PM +0530, dexter wrote:
  I'm new to mutt, just installed one and getting 
  to know it, how do i get sidebar in mutt, google
  search tells me that i have to apply a patch,
  i'm running on ubuntu, where can i get this patch?
 
 Debian and derivatives such as Ubuntu provide a `mutt-patched` package,
 which includes the sidebar patch.

I have Ubuntu 12.04 and Mutt 1.5.21 (2010-09-15) unmodified by me. It
does not have the sidebar patch as far as I can see. 

Brian.
 
 -- 
 Scott Stevenson



-- 
There is no reason anyone would want a computer in their home.
--Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Putting table in email?

2012-11-20 Thread Brian Salter-Duke
On Tue, Nov 20, 2012 at 02:34:59PM -0600, David Champion wrote:
 * On 20 Nov 2012, David Champion wrote: 
  * On 20 Nov 2012, Peter Davis wrote: 
   Is there any reasonly easy (non-painful) way to put a table in a
   message? A plain text table would be fine if I could limit it to 72
   characters wide or so, and if there were a reasonable way to edit it,
   preferably in emacs.
  
  Type this:
  ...
 
 I've never used this before but I want to start.  I wrote a wrapper so
 that I only need to compose the table's contents, not the additional
 markup.
 
 ### save to mutt-table script
 #!/bin/sh
 # table wider than line width is an error that tbl may produce when
 # no terminal is present.
 (
   echo '.TS'
   echo 'box tab(|);'
   read line
   # produce a column format based on columns in line 1
   echo $line | sed -e 's,[^|]*,l,' -e 's,[^|]*,c,g' -e 's,$,.,'
   echo $line
   cat -
   echo '.TE'
 ) |
 tbl |
 nroff -Tascii 21 |
 grep -v 'table wider than line width' |
 uniq
 
 ### add to .exrc
 map T {
 !}mutt-table
 
 ### type into vi
 Year|Hurricane|Deaths|Location
 1780|Great Hurricane of 1780|27,500+|Antilles
 1998|Hurricane Mitch|18,974 - 21,000|Honduras
 1900|cane|8,000 - 12,000|Cuba, Texas
 1974|Hurricane Fifi|8,000 - 10,000|Honduras, Belize
 1930|bcane|2,000 - 8,000|Antilles, D.R.
 1963|Hurricane Flora|7,186 - 8,000|Haiti, Cuba
 
 ### press T over table to format

This looks great, but I am unclear what one does precisely. I created
the script, and added the stuff to .exrc (actually created that file, as
I use .vimrc). Then I added the text for the table to the article. What
do I do next. Pressing T did nothing.

Brian.

 
 -- 
 David Champion • d...@uchicago.edu • IT Services • University of Chicago

-- 


Re: Putting table in email?

2012-11-20 Thread Brian Salter-Duke
On Tue, Nov 20, 2012 at 11:16:40PM -0600, David Champion wrote:
 * On 20 Nov 2012, Brian Salter-Duke wrote: 
   map T {
   !}mutt-table
   ...
   ### press T over table to format
  
  This looks great, but I am unclear what one does precisely. I created
  the script, and added the stuff to .exrc (actually created that file, as
  I use .vimrc). Then I added the text for the table to the article. What
  do I do next. Pressing T did nothing.
 
 I'm not terribly familiar with vim since I prefer vi.  I do have a .vimrc
 though, in case I have to use vim, and it ends with:
 
 source .exrc
 
 which implies to me that when .vimrc is present, .exrc is not processed
 by default (I really don't recall for sure).  So I suggest putting the
 map command into .vimrc instead, and just deleting the .exrc file.
 
 Here's the macro again, with literal carriage returns replaced by ^M.
 To enter a carriage return while editing the .vimrc, press control-V
 control-M.
 
  Run tbl markup through mutt-table
 map T {^M!}mutt-table^M

OK, I have done that. I also changed nroff to groff as I have both and
they are different sizes. However, I still do not really understand by
press T over table to format. I type the table, hit esc and then
shift-T. Nothing happens. What am I supposed to do?

Brian. 
 -- 
 David Champion • d...@bikeshed.us

-- 
Microsoft is not the answer. It is the question. The answer is 'No'.
   -- Unknown
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Using mailto-mutt in Firefox

2012-08-14 Thread Brian Salter-Duke
I am trying to get mailto-mutt working in Firefox. I have it set in my
preferences. I use folder-hook to define sendmail, from and signature.
folder-hook .  is used to define the default. However, none of these
are set. It does not send. There is no signature file set. The From line
is just my name on my local machine, not my mail address. It does not
appear to be obeying any folder-hook commands, as if there is no folder
defined. I got things to work by setting defaults directly in muttrc for
all three of these:-

set signature=~/.mutt/general.sig
set from=b_d...@bigpond.net.au
set sendmail=/usr/bin/msmtp -C /home/brian/.msmtprc.bp

There must be a better way, that avoids setting each of these and a few
others that are less importan. I tried editing mailto-mutt to make the
mutt_commands= line read:-

mutt_commands=-f incoming

hoping that this would make incoming the default folder, and thus get
folder-hook .  to work, but that does work. Does anyone have an idea
how to get folder-hook to work in this context of mailto-mutt?

Cheers, Brian.

-- 
   Brian Salter-Duke (Brian Duke)   brian.salter-d...@monash.edu
Adjunct Associate Professor
Monash Institute of Pharmaceutical Sciences
  Monash University Parkville Campus, VIC 3052, Australia


Re: Problems sending using msmtp and mutts built in smtp

2012-05-11 Thread Brian Salter-Duke
?
 ?Is there anything else I can provide that will help you help me?
 
 Thank you all.
 Martin

-- 
If people are good only because they fear punishment, and hope for
reward, then we are a sorry lot indeed.
   -- Albert Einstein   
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: How to save a thread to a file

2012-04-08 Thread Brian Salter-Duke
On Sat, Apr 07, 2012 at 01:38:07PM -0800, Tim Johnson wrote:
 * Gary Johnson garyj...@spocom.com [120407 13:06]:
  
  Well, mbox folders are just files.  Could you save to an mbox 
  folder?
 
  Of course, but what I was really inquiring about was whether I could
  save 'en masse' :: a thread to one file.
  thanks

I don't understand what you are asking.
 It would be nice if I could save all of the tagged messages to one
 k*named* (not mbox) file - just as if I were saving a viewed
 attachment. It looks like that is not doable.
  
  I'm not following you at all.  An mbox file _is_ a named file.  You
  can choose any name you like, absolute, relative to your mail folder
  directory, or relative to the directory in which you started mutt.
  
You can tag the thread, and save it all 'en masse' to an 'mbox' file
anywhere where you can create a file.  How would the file you are want
to create differ from what you get when it is created as an 'mbox'?
 Yeah, what would work for me is a special mbox directory for just
 saving stuff then open them in vim and weed out headers, saving
 content to a new file..
  
  Save a thread to any file name you like, open that file in vim and
  tell me how that differs from what you requested.
 Gary, below is my original question:
   I can Esct to tag the thread and then ;s to save to another
   mailbox, but I don't know if I can save the same to a file.
  To recap, if I tag the thread and invoke ;s
  I get the following response
  Save tagged to mailbox ('?' for list): =tim
  If I back up the cursor and enter ~/save-thread.txt,
  mutt creates a mailbox named save-thread.txt
  That is not what I want.

save-thread.txt is just a file, no more, no less. Do you want to remove
all the headers? What is it that is not what you want?

However, I think you have a bigger problem. Doing what you suggest, I
think, gives only the first message of the thread. I think you want all
messages. I agree it would be a nice feature, but I can not see how to
do it at the moment.

Brian.

  ---
  Please tell me how you would save the entire thread to one file.
  Clearly I am not using the correct command.
  thanks
 -- 
 Tim 
 tim at tee jay forty nine dot com or akwebsoft dot com
 http://www.akwebsoft.com

-- 


Re: Fetch and delete only lists and make offline /copy/ of other msgs - IMAP

2011-11-17 Thread Brian Salter-Duke
On Fri, Nov 18, 2011 at 12:04:14AM +0100, Nikola Hardi wrote:
 Hi!
 
 I'm using gmail's IMAP and I'm subscribed to several mailing lists. Now
 I wont to get that mail from lists to my desktop computer and delete it
 from the server, then sort it to different local mailboxes. Other part
 is to make offline copy of valuable messages and keep them on the
 server for usage with other mail clients.
 
 What tool is for what? Fetchmail probably could do this part getting
 mail and offlineimap the other part of syncing other messages. Who
 should do the sorting part and keep messages from one mailing list in
 one mailbox? Is it task for MDA?
 
 Just tell me which tool should do what and I'll try to make my way
 somehow.
 
 This is the first time I'm writing to a mailing list so tell me if I did
 something wrong. :)

Welcome to the list. Use fetchmail to get them and procmail to filter
them into different mail boses.

Cheers, Brian.

-- 
First they ignore you, then they laugh at you, then they fight you,
then you win. 
  -- Gandhi, being prophetic about Linux.
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Configuring mailcap to view vnd.openxm

2011-10-08 Thread Brian Salter-Duke
On Sat, Oct 08, 2011 at 07:17:48PM +0200, P. Mazart wrote:
 Hi,
 
 Mandar Mitra schrieb am 08.10.2011 17:24:30:
  I have the following line in /etc/mailcap (probably added by the
  installation scripts for libreoffice):
 
  application/vnd.openxmlformats-officedocument.wordprocessingml.document; 
  soffice -no-oosplash -writer '%s'; edit=soffice -no-oosplash -writer '%s'; 
  test=test -n $DISPLAY; description=Office Open XML Document; 
  nametemplate=%s.docx
 
 I have the exact same line on Debian Lenny,
 yet mutt won’t open it with soffice…

What version of OpenOffice do you have? Support for docx files is
relatively new I think.
 
  I also have libreoffice installed, and can read docx files after a
  fashion using this package.
 
 Maybe its because mutt mentions the attachment as octett stream‽
 
 Regards,
 P.M.

-- 
A Computer is like a horse, it will sense weakness.
-- Greg Wettstein
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: viewing the result of piping a message in mutt

2011-02-02 Thread Brian Salter-Duke
On Wed, Feb 02, 2011 at 01:27:34PM +0100, Joost Kremers wrote:
 hi all,
 
 when i pipe a message through an external command, the output is written to a
 file. is there a way to have the output displayed in mutt itself, similar to
 viewing attachments in-line?

It is a function of the external command. It seems that is writing to a
file. So change the external command to write to STOUT.

Brian.
 
 TIA
 
 joost
 
 
 -- 
 Joost Kremers, PhD
 University of Göttingen
 Institute for German Philology
 Käte-Hamburger-Weg 3
 37073 Göttingen, Germany
 Tel. +49 551 39 4467

-- 
The PROPER way to handle HTML postings is to cancel the article, then
hire a hitman to kill the poster, his wife and kids, and fuck his dog
and smash his computer into little bits. Anything more is just extremism.
-- Paul Tomblin
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: ad: muttlearn - tool for managing multiple identities

2010-11-30 Thread Brian Salter-Duke
On Tue, Nov 30, 2010 at 01:17:20PM +0100, Johannes Weißl wrote:
 Hi Brian,
 
 On Tue, Nov 30, 2010 at 06:51:14PM +1100, Brian Salter-Duke wrote:
  Looks interesting, so I got it. Why does it install in ~/.local? How can
  I change this as .local would be just another directory I would have to
  add to my path? I looked to see if I could alter it, but could not find
  where it was set to install in ~.local. I would like to install in
  /usr/local/bin or ~/bin.
 
 No problem at all! Just use:
   sudo python setup.py install --prefix=/usr/local

Thanks for that. Perhaps this could be put in the INSTALL file. I was
confused by the fact that the --prefix use was only mentioned for
version 2.5 and I have 2.6

Brian.
 
 And to remove:
   sudo rm -rvf /usr/local/bin/muttlearn 
 /usr/local/lib/python*/*-packages/muttlearn*
 
 I used ~/.local because it seems to be the upcoming standard for
 installing python modules by (non-root) users.
 
 Is it working now?
 
 
 Johannes



-- 
Microsoft is not the answer. It is the question. The answer is 'No'.
   -- Unknown
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: ad: muttlearn - tool for managing multiple identities

2010-11-29 Thread Brian Salter-Duke
On Sun, Nov 28, 2010 at 11:49:26PM +0100, Johannes Weißl wrote:
 Hello!
 
 I recently uploaded a small python program I've been using privately for
 a few years now. It scans sent messages and automatically generates
 send-hooks for recipients or groups of recipients. The learned settings
 include $from, $realname, $signature, $send_charset, language, a message
 template (greeting, goodbye) and crypto settings.
 
 Maybe it is useful for you, in any case I would appreciate any feedback
 on how to improve it! The URL is:
 https://molb.org/~weisslj/muttlearn/

Looks interesting, so I got it. Why does it install in ~/.local? How can
I change this as .local would be just another directory I would have to
add to my path? I looked to see if I could alter it, but could not find
where it was set to install in ~.local. I would like to install in
/usr/local/bin or ~/bin.

Cheers, Brian.

 For users of mairix, mu or nmzmail, another script might be interesting:
 muttjump: https://github.com/weisslj/muttjump
 It allows jumping back from the search folder to the original message
 (useful for editing, changing flags, deleting).
 
 
 Johannes



-- 
If people are good only because they fear punishment, and hope for
reward, then we are a sorry lot indeed.
   -- Albert Einstein   
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: fetchmail - google certificate

2010-10-23 Thread Brian Salter-Duke
On Sat, Oct 23, 2010 at 09:08:52AM -0600, Joseph wrote:
 On 10/23/10 08:53, Harry Strongburg wrote:
 On Sat, Oct 23, 2010 at 12:15:23AM -0600, Joseph wrote:
 fetchmail: socket error while fetching from 
 syscon...@gmail.com@pop.gmail.com
 Silly mistake there! :)

 Fetchmail 'user' requires you do NOT have a domain-name added onto it.
 The domain-name is supplied at the poll argument.

 Have fun.

 I've removed the domain name, now the line looks like:
 poll pop.gmail.com with proto POP3 and options no dns user 'syscon780' 
 password '' options ssl sslcertpath /home/joseph/.mutt/cert/

I have had this working for ages and I do not have time to think about
it, but I have the equivalent of syscon...@gmail.com, not syscon780 or
syscon...@gmail.com@pop.gmail.com. I also have sslcertck after ssl. I do
not know whether that would help.

 but it still complains, certificate not trusted.

 fetchmail: This means that the root signing certificate (issued for
 /C=US/O=Google Inc/CN=Google Internet Authority) is not in the trusted
 CA certificate locations, or that c_rehash needs to be run on the
 certificate directory. For details, please see the documentation of
 --sslcertpath and --sslcertfile in the manual page.
 fetchmail: Server certificate verification error: certificate not trusted
 fetchmail: Warning: the connection is insecure, continuing anyways. (Better 
 use --sslcertck!)

 -- 
 Joseph

-- 
If a thing's worth doing, it is worth doing badly.
   -- G.K. Chesterton
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: mutt remove white space in 67 character in the subject

2010-09-07 Thread Brian Salter-Duke
On Tue, Sep 07, 2010 at 01:28:42PM -0400, Bouzite, Radouan wrote:
 
 
 
 
 If I send an meail with mutt using the following  subject :
  1234567890123456789012345678901234567890123456789012345678901234567
 890
 
 I receive the email with the subjsct changed : the white space in
 positon 67 was removed :
 
 1234567890123456789012345678901234567890123456789012345678901234567890
 
 
 My Mutt version  : 
 Mutt 1.5.18 (2008-05-17)

I have the same version, although with some patches as it is the Ubuntu
release, and it does not do that. In displaying the email it splits the
subjext line at the whitspace but the subject is intact if you look when
replying to it for example.
 
 -
 Radouan Bouzite
 Unix/SAN Admin.
 Ipex Management Inc.
 Tel : (514) 769 3445 ext 291
 Fax :(514) 769-1672

-- 
A computer without Windows is like a chocolate cake without
mustard.
-- Unknown
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: sending to a list of undisclosed recipients

2010-07-27 Thread Brian Salter-Duke
On Tue, Jul 27, 2010 at 09:36:44AM +0200, Christoph Kukulies wrote:
 Everyone know this when you get an email from someone and he is  
 disclosing his whole (Outlook) addressbook to the
 recipients. Often this is an interesting field for social research :)  
 but that left aside, I would like avoid this in a case now when I'm  
 about to send an
 information about an upcoming event to a list of about 100 users.

 Instead of going through a for i in `cat users`do mutt ... $i done loop  
 I could make an alias of these users, but how do I tell to
 hide the 100 users and only show up the one addressee plus a note that  
 the email went to a group of undisclosed users?

Put the alias in the Bcc: line and yourself in the To: line.

 Thanks.

 --
 Christoph

-- 
If people are good only because they fear punishment, and hope for
reward, then we are a sorry lot indeed.
   -- Albert Einstein   
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: sending to a list of undisclosed recipients

2010-07-27 Thread Brian Salter-Duke
On Tue, Jul 27, 2010 at 01:50:17PM -0700, Chip Camden wrote:
 Quoth Patrick Shanahan on Tuesday, 27 July 2010:
  * Derek Martin inva...@pizzashack.org [07-27-10 16:31]:
   
   Ah, you must mean this bit, from the muttrc man page:
   
  write_bcc
 Type: boolean
 Default: yes
   
   Controls  whether  mutt  writes out the ?Bcc:? header
   when preparing messages to be sent.  Exim users may wish
   to unset this. If mutt is set to deliver directly via
   SMTP (see $smtp_url), this option does nothing: mutt
   will never write out the ?Bcc:?  header in this case.
   
   Hmmm... Seems like you're wrong after all (Mutt 1.5.20hg
   (2009-08-27)).  Mutt may well write out the Bcc line on the message
   that is sent out.
   
  
  the something is drastically amiss!
  
  openSUSE 11.2 x86_64
  mutt-1.5.20-16.1.x86_64.rpm
  
  Mutt 1.5.20 (2009-06-14)
  Copyright (C) 1996-2009 Michael R. Elkins and others.
  Mutt comes with ABSOLUTELY NO WARRANTY; for details type mutt -vv'.
  Mutt is free software, and you are welcome to redistribute it
  under certain conditions; type mutt -vv' for details.
  
  System: Linux 2.6.31.13-21-default (x86_64)
  ncurses: ncurses 5.6.20080804 (compiled with 5.6)
  libidn: 1.10 (compiled with 1.10)
  hcache backend: GDBM version 1.8.3. 10/15/2002 (built Oct 24 2009 01:25:27)
  Compile options:
  -DOMAIN
  -DEBUG
  -HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -DL_STANDALONE  +USE_FCNTL
  -USE_FLOCK   
  +USE_POP  +USE_IMAP  +USE_SMTP  
  +USE_SSL_OPENSSL  -USE_SSL_GNUTLS  +USE_SASL  +USE_GSS  +HAVE_GETADDRINFO  
  -HAVE_REGCOMP  +USE_GNU_REGEX  
  +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
  +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
  +CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME
  +CRYPT_BACKEND_GPGME  
  -EXACT_ADDRESS  +SUN_ATTACHMENT  
  +ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS
  +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR  
  +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  
  ISPELL=/usr/bin/ispell
  SENDMAIL=/usr/sbin/sendmail
  MAILPATH=/var/mail
  PKGDATADIR=/usr/share/mutt
  SYSCONFDIR=/etc
  EXECSHELL=/bin/sh
  -MIXMASTER
  To contact the developers, please mail to mutt-...@mutt.org.
  To report a bug, please visit http://bugs.mutt.org/.
  
  patch-1.5.20.sidebar.20090619.txt
  patch-1.5.19.rr.compressed.1
  patch-1.5.5.1.nt.xtitles.3.ab.1
  
  
  
  I have:  
  :set ?write_bcc  write_bcc is set
  
  and I am bcc'ing this post to you, the op and me.
  
 Maybe sendmail strips it?  I'm using ssmtp.

I use ssmtp and I found very odd behaviour. I sent a message to me at 4
different alternative addresses that all forward to my main address. My
sourceforge address was in the To. My old UK college was in the Cc. and
my gmail and university addresses were in Bcc:. There was no set write_bcc 
in my muttrc. None of the 4 show up in the message, but if I look in the
full headers the Bcc is there in three but not in my university one. I
then set write_bcc=no  and now the Bcc does not show in any of the
headers. 

Surely set write_bcc should be only about what you see when composing
mail? In sending, the Bcc should not reach the recipients.

Brian.

 -- 
 Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
 http://camdensoftware.com | http://chipstips.com| 
 http://chipsquips.com



-- 
The PROPER way to handle HTML postings is to cancel the article, then
hire a hitman to kill the poster, his wife and kids, and fuck his dog
and smash his computer into little bits. Anything more is just extremism.
-- Paul Tomblin
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: return reciepts

2010-07-08 Thread Brian Salter-Duke
On Sun, Jul 04, 2010 at 03:00:32PM +0200, lee wrote:
 On Sat, Jul 03, 2010 at 09:51:03AM -0400, Patrick Shanahan wrote:
  * lee l...@yun.yagibdah.de [07-03-10 09:13]:
   On Sat, Jul 03, 2010 at 12:12:38AM +0200, Rado S wrote:
   
Practice has shown that it is not best practice.
   
   Because of poor support, maybe :)
  
  Or, more likely, requests for features that most do *not* want presented
  in a haughty manner
 
 What's haughty about this?
 
  which would require coding and where work-a-rounds
  have been presented.
 
 Just look at the replies, ppl told me at first that a feature I have
 use for is useless, troublesome and pointless and that they don't want
 it because they don't like it. How haughty is that? And keep in mind
 that nobody would be forced to use this feature if they don't like it.
 
 Just look at your own comment and how haughty that is: Apparently the
 idea that implementing a feature would require some work is horrible
 to you, so you're telling me that everyone who has use for it should
 implement the feature by doing the necessary steps for each message
 manually. Do it manually was the only workaround presented, but
 that's silly considering that I already said in my OP that I can do it
 manually but am wondering if there's a better solution
 available. Besides, it has probably escaped you that there's a
 difference between solution and workaround.
 
 Isn't it amazing that ppl can't say something like hey I don't have
 use for this feature and I don't like it and I don't know of any
 implementation, but it would sure be great if you were to come up with
 a solution everyone could use?

I have not responded before, but what is wrong with that. It is my
position. I do not use them. I do not like them and do not quite
understand why you and others think it solves a problem. However, I am
more than happy for a new feature to be available in or with mutt. Do I
know of an implementation? I have a vague recollection that there was
one on this mailing list 10 or more years ago, but I no longer have
details and can not remember anything.
 
 You know, I've already been asking myself if I should make such a
 solution available for everyone who wants it if I ever implement it
 after seeing the rude comments I got here. Don't be surprised when at
 some time, you'll find yourself out of free software because you
 finally managed to piss off everyone who was willing to provide some.

Free software is not going to die because you are pissed off. The mutt
list is calm and helpful compared with many lists.

-- 
The box said 'Windows 95 or better', so I installed Linux
-- Unknown
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: problem with muttprint

2010-02-03 Thread Brian Salter-Duke
On Wed, Feb 03, 2010 at 02:26:22PM -0500, Patrick Shanahan wrote:
 * Lubos Kolouch lubos.kolo...@gmail.com [02-03-10 10:02]:
  I would like to ask, if there is somebody using muttprint.
 
 yes
 
  When I tried it, it prints for me the headers (date, from, subject),
  then horizontal line,
  
  and then
  -uSN3yb/content instead of the text itself.
  
  The footer is printed OK.
  
  Do you have any hints why it does not print the content?
 
 
 Just guessing, I would say that you have the wrong charset specified in
 ~/.muttrpintrc
 
 Mine is set to auto, CHARSET=auto

I do not have CHARSET set to anything, either in /etc/Muttprintrc or
~/.muttprintrc and it works OK, although I can not get the penguin or
other image to print.

Brian.

 -- 
 Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
 http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
 Registered Linux User #207535@ http://counter.li.org

-- 
Microsoft is not the answer. It is the question. The answer is 'No'.
   -- Unknown
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: problem with muttprint

2010-02-03 Thread Brian Salter-Duke
On Wed, Feb 03, 2010 at 08:01:22PM -0500, Patrick Shanahan wrote:
 * Brian Salter-Duke b_d...@bigpond.net.au [02-03-10 17:02]:
  
  I do not have CHARSET set to anything, either in /etc/Muttprintrc or
  ~/.muttprintrc and it works OK, although I can not get the penguin or
  other image to print.
  
 
 You do have the *full* path set for BabyTuX.esp
 and
 XFACE=on

I did not have XFACE=on, as I thought the PENGUIN line was enough. I
also did not have an *.esp file. Using what you suggest now works.

Thanks and Cheers, Brian.

 
 -- 
 Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
 http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
 Registered Linux User #207535@ http://counter.li.org

-- 
The problem with defending the purity of the English language is that 
English is about as pure as a cribhouse whore. We don't just borrow words; 
on occasion, English has pursued other languages down alleyways to beat 
them unconscious and riffle [sic] their pockets for new vocabulary
-- James D. Nicoll
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Checking for Attachments within mutt and vim

2009-11-02 Thread Brian Salter-Duke
On Mon, Nov 02, 2009 at 09:19:02PM +0100, Christian Brabandt wrote:
 Hi Brian!
 
 On Mo, 02 Nov 2009, Brian Salter-Duke wrote:
 
  
  Thanks. It would be good if that was explained in the docs.
 
 Thanks, I updated the installation instructions on the webpage.

Thanks. That is better.

However, it also says:-

This will install the plugin into your $HOME/plugin directory and the
documentation into your $HOME/doc directory. 

It actually installed them in ~/.vim/plugin and ~/.vim/doc directories,
which of course is fine.

Thanks for the good work. I'm using it all the time now.

Regards, Brian.
 
 regards,
 Christian
 -- 
 :wq

-- 
~
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Checking for Attachments within mutt and vim

2009-11-01 Thread Brian Salter-Duke
On Sun, Nov 01, 2009 at 07:46:44AM +0800, bill lam wrote:
 On Sun, 01 Nov 2009, Brian Salter-Duke wrote:
  However, in the install instructions, what do you mean by:-
  
  simple load CheckAttach.vba and source it using :so %.vba?
  
  I have no idea what this means. Load it where and how? Source is where
  and how?
  
 
 try 
 
 vim CheckAttach.vba
 :so %
 :q

Thanks. It would be good if that was explained in the docs.
 
 you may get help for vimball
 :help vba
 
 -- 
 regards,
 
 GPG key 1024D/4434BAB3 2008-08-24
 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

-- 
First they ignore you, then they laugh at you, then they fight you,
then you win. 
  -- Gandhi, being prophetic about Linux.
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Checking for Attachments within mutt and vim

2009-10-31 Thread Brian Salter-Duke
On Sat, Oct 31, 2009 at 02:59:04PM +0100, Christian Brabandt wrote:
 Hi,
 some time ago, someone posted on this list a question on how to have 
 some kind of attachment check, so he would not forget to attach his  
 files to the mail. I replied with 
 http://marc.info/?i=20090116091203.GB3197%20()%20256bit%20!%20org in 
 which I posted a little vim script, that performed that check. 
 
 In case anybody is interested, I have now created a Vim plugin out of 
 this script, which is available here:
 http://www.vim.org/scripts/script.php?script_id=2796
 
 This should make it really simple to get such functionality now, at 
 least if you are using Vim and have set edit_headers.

This looks a really good idea and one better than waht I figured out
after the discussion earlier.

However, in the install instructions, what do you mean by:-

simple load CheckAttach.vba and source it using :so %.vba?

I have no idea what this means. Load it where and how? Source is where
and how?

Cheers, Brian.
 
 Feedback welcome.
 
 regards,
 Christian
 -- 
   • An infinite number of monkeys typing into GNU emacs would never make a 
 good
 program.
Linus Torvalds: Linux 1.3.53 CodingStyle documentation.

-- 
If a thing's worth doing, it is worth doing badly.
   -- G.K. Chesterton
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: signature-scripts

2009-08-12 Thread Brian Salter-Duke
On Wed, Aug 12, 2009 at 11:01:48AM +0200, Jan-Herbert Damm wrote:
 Hello all,
 
 Forgive me if this is slightly OT (replies off list welcome):
 
 I know that there are several people on this list (Kyle for one) that use
 scripts to add signatures dynamically. 
 
 Learning programming makes me think signature-scripting could be a nice
 homework. 
 
 I have googled for signature-scripts but with unsatisfying results.
 
 One idea i had: execute fortune and writing the output into a .signature
 file, which then gets used for mails. 
 
 Are there other/smarter approaches?
 
 What other/better signature-resources could be used?

Well a lot of people have a list of quotations with one selected
randomly for each message. My sig below was generated like that. I use
folder hooks to add different sigs in different folders and generally
use the random one for mailing lists. 

You do not even have to write a file with fortune - just pipe it in.

Well it is homework, so I'll leave you to sort it all out.

Brian. 
 Thanks.
 
 jan

-- 
If a thing's worth doing, it is worth doing badly.
   -- G.K. Chesterton
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Mixmaster

2009-06-28 Thread Brian Salter-Duke
On Sun, Jun 28, 2009 at 01:45:24PM +1000, Brian Salter-Duke wrote:
 I did quite a bit of work with mixmaster years ago and I think some of
 the information in the manual was from me. I am no longer interested in
 using mixmaster but I sort of keep an eye on it. Recently I have
 returned to using mutt on linux after a spell using it on cygwin. I am
 using the Ubuntu package prior to playing around with the latest
 release. That Ubuntu package included mixmaster support. That got me
 thinking and checking a few things.
 
 First, is anybody using it? It seems unlikely to me as if they were they
 would be complaining about how out of date the manual is. The latest
 manual I have to hand (1.5.18) has this to say:-
 
 Mixmaster support in mutt is for mixmaster version 2.04 (beta 45
 appears to be the latest) and 2.03. It does not support earlier versions
 or the later so-called version 3 betas, of which the latest appears to
 be called 2.9b23. (I think I wrote that ages and ages ago).
 
 According to http://mixmaster.sourceforge.net/ The current 3.0.x
 versions are stable and widely deployed. If the manual is still
 correct, and I have no reason to suppose it is not, then mutt does not
 work with the latest mixmaster 3.0.x although it probably works with
 2.0.4b46 which is still available via that link (click to go to download
 centre). 2.0.4b46 is dated 2002.  3.0.x is dated March 2008. So at the
 very least the manual needs updating to read something like:-
 
 Mixmaster support in mutt is for mixmaster version 2.03 and 2.04
 (2.0.4b46 is still available from 2002). It does not support earlier
 versions or the current version 3.0 (dated March 2008).
 
 I hestitate to recommend this change because I do not know whether it is
 correct. Maybe the mixmaster code in mutt has been changed. Can anyone
 help out with better information?
 
 Note that I can reply to this in the next 20 hours or so, but will then
 be off the internet for 4 days. I will reply on my return. I will not be
 ignoring you.

Just a small followup to my own post. I found the mixmaster changelog
and it appears that mutt support was added to the version 3 beta 25.
i.e. not long after the manual article reference was correct. The change
made was the introduction of the -T argument to mixmaster which mutt
uses. I recall that this was the problem. This change was in 2001-09-14.
It looks as if the manual has been wrong for nearly 8 years. I suspect
this is an indication of the degree of interest in mixmaster and mutt.
We need to know whether it still works and then update the manual.

Brian.

 Brian.
 
 -- 
 Rectify the anomaly.
  The worst slogan used by an education trade union.
 Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au

-- 
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: colors

2009-06-27 Thread Brian Salter-Duke
On Sat, Jun 27, 2009 at 06:46:12PM +0200, Jan-Herbert Damm wrote:
 Rocco Rutte wrote on 27.06.09:
 
  * Jan-Herbert Damm wrote:
  
   My Ubuntu-custom version of Mutt-1.18. uses a [...] coloring scheme 
   Where are these default colors being defined? 
  
  I'd say it'd be really strange if neither /etc/Muttrc nor .muttrc 
  contained color statements _and_ you get colors.
 
 Sorry, I oversaw the very last line in /etc/Muttrc. It sources
 /usr/lib/mutt/source-muttrc.d which again invokes the sourcing of
 /etc/Muttrc.d/* which contains a file covering nothing but the colors. I guess
 that is ubuntu/debian style. And yes my home-built Mutt-1.20. is mono.
 
 jan

I have only recently started using the standard Ubuntu mutt as I have
only recently started using Ubuntu. So, thanks for that. I had not
realsied that Ubunta does it that way. In fact I had not looked at any
of the ssytem muttrcs. I had just updated and tuned my old ones that
have evolved over more than a decade.

Another color question - where is the default color defined? My muttrc
uses default for the background all the time and it is obviously white
as I prefer, but I do not see it defined. The Ubuntu muttrcs do not use
default, but define the background as black.

Brian.

-- 
Microsoft is not the answer. It is the question. The answer is 'No'.
   -- Unknown
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: colors

2009-06-27 Thread Brian Salter-Duke
On Sun, Jun 28, 2009 at 01:36:01AM +0200, Michael Tatge wrote:
 * On Sun, Jun 28, 2009 08:47AM +1000 Brian Salter-Duke 
 (b_d...@bigpond.net.au) muttered:
  Another color question - where is the default color defined? My muttrc
  uses default for the background all the time and it is obviously white
  as I prefer, but I do not see it defined. The Ubuntu muttrcs do not use
  default, but define the background as black.
 
 http://www.mutt.org/doc/devel/manual.html#color
 
 | If your terminal supports it, the special keyword default can be used
 | as a transparent color.

So it is terminal thing. I had always thought it was a mutt thing. I
must read the manual more often. Thanks, Michael.

Brian.
 
 HTH,
 
 Michael
 -- 
 I've run DOOM more in the last few days than I have the last few
 months.  I just love debugging ;-)
 (Linus Torvalds)
 
 PGP-Key-ID: 0xDC1A44DD
 Jabber: init...@amessage.de

-- 
Faith is the great cop-out, the great excuse to evade the need to think 
and evaluate evidence. Faith is belief inspite of, even perhaps because 
of, the lack of evidence. 
   -- Richard Dawkins
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Mixmaster

2009-06-27 Thread Brian Salter-Duke
I did quite a bit of work with mixmaster years ago and I think some of
the information in the manual was from me. I am no longer interested in
using mixmaster but I sort of keep an eye on it. Recently I have
returned to using mutt on linux after a spell using it on cygwin. I am
using the Ubuntu package prior to playing around with the latest
release. That Ubuntu package included mixmaster support. That got me
thinking and checking a few things.

First, is anybody using it? It seems unlikely to me as if they were they
would be complaining about how out of date the manual is. The latest
manual I have to hand (1.5.18) has this to say:-

Mixmaster support in mutt is for mixmaster version 2.04 (beta 45
appears to be the latest) and 2.03. It does not support earlier versions
or the later so-called version 3 betas, of which the latest appears to
be called 2.9b23. (I think I wrote that ages and ages ago).

According to http://mixmaster.sourceforge.net/ The current 3.0.x
versions are stable and widely deployed. If the manual is still
correct, and I have no reason to suppose it is not, then mutt does not
work with the latest mixmaster 3.0.x although it probably works with
2.0.4b46 which is still available via that link (click to go to download
centre). 2.0.4b46 is dated 2002.  3.0.x is dated March 2008. So at the
very least the manual needs updating to read something like:-

Mixmaster support in mutt is for mixmaster version 2.03 and 2.04
(2.0.4b46 is still available from 2002). It does not support earlier
versions or the current version 3.0 (dated March 2008).

I hestitate to recommend this change because I do not know whether it is
correct. Maybe the mixmaster code in mutt has been changed. Can anyone
help out with better information?

Note that I can reply to this in the next 20 hours or so, but will then
be off the internet for 4 days. I will reply on my return. I will not be
ignoring you.

Brian.

-- 
Rectify the anomaly.
 The worst slogan used by an education trade union.
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: How to let mutt always mark mbox as new if it contains new

2009-05-12 Thread Brian Salter-Duke
On Tue, May 12, 2009 at 07:04:39AM -0700, Gary Johnson wrote:
 On 2009-05-12, Rocco Rutte pd...@gmx.net wrote:
  Hi,
  
  * Wu, Yue wrote:
  
   Thank you, 'check_mbox_size' does the trick.
  
  Hmm, how is the partition with the mboxes mounted? This option only
  exists for setups where access/modification time cannot be reliably used
  to detect new mail. Filesystems can be mounted to not update atime as
  that causes disk updates but provides little to no benefit for most
  applications so many people turn atime updates off.
 
 In my case, at work, almost everything except /tmp is NFS-mounted,
 including $MAIL and $HOME.  I've been using +BUFFY_SIZE and now
 'check_mbox_size' for so long that I don't remember exactly the
 problem I was having without it, except that notifications of new
 mail and/or mailbox statuses were not working correctly.
 
 At home, I'm using Cygwin's mutt package and it just happens to have
 +BUFFY_SIZE configured.

Just a comment. I compiled 1.5.18 out of the box  on Cygwin and I do not have
that set. I am not sure what it does, but would it be best set in the
cygwin version.

Brian.

 Regards,
 Gary
 
 

-- 
I have attempted to give you a glimpse...of what there may be of
soul in chemistry. But it may have been in vain. Perchance the chemist
is already damned and the guardian of the pearly gates has decreed that
of all the black arts, chemistry is the blackest. But if the chemist
has lost his soul, he will not have lost his courage and as he descends
into the inferno, sees the rows of glowing furnaces and sniffs the homey
fumes of brimstone, he will call out--:
   'Asmodeus, hand me a test-tube' * G. N. Lewis (1875-1946)*
 
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au



Re: urlview - open firefox tab

2009-02-27 Thread Brian Salter-Duke
On Fri, Feb 27, 2009 at 12:24:24PM +0100, Joost Kremers wrote:
 On Thu, Feb 26, 2009 at 10:20:22PM -0700, Joseph wrote:
  On 02/26/09 22:02, Kyle Wheeler wrote:
 
  firefox -remote openURL('http://www.cskk.ezoshosting.com/cs/',new-tab)...
  sh: -c: line 0: syntax error near unexpected token `('
 
  Well, sure - bare parentheses mean something to your shell. That's why  
  you have to put the backslashes in front of them. It's got nothing to  
  do with the single quotes inside. You could do this:
 
  in urlview I have:
  OMMAND firefox -remote openURL\(%s,new-tab\)
 
  When I try to open any URL:
  Executing: firefox -remote 
  openURL\('http://domainkeys.sourceforge.net/',new-tab\)...
  Error: Failed to send command: 500 command not parseable
 
 i haven't used urlview since i started using xfce4's Terminal, which
 recognises urls and makes them clickable, but back when i did, my .urlview
 looked like this:
 
 ###
 # Urlview configuration file.
 # man urlview  Man page
 #
 # The defaults are shown here:
 #
 REGEXP  (((https?|ftp|gopher)://|(mailto|file|news):)[^' 
 \t]+|(www|web|w3)\.[-a-z0-9.]+)[^' \t.,;\):]
 COMMAND /home/joost/bin/urlhandler.sh %s
 #
 ###
 
 and the script urlhandler.sh looked like this:
 
 ==
 
 #!/bin/bash
 
 export PATH=/usr/bin:/usr/local/bin:
 
 if [ ! -z $DISPLAY ] ; then
 
 # for some stupid reason, firefox -remote cannot handle the fact that
 # there are commas in urls. therefore, we have to parse the url through
 # sed and replace commas with their ascii code %2c:
 
 exec firefox -remote openURL($(echo $@|sed 's/,/%2c/g'),new-tab) 
 else
 TERM=linux
 exec links $@
 fi
 
 ==
 
 however, given that firefox doesn't need the -remote option nor the command
 openURL anymore, i'd try this in .urlview:
 
 COMMAND firefox %s
 
 my guess is that'll work just fine...

I use Cygwin ion a laptop for mail, with mutt of course, and:-

COMMAND /cygdrive/c/Program Files/Mozilla Firefox/firefox %s

in my .urlview works fine, so you are certainly correct if firefox is on
your path.

Brian.
 
 
 -- 
 Joost Kremers, PhD
 University of Frankfurt
 Institute for Cognitive Linguistics
 Gr??neburgplatz 1
 60629 Frankfurt am Main, Germany

-- 
Brian Salter-Duke (Brian Duke)   



Re: newbie install

2009-02-21 Thread Brian Salter-Duke
On Sat, Feb 21, 2009 at 07:56:47PM +, James Freer wrote:
 Thank you for your help and comments. Just to recap i had wanted to
 use a text editor to speed up answering emails and considered Mutt and
 Emacs. I had used Thunderbird for sometime and liked the app. A text
 email client seemed the answer but i wasn't that impressed by Mutt.
 
 However, i'm not as knowledgeable as some and setting up Mutt was ok
 but still involved quite a bit of work. I got it all working and did
 appreciate your help.
 
 Yesterday i came across a Thunderbird addon Muttador (still beta stage
 - vi editor)

I tried to find muttador but came up with very little. Do you have a
link to it?

Brian.

 and today came across a non-mozilla TB addon called Exteditor...
 http://globs.org/articles.php?lng=enpg=2 some v.clever person has
 developed an external editor addon instead of the TB editor. It allows
 emacs, vi, joe, gedit or whatever to compose emails. Should be of
 interest to anyone who wants to say goodbye to the mouse while editing
 emails.

 james
 
 2009/2/21 Gary Johnson garyj...@spocom.com:
  On 2009-02-21, Chris Bannister mockingb...@earthlight.co.nz wrote:
  On Mon, Feb 16, 2009 at 11:55:00AM -0500, Noah Sheppard wrote:
   On Mon, Feb 16, 2009 at 10:44:45AM -0600, Kyle Wheeler wrote:
[..]
Of course, now we're getting into pedantry, and kinda off track. :)
  
   We are computer geeks; pedantry is never off-track.
  ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?^
  No need for the hyphen; you are not splitting a word.
 
  Hyphens are not used only for splitting words; they are also used
  for joining words to form compounds, as when forming a single
  adjective as in ten-foot pole or off-track pedantry. ?In the
  example above, however, since the modifier off track follows
  pedantry, the correct usage is without the hyphen: ?pedantry is
  never off track.
 
  Regards,
  Gary
 
 
 

-- 
If you think education is expensive, try ignorance.
 The best slogan used by an education trade union.
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au



Re: How to change dynamically the From hdr?

2009-02-17 Thread Brian Salter-Duke
On Mon, Feb 16, 2009 at 10:56:44PM -0500, Ed Blackman wrote:
 On Tue, Feb 17, 2009 at 01:16:14AM +0100, Ennio-Sr wrote:
 I commented all my .muttrc lines referring to 'unhook' and 'send-hook'
 and adapted the lines you suggested to my addresses. Still nothing
 happens when I press 'z'!

 Are you sure you're in the compose menu when you press 'z'?  You should  
 see -- Mutt: Compose in the lower left.

 Moreover, when I compose a new message, my 'From' hdr reads:
 From: Identity_default

 Yeah, I did that deliberately to remind myself of the option.  You might  
 want to change the set from= line and the send-hook lines to have  
 actual addresses if you don't want that in your editor.

 The compose menu is what you get *after* you've saved your message and  
 exited the editor.

I think the OP did not realise this. You hit 'z' before you normally hit
'y' to send. I did not get around to checking htis until yesterday and
it works fine and is really usefull. Thanks.

Brian.
 Ed



-- 
There is no reason anyone would want a computer in their home.
--Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au



addlist

2008-08-24 Thread Brian Salter-Duke
I used to use mutt on a linux machine, but have used it on cygwini for
some time. Checking my muttrc I found I used to use a perl script
called addlist to add subscribe lines for mailing lists to a file that
could be sourced in muttrc. I can not recall where I got it from. Can
anyone help me? Who gave us this small tool? It must have been about
2000. It works fine.

Cheers, Brian.

-- 
On two occasions I have been asked [by members of Parliament], Pray, Mr. 
Babbage, if you put into the machine wrong figures, will the right answers 
come out?. I am not able rightly to comprehend the kind of confusion of 
ideas that could provoke such a question.
   -- Charles Babbage
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au



Re: Procmail error

2008-07-07 Thread Brian Salter-Duke
On Mon, Jul 07, 2008 at 10:32:54PM -0700, Rem P Roberti wrote:
 
 I have mutt installed on two other freebsd computers.  I fetch pop mail
 via getmail, and procmail puts things where they belong.  I just
 installed freebsd 7.0 on another computer with what I thought were the
 exact same settings for all of the mail programs involved.  When I try
 to retrieve mail I get this error message:
 
 Delivery error (command procmail 3695 error (127, exec of command
 procmail failed (refuse to invoke external commands as root or GID 0 by
 default)))
 
 I'm a relative newbie here and would appreciate it if someone could give
 me a heads up on this.

Never get mail as root. In fact never use root unless you really have
to, but that is a more general point.
 
 Rem
 

-- 
There is no reason anyone would want a computer in their home.
--Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au



Re: attachment viewing and mailcap query

2007-12-09 Thread Brian Salter-Duke
On Sun, Dec 09, 2007 at 07:49:39PM +, Jamie Griffin wrote:
 Hi - 
 
 I've read so many websites and the manuals to set up attachment viewing 
 from mutt. I've got a .mutt/auto_view file and a .mutt/mailcap file 
 with appropriate entries in it. 
 
 The main problem i'm having is with ms applications - word is the one 
 i've tried so far. 
 
 I got around this by putting the following in my .mutt/mailcap file:
 
 application/msword; view_attachment %s - '/Applications/Microsoft\ Office\ 
 2004/Microsoft\ Word'

This will work after pressing v but cannot work when you just open the
mail. That needs something that converts word to text and the mailcap
entry needs the 'copiousoutput;' parameter. 

 and have a 'view_attachment' script in /usr/local/bin. This worked ok, 
 but when opening mail with a word document attached, i kept getting 
 an error-message saying:
 
 mailcap entry application/msword not found. This frustrated me and i 
 thought my configuration must be wrong. 
 
 I was able to open the attachment by pressing the 'v' key to view, and 
 selecting the attachment which then opened it with the msword program. 
 I was still bothered by the mailcap entry error i was getting.
 
 I then installed antiword and added the following entry into my 
 .mutt/mailcap file:
 
 application/msword; antiword %s | more; copiousoutput; needsterminal

Do you have this line and the one above in the mailcap file? If so it
will use Msword from the attachemnt menu after pressing v and antiword
in line when you open the mail.

The other question is thsi - are all your word attachemnts of
application/msword type? They could be application/vnd.msword or indeed
a host of other things unfortunately and you will have to add other
lines to your mailcap to cover these.
 
 This does allow me to view the attachment contents, but can't open the 
 attachment with the word program. I would like to do both, this is 
 where i'm having problems. Perhaps my set up is wrong?
 
 Does anyone have any suggestions?
 
 Jamie



-- 
The PROPER way to handle HTML postings is to cancel the article, then
hire a hitman to kill the poster, his wife and kids, and fuck his dog
and smash his computer into little bits. Anything more is just extremism.
-- Paul Tomblin
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au



Re: Mixmaster

2007-12-06 Thread Brian Salter-Duke
On Thu, Dec 06, 2007 at 09:51:44PM +0100, Francesco Ciattaglia wrote:
 * Brian Salter-Duke [EMAIL PROTECTED] [06.12.07 21:31]:
  Is anyone using the mixmaster support in mutt? I ask merely because I
  was involved in improving this about 7 years ago, and I'm curious. I have
  no intention of ever using it again. The support is for a very old
  version of Mixmaster and not for the more recent version 3 betas. 
  
  Should Mixmaster support be kept? It is unlikely to carry on working
  even with the old mixmaster code (version 2.4 beta 46 from September
  2002), and that code may soon be not available.
  
  Brian.
 * Ci? letto, correndo gioved? 06 dicembre 2007, alle 21 e 38 rispondo cos?:
 
 Last Mixmaster changes are dated 2007 september, see:
 http://svn.noreply.org/svn/mixmaster/trunk/Mix/HISTORY

Yes, but none of those versions (2.9  3.0) are supported as far as I
know by thye current mutt code. About 7 years ago I looked at getting
mutt to support the 2.9 version 3 betas and decided it was a really big
job and beyond me. I have no intention of coming back to this. Are you
going to do it?
 
 I would like to use mixmaster support, yes.
 
 I wrote also a complete reference guide* for using mixmaster with Mutt,
 but it's kept in stand-by, because of incompatibility between
 recent versions of Mutt and Mixmaster.

Why not put it on the wiki? It might encourage people to remove the
incompatability. I added a small change to update the manual to mutt.dev
yesterday.
 
 It's an ideal argument for a flame war... anonimity: good or bad?

Indeed and I do not want to go there. It is now not for me, so I am not
going to touch the code. I have raised this, as I have said, just out of
curiousity since I was active with mutt and mixmaster 7 years ago.
 
 IMHO it's good in some situations.
 
 In the country where I live, others are the instruments to protect
 yourself from abuse, crimes, ecc.. So I like Mixmaster as matter of
 study, in some sense.
 
 In other countries, perhaps, anonimity could be matter of life.
 
 * in italian and as a part of Il Nirvana con Mutt (see website in sig).
 
 ciao Ataualpa aka Francesco Ciattaglia.
 
 -- 
 
 - Linux is better: Open  Free! || www.ataualpa.altervista.org

Brian.

-- 
If a thing's worth doing, it is worth doing badly.
   -- G.K. Chesterton
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au



Mixmaster

2007-12-05 Thread Brian Salter-Duke
Is anyone using the mixmaster support in mutt? I ask merely because I
was involved in improving this about 7 years ago, and I'm curious. I have
no intention of ever using it again. The support is for a very old
version of Mixmaster and not for the more recent version 3 betas. 

Should Mixmaster support be kept? It is unlikely to carry on working
even with the old mixmaster code (version 2.4 beta 46 from September
2002), and that code may soon be not available.

Brian.
-- 
Faith is the great cop-out, the great excuse to evade the need to think 
and evaluate evidence. Faith is belief inspite of, even perhaps because 
of, the lack of evidence. 
   -- Richard Dawkins
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au



Re: Mbox main view

2007-06-07 Thread Brian Salter-Duke
On Thu, Jun 07, 2007 at 09:00:15PM +0200, Guillaume R. wrote:
 Hello,
 When I use mutt 1.5.x I used an alias (mutt -y)which allows me
 to start mutt with the list of my mailboxes so that I can choose one.
 Do you know please how I could properly do that on Mutt 1.4.x because
 the option -y doesnt seem to exist.
 Thanks

Odd. Works for me and has done so way back before version 1.4.

-- 
A computer without Windows is like a chocolate cake without
mustard.
-- Unknown
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


mime, freedesktop.org and mutt

2007-05-26 Thread Brian Salter-Duke

This message may be complete nonsense. I am trying to find my way into
something. I understand that KDE 4 and GNOME  2.4 use the
freedesktop.org mime databases to determine the mime type. 

Has any thought ever been given to using these databases in mutt in 
place of mime.types when sending mail and in place of mailcap on receipt 
of mail and when using auto_view? 

The possible advantages could be that it is possible to sort out
conflicting mime types by doing some 'magic' on the file itself on the
fly. I come to this because I have just come back to improving and
adding to various ways I put forward for dealing with chemical mime
type: chemical/x-?? in mutt. A very common extension *.pdb for Protein 
Database Files uses chemical/s-pdb but this conflicts with *.pdb using
/application/vnd.palm. We could possibly use the freedesktop mime
databases to sort this and other problems out.

There is a new project on chemical mime that is adding chemical mime 
types and information for parsing the files involved to these freedesktop.org 
mime databases.

I hope I have not made too many mistakes in the above. I am still trying
to get into it.

Is this the linux way of the future for mime? If so, should we not be
getting mutt to know about it, if we want to stay ahead of the pack on
support for mime. Has anyone thought about this? Is it already in mutt?
Is is possible or even desirable?

Should I cross post this to mutt-devel?

Brian.
-- 
A computer without windows is like a dog without bricks tied to its head
   -- Unknown
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Lotus calander

2007-05-22 Thread Brian Salter-Duke
On Sun, May 20, 2007 at 09:15:40PM -0600, Kyle Wheeler wrote:
 On Monday, May 21 at 10:52 AM, quoth Brian Salter-Duke:
  Has anyone developed a script or other tool that will make *.ics files, 
  which I think are Lotus calander files, properly readable in plain text 
  so I could use it in auto_view in mutt? The file I just received is text 
  but I could not figure out where and how formatted the date and time 
  information was. So I know about a meeting and I know where, but I do 
  not know when!
 
 I believe it's an iCal file, actually (i.e. an invitation). If so, its 
 format is defined by RFC 2445 (Apple didn't invent it): 
 http://tools.ietf.org/html/rfc2445
 
 Here's the Apple document on the subject: 
 http://developer.apple.com/internet/appleapplications/icalendarfiles.html
 
 There's a perl module for handling them (Net::ICal), and a couple 
 other useful projects (search Freshmeat.net for icalendar).

Thanks for that information. I had noticed the perl module, but hoped
someone had used it to write a script to handle these files under
auto_view. I'll see if I can write on and report back.

Brian.
 
 ~Kyle
 -- 
 Unthinking respect for authority is the greatest enemy of truth.
  -- Albert Einstein

-- 
The problem with defending the purity of the English language is that 
English is about as pure as a cribhouse whore. We don't just borrow words; 
on occasion, English has pursued other languages down alleyways to beat 
them unconscious and riffle [sic] their pockets for new vocabulary
-- James D. Nicoll
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Lotus calander

2007-05-20 Thread Brian Salter-Duke
Has anyone developed a script or other tool that will make *.ics files,
which I think are Lotus calander files, properly readable in plain text
so I could use it in auto_view in mutt? The file I just received is text
but I could not figure out where and how formatted the date and time
information was. So I know about a meeting and I know where, but I do
not know when!

Brian.

-- 
A computer without Windows is like a chocolate cake without
mustard.
-- Unknown
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Apple mail

2007-05-17 Thread Brian Salter-Duke
Alain and others.

On Thu, May 17, 2007 at 03:58:28PM +0200, Alain Bench wrote:
  On Wednesday, May 16, 2007 at 9:18:45 +1000, Brian Salter-Duke wrote:
 
  The full headers are:- [private]
 
 Thanks. This header and the previously posted body don't match.
 I assume it's a mistake, and it comes from the other broken mail, right?
 Anyway: This full header is completely broken, lacking any Content-Type,
 Apple Mail tag, Received, and most fields out of Date/From/To/Subject
 and those added by Mutt itself. No mystery it didn't display well, and
 I even doubt the mail reached you in this form. However the enveloppe in
 From_ is OK...
 
 So something destroyed the original header, probably on your side.
 What? I'd first suspect:
 
  - Some evil procmail rule shortening headers.
  - Some evil detacher script.
  - Some evil mail archiving program like pipermail or such.
 
 Can you investigate in this direction? Such munging has to be
 stopped from the beginning, there is no proper way to cleanup it
 afterwards. BTW it's also quite possible that the broken special chars
 in your mails come from the same munging.

I fear I have been wasting your time. This mail was in a list digest
which I split using matamutt and a script that fixes some badly formed
headers from some lists.  the From line comes from those scripts.
metamutt adds the sFfrom line. My script cleans up bad From: lines before
that. I have nothing in .procmailrc that touches headers. 

However, the e-mail looks exactly the same if I do not split it. I
actually split on the fly with a mutt macro tied to a key. I think this
philchem list is even more broken than some I have come across. It does
not keep several headers such as content type. Nevertheless I think the
individual apple mail message is also broken but there is not way of
telling if the digest process gets it wrong.  I guess the list digest 
comes from pipermail.

It is'nt a particularly busy list. Some e-mails are so badly misformed
it is not worth bothering with them. Thanks for your help. I have at
least learn something.

Cheers, Brian.

 
 Bye!  Alain.
 -- 
 Everything about locales on Sven Mascheck's excellent site at new
 location URL:http://www.in-ulm.de/~mascheck/locale/. The little tester
 utility is at URL:http://www.in-ulm.de/~mascheck/locale/checklocale.c.

-- 
One man alone can be pretty dumb sometimes, but for real bona fide
stupidity there ain't nothing can beat teamwork. 
   -- Mark Twain
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Apple mail

2007-05-15 Thread Brian Salter-Duke
Greetings,

Could anyone suggest the best way to cleanup this sort of mail? I have
recently received two from different people. It is a mess. The html is
not an attachment.

Brian.

Mail minus headers follows

--Apple-Mail-1-1070581217
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed


On May 13, 2007, at 4:00 PM, PHILCHEM automatic digest system wrote:

 Here is a challenging subject for philosophers of chemistry. =20
 Professor Miguel Valc=E1rcel of the University of C=F3rdoba in  
 Spain =
 says =20
 that analysis is the only field of chemistry having to do with =20
 humans .

A fascinating claim.

As all of chemistry depends on assays, would it not be simpler to  
simply claim that
chemistry is the science of assays for specific species of matter?

In other words, assay is the field of chemistry.:-)

Cheers

Jerry 
--Apple-Mail-1-1070581217
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=ISO-8859-1

HTMLBODY style=3Dword-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; BRDIVDIVOn May 13, 2007, =
at 4:00 PM, PHILCHEM automatic digest system wrote:/DIVBR =
class=3DApple-interchange-newlineBLOCKQUOTE type=3DciteBLOCKQUOTE =
type=3DciteP style=3Dmargin: 0.0px 0.0px 0.0px 10.0pxFONT =
face=3DHelvetica size=3D3 style=3Dfont: 12.0px HelveticaHere is a =
challenging subject for philosophers of chemistry. =3D20/FONT/P P =
style=3Dmargin: 0.0px 0.0px 0.0px 10.0pxFONT face=3DHelvetica =
size=3D3 style=3Dfont: 12.0px HelveticaProfessor Miguel Valc=3DE1rcel=
 of the University of C=3DF3rdoba in Spain =3D/FONT/P P =
style=3Dmargin: 0.0px 0.0px 0.0px 10.0pxFONT face=3DHelvetica =
size=3D3 style=3Dfont: 12.0px Helveticasays =3D20/FONT/P P =
style=3Dmargin: 0.0px 0.0px 0.0px 10.0pxFONT face=3DHelvetica =
size=3D3 style=3Dfont: 12.0px Helveticathat analysis is the only =
field of chemistry having to do with =3D20/FONT/P P style=3Dmargin: =
0.0px 0.0px 0.0px 10.0pxFONT face=3DHelvetica size=3D3 =
style=3Dfont: 12.0px Helveticahumans .SPAN =
class=3DApple-converted-space=A0/SPAN/FONT/P =
/BLOCKQUOTE/BLOCKQUOTE/DIVBRDIVA fascinating =
claim./DIVDIVBR class=3Dkhtml-block-placeholder/DIVDIVAs all =
of chemistry depends on assays, would it not be simpler to simply claim =
that=A0/DIVDIVchemistry is the science of assays for specific =
species of matter?/DIVDIVBR =
class=3Dkhtml-block-placeholder/DIVDIVIn other words, assay is =
the field of chemistry. =A0 =A0:-)/DIVDIVBR =
class=3Dkhtml-block-placeholder/DIVDIVCheers/DIVDIVBR =
class=3Dkhtml-block-placeholder/DIVDIVJerry=A0/DIV/BODY/HTML=

--Apple-Mail-1-1070581217--

--

-- 
A child of five could understand this!  Fetch me a child of five. 
   -- Marx (guess which one)
erian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Make of docs and other stuff

2007-05-09 Thread Brian Salter-Duke
Greetings,

Some of you may remember me from years back. I have been using mutt for
years and was active on this list years ago. 6 years ago I retired and
lost a unix machine with a direct link to the web. I have a large unix
machine at home to work on, but for various reasons I have not had this
connected to the internet. I use mutt on Cygwin and for years have used
the stable release that comes with cygwin. I have had little time to
play around with mutt and its friends as I used to. However, I have now
got a new speedy laptop with the latest cygwin and I plan to get more
active here. I have just compiled mutt-1.5.15. I plan to work as I used
to on some of the tools that we link with mutt. I need to go through my
old muttrc. There is much there that I did not use with 1.4 or would not 
work under cygwin. My first task is to sort that out. Then, I'll see what 
else I want to play around with. So, if anyone has a TODO list for mutt 
+ cygwin, please let me have it.

I have some comments from the 1.5.15 build. As I found years ago the main
problems are in the make in the doc directory. This is amazingingly
complex, at least to me. It uses tools I have not meet before and I had
to download them from the cygwin site. It failed with:-

make[2]: Entering directory `/home/Brian/prog/mutt-1.5.15/doc'
make makedoc-all
make[3]: Entering directory `/home/Brian/prog/mutt-1.5.15/doc'
sed -e 's,@sysconfdir\@,/usr/local/etc,g' -e 's,@bindir\@,/usr/local/bin,g' 
-e 's,@docdir\@,/usr/local/doc/mutt,g' ./mutt.man  mutt.1
gcc -E -I. -I.. -I/usr/local/include -I.. -DSYSCONFDIR=\/usr/local/etc\ 
-DBINDIR=\/usr/local/bin\ -DHAVE_CONFIG_H=1 -I../intl -D_MAKEDOC 
-C ../init.h | ../makedoc -m |  \
cat ./muttrc.man.head - ./muttrc.man.tail\
 muttrc.man
make -j1 ../makedoc.exe # we do not want to rebuild the documentation in 
tarball builds
make[4]: Entering directory `/home/Brian/prog/mutt-1.5.15/doc'
make[4]: `../makedoc.exe' is up to date.
make[4]: Leaving directory `/home/Brian/prog/mutt-1.5.15/doc'
( date=`head -n 1 ../ChangeLog | LC_ALL=C cut -d ' ' -f 1`  \
  sed -e s/@VERSION\@/`cat ../VERSION` ($date)/ ./manual.xml.head  \
  gcc -E -I. -I.. -I/usr/local/include -I.. 
-DSYSCONFDIR=\/usr/local/etc\ -DBINDIR=\/usr/local/bin\ 
-DHAVE_CONFIG_H=1 -I../intl -D_MAKEDOC -C ../init.h | ../makedoc 
-s  \
  gcc -E -I. -I.. -I/usr/local/include -I.. 
-DSYSCONFDIR=\/usr/local/etc\ -DBINDIR=\/usr/local/bin\ 
-DHAVE_CONFIG_H=1 -I../intl -D_MAKEDOC -C ../functions.h | \
perl ./gen-map-doc ./manual.xml.tail ../OPS* \
)  manual.xml
touch stamp-doc-xml
xsltproc --nonet ./chunk.xsl manual.xml
I/O error : Attempt to load network entity 
http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl
warning: failed to load external entity 
http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl;
compilation error: file ./chunk.xsl line 3 element import
xsl:import : unable to load 
http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl
make[3]: [stamp-doc-chunked] Error 5 (ignored)
touch stamp-doc-chunked
xsltproc --nonet -o manual.html ./html.xsl manual.xml
I/O error : Attempt to load network entity 
http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl
warning: failed to load external entity 
http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl;
compilation error: file ./html.xsl line 3 element import
xsl:import : unable to load 
http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl
make[3]: [manual.html] Error 5 (ignored)
lynx -dump -nolist -with_backspaces manual.html  manual.txt || 
w3m -dump manual.html  manual.txt

It then quit. I have added some newlinetab to make it clearer. So:

1. Why does it have to get this stuff from the internet and why is it
failing to do so? I have a reliable broadband access.

2. Why do we even need to make the documents. They are on the main site or
they can just be added to the release.

3. If thay do have to be made, I suggest a separate 'make docs' after
'make', so failure in making the docs does not stop getting the
executable.

I just edited the makefile to forget about the docs and there was no
problem with the make for the executable.

Best wishes to all, but particularly to old mutt friends.

Brian.
 
-- 
If a thing's worth doing, it is worth doing badly.
   -- G.K. Chesterton
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Make of docs and other stuff

2007-05-09 Thread Brian Salter-Duke
On Wed, May 09, 2007 at 08:52:55AM -0600, Kyle Wheeler wrote:
 On Wednesday, May  9 at 05:32 PM, quoth Brian Salter-Duke:
 xsltproc --nonet ./chunk.xsl manual.xml
 I/O error : Attempt to load network entity 
  http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl
 warning: failed to load external entity 
  http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl;
 compilation error: file ./chunk.xsl line 3 element import
 xsl:import : unable to load 
  http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl
 
 This is explained in mutt/doc/devel-notes.txt. Essentially, you need 
 to export some environment variables to tell it where the XML catalog 
 files are.

OK, this works, but I had to download the two distributions and one is
over 2Mb. It seems overkill. The devel-notes.txt is pretty obscure. It
used to be for developers, not for Joe Blow just trying to compile from
sources. Thanks for drawing my attention it.
 
 2. Why do we even need to make the documents. They are on the main 
 site or they can just be added to the release.
 
 The idea, I believe, is that we only want to write one set of 
 documents, and have them built into both html and man pages. Otherwise 
 it becomes a you updated it here, did you update it there too? 
 thing.

If the appropriate makefile for the documents was available to those who
release a new release, they could run it and put the documents on the
web page where the release is announced.
 
 3. If thay do have to be made, I suggest a separate 'make docs' after
 'make', so failure in making the docs does not stop getting the
 executable.
 
 Hm. It doesn't stop *my* build. I wonder why it stops yours...?

I have no idea, but I later realised that it was hanging leaving lynx,
make and various thinks still running. It is certainly OK now.
 
 Best wishes to all, but particularly to old mutt friends.
 
 Good luck!

Thanks, Brian.
 
 ~Kyle
 -- 
 No man has a natural right to commit aggression on the equal rights of 
 another, and this is all from which the laws ought to restrain him.
   -- Thomas Jefferson, July 7, 1786

-- 
If a thing's worth doing, it is worth doing badly.
   -- G.K. Chesterton
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au


Re: Mutt/GnuPG guide that I have written

2001-08-31 Thread Brian Salter-Duke

On Thu, Aug 30, 2001 at 09:27:36PM -0400, Justin R. Miller wrote:
 Hi,
 
 I've just completed what I think will be my first cut at a relatively
 quick guide to using GnuPG with Mutt easily and responsibly.  Please
 feel free to check it out and to give me feedback so that I can improve
 it before releasing it to the world at large.  You may find it at:
 
   http://solidlinux.com/~justin/mutt-gnupg-howto
 
 Please, please let me know of typos or errors in my explanation of
 things.  I'd appreciate it!
 
 -- 
 | Justin R. Miller [EMAIL PROTECTED] [EMAIL PROTECTED]
 | Of all the things I've lost, I miss my pants the most.
 --

I think this is a valuable addition to the mutt literature.

Thomas, can this go in the release in the docs directory? Or perhaps be
linked to the home page?

Justin, I small point. I think it would be valuable if you linked your
commands in muttrc with a description of gpg.rc.

Cheers, Brian.

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/



Re: can't seem to get folder-hook to work

2001-08-27 Thread Brian Salter-Duke

On Mon, Aug 27, 2001 at 05:16:45PM +0200, Anand Buddhdev wrote:
 On Mon, Aug 27, 2001 at 08:33:29PM +0530, Suresh Ramasubramanian wrote:
 
 Tried separate lines too - doesn't work:
 
 save-hook . =read
 send-hook . my_hdr From: [EMAIL PROTECTED]
 folder-hook . set sort=date-received
 folder-hook . set record==sent
 folder-hook . my_hdr From: [EMAIL PROTECTED]
  
 folder-hook hostmaster unmy_hdr from
 folder-hook hostmaster my_hdr From: [EMAIL PROTECTED]
 folder-hook hostmaster set record==hostmaster.sent

Try using single quotes around the commands that have spaces in them.

For example
 
folder-hook hostmaster 'my_hdr From: [EMAIL PROTECTED]'

Brian.

  Anand Buddhdev mutt [27/08/01 16:55 +0200]:
   On Mon, Aug 27, 2001 at 08:14:09PM +0530, Suresh Ramasubramanian wrote:
   The manual says that the unmy_hdr command is case-insensitive. Anyway, I
   tried it with a capital 'F', and it still didn't work.
   
   Putting the folder hook commands into separate lines works for me ...
  
  folder-hook . set sort=threads
  folder-hook . set signature=~/.signature
  folder-hook . 'set attribution=%n [%d]:'
  folder-hook . my_hdr From: [EMAIL PROTECTED] (Suresh Ramasubramanian)
  folder-hook . my_hdr Organization: The International Lumber Cartel of India
  folder-hook . my_hdr X-OS: `uname -mnrs`
  folder-hook . push \l!(~s 'FOLDER INTERNAL DATA')\n*\
  
  folder-hook mutt unmy_hdr reply-to
  folder-hook mutt 'set attribution=%n mutt [%d]:'
  
  -suresh
  
 
 -- 
 Anand Buddhdev

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/



Re: mailing list improvement

2001-08-08 Thread Brian Salter-Duke

On Wed, Aug 08, 2001 at 09:00:40AM -0700, Chris Fuchs wrote:
 on Wed,08 Aug 2001, Brian Salter-Duke wrote:
 
  To get these to work I had replace ~/.mutt etc with a full path to the
  file. ~ does not seem to work in mutt macros for me.
 
 Does mutt use 'sh' when executing macros?  It does for me even
 though I have set the mutt 'shell' variable to bash in my muttrc
 file and the SHELL environment variable is set to bash in my bashrc.
 This means I may not have configured mutt properly ie I could try
 running config again with --with-exec-shell ...
 
 I found a reference in a book called Think Unix by Jon Lasser
 in which he mentions that '~' is not supported by the Bourne shell and
 that for compatibility all occurences of '~' in the $PATH or other
 environment variables should be replaced by $HOME.  This has also
 solved a similiar problem I was having with my mailcap file in which I
 had to have full pathnames when '~' was used in my $PATH environment
 variable.
 
 HTH
 
 Chris
 
 --
You can only be young once, but you can be immature forever. -Anonymous

I use /bin/ksh - the Korn shell - and define it my muttrc. Maybe that is
the problem.
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/



Re: mailing list improvement

2001-08-07 Thread Brian Salter-Duke

On Mon, Aug 06, 2001 at 06:28:57PM -0500, David Champion wrote:
 On 2001.08.06, in [EMAIL PROTECTED],
   Mike Erickson [EMAIL PROTECTED] wrote:
  
  All that would be necessary is a maillist_file setting in my .muttrc
  just like alias_file, and add a command to add addresses to it. Although
  it'd be a nice bonus, it's not even necessary to autoparse the addresses
  out of an email. Just being able to maintain that list from within mutt
  would be good enough.
 
 You can have the first part of this, of course, by adding
   source ~/.mutt/lists
 or somesuch to your .muttrc file.  I have .muttrc functionalities split
 out into several such files, all sourced from .muttrc.
 
 The rest can be tricky; there's no sure-shot way to determine which
 address from the header (if any) is a mailing list address. For every
 rule you can make up, some list (or list manager) does it differently.
 
 Here's a possibility, though. I'm in a perl-thwacking mood today, I
 guess. Save this attachment in your path as addlist, and try executing
 it via macro something like this:
 
 macro index \Co pipe-messageaddlist ~/.mutt/listsenter Scan a message for 
mailing lists to add
 macro pager \Co pipe-messageaddlist ~/.mutt/listsenter Scan a message for 
mailing lists to add

To get these to work I had replace ~/.mutt etc with a full path to the
file. ~ does not seem to work in mutt macros for me. The perl script
would be better if it tested whether the open statement actually worked.

Cheers, Brian.
 
 The argument to addlist should be the file you store mutt's lists and
 subscribe lines in.
 
 This program will use formail to look for likely list names in the
 message you're viewing or that's highlighted in the index. It will check
 for what list patterns already are defined in your lists file, and if
 any addresses it discovers in the message are not matched by a lists or
 subscribe command, it will ask you whether it should add such a line to
 the lists file, and then do it.
 
 No particular reason for ^O except that it was available in my
 configuration.  No warranty, use at your own risk, c.
 
 -- 
  -D.  [EMAIL PROTECTED]NSITUniversity of Chicago

 #!/usr/bin/perl
 
 require ctime.pl;
 
 if ($#ARGV != 0) {
   print STDERR usage: $0 /path/to/lists/file\n;
   exit (1);
 }
 
 # Remember how to clean up the terminal
 $sane = `stty -g /dev/tty`;
 chomp $sane;
 
 
 # Clean up on exit.
 sub sanitize () {
   `stty $_[0] /dev/tty`;
 }
 for $sig (INT, QUIT, HUP, TERM) {
   $SIG{$sig} = \sanitize($sane);
 }
 
 # Find usable addresses from the mail headers. Formail receives our stdin.
 open (FORMAIL, formail -xTo: -xCc: -xList-ID: -xSender: |) || exit (1);
 while (FORMAIL) {
   chomp;
   s/^ *//;
   s/ *$//;
   s/.*([^]*).*/$1/;
   s/-(admin|owner|request)\@/\@/;
   s/^owner-//;
   s/\./\@/ unless (/\@/);
   $uniq{$_} = $_;
 }
 close (FORMAIL);
 
 # Check extant lists file, and discover addresses already in it.
 open (LISTS, $ARGV[0]);
 while (LISTS) {
   chomp;
   s/^\s+//;
   next unless /^(lists|subscribe)/;
   s/#.*//;
   s/\s+$//;
   s/.*(lists|subscribe)\s*//;
   map { $already{$_} = $_ } split(' ', $_);
 }
 close (LISTS);
 
 # Exclude matching addresses from new list.
 for $addr (keys %uniq) {
   for $exist (keys %already) {
   delete $uniq{$addr} if ($addr =~ /$exist/);
   }
 }
 
 # Go into raw mode for the prompts.
 `stty raw /dev/tty`;
 
 # Prompt whether to add each address discovered.
 $| = 1;
 open (TTY, /dev/tty);
 for $addr (sort keys %uniq) {
   while (1) {
   print Add $addr as a list [y/n]? ;
   sysread (TTY, $ch, 1);
   print \r\n;
   if (lc($ch) eq n) {
   delete $uniq{$addr};
   last;
   }
   last if (lc($ch) eq y);
   }
 }
 
 # Clean up terminal.
 sanitize($sane);
 
 # Append to lists file, if necessary.
 @_ = keys %uniq;
 $n = $#_ + 1;
 if ($n  0) {
   open (LISTS,  $ARGV[0]);
   $date = ctime(time);
   chomp $date;
   $s = s if ($n  1);
   print LISTS # $n list$s added by $0 at $date\n;
   map {
   print LISTS subscribe $_\n;
   } sort keys %uniq;
   print LISTS \n;
   close (LISTS);
 }
 
 print \n;
 print $n lists added to $ARGV[0].\n;
 print \n;
 exit (0);


-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/



Re: Forwarding mails with attachments

2001-08-05 Thread Brian Salter-Duke

On Sun, Aug 05, 2001 at 09:28:59PM -0500, peter horst wrote:
 On Aug 5, 13:58PM, Justin R. Miller wrote:
  Thus spake Morten Brix Pedersen ([EMAIL PROTECTED]):
  
   So, is there a better way forwarding e-mail with attachments?
  
  Here's what I use: 
  
  message-hook . set mime_forward=no
  message-hook ~h multipart set mime_forward=ask-yes
  
 
 Is there a way to alter that formula so that it asks to mime_forward
 all mails with multipart in the headers except mails marked
 multipart/signed?
 
message-hook . set mime_forward=no
message-hook ~h multipart !(~h multipart/signed) set mime_forward=ask-yes

should do it, but I have not tested it.

 Peter Horst

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/



Quoting

2001-07-19 Thread Brian Salter-Duke

I am using the VVV nntp patch and want to set a group of stuff if I am
in one news folder, but I think the problem is a general mutt one. If I
do something like this:-

folder-hook rec.foo.bar \
'set index_format=---some pattern \
my_hdr Newsgroups: rec.foo.bar \
score \'~f fred\' -20'

it sets the index format but does not set the header for mailing. I have
tried many variants of the quotes but either it does neither or just the
first one. How does one set up the quotes properly? The score line is
something I also want to add, but I have not tried it as above. I can
get everything I want to do to work in separate folder-hook lines, but
this is verbose.

mutt is 1.3.19

Cheers, Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/



Re: IMAP mail filtering

2001-04-24 Thread Brian Salter-Duke

On Mon, Apr 23, 2001 at 10:48:57AM +1000, Jeff Turner wrote:
 Hi,
 
 I've been wondering about this for a long time..
 
 If one uses POP3 to download mail, then filtering can be done with procmail,
 and everyone's happy. However I'd like to use IMAP, since I access mail from
 various computers.
 
 So the question is, how can one do IMAP-based email filtering? How do most
 people do it? Procmail scripts on the server? Courier-specific IMAP filtering
 languages[1]?
 
 Assuming there is no universal solution, could mutt be made to emulate one,
 like netscape mail does? Ie:
  - download all the headers
  - filter based on the header info
  - Issue IMAP copy instructions to move the actual messages to the right
mailboxes.
 
 Has anyone done this with mutt before?
 
 Perhaps it should be a separate utility, invoked before mutt, that applies a
 local set of procmail rules to a remote set of IMAP mailboxes. Does anyone know
 of anything like this?
 
 Thanks,
 
 --Jeff
 
 [1] http://search.ietf.org/internet-drafts/draft-showalter-sieve-12.txt

I do not need this at the moment but I think I will in the future. My
question is this. Can not fetchmail do all this for you?
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/



Re: Appending to the header

2001-04-13 Thread Brian Salter-Duke

On Fri, Apr 13, 2001 at 08:28:28AM +0530, Suresh Ramasubramanian wrote:
 Gary Jones proclaimed on mutt-users that: 
 
  On 11 Apr 2001, Suresh Ramasubramanian wrote:
  
Either volkov / other nntp patches to mutt, or a mail2news gateway.
  
  Mail2news is the way I'd do it. There's a nice mini-How-To which is 
  easy to follow, so its not daunting or complicated at all. I guess 
  you'd set up a dummy email user, setup procmail for it, and mail the 
 
 gnu/mailman has a rather nice builtin mail2news gateway capablity.

Can this be used on its own without installing the whole of mailman?

Cheers, Brian. 
 -s
 
  announcements to that user. As if by magic the news article will 
  appear.
 
 -- 
 Suresh Ramasubramanian + Wallopus Malletus Indigenensis
 mallet @ cluestick.org + Lumber Cartel of India, tinlcI
 EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin  

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/



Re: Mailcap

2000-11-26 Thread Brian Salter-Duke

On Mon, Nov 27, 2000 at 04:25:10AM +0200, [EMAIL PROTECTED] wrote:
 Martin Schweizer wrote:
 : Hello 
 : 
 : I convert with xlHtml and pptHtml (both on www.xlhtml.org) Microsofts .xls and 
.ppt 
 : to .html files. This program send the result to standart output and not in a 
 : file.
 : My .mailcap:
 : -snip-
 : application/x-msexcel; xlHtml %s  test.html
 : -snip-
 : How can start lynx to read test.html directly (on the same line)?
 
 In this way for example:
 application/x-msexcel; xlHtml %s  %s.html  lynx -dump %s.html  rm -f 
%s.html; copiousoutput

Does not
 
application/x-msexcel; xlHtml %s | lynx -dump; copiousoutput

work?

 But lynx is not best browser for viewing tables.
 
 -- 
 Andrew W. Nosenko([EMAIL PROTECTED])

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: A proposition for a print-command

2000-11-21 Thread Brian Salter-Duke

On Fri, Sep 22, 2000 at 12:30:22PM +0200, [EMAIL PROTECTED] wrote:
 Hello,
 
 Having longtime searched for a nice printing-command, i've finally
 choosen the next one :
 
 set print_command="fmt --prefix='' -s | fmt -s | a2ps -b"" -1 -R 
--pretty-print=mail -o $(date +%x-%X | tr : .).ps"
 
 a2ps gives very nice layouts with the option --pretty-print=mail,
 particularly with the use of different fonts for headers, body-text and
 quoted-text, but there is some limitations. It does'nt wrap the long
 lines, so messages coming from mailers like Outlook have lines cutted
 without regarding the words-boundaries.
 
 With a first pipe fmt -s, the lines are wrapped, but the "smart font
 selection" is lost for long quoted-text (only the first line begins with
 a "").
 
 So the solution was to pipe two successives fmt commands ; the first
 concerns the quoted-text and insert the prefix "" in the beginning of
 every wrapped line. The 2d wraps the other lines.
 
 I also add the next options to a2ps :
 
 -b"" this to avoid the header but preserve the title (better than -B)
 -o $(date +%x-%X | tr : .).ps to send the output to a file rather than
 the printer. The name of the file is producted by the current date.
 
 Try it. Comments welcome.

This is indeed a nice solution, although I do not see why you want to
send it to this kind of file and not a printer. Let me point out however
that the whole world is not linux. The fmt command you use is the Gnu
fmt from the textutils Gnu package. Other fmt commands such as the AIX
one I tried first do not support what is being done here.

Cheers, Brian.

 -- 
 
 
  #=---=#
  "  ^^  Gauthier Vandemoortele "
  |   (_/°°-ç[EMAIL PROTECTED] |
  |   | \_`-"   |
  |   )/@mmm||   Chée de Wavre, 135c|
  |   \nn   \nn  B-1360 Perwez  |
  |  Belgique   |
  " FOE-Belgium : http://www.ful.ac.be/hotes/amisterre  "
  #=---=#

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: A proposition for a print-command

2000-11-21 Thread Brian Salter-Duke

On Tue, Nov 21, 2000 at 06:28:03PM -0800, Shawn D. McPeek wrote:
 
 The whole world doesn't have to be Linux to use this solution.  If your
 AIX box does not have gfmt, you can easily download the software and
 compile it for your AIX box.  Worked for me on AIX and HP-UX.

Sure and that is what I did do. I said I used AIX fmt first. I was
merely pointing out that not all "fmt"s are the same or useable in the
way described. With linux so dominant, this point does seem to be missed
sometimes. I have nothing against linux. I think it is great. I just
happen to use an old AIX box.

Cheers, Brian.

 Shawn
 
 Previously, Brian Salter-Duke wrote:
 % 
 % This is indeed a nice solution, although I do not see why you want to
 % send it to this kind of file and not a printer. Let me point out however
 % that the whole world is not linux. The fmt command you use is the Gnu
 % fmt from the textutils Gnu package. Other fmt commands such as the AIX
 % one I tried first do not support what is being done here.
 
 -- 
 "Benson, you are so free of the ravages of intelligence"
 -- Time Bandits

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



mutt and rot13 ?

2000-11-18 Thread Brian Salter-Duke

This was posted on the NG comp.mail.mutt sometime ago but I have only
jsut got around to palying with it and I thought my expereinces might be
useful on the mutt list as well as the basic idea.

On Thu, Oct 19, 2000 at 04:24:36PM +0200, Johannes Segitz wrote:
 On Thu, 19 Oct 2000 13:00:18 GMT, Renaud Colinet wrote:
 [EMAIL PROTECTED] (Frank Altpeter) wrote in
 8smpfc$iju$[EMAIL PROTECTED]: 
 
 
 Just a simple question ... is it possible to enable the mutt
 internal pager for viewing rot13 encoded content ?
 
 Just create a simple macro to filter the message through a rot13 
 encoding script, for instance: 
 
 macro pager \er "| tr a-zA-Z n-za-mN-ZA-M"
 
 I bound it to Esc-r, which is the default in slrn.
 
 Cool macro, but when i start it, my screen gets rushed by chars. I can
 use 
 
 macro pager \er "| tr a-zA-Z n-za-mN-ZA-M"|less
 
 but so i have to use less. What can i do else?
 
First, I think

macro pager \er "| tr a-zA-Z n-za-mN-ZA-M | less"

is better with the " at the end.

Second on AIX 2.3.5 I had to change this to

macro pager \er "| /usr/ucb/tr -A 'a-zA-Z' 'n-za-mN-ZA-M' | less"

The BSD tr seems better than the AIX tr (in /usr/bin). Without the ASCII
-A flag it did not quite work in a way I did not understand. It did not
translate m and LM.

Third, a problem. If the message is rot13 coded and the headers are not,
this macro of course rot13 codes the header and decodes the message. Is
there a way to only pipe the message without the headers to tr? Of
course I guess one could sed out everything up to a blank line, but I am
thinking of something simpler.

Cheers, Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



mixmaster support in mutt

2000-11-08 Thread Brian Salter-Duke

As we have discussed here mixmaster support in mutt in for version 2.0.4
of mixmaster. The later mixmaster 2.9b23 does not have the -T flag
needed to read the type2.list file.

I have written a patch to mixmaster 2.9b23 that alters main.c to add the
-T flag. This now works with mutt. Get it of the page:-

http://lacebark.ntu.edu.au/mutt.html

Improvements, suggestions, welcome. Enjoy.

Cheers, Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: mixmaster

2000-11-08 Thread Brian Salter-Duke

On Wed, Nov 08, 2000 at 02:08:43PM +0100, Erwin Kaiser wrote:
 In the manual I read about sending mail via mixmaster but I cannot activate
 this feature. How does it work?
 TIA Erwin

Did you compile with mixmaster enabled? Look at "mutt -v" to see whether
you did. If not look at "./configure --help" and recompile. 

Which mixmaster do you have? If 2.9 see my patch notice of about 16
hours ago. mutt currently only works with 2.0.4 as the very latest
manual states.

Brian.

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: Using type 1 remailers and mutt.

2000-10-31 Thread Brian Salter-Duke

On Mon, Oct 30, 2000 at 11:19:07PM -0800, rex wrote:
 On Tue, Oct 31, 2000 at 01:33:50PM +0930, Brian Salter-Duke wrote:
  
  http://anon.xg.nu/remailer-page.html#top
  
  The newsgroup alt.privacy.anon-server is the best of several that look
  as if they might have something about mixmaster, and remailers. It has
  a good FAQ posted every Wednesday. I think it is archived at:-
  
  http://www.almostnotcrazy.org/b/apasfaq/apas-faq.html
 
 Thanks.
 
 
  I am concentrating on type 1 remailers at present. I amy look again at
  mixmaster later.
 
 Have you looked at premail? Last version I know of was 0.46, available at
 http://www.radiusnet.net/crypto/archive/remailer/premail/

Yes, I did look at it and need to look at it more. It is however yet
another example of software that is now fairly old and is not being
supported any more.
 
 Premail facilitates using chained remailers: To: [EMAIL PROTECTED] ((chain=3)) 
 
 It also largely automates nym creation.

I want ot try this. It does look as if it makes a very confusing
business a lot easier and clearer.
 
 Unfortunately, it uses old style comment addressing for commands, and Mutt is
 paternalistic about addresses and automatically rewrites (mungs, in this
 application) the addresses that need to be passed to premail. Mutt has a
 compile switch to turn off the automatic address rewriting, but there is a
 warning in the docs that it is broken and should not be used. I wish I were
 capable of fixing it.

I guess there is not too much incentive for the mutt developers to fix
this. My C is not really good enough also.
 
 Nyms and remailers are *so* much easier to use under DOS  Windoze (Potato,
 Jack B Nymble), it's an embarassment to the *nix community. IMO.

It seems you are right although I have never looked at them on a PC.

Brian. 
 -rex
 
 -- 
 The King has note of all that they intend,
 By interception which they dream not of.
 --William Shakespeare, _Henry V_, Act II, Scene 2

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: Using type 1 remailers and mutt.

2000-10-30 Thread Brian Salter-Duke

On Sun, Oct 29, 2000 at 09:17:10PM +0100, Wouter Verheijen wrote:
 I tried it too, without success.
 It is all too hard to set up and manage. I downloaded a recent
 mixmaster-list-file but only 3 hosts were active (the others had a
 reliability of 0.00%).

This is not correct. The recent lists of reliable remailers show many
more than this. Lists are posted every day on alt.privacy.anon-server.

 Apperantly hardly anyone cares about the lack of Documentation,
 support and usability of mixmaster.

Unfortunately this does appear to be the case. The l-mix list is pretty
dead. The newsgroup alt.privacy.anon-server is half total junk and I
mean total, and half about remailers. I see nothing about mixmaster.

David T-G asked about various sources. This URL has lots of info and
good links:-

http://anon.xg.nu/remailer-page.html#top

The newsgroup alt.privacy.anon-server is the best of several that look
as if they might have something about mixmaster, and remailers. It has
a good FAQ posted every Wednesday. I think it is archived at:-

http://www.almostnotcrazy.org/b/apasfaq/apas-faq.html

I am concentrating on type 1 remailers at present. I amy look again at
mixmaster later.

Cheers, Brian.

 
 -- 
 Wouter Verheijen
 [EMAIL PROTECTED]

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: URL view not working

2000-10-29 Thread Brian Salter-Duke

On Sun, Oct 29, 2000 at 10:32:07PM -0600, Gary wrote:
 Hello all,
 
 I have just switched distros to SuSE and moved over my muttrc, and
 many others.  Now, when I hit ^B to get a urlview (which I have
 macro-ed in my muttrc), I get a urlview command not found.  Is this a
 separate program, or part of Mutt?  It has worked previously under my
 Mandrake distro without a problem. I am using the latest Mutt.
 
 Any thoughts?

It is a separate program called 'urlview' and you also need a config
file called '.urlview' in your home directory. Also try ? before hitting
^B to check that ^B is bound the way you think it is. If you do not have
urlview I think you can get it from the mutt ftp site in the contrib
directory.

Cheers, Brian.

 TIA,
 
 -- 
 Best regards,
 Gary 
 
 Today's thought: BREAKFAST.COM Halted - Cereal port not responding.



-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: Message temporary file.

2000-10-27 Thread Brian Salter-Duke

On Fri, Oct 27, 2000 at 10:13:55AM +0200, Michael Tatge wrote:
 Brian Salter-Duke muttered:
  On Fri, Oct 27, 2000 at 01:47:06AM +0300, Mikko Hänninen wrote:
   Brian Salter-Duke [EMAIL PROTECTED] wrote on Thu, 26 Oct 2000:
In the attach menu after saving the message, I
want to modify the message considerably by piping it to a script. The
modifications are such that they can not be done in situ.
   
   What's wrong with using the filter-entry function from the compose menu
   (bound to F by default, apparently)?
   
  It is not the attachment I want to filter and F is filter-entry for the
  attachment. I want to alter the message itself.
 
 The message body _is_ an attachment.
 
[My explanation of what I'm doing snipped]
  
 If you alter the headers with hooks, all you need to change is the
 messege body. This could be done with filter-entry.
 
Thanks, Michael and Mikko, for your explanation. Using filter-entry
bound to F works. It prompts for my filter script and then needs a
"yes" reply as it warns it is overwriting the mutt-hostname-number file
in /tmp.

So far so good. I then tried to write a macro:-

macro   attach  \Cp "filter-entrytry1enteryesenter"

try1 is the name, for now, of my filter script.

This does not work. When I try, it says the key is not bound and
if I use '?' to see what is bound it indeed is not bound. I have the
following in my muttrc, many taken from Roland's keybinding. Mostly
these do not show in '?' in the attach menu either. Only \e;, Q and v
show and I suspect these are defaults. i is still bound to ispell, which
I guess is the default.

macro   attach  \Cb ":set pipe_decode\n|urlview\n:unset pipe_decode\n" \
"Call urlview to extract URLs out of a message"
bindattach  g   group-reply
bindattach  i   exit
macro   attach  \el "|less\n" "View plain message using less"
# view plain message
bindattach  Q   exit
macro   attach  \eu "|uudeview -\n" "uudecode attachment"
# uudecode attachment
bindattach  v   view-attach

Is this a bug that you can not add macros and bindings to the attach
menu? Or as usual am I making a fool of myself?

Cheers, Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: Message temporary file.

2000-10-27 Thread Brian Salter-Duke

On Sat, Oct 28, 2000 at 03:28:56AM +0300, Mikko Hänninen wrote:
 Brian Salter-Duke [EMAIL PROTECTED] wrote on Sat, 28 Oct 2000:
  It prompts for my filter script and then needs a
  "yes" reply as it warns it is overwriting the mutt-hostname-number file
  in /tmp.
 
 You can probably get rid of that "yes" reply -- I'm not sure of this,
 but I would expect that to be handled by some option or another.
 (After all, everything else in Mutt seems to be! g)  I have no idea
 of what option that might be, though. :-)
 
  So far so good. I then tried to write a macro:-
  
  macro   attach  \Cp "filter-entrytry1enteryesenter"
 
  This does not work.
 
 Try using "macro compose \Cp". :-)  The "attach" menu is where you view
 the attachements (message structure) of received emails.  The "compose"
 menu is where you create new emails.
 
 Don't feel bad, that's an easy mistake to make. :-)

As always, you are bang on right. I always get confused about what the
menu are called. Since it is the menu where you hit 'a' to attach a
file, I thought that was the attach menu. Now it works. I do not know
about getting rid of the 'yes' response, but there could be a way. Since
it goes in the macro it does'nt matter. 

OK, I'll just clean up this lot and then I let people on the list know
how to use type I remailers with mutt.

Cheers, Brian.
 
 And oh, if I'm wrong and that doesn't solve your problem, please let us
 know.  I'm 95% sure that's the problem, though. :-)  The macro looks
 like it should work.
 
 
 Regards,
 Mikko
 -- 
 // Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
 // The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
 // Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
 Bumper sticker: Cover me.  I'm changing lanes.

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Using type 1 remailers and mutt.

2000-10-27 Thread Brian Salter-Duke

As promised in another thread, a report on using type 1 remailers in
mutt as I see it.

I played around with mixmaster support in mutt, but with little success. 
I decided to go back to the beginning, partly because of my failure with
mixmaster but also because I am not sure I need mixmaster. Just
anonymity rather than privacy may be all I need. So I have played with
type I remailers. I use it most for posting to usenet anonymously and I
use Vsevolod Volkov's NNTP patch. The same approach can be used for normal 
mailing. This reports how I am now doing it. It may be of interest to some 
people.

1. Use an alias for the remailer. E.g.

alias anon Anonymous Remailer [EMAIL PROTECTED]

2. Use send-hook to incorporate a special sig file if mailing to
remailer. E.g. 

send-hook (remailer) \
'set signature="~/.mutt/type1.inc" attribution="On %d, %n wrote:"'
send-hook (remailer) 'unset sig_dashes'

Note that you also need:-

send-hook . 'set sig_dashes'

3. I also have various folder hooks for the newsgroups. E.g.

folder-hook comp.mail.mutt 'my_hdr Newsgroups: comp.mail.mutt'
folder-hook sci.chem 'my_hdr Newsgroups: sci.chem'

to add the appropriate "Newsgroups:" header if I post or reply via the
mail2news gateway provided I am in the appropriate group folder.

4. The sig file - type1.inc - looks like:-

::
Anon-To: [EMAIL PROTECTED]

##
Newsgroups: alt.test
Subject: 


-- 
"Add here whatever you want as a true sig".

The system works like this:-

a) The folder-hooks in (3) leave a "Newsgroups:" proper header. Use the
editor to move it down into the text below the alt.test line.
b) Delete the alt.test line.
c) Add the subject to the header in the body of the message.
d) Type in the message before the real sig.
e) If replying, you have to move up the first 5 lines of this type1.inc
file to the top of the message. The message has to start with the "::"
line. You can also move down the "in-Reply-to" header from the proper
headers to the headers in the message. Perhaps other proper headers need
to be moved to.

You can then send the message to the type 1 remailer. This will strip of
the headers and use the headers you had in the message body to send the
message to the final destination as specified in the "Anon-To:" line.


5. Many type 1 remailers require you to encrypt the body of the message
from (4) using pgp and the remailer's public key. The message has then 
to follow the two lines below, looking like:-

::
Encrypted: PGP


-BEGIN PGP MESSAGE-
Version: GnuPG v1.0.4 (AIX)
Comment: For info see http://www.gnupg.org

hIwDQxhxASvroMcBA/4scYwhRsuL1Yde1ekq/LPyZ8jUCh15DsWFC2aoIBJ7ofiS
tgqyyx3wxcj6DuDk+VbcsuGdzhGgkg3mhqYfwiQJKDxof+FZGe86qym9KkP7VO+f
GbJqKb+ZWre7PQm+PfwhgbK6Y/+/7Oh80ykIgDrVFcfYSPwGMa8z83LZ1vpL1cmv
DhdczHgvtOo1L6PoroPVWjs5t8Apaf5xrzjTb37PVlMCdObRgzlsUdMwJrE3B+5I
mX6UeuECwXagAezt45b8t7VgpX6HaiA96vna0kGzh1mreu3rt4pForrr4U/X82VR
dYPSBECh97Y0Tloi3Q0ffEBqMCWAxy610IvwMVNmXu7U5uQdq8CyJTz6yeLL7YYw
tWVlxDx7m6miIlemmnwHUUxSMQZr+t+bepBBBilk6A==
=8hJD
-END PGP MESSAGE-

I do this with a macro for filter-entry in the compose menu:-

macro  compose \Cp "filter-entrypgp-remailer-filterenterysend-message"

You compose the message as in (4) and exit the editor saving the
message. Hitting ^p then does the necessary filtering to give the
encrypted message and the PGP header and sends the message to the
remailer. Here it is decrypted and the message sent on to the final
destination. The filter pgp-remailer-filter looks like:-

cat END 
::
Encrypted: PGP

END
gpg --always-trust --encrypt --armor --recipient 2BEBA0C7 2/dev/null

The "2/dev/null" removes a warning message that I do not have secure
memory. I can not get over this problem with my system as I do not have
mlock. You might want to remove this until you are sure all works or
even remove it for good. The --always-trust option will not be necessary
if the remailer public key is trusted. Obviously if you are using pgp 6
it will be a different command.


This works pretty well except for the "reply" problem of having to move
up the line from the "sig" to the top of the message. I am thinking of a
different solution using vim, but I can not think of a generic mutt
solution that does not depend on the editor you are using.

I welcome comments on this approach to using type 1 remailers. Is there
a better way.

Cheers, Brian.

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: Message temporary file.

2000-10-26 Thread Brian Salter-Duke

On Wed, Oct 25, 2000 at 11:17:11PM -0700, Jason Helfman wrote:
 I was messing around with backing up mail with my Qmail server, and
 there is a utility that comes with it called, maildir2mbox. This utility
 requires an environment variable named:
 
 MAILTMP
 
 I don't know if this is a system wide variable, or something just with
 Qmail. Maybe this is a pointer, maybe not.
 
 My /etc/profile
 
 MAILTMP="/home/$USER/.mailtmp"

A nice thought, Jason, but I think it does not meet the problem. I have
qmail too. I do not use maildir2mbox but its man page says it converts
Maildir format to mbox format and uses MAILTMP as a temporary file in so
doing. 

I just need to know what to call the message file in /tmp from a script
called by mutt. I could of course pass an argument from the mutt call
via a pipe to the scripti, but I do not know what to call it.

Thanks, Jason.

Cheers, Brian.

  
 On Thu, Oct 26, 2000 at 11:21:59AM +0930, Brian Salter-Duke muttered:
 | I am not sure whether I am doing something the right way, but I have
 | come up against a wall. In the attach menu after saving the message, I
 | want to modify the message considerably by piping it to a script. The
 | modifications are such that they can not be done in situ. I have to
 | create another temporary file. The question is this - how do I replace
 | the original temporary file in the tmp directory by the new one so I can
 | then send the new file rather than the original? Is there a variable
 | that refers to the original file so I can just do:-
 | 
 | mv /tmp/new-file $variable
 | 
 | and overwrite the original message file? I can not find a pointer to
 | this but I may be missing the obvious of course.
 | 
 | Cheers, Brian.
 | -- 
 | Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
 | Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
 | Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
 | Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html
 | 
 
 -- 
 /Jason G Helfman
 
 "At any given moment, you may find the ticket to the circus that has always
 been in your possession."
 
 Fingerprint: 6A32 3774 E390 33B5 8C96  2AA1 2BF4 BD71 35A1 C149
 GnuPG http://www.gnupg.org  Get Private!  1024D/35A1C149

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: Message temporary file.

2000-10-26 Thread Brian Salter-Duke

On Thu, Oct 26, 2000 at 11:21:59AM +0930, Brian Salter-Duke wrote:
 I am not sure whether I am doing something the right way, but I have
 come up against a wall. In the attach menu after saving the message, I
 want to modify the message considerably by piping it to a script. The
 modifications are such that they can not be done in situ. I have to
 create another temporary file. The question is this - how do I replace
 the original temporary file in the tmp directory by the new one so I can
 then send the new file rather than the original? Is there a variable
 that refers to the original file so I can just do:-
 
 mv /tmp/new-file $variable
 
 and overwrite the original message file? I can not find a pointer to
 this but I may be missing the obvious of course.

I do have a solution, but it is nasty, not general and likley to fail.
However it does perhaps explain more clearly what I want to do. The
message is saved in a file in /tmp called "mutt-hostname-some_number. I
pipe this to my script and form the file /tmp/new-file and then at the
end of script add:-

mv /tmp/new-file /tmp/mutt*

This works. I can now just hit "y" to send the mail. However of course
it would fail if there was more than one message from mutt in the /tmp
directory. Is there a better way to refer to this file or pass its name
in the pipe from the compose menu?

Cheers, Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: Message temporary file.

2000-10-26 Thread Brian Salter-Duke

On Fri, Oct 27, 2000 at 01:47:06AM +0300, Mikko Hänninen wrote:
 Brian Salter-Duke [EMAIL PROTECTED] wrote on Thu, 26 Oct 2000:
  I am not sure whether I am doing something the right way, but I have
  come up against a wall. In the attach menu after saving the message, I
  want to modify the message considerably by piping it to a script. The
  modifications are such that they can not be done in situ. I have to
  create another temporary file. The question is this - how do I replace
  the original temporary file in the tmp directory by the new one so I can
  then send the new file rather than the original?
 
 What's wrong with using the filter-entry function from the compose menu
 (bound to F by default, apparently)?
 
 I'm not sure I understand what you mean with "in situ", but if you can
 explain why "filter-entry" isn't enough for you, well maybe we can go
 from there. :-)  As far as I know, there is no actual way to get the
 temporary filename of the attachement.
 
It is not the attachment I want to filter and F is filter-entry for the
attachment. I want to alter the message itself. In fact I do not have
and think I can not have an attachment for this application.

Let me explain what I am trying to do. Perhaps I should have made this
clear earlier. I am trying to automate sending messages anonymously to
type I remailers. Here the headers point the mail to the remailer. The
message contains other headers such as:-

::
To: [EMAIL PROTECTED] 

I can handle this OK with hooks etc. You can send this to the remailer
in clear and all is well. However many remailers want the message to be
encrypted and armored. We want a message looking like:-

::
Encrypted: PGP

PGP encrypted/armored block

I can pipe the message into a script that creates this. I need to put it
back in the message file. By "in situ" I meant I could not do it like an
atomatic edit.

So, I guess I do need a filter, but does one exist?

Cheers, Brian.

 Regards,
 Mikko
 -- 
 // Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
 // The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
 // Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
 10.0 times 0.1 is hardly ever 1.0.

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Message temporary file.

2000-10-25 Thread Brian Salter-Duke

I am not sure whether I am doing something the right way, but I have
come up against a wall. In the attach menu after saving the message, I
want to modify the message considerably by piping it to a script. The
modifications are such that they can not be done in situ. I have to
create another temporary file. The question is this - how do I replace
the original temporary file in the tmp directory by the new one so I can
then send the new file rather than the original? Is there a variable
that refers to the original file so I can just do:-

mv /tmp/new-file $variable

and overwrite the original message file? I can not find a pointer to
this but I may be missing the obvious of course.

Cheers, Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: GPG 1.0.3 and mutt

2000-10-24 Thread Brian Salter-Duke

On Tue, Oct 24, 2000 at 11:08:14AM +0300, Andrew W. Nosenko wrote:
 Brian Salter-Duke wrote:
 : I may stick with GnuPG as is. However that
 : raises my original question. gpg.rc uses gpg_2comp (I may have the name
^
 gpg.rc don't use gpg_2comp starting at 2000-03-03.  All commands what use 
 gpg_2comp is commented out and replaced by "clear" gpg commands.

Hmmm. Mea Culpa. So they are. I just saw something about using this
gpg_2comp and got it. I then saw it was to fit with pgp2.

OK, but I am still confused. What gave rise to the change ealrlier this
year. How compatible is gpg with mutt using this gpg.rc with other
versions of pgp?

It seems to me that a lot of people sign their mutt messages but that
only a small proportion are verified. Only a very few people use
encrypting and then only onlya on a one-to-one basis with someone they
really know and have arranged to have the same version of PGP. The
result is that there does not appear to be a lot of expertise on the
mutt list about all the incomatability questions. Or maybe I'm just
asking dum questions or not reading the files and manuals carefully
enough like in this case. 
 Check for is you use fresh gpg.rc?

Yes, it was with the 1.3.10 unstable version.

Cheers, Brian.
 
 -- 
 Andrew W. Nosenko([EMAIL PROTECTED])

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: GPG 1.0.3 and mutt

2000-10-23 Thread Brian Salter-Duke

On Mon, Oct 23, 2000 at 04:21:19PM +0200, Peter J . Holzer wrote:
 On 2000-10-20 17:02:57 +0930, Brian Salter-Duke wrote:
  I recently decided to try GnuPG after using only pgp2 off and on for
  some years. It was only after I downloaded it and played with it for a
  while, that I realised that version 1.0.3 was very recent. I had got in
  right at the beginning of a new version. This new version incorporates
  RSA which I understand came out of copyright only in September.
 
 PGP 2.x also uses the IDEA algorithm which is patented in some countries
 (and therefore not included in GPG), so you will still need one plugin
 for GPG to handle 2.x-compatible PGP-messages.
 
Thanks, Peter and all the others who have replied to my original
message. However I remain confused. I realise that IDEA is missing from
1.0.4 and I would need it for pgp2 compatability. However, I am not sure
I want pgp2 compatability. I may stick with GnuPG as is. However that
raises my original question. gpg.rc uses gpg_2comp (I may have the name
wrong) and this SEEMS to presume you are using the IDEA pluggin etc. So,
does gpg.rc work for GnuPG out of the box or do you need another rc
file? Or indeed does mutt only work with GnuPG if it is made compatable
with pgp2. PGP and its mates still confuses me. There seems to be so
much incompatability these days.

Cheers, Brian.



-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



GPG 1.0.3 and mutt

2000-10-20 Thread Brian Salter-Duke

I recently decided to try GnuPG after using only pgp2 off and on for
some years. It was only after I downloaded it and played with it for a
while, that I realised that version 1.0.3 was very recent. I had got in
right at the beginning of a new version. This new version incorporates
RSA which I understand came out of copyright only in September.

This allows one I gather to encrypt in a manner compatible with pgp2.

The gpg.rc script assumes the use of gpg-2comp and this assumes that RSA 
patches to gpg have been installed. Version 1.0.3 appears to alter the 
whole game.  So my question is this - what do we have to use in place of
gpg.rc. Has anybody given this any thought or has anyone who used an
earlier version of gpg got any war stories about upgrading to 1.0.3?

Now an extra question. I always get "gpg: Please note that you don't 
have secure memory on this system". I added "no-secmem-warning" to 
~/.gnupg/options as suggested and I then made gpg suid root. I still get
the error message. Any ideas?

Cheers, Brian.
 
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia.
Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/
Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html



Re: multiple mutts

2000-10-11 Thread Brian Salter-Duke

On Wed, Oct 11, 2000 at 08:19:24PM +0300, Mikko Hänninen wrote:
 the/eXtreme [EMAIL PROTECTED] wrote on Wed, 11 Oct 2000:
  I could use a shell script to `ps' for existing
  mutt sessions before launching another session;
  or is there a better way?
 
 How about a shell script that looks (vaguely) like this:
 
 #!/bin/sh
 LOCKFILE=~/.mutt.lock
 if [ -f $LOCKFILE ]; then
   echo "Another Mutt session is already running ($LOCKFILE exists)"
   exit 1
 else
   touch $LOCKFILE
   mutt $*
   rm $LOCKFILE
 fi
 
 
 ... That's untested, I just typed it in, but hopefully it will work.
 At the very least, with minor tweaking.

This is the ps solution that I use all the time. I and Rob Reid
developed this some time ago. I call the mutt exectuable realmutt, this
script muttwrap and alias 'mutt' to 'muttwrap -y'.

I know you can open several mutts and write in all of them, but I prefer
to open the 2nd in readonly to remind me that I really did not want to
do it in most cases and if I did it could be in readonly mode.
 
#!/usr/bin/sh
if ps -U $LOGNAME | grep realmutt  /dev/null 
then
echo Warning: You are already running Mutt.
echo Starting mutt in readonly mode.
sleep 2 # Or however many seconds you need to read the
# message before mutt starts.
/usr/local/bin/realmutt -R $*
else
echo Starting Mutt OK
sleep 2
/usr/local/bin/realmutt $*
fi

Cheers, Brian.

 
 Hope this helps,
 Mikko
 -- 
 // Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
 // The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
 // Interests: roleplaying, Linux, the Net, fantasy  scifi, the Corrs /
 Meep!

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



Re: multiple mutts

2000-10-11 Thread Brian Salter-Duke

On Wed, Oct 11, 2000 at 04:38:31PM -0700, Bruce J.A. Nourish wrote:
  if ps -U $LOGNAME | grep realmutt  /dev/null 
 
 Be careful about using grep to search the output of ps. For example
 
 $ ps ax | grep lemming
 16004 tty1 S  0:00 grep lemming
 
 Y'see? Grep makes a match on its own process.

It works OK on AIX 3.2.5 ps. If you add the -f flag it finds the grep
line, but it does'nt without it.

OK, so maybe my script does'nt work on all systems, but it is worth
playing with to see if some set of ps flags works as required.

Cheers, Brian.
 
 -- 
 [ Bruce J.A. Nourish (email and finger) [EMAIL PROTECTED]]
 [ GPG key ID BE062236 (75C2 6784 B600 F7F4 E35E  A039 F62C 5AC7 BE06 2236) ]
 [ Fax (775) 665-5938 Phone (480) 763-6970 Pgr (602) 201-3376, ICQ 38344897 ]
 [ Web http://www.kode187.net - Postal: PO Box 51611, Phoenix AZ 85076-1611 ]

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



Re: multiple mutts

2000-10-11 Thread Brian Salter-Duke

On Wed, Oct 11, 2000 at 07:17:35PM -0500, Aaron Schrab wrote:
 At 09:23 +0930 12 Oct 2000, Brian Salter-Duke [EMAIL PROTECTED] wrote:
  On Wed, Oct 11, 2000 at 04:38:31PM -0700, Bruce J.A. Nourish wrote:
if ps -U $LOGNAME | grep realmutt  /dev/null 
   
   Be careful about using grep to search the output of ps. For example
   
   $ ps ax | grep lemming
   16004 tty1 S  0:00 grep lemming
   
   Y'see? Grep makes a match on its own process.
  
  It works OK on AIX 3.2.5 ps. If you add the -f flag it finds the grep
  line, but it does'nt without it.
  
  OK, so maybe my script does'nt work on all systems, but it is worth
  playing with to see if some set of ps flags works as required.
 
 Or you could just make a minor modification to the grep pattern:
 
   ps -U $LOGNAME | grep 'r[e]almutt'  /dev/null
 
 That way grep won't be able to match itself.

Clever! It works well.

Brian.
 
 -- 
 Aaron Schrab [EMAIL PROTECTED]  http://www.execpc.com/~aarons/
  Besides, including std_ice_cubes.h is a fatal error on machines that
  don't have it yet.  Bad language design, there...  :-)--Larry Wall

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



Re: [ANNOUNCE] new version of mutt_ldap_query script

2000-10-09 Thread Brian Salter-Duke

On Mon, Oct 09, 2000 at 01:39:51PM +0200, Marc de Courville wrote:
 Dear all,
 
 please find attached to this email the new version of mutt_ldap_query
 perl script that performs ldap queries for mutt.
 The distribution now includes a module for interfacing with little
 brother database (m_ldap).
 
 Enjoy!
 
Why not submit the m_ldap module to Roland for inclusion in the lbdb
tarball? I suggest altering:-

#! /bin/bash -posix

m_ldap_query()
{
$HOME/dev/mutt_query/mutt_ldap_query-3.1.pl -l -p "$@"
}

to:-

#! /bin/bash -posix

m_ldap_query()
{
$LDAP_QUERY_SCRIPT -l -p "$@"
}

then add something like:-

LDAP_QUERY_SCRIPT=$HOME/dev/mutt_query/mutt_ldap_query-3.1.pl

to your lbdbrc file. This makes the modules generic and you can easily
alter the lbdbrc file when you upgrade.

Cheers, Brian.

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



Re: [PATCH] POP mailbox (2000-10-06)

2000-10-07 Thread Brian Salter-Duke

On Sat, Oct 07, 2000 at 10:54:49AM +0300, Vsevolod Volkov wrote:
 Hi,
 
 This version of POP mailbox patch contains old fetch-mail function
 with APOP/SASL authentication and SSL support. $pop_host can be
 specified in url form:
 
 [pop[s]://][user[:pass]@]server[:port]
 

Hi Vsevolod,

A few quewstions that might be of interest to others.

1. Am I correct that this patch incorporates your way of handling POP
but does not now replace the old behaviour which is there as an
alternative? If so, this is what I requested so "Thank you". If so also,
I recommend that this patch now be added to the main version of mutt.

2. Which version of mutt explicitly does this patch apply to?

3. Are patches for all recent versions of mutt on your ftp site?

4. If one wants to apply the POP patch and the NNTP patch, which is the
best order to apply them?

Cheers, Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



News support in mutt

2000-09-20 Thread Brian Salter-Duke

There have been various discussions over the last few years about
including a news reader into mutt. The standard purist line is to not do
so, on the grounds that one should have different programs for different 
tasks. I have tended to agree with this and have used slrn for some years.

However I recently tried Vsevolod Volkov's nntp patch for mutt just for 
fun, but I am hooked. This is the way for me in the future. I have 
changed my mind. I think this patch should be added to the stable release 
of mutt. Reasons?

However hard one tries to customorize mutt or slrn to be the same there
are irritating small differences.

A news-friendly mutt is easier to use with posting to news via a
Mail2News gateway as I have to do as our local news server seems to
never allow posting. I set up folder-hooks to add the appropriate
Newsgroup: header, used an alias for the Mail2News e-mail address and
just use "m" and "r" to post and followup. In "r" I change the To: line
with ^U and type the alias "m2n" - easy.

I like to save postings as e-mail messages. With slrn I used to mail
them to myself. Now I can just save them in a mail folder. 

The extra size of the executable is not that large and, of course, those
who do not want it can compile without --enable-nntp.

It is easier to swop and change between mail and news, particularly on a
single window from a dial-up line.

What about it? Can we have news in mutt?

Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



Mixmaster support in mutt

2000-09-20 Thread Brian Salter-Duke

I have been trying to explore various issues about the mixmaster support
in mutt, but I am having difficulty in bringing these issues to a
conclusion. Here however is a summary, followed by some questions.

Mixmaster has versions 2.0, 2.1, 2.2, 2.3, 2.4 and then a set of
versions loosely called version 3.0 betas, but actually called 2.9bxx
where xx is a version number. Mutt support is currently for versions 2.4
only. It may work for 2.3 but I think this versions delivers the remailer
list using "mixmaster -T" differently from 2.4. I have not explored this
further as the 2 versions are clearly similar and the latest - 2.4 - is
likely to be the best. The earlier versions do not support the "-T"
flag.

The 3.0 betas also do not support the "-T" flag to delivery the list of
remailers from the type2.list file.  Thomas Roessler believes that the
code could very easily be changed to read the type2.list file directly
and that could work with both 2.4 and the 3.0 betas. I agree.

However I am unable to make progress because I can not get 2.9beta23 to
work on either of two machines I use - a RS6000 running AIX 2.3.5 and a
Digital Alpha running what they now call Tru64 Unix. I have tried to get
help on these problems - the behaviour is different on the two machines
- but am still completely puzzled.

My efforts in this direction however lead me to the following
reflections. The L-mix e-mail list has virtually no traffic. The various
newsgroups that could possibly have people interested in this topic have
little non-junk traffic. Only three people have expressed interest in
mixmaster support from the mutt lists. The mixmaster community seems to
be terribly small. There are some indications that interest in anonymous
mailers has declined over the last 4 - 5 years and also that perhaps
what interest remains is dedicated to PCs where there some nice wrappers
it seems for the Windows Mixmaster executable. So, is there really a 
demand for mixmaster support in mutt? Should we perhaps remove bloat by
taking it out, rather than expanding it? Certainly I am beginning to
wonder whether I need it or whether further work on it is warranted.

Your views please.

Cheers, Brian.

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



Re: News support in mutt

2000-09-20 Thread Brian Salter-Duke

On Wed, Sep 20, 2000 at 06:52:15PM +0200, Wouter Verheijen wrote:
 hi,
 
 Could you please give an URL were the nntp-support can be downloaded?
 I think nntp is definitily worth including into mutt.

Vsevolod Volkov's patch is the one I am using. It is at:

http://mutt.org.ua/download/

There are other nntp implementations in mutt which I believe are
independent of this one.

Cheers, Brian.

 One advantage is always having the same environment (editor/browser) and
 mutt already has support for threading.
 Just one thing: does this patch has support for saving the newsgroups
 after having them downloaded? This is almost required for dial-up
 users, or you'll have to set up your own news-server which is quite
 a hastle.
 I'll try the patch within the next few days and give you my experiences!
 
 -- 
 
 Wouter Verheijen
 [EMAIL PROTECTED]
 



-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



Re: manual hotkey

2000-09-17 Thread Brian Salter-Duke

On Sun, Sep 17, 2000 at 05:44:08PM +0100, Thomas Ribbrock wrote:
 On Sat, Sep 09, 2000 at 12:53:37PM -0700, Jason Helfman wrote:
  My manual hotkey works in Xterm but not in Eterm. I use F1.
  
  Any clues?
 
 My guess would be that xterm and eterm send different codes for F1 - I've
 had similar problems between xterm and rxvt once.
 You can test that by opening both an eterm and xterm and on the command line
 press Ctrl-v, then F1 and see whether the results you get differ. If they
 differ, you'll need to add another keybinding to your .muttrc.
 
 HTH,
 
 Thomas

I do not normally use the function keys, but yesterday I tried and F1
did not work but f1 did. However I was on a Mac keyboard linked by
modem, not my usual PC linked by direct telnet.

Cheers, Brian.

 -- 
 -
 Thomas Ribbrock   http://mutt.linuxatwork.at (mutt RPMs)
   http://www.bigfoot.com/~kaytanICQ#: 15839919
"You have to live on the edge of reality - to make your dreams come true!"

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



A pop3 question.

2000-09-01 Thread Brian Salter-Duke

I get a small amount of mail at work on a POP3 server and have been
getting it to my unix machine, rather than my PC, when out of the office
by fetchmail. Works fine. I have just tried compiling 1.3.8 with
--enable-pop and that works fine too. However I have two questions:-

1. G is bound to fetch-mail but only in the index. How do I change
this.?  I tried

bind generic F fetch-mail

in muttrc and it told me on calling mutt that there was an error in
muttrc with fetch-mail. I would like to use F in the index and in the
folder index. What am I doing wrong?

2. The messages I get go into my ~/Mailbox, which I hardly use as
procmail put everything to folders in ~/Mail. Is there any way of
getting the mail to go somewhere else or better to feed it to procmail?

Cheers, Brian.

-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



A wish for a new configure flag.

2000-09-01 Thread Brian Salter-Duke

I know little or nothing about configure so could not start to do this
myself. Would it be possible to have a configure flag called something
like --compile-only?. This would merely compile mutt and nothing else. I
find I often do a complete install and then with the same version I want
to do something that changes mutt only - not the docs, not the language
support, not mutt-docklock, etc. I may want to try ncurses after the
first compile was with slang. I may want to try enabling another option
such as pop3. I may want to apply a patch. Now in some cases one can get
away without doing "make distclean" in other cases one has to go back
to a new configure run. I believe it would be quite usefull.

Of course it may already be possible and I have missed it!

Cheers, Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



Re: A wish for a new configure flag.

2000-09-01 Thread Brian Salter-Duke

On Fri, Sep 01, 2000 at 10:04:42PM -0500, Jeremy Blosser wrote:
 Brian Salter-Duke [[EMAIL PROTECTED]] wrote:
  I know little or nothing about configure so could not start to do this
  myself. Would it be possible to have a configure flag called something
  like --compile-only?. This would merely compile mutt and nothing else. I
  find I often do a complete install and then with the same version I want
  to do something that changes mutt only - not the docs, not the language
  support, not mutt-docklock, etc. I may want to try ncurses after the
  first compile was with slang. I may want to try enabling another option
  such as pop3. I may want to apply a patch. Now in some cases one can get
  away without doing "make distclean" in other cases one has to go back
  to a new configure run. I believe it would be quite usefull.
  
  Of course it may already be possible and I have missed it!
 
 I think this is what 'make mutt' is for.

This does not quite do what I want. If you have done "make distclean"
and then done a new configure, you have lost libintl.a. "make mutt" does
not create libintl.a. You have to "cd intl; make", and then "make mutt"
works. Maybe the fact that this does not work is a bug in the
construction of the main Makefile. This was with 1.2.5. 

Brian.

 -- 
 Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
 -+-+--
 the crises posed a question / just beneath the skin
 the virtue in my veins replied / that quitters never win



-- 
Associate Professor Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
  School of Biological, Environmental and Chemical Sciences, SITE,
Northern Territory University, Darwin, NT 0909, Australia.  Phone 08-89466702. 
Fax 08-89466847  http://www.smps.ntu.edu.au/school/compchem.html



  1   2   >