[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This is part 6 of the XEmacs Frequently Asked Questions list. This section is devoted connecting to the Internet.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#### Write me.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Under Unix and Mac OS X, the ‘sendmail’ package is normally used for this. #### Write me.
Under Windows, you need to use ‘smtpmail’, which communicates directly with the mail server, as there is no ‘sendmail’ program running. To get it working, use code like the following in your ‘init.el’ file:
;; Get mail working under Windows. (setq message-send-mail-function 'smtpmail-send-it) ; for message/Gnus (setq send-mail-function 'smtpmail-send-it) ; for C-x m, etc. ;; the following ensures that mail problems can be debugged: it logs a trace ;; of the SMTP conversation to *trace of SMTP session to <somewhere>*. (setq smtpmail-debug-info t) ;; Substitute your info here. ;(setq user-mail-address "ben@xemacs.org") ;(setq user-full-name "Ben Wing") ;(setq smtpmail-default-smtp-server "smtp.myserver.myisp.com") ;; The following two aren't completely necessary but may help. ;(setq smtpmail-local-domain "666.com") ;(setq smtpmail-sendto-domain "666.com") ;; If your SMTP server requires a username/password to authenticate, as ;; many do nowadays, set them like this: ;(setq smtpmail-auth-credentials ; or use ~/.authinfo ; '(("smtp.myserver.myisp.com" 25 "USER@SOMEWHERE" "PASSWORD"))) ;; Other possibilities for getting smtpmail to work: ;; ;; If for some reason you need to authenticate using the STARTTLS protocol ;; (don't look into this unless you know what it is), use ;; (setq smtpmail-starttls-credentials ;; '(("YOUR SMTP HOST" 25 "~/.my_smtp_tls.key" "~/.my_smtp_tls.cert"))) ;; Requires external program ;; ftp://ftp.opaopa.org/pub/elisp/starttls-*.tar.gz. ;; See http://www.ietf.org/rfc/rfc2246.txt, ;; http://www.ietf.org/rfc/rfc2487.txt |
The lines you need to care about are those that set
user-mail-address
, user-full-name
,
smtpmail-default-smtp-server
, and
smtpmail-auth-credentials
. You need to set these with,
respectively, your email address, your full name, the SMTP server you
use for outgoing mail, and the username and password you need to log
in to your SMTP server. (If for some reason your SMTP server doesn’t
require logging in to send mail, don’t uncomment this last line.)
The other settings may be useful in specific cases, but you should know what you’re doing before enabling them.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
(setq mail-archive-file-name "~/outbox") |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
VM, MH-E and GNUS support MIME natively. Other MUAs may or may not have MIME support; refer to their documentation and other resources, such as web pages and mailing lists. Packages like SEMI/WEMI may be useful in connection with MUAs like mew and Wanderlust.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
How do I change the ‘From:’ line? I have set gnus-user-from-line to
Gail Gurman <gail.gurman@sybase.com> |
, but XEmacs Gnus doesn’t use it. [This should apply to all MUA’s. –ed] Instead it uses
Gail Mara Gurman gailg@deall |
and then complains that it’s incorrect. Also, as you perhaps can see, my Message-ID is screwy. How can I change that?
Lars Magne Ingebrigtsen writes:
Set
user-mail-address
to ‘gail.gurman@sybase.com’ ormail-host-address
to ‘sybase.com’.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
One possibility is to use procmail to split your mail before it gets to the MUA. I prefer this personally, since there are many strange and wonderful things one can do with procmail. Procmail may be found at http://www.procmail.org/.
Also see the Mail Filtering FAQ at: http://www.faqs.org/faqs/mail/filtering-faq/.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
My mailbox lives at the office on a big honkin server. My regular INBOX lives on my honkin desktop machine. I now can PPP to the office from home which is far from honking... I’d like to be able to read mail at home without storing it here and I’d like to use xemacs and the MUA at home... Is there a recommended setup?
Joseph J. Nuspl Jr. writes:
There are several ways to do this.
- Set your display to your home machine and run dxpc or one of the other X compressors.
- NFS mount your desktop machine on your home machine and modify your pop command on your home machine to rsh to your desktop machine and actually do the pop get’s.
- Run a POP server on your desktop machine as well and do a sort of two tiered POP get.
William Perry adds:
Or you could run a pop script periodically on your desktop machine, and just use ange-ftp or NFS to get to your mailbox. I used to do this all the time back at IU.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
rmail and VM, and probably other MUA’s as well, get new mail from
your mailbox (called ‘/var/mail/$USER’ or ‘/var/spool/mail/$USER’
or something similar) using a program called movemail
.
This program interlocks with /bin/mail
using the protocol
defined by /bin/mail
.
There are various different protocols in general use, which you need to specify using the ‘--mail-locking’ option (‘--with-mail-locking’ in 21.5 or later) to ‘configure’:
POSIX file locking with lockf()
BSD file locking with flock()
To manipulate mail file ‘foo’, first create file ‘foo.lock’
Use locking()
, Microsoft’s renamed flock()
Use lk_open()
and lk_close()
as defined by the Multi-channel
Memo Distribution Facility
Retrieve mail using POP (the Post Office Protocol). This is the default for Cygwin/MinGW.
IF YOU DON’T USE THE FORM OF INTERLOCKING THAT IS NORMAL ON YOUR SYSTEM, YOU CAN LOSE MAIL!
Usually the value is correctly determined automatically: ‘configure’ tries to detect the method in use, and defaults exist on systems for which this doesn’t work.
However, if you run into problems incorporating new mail, it may be because an incorrect method is being used.
If your system uses the lock file protocol, and permissions are set so that ordinary users cannot write lock files in the mail spool directory, you may need to make ‘movemail’ setgid to a suitable group such as ‘mail’. You can use these commands (as root):
chgrp mail movemail chmod 2755 movemail |
If you are using the ‘pop’ locking method, ‘movemail’ must be setuid root.
Installation normally copies movemail from the build directory to an installation directory which is usually under ‘/usr/local/lib’. The installed copy of ‘movemail’ is usually in the directory ‘/usr/local/lib/xemacs-VERSION/TARGET’ (for example, ‘/usr/local/lib/xemacs-21.4.15/i686-pc-cygwin’). You must change the group and mode of the installed copy; changing the group and mode of the build directory copy is ineffective.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
See section Q6.0.8: An MUA gets an error incorporating new mail..
Note also that older versions of Mozilla came with a ‘movemail’ program that is not compatible with XEmacs. Do not use it. Always use the ‘movemail’ installed with your XEmacs. Failure to do so can result in lost mail.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
For mh-e use the following:
(add-hook 'mh-show-mode-hook '(lambda () (smiley-region (point-min) (point-max)))) |
WJCarpenter writes: For VM use the following:
(autoload 'smiley-region "smiley" nil t) (add-hook 'vm-select-message-hook '(lambda () (smiley-region (point-min) (point-max)))) |
For tm use the following:
(autoload 'smiley-buffer "smiley" nil t) (add-hook 'mime-viewer/plain-text-preview-hook 'smiley-buffer) |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Firstly there is an ftp site which describes X-faces and has the associated tools mentioned below, at http://ftp.cs.indiana.edu/pub/faces/.
Then the steps are
cat file.xbm | xbm2ikon |compface > file.face |
cat ./file.face | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' > ./file.face.quoted |
(setq mail-default-headers "X-Face: Ugly looking text string here") |
Or, alternatively, as:
(defun mail-insert-x-face () (save-excursion (goto-char (point-min)) (search-forward mail-header-separator) (beginning-of-line) (insert "X-Face:") (insert-file-contents "~/.face"))) (add-hook 'mail-setup-hook 'mail-insert-x-face) |
However, 2 things might be wrong:
Some versions of pbmtoicon produces some header lines that is not
expected by the version of compface that I grabbed. So I found I had to
include a tail +3
in the pipeline like this:
cat file.xbm | xbm2ikon | tail +3 |compface > file.face |
Some people have also found that if one uses the (insert-file)
method, one should NOT quote the face string using the sed script .
It might also be helpful to use Stig’s script xbm2face (included in the compface distribution at XEmacs.org) to do the conversion.
Contributors for this item:
Paul Emsley, Ricardo Marek, Amir J. Katz, Glen McCort, Heinz Uphoff, Peter Arius, Paul Harrison, and Vegard Vesterheim
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Use vm-spool-files
, like this for example:
(setq vm-spool-files '("/var/spool/mail/wing" "netcom23.netcom.com:110:pass:wing:MYPASS")) |
Of course substitute your actual password for MYPASS.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
John Turner writes:
Use the following:
(setq vm-auto-get-new-mail 60)
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Set vm-reply-ignored-addresses
to a list, like
(setq vm-reply-ignored-addresses '("wing@nuspl@nvwls.cc.purdue.edu,netcom[0-9]*.netcom.com" "wing@netcom.com" "wing@xemacs.org")) |
Note that each string is a regular expression.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
A FAQ for VM exists at http://www.wonderworks.com/vm/FAQ.html.
VM has its own newsgroups gnu.emacs.vm.info and gnu.emacs.vm.bug.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
John.John S Cooper writes:
; Don't use multiple frames (setq vm-frame-per-composition nil) (setq vm-frame-per-folder nil) (setq vm-frame-per-edit nil) (setq vm-frame-per-summary nil)
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Giacomo Boffi writes:
The meta-answer is to look into the file ‘vm-vars.el’, in the vm directory of the lisp library.
‘vm-vars.el’ contains, initializes and carefully describes, with examples of usage, the plethora of user options that fully control VM’s behavior.
Enter vm-vars,
forward-search
for toolbar, find the variables that control the toolbar placement, appearance, existence, copy to your ‘init.el’ or ‘.vm’ and modify according to the detailed instructions.The above also applies to all the various features of VM: search for some keywords, maybe the first you conjure isn’t appropriate, find the appropriate variables, copy and experiment.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Gnus numbering issues are not meant for mere mortals to know them. If you feel you must enter the muddy waters of Gnus, visit the excellent FAQ, maintained by Justin Sheehy, at:
http://my.gnus.org/FAQ/ |
See also Gnus home page
http://www.gnus.org/ |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The toolbar code to start Gnus opens the new frame—and it’s a feature rather than a bug. If you don’t like it, but would still like to click on the seemly icon, use the following code:
(defun toolbar-news () (gnus)) |
It will redefine the callback function of the icon to just call
gnus
, without all the fancy frame stuff.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes. Of course XEmacs can use any network file system (such as NFS or Windows file sharing) you have available, and includes some optimizations and safety features appropriate to those environments.
It is also possible to transparently edit files via FTP, ssh, or rsh. That is, XEmacs makes a local copy using the transport in the background, and automatically refreshes the remote original from that copy when you save it. XEmacs also is capable of doing file system manipulations like creating and removing directories and files. The FTP interface is provided by the standard ‘efs’ package EFS: (efs)Top. The ssh/rsh interface is provided by the optional ‘tramp’ package TRAMP: (tramp)Top.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#### Write me.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
W3 is an advanced graphical browser written in Emacs lisp that runs on XEmacs. It has full support for cascaded style sheets, and more...
It has a home web page at http://www.cs.indiana.edu/elisp/w3/docs.html.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There is a long, well-written, detailed section in the W3 manual that describes how to do this. Look in the section entitled "Firewalls".
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Yes, and much more. W3, as distributed with the latest XEmacs is a full-featured web browser.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by Aidan Kehoe on December 27, 2016 using texi2html 1.82.