Kai Grossjohann | 2 Aug 2004 14:33
Picon

Always copying a mailing list

I can set mail-self-blind to get "Bcc: kais.address" in outgoing
messages.  But I have a special group where I'd rather like to have
"Cc: some.mailinglist".

I've tried to frob the posting style for the group, saying (("Gcc" .
nil) ("Cc" . "some.mailinglist")).  But this does not work as I like,
because it also removes other recipients that I would like to keep.

The behavior I'm looking for is: After I've hit R or F (or S W or S
V), add the following address to the list of recipients if not yet
present.

How to do that?

Kai

David S Goldberg | 2 Aug 2004 15:29
X-Face
Picon

Re: Always copying a mailing list

>>>>> On Mon, 02 Aug 2004 14:33:12 +0200, Kai Grossjohann <kai <at> emptydomain.de> said:

> I can set mail-self-blind to get "Bcc: kais.address" in outgoing
> messages.  But I have a special group where I'd rather like to have
> "Cc: some.mailinglist".

> I've tried to frob the posting style for the group, saying (("Gcc" .
> nil) ("Cc" . "some.mailinglist")).  But this does not work as I like,
> because it also removes other recipients that I would like to keep.

> The behavior I'm looking for is: After I've hit R or F (or S W or S
> V), add the following address to the list of recipients if not yet
> present.

> How to do that?

I don't have a complete answer, but this might help.  I have had
difficulty getting mml-secure-message-encrypt-smime to work with
multiple addresses.  However mml-secure-encrypt-smime works because it
prompts for each address and certificate file.  Going through the
prompts is tiresome and occasionally error prone.  However the
function that does the prompting is akin to a hook and so can be
replaced.  I did so with one that parses the headers into a list of
bare addresses (I use the address with .pem tagged as the name of the
certificate file).  The piece that creates this list could, I think,
be used in a posting style that tests the value of gnus-article-reply
and if t, creates the list, searches for the mailing-list address and
adds it if it isn't already there.  To build the list of addresses I
did the following:

(Continue reading)

Jeremy Maitin-Shepard | 3 Aug 2004 01:06
Picon

Re: authinfo/netrc file encryption status -- GnuPG

"Ted Zlatanov" <tzz <at> lifelogs.com> writes:

> [snip]

> According to the Emacs docs you should use make-temp-file for safety,
> but I'll go with make-temp-name for simplicity because I don't expect
> the risk from it to be significant (I remove the temp file afterwards
> in any case).  If anyone disagrees, let me know.

Since there is a security risk in using `make-temp-name', perhaps
consider using `make-temp-name' only when `make-temp-file' is
unavailable, perhaps by defining `make-temp-file' for XEmacs in
gnus-xmas.el.

> [snip]

--

-- 
Jeremy Maitin-Shepard

Ted Zlatanov | 3 Aug 2004 19:09
X-Face
Favicon
Gravatar

Re: authinfo/netrc file encryption status -- GnuPG

On Mon, 02 Aug 2004, jbms <at> attbi.com wrote:

> Since there is a security risk in using `make-temp-name', perhaps
> consider using `make-temp-name' only when `make-temp-file' is
> unavailable, perhaps by defining `make-temp-file' for XEmacs in
> gnus-xmas.el.

OK.  Done in gnus-encrypt.el without gnus-xmas.el, because the code
may move to gencrypt.el later so I don't want it to depend on other
Gnus pieces too much.

Ted

Ted Zlatanov | 3 Aug 2004 19:11
X-Face
Favicon
Gravatar

Re: authinfo/netrc file encryption status -- GnuPG

The specific tests you did were fine, my code wasn't.  Sorry for the
bugs.

Here's the latest gnus-encrypt.el and a working netrc.el that will do
the right thing if there's an encryption model associated with a
file.  I tested them, let me know if you get good results too.

At the end of gnus-encrypt.el is the old netrc.el code that supported
OpenSSL.  I'll enable that as well later, for now GPG is the only
choice for external encryption.

Ted

Attachment (gnus-encrypt.el): application/emacs-lisp, 10 KiB
Attachment (netrc.el): application/emacs-lisp, 5587 bytes
Vasily Korytov | 3 Aug 2004 22:43

Filtering headers in the article buffer

Hi everybody,

I was reading some group, gatewayed to FIDO and looking at the From line
it occured to me, it would be nice to have a function to replace the
[name] <at> p[point].f[node].n[net].z[zone].fidonet.org addressed with
more familiar [zone]:[net]/[node].[point].

I've started to think about a way, I could arrange this -- and didn't
find any. If I had overlooked some, please notify me. If not -- continue
reading. =))

I think, it would be nice to have an interface to mangle headers before
displaying. Say, a list with items like (header-regexp
function-to-process), when the function is called with the header
argument (not quite sure, if it will be better to pass two arguments:
header name and contents separately). I think, I could write something
alike -- but first I would like to ask everybody: what do you think of
such an idea?

--

-- 
       I accept RFC3156 and RFC2440-compatible encrypted mail.
PGP key fingerprint: 3273 7F6F 7B87 5DD5 9848 05FB E442 86BC 2E6B 6831

Steven E. Harris | 3 Aug 2004 23:47
Picon
Favicon
Gravatar

Re: authinfo/netrc file encryption status -- GnuPG

"Ted Zlatanov" <tzz <at> lifelogs.com> writes:

> I tested them, let me know if you get good results too.

It almost works as expected, but for one annoyance. I have four
servers listed in my .authinfo file. When I start Gnus, I get asked
for the decryption password six or seven times as various connections
get opened, despite having gnus-encrypt-password-cache-expiry set to
120. Shouldn't I only be asked for my decryption password once? Surely
something must be wrong, for it would be easier to type four different
passwords than to type a single on seven times.

Related questions:
o Does Gnus really reparse ~/.authinfo every time a connection gets
  opened?
o Could Gnus cache the decrypted ~/.authinfo data to avoid running gpg
  so many times?

--

-- 
Steven E. Harris

Reiner Steib | 4 Aug 2004 10:15
X-Face
Picon
Favicon

Re: Always copying a mailing list

On Mon, Aug 02 2004, Kai Grossjohann wrote:

> I can set mail-self-blind to get "Bcc: kais.address" in outgoing
> messages.  But I have a special group where I'd rather like to have
> "Cc: some.mailinglist".
>
> I've tried to frob the posting style for the group, saying (("Gcc" .
> nil) ("Cc" . "some.mailinglist")).  But this does not work as I like,
> because it also removes other recipients that I would like to keep.
>
> The behavior I'm looking for is: After I've hit R or F (or S W or S
> V), add the following address to the list of recipients if not yet
> present.
>
> How to do that?

(defun rs-message-replace-header (header new-value)
  "Remove HEADER and insert the NEW-VALUE."
  ;; Similar to `nnheader-replace-header' but for message buffers.
  (save-excursion
    (save-restriction
      (message-narrow-to-headers)
      (message-remove-header header))
    (message-position-on-field header)
    (insert new-value)))

(defun kai-message-add-cc (cc)
  "Insert an additional address in Cc field."
  (interactive "MAddress: \n")
  (save-excursion
(Continue reading)

Ted Zlatanov | 4 Aug 2004 18:54
X-Face
Favicon
Gravatar

authinfo encryption through netrc.el works now (was: authinfo/netrc file encryption status -- GnuPG)

On Tue, 03 Aug 2004, seh <at> panix.com wrote:

> "Ted Zlatanov" <tzz <at> lifelogs.com> writes:
> 
>> I tested them, let me know if you get good results too.
> 
> It almost works as expected, but for one annoyance. I have four
> servers listed in my .authinfo file. When I start Gnus, I get asked
> for the decryption password six or seven times as various connections
> get opened, despite having gnus-encrypt-password-cache-expiry set to
> 120. Shouldn't I only be asked for my decryption password once? Surely
> something must be wrong, for it would be easier to type four different
> passwords than to type a single on seven times.

I was doing the caching wrong, it's fixed.  All the code is in CVS
now, including the netrc.el changes (they won't do anything if you
don't have gnus-encrypt-file-alist set).

I also made gnus-encrypt-password-cache-expiry be a trigger for
password-cache-expiry, meaning that setting the former automatically
sets the latter.  If this is incorrect, please let me know.

> Related questions:
> o Does Gnus really reparse ~/.authinfo every time a connection gets
>   opened?

I don't know.  Based on your experience, probably yes.

> o Could Gnus cache the decrypted ~/.authinfo data to avoid running gpg so many
> 	times?
(Continue reading)

Ted Zlatanov | 4 Aug 2004 18:56
X-Face
Favicon
Gravatar

Re: Filtering headers in the article buffer

On Wed, 04 Aug 2004, deskpot <at> despammed.com wrote:

> Hi everybody,
> 
> I was reading some group, gatewayed to FIDO and looking at the From line
> it occured to me, it would be nice to have a function to replace the
> [name] <at> p[point].f[node].n[net].z[zone].fidonet.org addressed with
> more familiar [zone]:[net]/[node].[point].
> 
> I've started to think about a way, I could arrange this -- and didn't
> find any. If I had overlooked some, please notify me. If not -- continue
> reading. =))

Couldn't you do this with article washing?  It seems like a useful
thing to do on the entire article, not just the headers.

Ted


Gmane