:group 'message-headers
:type '(repeat sexp))
-(defcustom message-deletable-headers '(Message-ID Date Lines User-Agent)
+(defcustom message-deletable-headers '(Message-ID Date Lines)
"Headers to be deleted if they already exist and were generated by message previously."
:group 'message-headers
:type 'sexp)
user-agent beg p end)
(if (re-search-forward "^User-Agent:[ \t]*" nil t)
(progn
- (setq beg (match-beginning 0)
- p (match-end 0)
- end (std11-field-end)
- user-agent (buffer-substring p end))
+ (setq beg (match-beginning 0)
+ p (match-end 0)
+ end (std11-field-end)
+ user-agent (buffer-substring p end))
(delete-region beg (1+ end))
(concat message-user-agent " " user-agent)
)