pete phillips | 2 Oct 00:36 2007
Picon

forwarding emails with attachments

Hi all.

I have never managed to resolve my problem with forwarding email
messages which have attachments.

Having received an email which includes an attached image file, if I
want to forward to someone else, I hit 'f' and get this in my buffer:

	------------------------------------------------------------------
	To: pete
	cc: 
	Fcc: +outbox
	Subject: pete phillips: email with attachment
	X-Mailer: MH-E 8.0.2; nmh 1.1; GNU Emacs 22.0.50
	--------
	Test email

	
Subject: Hi all. I have never managed to resolve my problem with forwarding email messages which have attachments. Having received an email which includes an attached image file, if I want to forward to someone else, I hit 'f' and get this in my buffer: ------------------------------------------------------------------ To: pete cc: (Continue reading)

A. Lester Buck III | 8 Oct 19:26 2007

using a comp -form template with mh-e


Hi,

Is there some way to use the -form option on "comp" when composing a
message with mh-e?  I have some boilerplate responses to repeating
issues, and I have alternate form templates with different email
addresses (admin, etc.).  How can I pass the -form <blah> paramter to
the send mail command in mh-e?  Can I add a paramter by using "C-c u"
with "m" somehow?  I have combed through the mh-e manual and there are a
blizzard of customizations, but I didn't see this one.

Thanks a lot!

Lester

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Mark D. Baushke | 10 Oct 08:58 2007
X-Face
Picon

Re: using a comp -form template with mh-e


A. Lester Buck III <mh-e-users-reg <at> compact.com> writes:

> Is there some way to use the -form option on "comp" when composing a
> message with mh-e?  

Hmmm... tricky, but possible. You would need to play with 
some of the more bizarre hacks to elisp.

(require 'advice)
(defmacro mh-send-sub (around query-before-using-components active)
  (let* ((mh-comp-formfile-default mh-comp-formfile)
         (mh-comp-formfile (funciton-you-need-write mh-comp-formfile-default)))
    ad-do-it)
)

where function-you-need-to-write will probably print the original
mh-comp-formfile-default as a possible default value.

Because the mh-comp-formfile will have been over-ridden, from being a
global to being in scope, the desire you have to use a different one
might work.

	-- Mark
	 
> I have some boilerplate responses to repeating
> issues, and I have alternate form templates with different email
> addresses (admin, etc.).  How can I pass the -form <blah> paramter to
> the send mail command in mh-e?  Can I add a paramter by using "C-c u"
> with "m" somehow?  I have combed through the mh-e manual and there are a
(Continue reading)

Bill Wohler | 14 Oct 07:17 2007
Picon
Picon

Re: using a comp -form template with mh-e

A. Lester Buck III <mh-e-users-reg <at> compact.com> wrote:

> Is there some way to use the -form option on "comp" when composing a
> message with mh-e?

Hi Lester,

MH-E does not support this out of the box. I've appended the code I use
to do this (comps is directory in Mail that contains my forms).

How many folks here have done this? Would this be a useful feature to
add to MH-E core?

  (defun bw-mh-folder-mode-hook ()
    "Hook to set key bindings in MH-Folder mode."
    ;;...
    (local-set-key "\C-cm" 'bw-compose-mail-with-template)
    (local-set-key "\C-cr" 'bw-reply-with-template))

  ;; Send and reply using different templates.
  (defun bw-reply-with-template (form)
    "Reply with the alternate template FORM."
    (interactive (list (read-file-name
			"Form: "
			(concat mh-user-path "comps/") nil t)))
    (let* ((mh-repl-formfile (expand-file-name form))
	   (mh-repl-group-formfile mh-repl-formfile))
      (call-interactively 'mh-reply)))

  (defun bw-compose-mail-with-template (form)
(Continue reading)

Mark D. Baushke | 15 Oct 10:46 2007
X-Face
Picon

Re: using a comp -form template with mh-e


Bill Wohler <wohler <at> newt.com> writes:

> How many folks here have done this? 

When I needed to hack my mail headers, I did it
via the mh-identity hooks for the most part.

> Would this be a useful feature to add to MH-E core?

I would have no objections to this added
flexibility.

	-- Mark

Bill Wohler | 16 Oct 07:01 2007
Picon
Picon

Re: forwarding emails with attachments

pete phillips <pete <at> smtl.co.uk> wrote:

> When this eventually arrives in someones mailbox, all they have is a
> text attachment instead of the message and the attached file.

Hi Pete,

I just tried this, and both my girlfriend (with Thunderbird) and I (with
MH-E) got a forwarded message and the image was intact.

> My .mh_profile file has this:
> 	forw: -annotate  -format -mime -build

You don't need -build--MH-E takes care of that for you already.

See the mh-compose-forward-as-mime-flag option; by default this option
is on which adds the -mime flag for you.

My forw entry looks like this:

  forw: -annotate -inplace -form components -format

> Any clues appreciated.  If you require more info, just ask.

Could a few of you folks try this and ack with their .mh_profile forw
settings? 

Pete, I assume you're using 8.0?

--

-- 
(Continue reading)

Bill Wohler | 20 Oct 19:16 2007
Picon
Picon

Re: forwarding emails with attachments

pete phillips <pete <at> smtl.co.uk> wrote:

> >>>>> "Bill" == Bill Wohler <wohler <at> newt.com> writes:
> 
>     Bill> Pete, I assume you're using 8.0?
> 
> yep - 8.0.2 I think.

OK, good.

> Hope this helps someone see what I'm doing wrong. This is driving me
> crazy! 

OK, at least now I *see* why your messages are getting corrupted. When I
removed the blank line from the following at the top of your forwarded
message (using `M' (`mh-modify')), I was able to view your image (that's
a *shower*? ;-).

  Forwarded: Tue, 16 Oct 2007 09:55:37 +0100
  Forwarded: "pete <at> philfam.co.uk "

  >From pete  Tue Oct 16 09:55:03 2007
  Return-Path: <pete <at> smtl.co.uk>

My annotations do not include the blank line.

I suspect it's the uucp separator "From pete " that is confusing things.
If you remove this header field from the message you are forwarding,
does your forwarded message work as expected? If so, let's get rid of
it. If you use rcvstore to file your messages, you can use my rcvstore
(Continue reading)

Peter S Galbraith | 22 Oct 18:29 2007
Picon

Accented characters in email headers

Hi all,

This isn't a true MH-E issue, but perhaps you guys can help anyway.

Since the last month or so, I've been having problems with some email
addresses at work that contain unencoded accented characters.  Mail
messages from people with accented characters in their names used to
arrive looking something like:

  From: "Doé, John" <DoeJ <at> work.ca>

Something in the MS Exchange server changed and now it comes unquoted:

  From: Doé, John <DoeJ <at> work.ca>

This confuses my MTA (postfix) and the message gets to my inbox looking
like:

 From: Doé <at> lauimlex01.qc.dfo.ca, John <DoeJ <at> work.ca>

where "lauimlex01.qc.dfo.ca" is my mail relay that passed the message.
Replying in MH-E generates a bad To: line containing both apparent
addresses.

I'm sure this unquoted string breaks some RFC.  Is there a reference I
can use to get them to change the configuration?

Is there a known MS-Exchange issue about this?

Is there something I can tell postfix (or some other MTA) to accept
(Continue reading)

Greg Minshall | 22 Oct 19:57 2007
Picon

Re: Accented characters in email headers

Peter,

i can't say about MS Exchange server errors, but "Doe, John <foo <at> bar.com>" 
means, specifically, *2* e-mail addresses, so i wouldn't want to see the code 
that tries to "heuristicize" this into just one e-mail address (too many 
opportunities for false positives).

in case that helps.  though, probably, you knew that already.

cheers, Greg Minshall

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

Gmane