From: Leon <sdl.web@gmail.com>
Subject: Re: [help] attachment description default to file name
Date: Sat, 15 Jul 2006 15:30:55 +0100 [thread overview]
Message-ID: <m2sll36iu8.fsf@sl392.st-edmunds.cam.ac.uk> (raw)
In-Reply-To: <87r70nngfd.fsf@gate450.dyndns.org>
Andreas Seltenreich <seltenreich@gmx.de> writes:
> Leon <sdl.web@gmail.com> writes:
>
>> When attaching a file, there is a "one line description:"? How can I
>> set it default to the file name? I find it useful because when I
>> download the attachment from webmail interface the description is the
>> file name to save.
>
> You could write a function that wraps around mml-attach-file and use
> that instead. E.g. (untested):
>
> --8<---------------cut here---------------start------------->8---
> (defun my-attach-file (file &optional type description disposition)
> (interactive
> (let* ((file (mml-minibuffer-read-file "Attach file: "))
> (type (mml-minibuffer-read-type file))
> (description
> (read-string
> (format "One line description (default %s): " file) nil nil file))
> (disposition (mml-minibuffer-read-disposition type)))
> (list file type description disposition)))
> (mml-attach-file file type description disposition))
> --8<---------------cut here---------------end--------------->8---
>
> regards,
> andreas
Thank you, Andreas. It works.
--
Leon
prev parent reply other threads:[~2006-07-15 14:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-21 14:14 Leon
2006-07-15 13:31 ` Andreas Seltenreich
2006-07-15 14:30 ` Leon [this message]
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=m2sll36iu8.fsf@sl392.st-edmunds.cam.ac.uk \
--to=sdl.web@gmail.com \
/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).