From: "आशीष शुक्ल Ashish Shukla" <wahjava@gmail.com>
To: info-gnus-english@gnu.org
Subject: Looking for a proper way to post format=flowed messages
Date: Mon, 14 Jul 2008 12:00:51 +0530 [thread overview]
Message-ID: <20080714063047.GA11272@chateau.d.lf> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2129 bytes --]
Hi,
I recently came to know about 'format=flowed' style of posting messages. I want
to know what is the recommended way to post such messages using Gnus. I'm
running Emacs CVS. I've following lines of LISP code in my .gnus:
---->8---->8----
(defcustom my-inline-pgp-mails-list
'()
"List of email address which only accept inline-PGP signed mails"
:type '(repeat string))
(defun my-list-all-recipients()
"Lists all recipients in the current buffer"
(interactive)
(let ((list-of-recipients)
(list-of-emails '()))
(setq list-of-recipients (split-string (concat
(message-fetch-field "to") ","
(message-fetch-field "bcc") ","
(message-fetch-field "cc")) ","))
(dolist (recipient list-of-recipients)
(when (string-match "\\([[:alnum:].-]+@[[:alnum:].-]*\\)" recipient)
(add-to-list 'list-of-emails (match-string 1 recipient))))
list-of-emails))
(defun my-sign-mail()
"Sends a PGP signed mail depending on whether recipient allows PGP/MIME signed mails"
(let
((recipients (my-list-all-recipients))
(message-signed nil))
(dolist (email my-inline-pgp-mails-list)
(when (member email recipients)
(mml-secure-sign-pgp)
(setq message-signed t)
(return t)))
(unless message-signed (mml-secure-sign-pgpmime))))
(add-hook 'message-setup-hook '(lambda() (use-hard-newlines t t)))
(setq mm-fill-flowed t)
(add-hook 'message-send-hook 'my-sign-mail)
---->8---->8----
1. Whenever I try to send PGP (MIME) signed messages or unsigned messages, message
is posted as format=flowed, but when I send as PGP (inline) signed messages,
they're sent without format=flowed in 'Content-Type'.
2. If I reply to a message (non format=flowed), then all of the lines in the
messages gets concatenated, which I think is due to presence of no hard-newline
characters in the message.
So, I want to know if it is possible to send format=flowed messages properly
with Gnus ? If yes, then what is the recommended way ?
TIA
Ashish
--
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english
reply other threads:[~2008-07-14 6:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080714063047.GA11272@chateau.d.lf \
--to=wahjava@gmail.com \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).