1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; To read mail with VM from an IMAP spool, an entry specifying the ;;;
;;; maildrop is needed in vm-spool-files. This can be configured ;;;
;;; using, for example: ;;;
;;; ;;;
;;; (add-to-list 'vm-spool-files ;;;
;;; '("~/mail/IMAP-INBOX" ;;;
;;; "imap:HOST:PORT:MAILBOX:AUTH:USER:PASSWORD" ;;;
;;; "~/mail/IMAP-INBOX.CRASH")) ;;;
;;; ;;;
;;; where PORT is normally 143. To use IMAP over SSL, use, instead: ;;;
;;; ;;;
;;; (add-to-list 'vm-spool-files ;;;
;;; '("~/mail/IMAP-INBOX" ;;;
;;; "imap-ssl:HOST:PORT:MAILBOX:AUTH:USER:PASSWORD" ;;;
;;; "~/mail/IMAP-INBOX.CRASH")) ;;;
;;; ;;;
;;; where PORT is normally 993. In both cases, if PASSWORD is given ;;;
;;; as *, it will be prompted for the first time that mail is ;;;
;;; retrieved. ;;;
;;; ;;;
;;; By default, messages are removed from the IMAP server after ;;;
;;; retrieving them. This is controlled by the variable ;;;
;;; vm-imap-expunge-after-retrieving, but per-maildrop settings can ;;;
;;; be made in vm-imap-auto-expunge-alist. ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; To read mail with VM from a POP spool, an entry specifying the ;;;
;;; maildrop is needed in vm-spool-files. This can be configured ;;;
;;; using, for example: ;;;
;;; ;;;
;;; (add-to-list 'vm-spool-files ;;;
;;; '("~/mail/POP-INBOX" ;;;
;;; "pop:HOST:PORT:AUTH:USER:PASSWORD" ;;;
;;; "~/mail/POP-INBOX.CRASH")) ;;;
;;; ;;;
;;; where PORT is normally 110. To use POP over SSL, use, instead: ;;;
;;; ;;;
;;; (add-to-list 'vm-spool-files ;;;
;;; '("~/mail/POP-INBOX" ;;;
;;; "pop-ssl:HOST:PORT:AUTH:USER:PASSWORD" ;;;
;;; "~/mail/POP-INBOX.CRASH")) ;;;
;;; ;;;
;;; where PORT is normally 995. In both cases, if PASSWORD is given ;;;
;;; as *, it will be prompted for the first time that mail is ;;;
;;; retrieved. ;;;
;;; ;;;
;;; AUTH will normally be "pass". See the docstring ;;;
;;; of vm-spool-files for the other acceptable values and their ;;;
;;; meanings. ;;;
;;; ;;;
;;; By default, messages are removed from the POP server after ;;;
;;; retrieving them. This is controlled by the variable ;;;
;;; vm-pop-expunge-after-retrieving, but per-maildrop settings can be ;;;
;;; made in vm-pop-auto-expunge-alist. ;;;
;;; ;;;
;;; Other variables controlling POP behaviour include: ;;;
;;; ;;;
;;; vm-pop-bytes-per-session ;;;
;;; vm-pop-max-message-size ;;;
;;; vm-pop-messages-per-session ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'message)
(load-library "vm-autoloads")
(require 'vm-pine)
(require 'vm-rfaddons)
(require 'vm-thread)
(require 'vm-virtual)
(require 'vm-delete)
(require 'vm-sort)
(require 'bbdb-vm)
(require 'vm-misc)
(require 'vm-mime)
(if window-system
(require 'vm-mouse))
(bbdb-insinuate-vm)
(vm-rfaddons-infect-vm)
(require 'u-vm-color)
(add-hook 'vm-summary-mode-hook 'u-vm-color-summary-mode)
(add-hook 'vm-select-message-hook 'u-vm-color-fontify-buffer)
(defadvice vm-decode-mime-message (after u-vm-color activate)
(u-vm-color-fontify-buffer-even-more))
(defadvice vm-fill-paragraphs-containing-long-lines
(after u-vm-color activate)
(u-vm-color-fontify-buffer))
(setq-default vm-summary-show-threads t)
(setq
vm-auto-center-summary 0
vm-auto-decode-mime-messages t
vm-auto-displayed-mime-content-types
'("text" "multipart" "message/rfc822" "plain text" "mail message"
"text/x-vcard" "text/enriched" )
vm-crash-inbox (concat my-mail-dir "/INBOX.CRASH")
vm-delete-after-archiving t
vm-delete-after-bursting t
vm-delete-after-saving t
vm-folder-directory (concat my-mail-dir "/")
vm-follow-summary-cursor t
vm-forwarding-subject-format "Forwarded message from %F, %h %w,%d %m %y"
vm-highlighted-header-regexp (if window-system nil "^From\\|^Subject")
vm-honor-page-delimiters t
vm-honor-mime-content-disposition t
;; vm-in-reply-to-format "%i:%F's message of %h %w,%d %m %y "
vm-included-text-headers '("\\bFrom\\b" "\\bSubject\\b" "\\bDate\\b")
vm-inhibit-startup-message t
vm-keep-sent-messages 2
vm-mail-header-from (or user-mail-address (concat (user-login-name)
"@acm.org"))
vm-mime-internal-content-types
'("text" "multipart" "message/rfc822" "plain text" "mail message"
"text/x-vcard" "text/enriched" )
vm-mime-8bit-composition-charset "utf-8"
vm-mime-qp-decoder-program "qp-decode"
vm-mime-qp-encoder-program "qp-encode"
vm-mime-base64-decoder-program "base64-decode"
vm-mime-base64-encoder-program "base64-encode"
vm-move-after-deleting t
vm-move-after-killing t
vm-preferences-file "~/etc/vm.preferences"
vm-popup-menu-on-mouse-3 t
vm-preview-read-messages nil
vm-primary-inbox (concat my-mail-dir "/INBOX")
vm-reply-ignored-addresses (list (concat "\\b" (regexp-quote
(user-login-name)) "\\b"))
vm-reply-subject-prefix "Re: "
vm-search-using-regexps t
vm-skip-deleted-messages 0
vm-skip-read-messages nil
vm-spool-files
(list
(list "INBOX" "~/mbox" "INBOX.CRASH" )
(list "INBOX" (concat "/var/mail/" (user-login-name)) "INBOX.CRASH" )
(list "INBOX" (concat "/var/spool/mail/" (user-login-name))
"INBOX.CRASH" )
(list "INBOX" (concat "/usr/mail/" (user-login-name)) "INBOX.CRASH" )
(list "INBOX" (concat "/usr/spool/mail/" (user-login-name))
"INBOX.CRASH" )
(list "INBOX" (concat real-home-directory "/var/spool/mail/important")
"INBOX.CRASH" )
(list "ADMIN" (concat real-home-directory "/var/spool/mail/admin")
"ADMIN.CRASH")
(list "BCAST" (concat real-home-directory "/var/spool/mail/bcast")
"BCAST.CRASH")
(list "CONSULT" (concat real-home-directory "/var/spool/mail/consult")
"CONSULT.CRASH")
(list "DIGITAL" (concat real-home-directory "/var/spool/mail/digital")
"DIGITAL.CRASH")
(list "GCIF" (concat real-home-directory "/var/spool/mail/gcif")
"GCIF.CRASH")
(list "GCIFC" (concat real-home-directory "/var/spool/mail/gcifcases")
"GCIFC.CRASH")
(list "spam" (concat real-home-directory "/var/spool/mail/spam")
"spam.CRASH")
(list "grey" (concat real-home-directory "/var/spool/mail/grey.mbox")
"grey.CRASH")
(list "MISC" (concat real-home-directory "/var/spool/mail/misc")
"MISC.CRASH")
(list "orders" (concat real-home-directory "/var/spool/mail/orders")
"orders.CRASH")
)
vm-startup-with-summary 1
vm-strip-reply-headers t
vm-summary-format "%2n%UA%*%a %-17.17UB %-3.3m %2d %4l/%-5c %I\"%s\"\n"
vm-summary-uninteresting-senders (concat "\\b" (regexp-quote
(user-login-name)) "\\b")
vm-summary-uninteresting-senders-arrow "==> "
vm-use-menus t
vm-visit-when-saving 'okay
vm-virtual-folder-alist
'(
("misc"
(("ADMIN" "BCAST" "MISC" ) ;;;;
(any)))
)
vm-window-configuration-file "~/etc/vm.windows"
)
;;; (setq vm-mime-default-face-charsets
;;; '("us-ascii" "iso-8859-1" "iso-8859-2" "iso-8859-3" "iso-8859-4"
;;; "iso-8859-5" "iso-8859-6" "iso-8859-7" "iso-8859-8" "iso-8859-9"
;;; "windows-1251" "windows-1252" "koi8-r" "us-ascii" "X-roman8"
;;; )
;;; )
;;; (add-to-list 'vm-mime-default-face-charsets "Windows-1251")
;;; (add-to-list 'vm-mime-default-face-charsets "Windows-1252")
;;; (add-to-list 'vm-mime-default-face-charsets "Windows-1257")
;; Show all:
(setq vm-mime-default-face-charsets t)
(setq vm-mime-type-converter-alist
'(
("text/html" "text/plain" "links -force_html -dump /dev/stdin")
))
;;;;(require 'browse-url)
;;;;(defvaralias 'vm-url-browser 'browse-url-browser-function))
;;;; Then tell VM that it should not display text/html internally.
;(setq vm-mime-internal-content-type-exceptions '("text/html"))
;(add-to-list 'vm-mime-external-content-types-alist
; '("text/html" "mozilla -remote 'openFILE(%f)' || mozilla %f"))
; setq vm-mime-type-converter-alist
; ;; w3 takes a loong time ... so:
; '(
; ("text/html" "text/plain" "w3m -T \"text/html\" -dump")
; ))
(setq
vm-netscape-program "firefox"
vm-url-browser 'vm-mouse-send-url-to-netscape
vm-netscape-program-switches nil
)
;(add-to-list 'vm-mime-external-content-types-alist
; '("image/*" "display %f"))
(defun vm-summary-function-A (m)
(if (string-match "Manoj Srivastava" (vm-su-to m)) "+" " "))
;;"%2n %*%a %-17.17F %-3.3m %2d %4l/%-5c \"%s\"\n"
;;"%2n %*%a %-17.17U %-3.3m %2d %4l/%-5c \"%s\"\n"
(defun my-vm-mode-function ()
"Added quitting, no backups, and load a few libs."
(interactive)
(make-local-variable 'version-control)
(setq version-control 'never); keep minimal backups
;; (load-library "jwz-vm-summary")
(require 'sendmail)
;; (load-library "ml-alias")
;; (require 'vm-sort)
(require 'message)
(add-hook 'local-write-file-hooks 'bbdb-offer-save)
)
(setq vm-mode-hooks 'my-vm-mode-function)
(add-hook 'vm-quit-hook 'vm-expunge-folder)
(add-hook 'vm-quit-hook 'bbdb-save-db)
;;(bbdb/vm-set-auto-folder-alist)
;;; For a while, I used to do a BBDB save only when quitting out of my
;;; primary "in" box. For that, I did this:
;;; (add-hook 'vm-quit-hook
;;; (function
;;; (lambda ()
;;; (if (string-equal (buffer-name (current-buffer)) "INBOX")
;;; (progn
;;; (bbdb-save-db))))))
(setq mail-yank-ignored-headers
(concat
"^Content-Length:\\|"
"^Content-Type:\\|"
"^Email-Version:\\|"
"^End-of-Header:\\|"
"^End-of-Protocol:\\|"
"^Full-Name:\\|"
"^Message-Version:\\|"
"^Message-Service:\\|"
"^Reply-Path:\\|"
"^Reply-To:\\|"
"^>To:\\|"
"^UA-Content-ID:\\|"
"^UA-Message-ID:\\|"
"^X-at-.*:\\|"
mail-yank-ignored-headers)
)
(defvar vm-ml-ids
'(
"info-vm-request"
"info-mm"
"ange-ftp-lovers"
"info-gnuplot-request"
"lucid-emacs"
"Gutenberg"
"hyperbole"
"auc-tex"
"owner-supercite"
"fsp-discussion"
)
"*List of strings naming the mailing lists that VM should know
about. VM archives mailing-lists that appear in vm-mailing-lists in
their own folder. See also info on function vm-make-mailinglist-regexp.")
(defun vm-make-mailing-list-regexp (listname)
"This function is used only to construct the variable
vm-auto-folder-alist. It returns the cons of a regexp and a
foldername. The regexp is supposed to match the To, Cc, or Sender
field in the message. The foldername is the LISTNAME prepended with
\"M-\" and the result is used as the name of the folder to append the
message to."
(cons
(concat
"\\<" listname
"\\|" (upcase listname)
"\\|" listname "-list"
"\\|" (upcase listname) "-LIST"
"\\>")
(concat "M-" listname)))
(setq
vm-auto-folder-alist
(list
;; First we check if this is a mailing-list. The name of the
;; mailing-list is usually in the To-field, but sometimes in the Cc-
;; or Sender-field:
(cons "To" (mapcar 'vm-make-mailing-list-regexp vm-ml-ids))
(cons "Cc" (mapcar 'vm-make-mailing-list-regexp vm-ml-ids))
(cons "Sender" (mapcar 'vm-make-mailing-list-regexp vm-ml-ids))
;; if it's not a mailing list, then use sender's name as folder name:
(list "Newsgroups"
(cons "gnu.emacs.sources" "emacs")
)
(list "Subject"
(cons ".*[oO]pen ?[lL]ook.*" "xnews")
(cons ".*\\(MOTIF\\|X11\\| X \\).*" "x11")
(cons ".*\\(OSF\\).*" "osf1")
(cons ".*[vV][mM].*" "vm")
(cons ".*[cC]\\+\\+.*" "c++")
(cons "Returned mail" "Receipts")
)
(list "From"
(cons my-login-name-regexp
'(list (list "To"
'( "ART" . "gaylord")
;; match id with IN%
'( "IN%\"\\([^>@%]+\\)" .
(buffer-substring
(match-beginning 1) (match-end 1)))
;; match id in <>
'( "<\\([^>@%]+\\)" .
(buffer-substring
(match-beginning 1) (match-end 1)))
;; match id with @
'( "\\([^@%:]+\\)[@%]" .
(buffer-substring
(match-beginning 1) (match-end 1)))
;; match id with ::
'("[^:]+\:\:\\(\\w+\\|\\w+\\W\\w+\\)" .
(buffer-substring
(match-beginning 1) (match-end 1)))
;; match first word
'("\\(\\w+\\)" .
(buffer-substring
(match-beginning 1) (match-end 1)))
)
))
'("IN%\"\\([^>@%]+\\)" .
(buffer-substring (match-beginning 1) (match-end 1)))
;; Kyle's catch-all:
'( "ART" . "gaylord")
;; match id with IN%
'("<\\([^ \t\n\f@%()<>]+\\)[@%]\\([^ \t\n\f<>()]+\\)>" .
(buffer-substring (match-beginning 1) (match-end 1)))
'("<\\([^>]+\\)>" .
(buffer-substring (match-beginning 1) (match-end 1)))
;; '("\\([^ \t\n\f@%()<>]+\\)\\([@%]\\([^ \t\n\f<>()]+\\)\\)?"
;; (buffer-substring (match-beginning 1) (match-end 1)))
;; match id in <>
'("<\\([^>@%]+\\)" .
(buffer-substring (match-beginning 1) (match-end 1)))
;; match id with @
'("\\([^@%:]+\\)[@%]" .
(buffer-substring (match-beginning 1) (match-end 1)))
;; match id with ::
'("[^:]+\:\:\\(\\w+\\|\\w+\\W\\w+\\)" .
(buffer-substring (match-beginning 1) (match-end 1)))
;; match first word
'("\\(\\w+\\)" .
(buffer-substring (match-beginning 1) (match-end 1)))
)
))
(if (eq 'x window-system)
(progn
(defun vm-highlight-headers (message window)
"Using font-lock; highlight From: and Subject: fields in mail
messages displayed by VM."
(save-excursion
;; As of v18.52, this call to save-window-excursion is needed!
;; Somehow window point can get fouled in here, and drag the
;; buffer point along with it. This problem only manifests
;; itself when operating VM from the summary buffer, subsequent
;; to using vm-beginning-of-message or vm-end-of-message.
;; After running a next or previous message command, point
;; somehow ends up at the end of the message.
(save-window-excursion
(font-lock-mode 1)
)))
))
(setq tm-vm/automatic-mime-preview nil)
(defun vm-folder-count ()
"Count buffers visiting mail folders."
(save-excursion
(let ((folder-count 0))
(mapcar (function
(lambda (buf)
(set-buffer buf)
(and (eq major-mode 'vm-mode)
(setq folder-count (+ folder-count 1)))))
(buffer-list))
folder-count)))
(add-hook 'vm-presentation-mode-hook
(lambda ()
(or buffer-display-table
;; Don't let disp-table.el overwrite standard-display-table:
(let ((standard-display-table standard-display-table))
(setq buffer-display-table (make-display-table))))
;; Make A0 (\240) (non-breaking space) display as normal space
(aset buffer-display-table ?\xA0 [\? ])
(aset buffer-display-table ?\x91 [?\'])
(aset buffer-display-table ?\x92 [?\'])
(aset buffer-display-table ?\x93 [?\"])
(aset buffer-display-table ?\x94 [?\"])
(aset buffer-display-table ?\x96 [?\-])
(aset buffer-display-table ?\x97 [?\-?\-])
;; Make ^M invisible:
(aset buffer-display-table ?\x0D [])))
(require 'time-date)
(defun my-vm-print-message-with-faces (&optional filename)
"Print the current message to a PostScript printer (or file) with
font information"
(interactive)
(vm-select-folder-buffer)
(let* ((msg (vm-real-message-of (car vm-message-pointer)))
(buffer (set-buffer (if (vm-mime-plain-message-p msg)
(vm-buffer-of msg)
vm-presentation-buffer)))
(subject-line (or (vm-get-header-contents msg "Subject:")
"<No Subject>">))
(from-line (concat "From: " (or
(vm-get-header-contents msg "From:")
"<No Sender>")))
(date-line (vm-get-header-contents msg "Date:"))
(time (if date-line (date-to-time date-line) (current-time)))
(dd-mon-yy (format-time-string "%d %b %y" time))
(hh:mm:ss (format-time-string "%T" time))
(ps-left-header (list 'subject-line 'from-line))
(ps-right-header (list "/pagenumberstring load" 'dd-mon-yy 'hh:mm:ss))
(ps-header-lines 2)
(ps-print-header-frame t))
(if (null filename)
(ps-print-buffer-with-faces)
(ps-print-buffer-with-faces filename)
)))
(require 'vm-vcard)
(setq vm-spamassassin-cmd "/usr/bin/spamassassin")
(defun vm-spamassassin-report-spam ()
"Report mail as spam by piping the message to spamassassin in reporting
mode."
(interactive)
(if (y-or-n-p "Are you sure you want to report this message as spam? ")
(vm-pipe-message-to-command
(concat vm-spamassassin-cmd " -r -w " user-mail-address)
nil)))
(defun vm-spamassassin-add-to-whitelist ()
"Add the sender of the message to the spamassassin auto-whitelist, so
that mail from them is not classified as spam again."
(interactive)
(vm-pipe-message-to-command (concat vm-spamassassin-cmd " -W") nil))
(require 'vm-menu)
(setq vm-menu-dispose-menu
(append vm-menu-dispose-menu
'(
"---"
["Add to whitelist" vm-spamassassin-add-to-whitelist vm-message-list ]
["Report as spam" vm-spamassassin-report-spam vm-message-list ])))
;;; ;;; Peronality crisis
;;; (setq rwh-vm-pcrisis-use-vm-mail-wraparound t)
;;; (defadvice mail-text (before call-automorph-with-mail-text activate)
;;; (rwh-vm-pcrisis-automorph) )
;;; (add-hook 'vm-mail-mode-hook
;;; '(lambda () (local-set-key [f7] 'rwh-vm-pcrisis-automorph)))
;;;
;;; ;;; An action-list can take many forms. The first item in an action-list
;;; ;;; is a string, which may be any of the following:
;;;
;;; ;;; * "pre-function"
;;; ;;; * "reply-buffer-function"
;;; ;;; * "signature"
;;; ;;; * "pre-signature"
;;; ;;; * "set-to-to"
;;; ;;; * If none of the above, a string containing the name of a header to
;;; ;;; add or change in your reply.
;;;
;;;(add-to-list 'rwh-vm-pcrisis-headers-to-save "Original-Sender")
;;; (setq rwh-vm-pcrisis-profiles
;;; '(
;;; ( ;;This first recipe causes the contents of the file ~/.sig
;;; ;; to be inserted as the signature in absolutely all replies.
;;; ("From" ".*")
;;; ("signature" "~/.sig")
;;; )
;;; ( ;;you DO NOT include a :
;;; ("From" "^president@whitehouse\\.gov$")
;;; ("X-Subliminal-Header-Message" "Please lower my taxes.")
;;; )
;;; ( ;;the function names should not be placed in quotes.
;;; ("Content-type" "iso-8859-2") ;; Note 3
;;; ("pre-function" my-vm-variable-changer-8859-2)
;;; ("reply-buffer-function" my-change-kbd-layout-to-polish)
;;; )
;;; ( ;;To understand this, read *Note pcp Note 4::
;;; ("Content-type" "html")
;;; ("From" "\"The HTML Police\" <me@my.mail.address>")
;;; ("pre-signature" "~/formletters/why_html_is_bad.txt")
;;; )
;;; (
;;; ("Reply-To" "bad_list@some.listserv.com") ;;match-list
;;; ("set-to-to" "Original-Sender")) ;;action-list
;;; )
;;; ) )
;;;
;;;
;;; rwh-vm-pcrisis-automorph-profil
;;;
;;; rwh-vm-pcrisis-newmail-profiles
;;;
;;; From: kyle_jones@wonderworks.com (Kyle Jones)
;;; > Is there anyway I can get a 50/50 split on everything, without having to
;;; > explicitly save to *all* window configurations?
;;; Yes. You only need to save to the main classes: startup,
;;; reading-message, composing-message, editing-message, and for the
;;; command config for vm-summarize.
;;; ;;;;
;;; ;;;; Wastebasket support
;;; ;;;;
;;; ;;;; By default, deleted mail goes into the "wastebasket" directory,
;;; ;;;; which is a subdirectory of vm-folder-directory. There is a
;;; ;;;; wastebasket file for each month; the file name format is
;;; ;;;; wastebasket-yymm.
;;; ;;;;
;;; (require 'cl)
;;; (defvar *vm-wastebasket-directory*
;;; (concat (file-name-as-directory vm-folder-directory)
;;; (format "wastebasket/wastebasket")))
;;; (defvar *vm-wastebasket-months*
;;; '("Jan" "Feb" "Mar" "Apr" "May" "Jun"
;;; "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"))
;;; (defvar *vm-wastebasket-date-regexp*
;;; (concat "\\(" (mapconcat 'identity *vm-wastebasket-months* "\\|") "\\)"
;;; ".*"
;;; "[0-9][0-9]\\([0-9][0-9]\\)"))
;;; (defun vm-wastebasket ()
;;; (format
;;; "%s-%s"
;;; *vm-wastebasket-directory*
;;; (if (fboundp 'time-yymm) ;Use my private hack first
;;; (time-yymm)
;;; (let ((time (current-time-string)))
;;; (string-match *vm-wastebasket-date-regexp* time)
;;; (unless (and (match-beginning 1) (match-beginning 2))
;;; (error "Unable to extract month and year from current-time-string"))
;;; (let* ((month (substring time (match-beginning 1) (match-end 1)))
;;; (month-number (1+ (position month *vm-wastebasket-months*
;;; :test 'string-equal)))
;;; (year (substring time (match-beginning 2) (match-end 2))))
;;; (concat year (format "%02d" month-number)))))))
;;; (defun vm-save-in-wastebasket (&rest ignore)
;;; (interactive)
;;; (vm-save-message (vm-wastebasket)))
;;; (defun vm-visit-wastebasket (prefix &optional read-only-p)
;;; (interactive "P")
;;; (vm-visit-folder (vm-wastebasket) (or prefix read-only-p)))
;;; ;;; Move the "d" key to "D", and add "T" to read the wastebasket
;;; (define-key vm-mode-map "D" 'vm-delete-message)
;;; (define-key vm-mode-map "d" 'vm-save-in-wastebasket)
;;; (define-key vm-mode-map "T" 'vm-visit-wastebasket)
(define-key vm-mode-map "#" 'vm-expunge-folder)
;; Pop mail service using ssh
;;; # ssh -C -L 4711:mail.server.at.your.domain:110 other.server.at.your.domain
;;; The above statement will setup a local port (4711) that is
;;; forwarded to the POP port on your mailserver
;;; (mail.server.at.your.domain) via another machine
;;; (other.server.at.your.domain). (The -C flags is not necessary, it
;;; only makes the communication compressed.)
;;; You can then setup your vm-spool-files to point out this local port like this:
;;; (setq vm-spool-files
;;; (list (list vm-primary-inbox "localhost:4711:pass:username:*" vm-crash-box)))
;;; This will return a list of all the buffers in VM mode:
;;; (let ((buffers (buffer-list))
;;; (vm-buffers '()))
;;; (while buffers
;;; (if (eq (save-excursion
;;; (set-buffer (car buffers))
;;; major-mode)
;;; 'vm-mode)
;;; (setq vm-buffers
;;; (cons (car buffers) vm-buffers)))
;;; (setq buffers (cdr buffers)))
;;; (nreverse vm-buffers))
;;; Local Variables:
;;; mode: emacs-lisp
;;; comment-start: ";;; "
;;; End:
|