emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending e-mail via system's mail client from sendmail.el


From: Lennart Borgman
Subject: Re: Sending e-mail via system's mail client from sendmail.el
Date: Sun, 10 Jul 2005 15:14:04 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

David Reitter wrote:

The enclosed package allows to hand over a mail buffer from sendmail.el
to the system's designated e-mail client.
Note that the e-mail client will display the contents of the buffer
again for editing. The e-mail client is taken to be whoever handles a mailto: URL
via `browse-url'.

I think this is a good suggestion and I believe it can add a lot to the quality on Emacs. It can work on w32 too, but there is one problem. The mailto url can not be very long on w32. Therefore I have made a workaround which I hope you can include.

The workaround (on w32 only) places the actual message body on the clipboard and instead gives a short body telling the user to paste the clipboard contents into the message:

*** orig\mailclient.el    2005-07-10 14:58:02.595704200 +0200
--- mailclient.el    2005-07-10 15:06:57.593654200 +0200
***************
*** 128,137 ****
                "")
              ;; body
              (concat (mailclient-url-delim) "body="
!                  (url-encode-string
! (buffer-substring delimline (point-max)))))))) (kill-buffer tembuf))))



! (provide 'mailclient)
\ No newline at end of file
--- 128,141 ----
                "")
              ;; body
              (concat (mailclient-url-delim) "body="
!                              (if (fboundp 'w32-set-clipboard-data)
!                                  (progn
! (w32-set-clipboard-data (buffer-substring delimline (point-max))) ! "*** Bug report data has been placed on clipboard, please paste them here! ***" )
!                                (url-encode-string
! (buffer-substring delimline (point-max)))))))))
       (kill-buffer tembuf))))



! (provide 'mailclient)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]