Re: What's the 'from'-variable up to?

2000-11-21 Thread Thomas Roessler

On 2000-11-20 11:44:31 +0100, Thorsten Haude wrote:

 I use
   set from="Thorsten Haude [EMAIL PROTECTED]
 to change my address from local user to provider's user. It did not work
 until I changed 'sendmail' from
   sendmail="/usr/sbin/sendmail -oem -oi"
 to 
   sendmail="/usr/sbin/sendmail -oem -oi -f [EMAIL PROTECTED]"
 
 So I ask myself, what's 'from' all about?

The $from variable sets the From mail header.  If you send the
$envelope-from variable, the -f command line parameter you describe
will be automatically added to sendmail's invocation.

-- 
Thomas Roessler [EMAIL PROTECTED]



Re: What's the 'from'-variable up to?

2000-11-21 Thread John Wright

On Mon, Nov 20, 2000 at 11:44:31AM +0100, Thorsten Haude wrote:
 Hi list,
 
 I use
   set from="Thorsten Haude [EMAIL PROTECTED]
 to change my address from local user to provider's user. It did not work
 until I changed 'sendmail' from
   sendmail="/usr/sbin/sendmail -oem -oi"
 to 
   sendmail="/usr/sbin/sendmail -oem -oi -f [EMAIL PROTECTED]"
 
 So I ask myself, what's 'from' all about?
 
 Thorsten

It sticks it in your From: field don't it.

And mutt will do the -f thing if you set envelope_from=yes




Re: What's the 'from'-variable up to?

2000-11-21 Thread Michael Elkins

On Mon, Nov 20, 2000 at 11:44:31AM +0100, Thorsten Haude wrote:
 I use
   set from="Thorsten Haude [EMAIL PROTECTED]
 to change my address from local user to provider's user. It did not work
 until I changed 'sendmail' from
   sendmail="/usr/sbin/sendmail -oem -oi"
 to 
   sendmail="/usr/sbin/sendmail -oem -oi -f [EMAIL PROTECTED]"
 
 So I ask myself, what's 'from' all about?

`from' sets the default From: line in the mail header.  The sendmail -f
option sents the envelope return address (what normally goes in the From
line of mbox format mailboxes).  I'm not sure setting $from didn't work for
you.  Does my_hdr also not work?

me



Re: What's the 'from'-variable up to?

2000-11-21 Thread David Alban

Thorsten,

At 2000/11/20/11:44 +0100 Thorsten Haude [EMAIL PROTECTED] wrote:
 I use
   set from="Thorsten Haude [EMAIL PROTECTED]
 to change my address from local user to provider's user. It did not work
 until I changed 'sendmail' from
   sendmail="/usr/sbin/sendmail -oem -oi"
 to 
   sendmail="/usr/sbin/sendmail -oem -oi -f [EMAIL PROTECTED]"
 
 So I ask myself, what's 'from' all about?

(Although this doesn't directly answer your question...)

I use:

  my_hdr From: David Alban [EMAIL PROTECTED]

and it works.

David
-- 
Live in a world of your own, but always welcome visitors.



Re: segmentation fault with resend-message

2000-11-21 Thread lang

On Mon, 20 Nov 2000, Thomas Roessler wrote:

 Could you please look for a core dump and send us a stack trace?

Here it is:

(gdb) bt
#0  0x28113e71 in fclose () from /usr/lib/libc.so.3
#1  0x807c759 in ci_send_message (flags=256, msg=0x80fb180, tempfile=0x0,
ctx=0x80d3300, cur=0x80f5f80) at send.c:1209
#2  0x807c2f8 in mutt_resend_message (fp=0x0, ctx=0x80d3300, cur=0x80f5f80)
at send.c:994
#3  0x8057f6d in mutt_index_menu () at curs_main.c:1739
#4  0x80651d5 in main (argc=1, argv=0xbfbfd858) at main.c:709
#5  0x804a17d in _start ()
(gdb)

 On 2000-11-19 13:26:51 +0800, lang wrote:

  I get a "segmentation fault-core dumped" message when I try to use
  the resend-message function from the index. 

-- 
Greg MathesonThe funniest practical jokes are 
Chinmin College, those you play unsuspectingly on
Taiwan   yourself.



Re: Fix References of Received Mails

2000-11-21 Thread Martin Trautmann

On Thu 2000-11-16 (21:14), Martin Trautmann wrote:
 On Thu 2000-11-16 (18:10), Ulf Erikson wrote:
  I use a macro to do just this. except for the extra 'fixed' header, but
  you should be able to add that one easily.  All the tricks are in formail 
  and the fairly new edit command, which lets you edit the raw message.  
  Not sure what version is needed though.. at least 1.2.something?
 
 Thanks, this does a great job.
 However, I don't understand the details properly.

Hi Ulf, did you ever send a reply?

 But how do those %s and $$ work?

I don't understand it properly upt to now.
However, sometimes I get an error warning of a broken pipe for cat.

Ho do additional spaces affect the function? I tried some reformatting in
order to understand the various levels of "'`, but this results in a
perfectly different script, ending in an alias command. Where did I insert
an error? Are those spaces read as space, that is read next message?


Here's an extra wish:

+ Tag the thread esc-tag
+ change the thread to read: ;wN

How should this be done?

Thanks
Martin

macro index ,t "\
 pipe-messageformail -x Message-ID  /tmp/mutt-msgIDenter\
 enter-commandset editor=\
 'cat %s |\
  formail -i \"References:\
   \`cat /tmp/mutt-msgID;\
cat %s | formail -x References\`\"\
   /tmp/mutt-fix.$$;\
  mv /tmp/mutt-fix.$$ %s; sleep 1; touch %s'enter\
 tag-prefixedit\
 shell-escaperm /tmp/mutt-msgIDenter\
 enter-commandset editor=vimenter" \
 "insert current message's \"Message-ID\" into the tagged messages'\
  \"References:\" headers"




mutt and PGP

2000-11-21 Thread Marc Richter

Hi !

O.K. I've got PGP running on my workstation and want
to use it together with mutt now.

Has anyone get this running ?

I can send mail using:
set pgp_encrypt_only_command="pgp +verbose=0 +batchmode -et - %r"

But the decryption is not running :-/
set pgp_decrypt_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | pgp +verbose=0 
+batchmode -f"

Everytime I try to decrypt a mail with this line I get this error:

Unrecognized data format:  stdin 
Cannot process input from:  stdin 
Error code =  8


My goal os the following:
scroll to the PGP encrypted mail,
press ENTER,
type in the passphrase,
and read the mail like all other non-PGP mails ?

Can someone point me to the right direction ?

thx
Marc
-- 
Bist auch Du ein Dieselhandschuhtanker ??
Dann komm zu == http://beam.at/cancerman

registered Linux User #165939



Editing and resending a sent message

2000-11-21 Thread Julian Gilbey

[Please cc: me with replies!]

Back in the days of mutt 1.0.1, if one hit 'e' (edit) in the index,
one would be able to edit the message and then have the option to
resend it ("Message has been edited.  Are you sure you want to resend?
(y/n)" or something like that).  Having just upgraded to 1.2.5, this
feature appears to have been replaced: edit now deletes the original
message and replaces it by the new one, but does not offer to resend
the new message.

Is there any configuration variable I can set to revive the old
behaviour?

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  Julian Gilbey, Dept of Maths, QMW, Univ. of London. [EMAIL PROTECTED]
Debian GNU/Linux Developer,  see http://www.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/




! not recognized as inbox in folder-hook

2000-11-21 Thread Maciej Kalisiak

I'm using mutt 1.2.5i.
I have this line in .muttrc:
  folder-hook !("!"|sentmail|subs) push \eV

(i.e. I want to collapse threads in all folders other than my inbox,
=sentmail, or =subs)

I've tried everything: quotes, no quotes, etc., but the second bang (within
the regexp) does not get understood as my inbox... what am I doing wrong?  I'm
guessing that perhaps it's treated as regexp negation too, but how do I
"escape" it?

-- 
Maciej Kalisiak | [EMAIL PROTECTED] | http://www.dgp.toronto.edu/~mac [McQ]
PGP-finger|www; (0x39AC36F5) 9F BB 9E 11 F0 1E 5D 20  0B 31 3D 37 47 D0 67 C7
GE/CS d- s++:+ a- C++(+++) ULAI++ P+++ L+++ E+++ W++ N- o? K? !w--- O- M- V--
PS PE+ Y+ PGP+ t+ 5 !X-- R+ tv-- b+ DI+ G+ e+++(*) h--- r+++ y? 




! not recognized as inbox in folder-hook

2000-11-21 Thread Maciej Kalisiak

I'm using mutt 1.2.5i.
I have this line in .muttrc:
  folder-hook !("!"|sentmail|subs) push \eV

(i.e. I want to collapse threads in all folders other than my inbox,
=sentmail, or =subs)

I've tried everything: quotes, no quotes, etc., but the second bang (within
the regexp) does not get understood as my inbox... what am I doing wrong?  I'm
guessing that perhaps it's treated as regexp negation too, but how do I
"escape" it?

-- 
Maciej Kalisiak | [EMAIL PROTECTED] | http://www.dgp.toronto.edu/~mac [McQ]
PGP-finger|www; (0x39AC36F5) 9F BB 9E 11 F0 1E 5D 20  0B 31 3D 37 47 D0 67 C7
GE/CS d- s++:+ a- C++(+++) ULAI++ P+++ L+++ E+++ W++ N- o? K? !w--- O- M- V--
PS PE+ Y+ PGP+ t+ 5 !X-- R+ tv-- b+ DI+ G+ e+++(*) h--- r+++ y? 



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 Shawn D. McPeek


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.

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



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



Re: mutt and PGP

2000-11-21 Thread Karl E. Jørgensen

On Tue, Nov 21, 2000 at 08:19:33PM +0100, Marc Richter wrote:
 Hi !
 
 O.K. I've got PGP running on my workstation and want
 to use it together with mutt now.
 
 Has anyone get this running ?
 
 I can send mail using:
 set pgp_encrypt_only_command="pgp +verbose=0 +batchmode -et - %r"
 
 But the decryption is not running :-/
 set pgp_decrypt_command="PGPPASSFD=0; export PGPPASSFD; cat - %f | pgp +verbose=0 
+batchmode -f"
 
 Everytime I try to decrypt a mail with this line I get this error:
 
 Unrecognized data format:  stdin 
 Cannot process input from:  stdin 
 Error code =  8
 
 
 My goal os the following:
 scroll to the PGP encrypted mail,
 press ENTER,
 type in the passphrase,
 and read the mail like all other non-PGP mails ?
 
 Can someone point me to the right direction ?
 
 thx
 Marc
 -- 
 Bist auch Du ein Dieselhandschuhtanker ??
 Dann komm zu == http://beam.at/cancerman
 
 registered Linux User #165939
 

Mutt comes with a few sample scripts in /usr/share/doc/mutt/examples - is that any 
help?
-- 
Karl E. Jørgensen
[EMAIL PROTECTED]
www.karl.jorgensen.com
 Today's fortune:
Tazman damn my office is cold.
Tazman need a hot secretary to warm it up.
-- Seen on #Linux

 PGP signature


Re: Editing and resending a sent message

2000-11-21 Thread Suresh Ramasubramanian

Julian Gilbey proclaimed on mutt-users that: 

 [Please cc: me with replies!]

done

 feature appears to have been replaced: edit now deletes the original
 message and replaces it by the new one, but does not offer to resend
 the new message.
 
 Escape - e (resend message)
 
 Is there any configuration variable I can set to revive the old
 behaviour?

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
Not every problem someone has with his girlfriend is necessarily due to
the capitalist mode of production.
-- Herbert Marcuse