two questions on mail configuration

two questions on mail configuration

Post by <Michael Blaustei » Fri, 25 Sep 1998 04:00:00



Hello,

1. What is the right way to set the variable user-mail-address in
emacs?  Right now I have

and this produces an extra, unwanted "<" before "Michael" in the
"from" field of a message.  How can I get rid of it?

2. (I asked this recently, perhaps not clearly enough:)
        I have vm set up to fetch messages from my ISP, which it does,
and from the local mail spool (/var/spool/mail/michael on my machine),
which it does not. I have set 'vm-spool-files in my .vm file as:

(setq vm-spool-files  '("/var/spool/mail/michael"
                        "mailhost.at.isp:110:pass:myloginname:*"))

yet vm-get-new-mail never gets mail from the local spool file when
there is mail present.
        What's wrong with this setup?

Thanks for any pointers (and is there a vm list?)

--
Michael Blaustein

 
 
 

two questions on mail configuration

Post by m-blaust.. » Fri, 25 Sep 1998 04:00:00


Quote:Glynn Clements writes:

 >

 >
 > > 1. What is the right way to set the variable user-mail-address in
 > > .emacs?  Right now I have

 > > and this produces an extra, unwanted "<" before "Michael" in the
 > > "from" field of a message.  How can I get rid of it?
 >

 >   (setq user-full-name "Michael Blaustein")
 >

Thanks.  Now user-mail-address writes the "from" field as the variable
is set, but user-full name does not put _its_ value in the field.

Any thoughts?

--
Michael Blaustein


 
 
 

two questions on mail configuration

Post by Christian Kur » Sat, 26 Sep 1998 04:00:00



> Glynn Clements writes:

>  > > 1. What is the right way to set the variable user-mail-address in
>  > > .emacs?  Right now I have

>  > > and this produces an extra, unwanted "<" before "Michael" in the
>  > > "from" field of a message.  How can I get rid of it?


>  >      (setq user-full-name "Michael Blaustein")

> Thanks.  Now user-mail-address writes the "from" field as the variable
> is set, but user-full name does not put _its_ value in the field.

You should also put the folloiwung line in .emacs:

(setq message-from-style 'angles)

Christian
--
M$: Our software of tommorrow will make sure that on your
hardware of tommorrow everything will work at the usual speed. ;-)

 
 
 

two questions on mail configuration

Post by m-blaust.. » Sat, 26 Sep 1998 04:00:00


Quote:Glynn Clements writes:

 >

 > > is set, but user-full name does not put _its_ value in the field.
 >
 > Odd; it works fine here.
 >
 > What does `M-: (user-full-name)' print?
 >

Nothing. (I.e.: "").  But `C-h v user-full-name' produces the right
value.  Should this variable be set elsewhere than .emacs, or before
or after something else crucial?

--
Michael Blaustein

 
 
 

two questions on mail configuration

Post by Hrvoje Niksi » Sat, 26 Sep 1998 04:00:00



> Glynn Clements writes:


>  > > is set, but user-full name does not put _its_ value in the field.

>  > Odd; it works fine here.

>  > What does `M-: (user-full-name)' print?

> Nothing. (I.e.: "").  But `C-h v user-full-name' produces the right
> value.

Confusing!  The code in `user-full-name' function does this at the
beginning of the function:

  if (NILP (user) && STRINGP (Vuser_full_name))
    return Vuser_full_name;

So, if the optional argument USER is nil (which it is), and
`user-full-name' variable is a string (which it is), it should just
return it.  I can't explain why anything else happens.

Oh, try evaluating (indirect-function 'user-full-name).  Perhaps
something has redefined the function?  If everything is normal, you
should get something like #<subr user-full-name>.

--

--------------------------------+--------------------------------
"A Real Programmer's code can awe with its fiendish brilliance, even
as its crockishness appalls."

 
 
 

two questions on mail configuration

Post by m-blaust.. » Sun, 27 Sep 1998 04:00:00


Hrvoje Niksic writes:


 >
 > > Glynn Clements writes:
 > >  >

 > >
 > >  > > is set, but user-full name does not put _its_ value in the field.
 > >  >
 > >  > Odd; it works fine here.
 > >  >
 > >  > What does `M-: (user-full-name)' print?
 > >  >
 > >
 > > Nothing. (I.e.: "").  But `C-h v user-full-name' produces the right
 > > value.
 >
 > Confusing!  The code in `user-full-name' function does this at the
 > beginning of the function:
 >
 >   if (NILP (user) && STRINGP (Vuser_full_name))
 >     return Vuser_full_name;
 >
 > So, if the optional argument USER is nil (which it is), and
 > `user-full-name' variable is a string (which it is), it should just
 > return it.  I can't explain why anything else happens.
 >
 > Oh, try evaluating (indirect-function 'user-full-name).  Perhaps
 > something has redefined the function?  If everything is normal, you
 > should get something like #<subr user-full-name>.
 >
Yes, I do.  But evaluating (user-full-name) yields only "".

If it makes any difference, note that I am using
 XEmacs 20.4 "Emerald" [Lucid] (i386-pc-linux, Mule).

--
Michael Blaustein

 
 
 

two questions on mail configuration

Post by a. aut » Tue, 29 Sep 1998 04:00:00



> (setq vm-spool-files  '("/var/spool/mail/michael"
>                         "mailhost.at.isp:110:pass:myloginname:*"))
> yet vm-get-new-mail never gets mail from the local spool file

the following works perfectly for me:

(setq vm-spool-files (list "/var/spool/mail/mylogin"
                           "my.pop3.server:110:pass:mylogin:*"))

--
antti

 
 
 

two questions on mail configuration

Post by Kyle Jon » Tue, 29 Sep 1998 04:00:00


 > Hrvoje Niksic writes:

 >  >
 >  > > Glynn Clements writes:
 >  > >  >

 >  > >
 >  > >  > > is set, but user-full name does not put _its_ value in the field.
 >  > >  >
 >  > >  > Odd; it works fine here.
 >  > >  >
 >  > >  > What does `M-: (user-full-name)' print?
 >  > >  >
 >  > >
 >  > > Nothing. (I.e.: "").  But `C-h v user-full-name' produces the right
 >  > > value.
 >  >
 >  > Confusing!  The code in `user-full-name' function does this at the
 >  > beginning of the function:
 >  >
 >  >   if (NILP (user) && STRINGP (Vuser_full_name))
 >  >     return Vuser_full_name;
 >  >
 >  > So, if the optional argument USER is nil (which it is), and
 >  > `user-full-name' variable is a string (which it is), it should just
 >  > return it.  I can't explain why anything else happens.
 >  >
 >  > Oh, try evaluating (indirect-function 'user-full-name).  Perhaps
 >  > something has redefined the function?  If everything is normal, you
 >  > should get something like #<subr user-full-name>.
 >  >
 > Yes, I do.  But evaluating (user-full-name) yields only "".
 >
 > If it makes any difference, note that I am using
 >  XEmacs 20.4 "Emerald" [Lucid] (i386-pc-linux, Mule).

It probably does make a difference.  The function is different in
the 21.0 beta that Glynn and Hrvoje are probably using.
I've found that the best thing to do is not allow Mail mode to
construct the From header; just do it yourself.

;; For VM

;; For mail mode

--
Latest VM: 6.62, see http://www.wonderworks.com/vm/
Latest XEmacs: 20.4, see http://www.xemacs.org/

 
 
 

two questions on mail configuration

Post by Michael Blauste » Thu, 01 Oct 1998 04:00:00


Quote:Kyle Jones writes:

 >  > If it makes any difference, note that I am using
 >  >  XEmacs 20.4 "Emerald" [Lucid] (i386-pc-linux, Mule).
 >
 > It probably does make a difference.  The function is different in
 > the 21.0 beta that Glynn and Hrvoje are probably using.
 > I've found that the best thing to do is not allow Mail mode to
 > construct the From header; just do it yourself.
 >
 > ;; For VM

 > ;; For mail mode

 >
 > --
 > Latest VM: 6.62, see http://www.wonderworks.com/vm/
 > Latest XEmacs: 20.4, see http://www.xemacs.org/

Thanks, that did the trick.

--
Michael Blaustein

 
 
 

1. Two questions regarding RMAIL-get-new-mail

Whenever I call RMAIL-get-new-mail, xemacs writes my mail-archive-file.
Since I usually have this file in a buffer, I constantly have to answer
the "really edit the buffer?" question. Any way to eliminate it?

When there are new messages, I get the following error:
"Wrong type argument: stringp, ("" ((#<extent [detached) baloon-help
0x430fc from..."
I have no idea what that means. I'll appreciate any help.

I'm using 19.15 XEmacs Lucid.

Shuly

2. MapAndLoad problem

3. mail with gnus : Two questions

4. No video Icons

5. XEmacs configuration problem with mail

6. Where to find the PRM?

7. Two xemacs, two bitmaps?

8. DCT

9. speedbar configuration question

10. Perl configuration question

11. gnus: a couple of configuration questions and problems

12. configuration question