Gnus development mailing list
 help / color / mirror / Atom feed
* [Attn Simon] 5.8.7: message-unquote-tokens doesn't do the job
@ 2000-07-02 18:34 Paul Stodghill
  2000-07-03 10:03 ` Simon Josefsson
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Stodghill @ 2000-07-02 18:34 UTC (permalink / raw)


The Bug:
========
message-unquote-tokens was added to allow gcc'ing to folders whose name
contains spaces (ie, Outlook's "Sent Items" folder). When I compose a
message, the following line appears in the message draft.

    Gcc: nnimap:"Sent Items"

message-unquote-tokens will not remove the quotes in this case because the
quotes do not appear at the beginning and end of the group name.

My hack ... err ... solution:
=============================
I modified message-unquote-tokens to just removed all quotes. Period.

    (defun message-unquote-tokens (elems)
      "Remove all quotes from the strings in list."
      (mapcar (lambda (item)
                (while (string-match "^\\(.*\\)\"\\(.*\\)$" item)
                  (setq item (concat (match-string 1 item) 
                                     (match-string 2 item))))
                item)
              elems))

Since message-unquote-token is only used on Newsgroup: and Gcc: fields, I
think that this is ok, but wiser minds should ponder this change...




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Attn Simon] 5.8.7: message-unquote-tokens doesn't do the job
  2000-07-02 18:34 [Attn Simon] 5.8.7: message-unquote-tokens doesn't do the job Paul Stodghill
@ 2000-07-03 10:03 ` Simon Josefsson
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Josefsson @ 2000-07-03 10:03 UTC (permalink / raw)
  Cc: ding

Paul Stodghill <stodghil@CS.Cornell.EDU> writes:

> I modified message-unquote-tokens to just removed all quotes. Period.

Commited, thanks.  It doesn't give you a way of specifying a mailbox
name containing a double quote though, but it turns out
`message-tokenize-header' need to be rewritten too in order to solve
that...




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-07-03 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-02 18:34 [Attn Simon] 5.8.7: message-unquote-tokens doesn't do the job Paul Stodghill
2000-07-03 10:03 ` Simon Josefsson

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).