Kazu Yamamoto | 1 Jul 2008 11:03
Picon
Gravatar

[mew-int 2527] Re: Non-interactive attachment description

Hello,

> In a non-interactive function, after a (compose-mail ...), I can use 
> 
>      (mew-draft-prepare-attachments)
>      (mew-attach-link file (file-name-nondirectory file))
> 
> to attach a file.  Is there an easy way to add a description
> (mew-attach-description is purely interactive)?

Sorry. I don't understand what you want to do.

Do you want to write an Elisp code to any hook?

I'm confused but... Does adding (interactive) to
mew-attach-description solve your problem?

--Kazu

Christophe TROESTLER | 1 Jul 2008 11:51
X-Face
Picon

[mew-int 2528] Re: Non-interactive attachment description

Hi,

On Tue, 01 Jul 2008 18:03:46 +0900 (JST), Kazu Yamamoto (山本和彦) wrote:
> 
> > In a non-interactive function, after a (compose-mail ...), I can use 
> > 
> >      (mew-draft-prepare-attachments)
> >      (mew-attach-link file (file-name-nondirectory file))
> > 
> > to attach a file.  Is there an easy way to add a description
> > (mew-attach-description is purely interactive)?
> 
> Sorry. I don't understand what you want to do.
> Do you want to write an Elisp code to any hook?

I want to write some elisp code.  The real problem is to provide a way
for bazaar http://bazaar-vcs.org/ to use Mew to send bundles: "bzr
send" creates a new message (with compose-mail) and then attach the
patch file to it (with the above 2 functions).  It would also be nice
to automatically add a description of the patch and I am wondering
what is the best way to do it non-interactively (I was expecting
mew-attach-description to have optional arguments to bypass the
interactive prompt).  At the moment I use

	(let* ((nums (mew-syntax-nums))
	       (syntax (mew-syntax-get-entry mew-encode-syntax nums)))
	  (mew-syntax-set-cd syntax "BZR merge")
	  (mew-encode-syntax-print mew-encode-syntax))

but I would prefer something that does not show Mew internals and is
(Continue reading)

zhengyi | 1 Jul 2008 12:42
Picon

[mew-int 2529] How to reset the pop password

Hi, 
   I have changed my pop password of my mail-box
but MEW use the old password to fetch mails, So it always complain 
"the mail-box is locked"

zhengyi | 1 Jul 2008 12:42
Picon

[mew-int 2530] How to reset the pop password

Hi, 
   I have changed my pop password of my mail-box
but MEW use the old password to fetch mails, So it always complain 
"the mail-box is locked"

zhengyi | 1 Jul 2008 13:11
Picon

[mew-int 2531] About multi mail-box

Hi,
  I have three mail-box in use for different purpose.
When I type 'w' in summery mode, MEW always use the default mail 
address for the new mail. How do i change the mail address of mine 
when writing a new mail ?

Harald Hanche-Olsen | 1 Jul 2008 16:03
Picon
Picon
Favicon
Gravatar

[mew-int 2532] Re: About multi mail-box

+ zhengyi <goodmenlinux <at> gmail.com>:

>   I have three mail-box in use for different purpose. When I type
> 'w' in summery mode, MEW always use the default mail address for the
> new mail. How do i change the mail address of mine when writing a
> new mail ?

In ~/.mew.el, put something like

(setq mew-config-alist
      '(("firstbox"
	 ("user" . "firstusername")
	 ("mail-domain" . "firstmaildomain"))
	("secondbox"
	 ("user" . "secondusername")
	 ("mail-domain" . "secondmaildomain"))
	("thirdbox"
	 ("user" . "thirdusername")
	 ("mail-domain" . "thirdmaildomain"))))

Then hit C-c C-o while editing a mail to set the case value to one of
firstbox, secondbox, thirdbox (you will surely wish to set names more
meaningful to you).

Se the documentation for variable mew-config-alist and function
mew-draft-set-case. There are lots of things you can set.

- Harald

(Continue reading)

Harald Hanche-Olsen | 1 Jul 2008 16:22
Picon
Picon
Favicon
Gravatar

[mew-int 2533] Re: How to reset the pop password

+ zhengyi <goodmenlinux <at> gmail.com>:

>    I have changed my pop password of my mail-box
> but MEW use the old password to fetch mails, So it always complain
> "the mail-box is locked"

I presume you are using a master password? Otherwise, just quitting
and restarting emacs should have cleared all passwords. (I suspect
even just quitting and restarting mew will do it ... you quite mew
with key "Q" (note uppercase)). If you are using the master password
feature, removing .mew-passwd.gpg while mew is down should do the
trick.

If you are not above a little elisp hackery and don't want the
sledgehammer approach, you can examine and modify the variable
mew-passwd-alist.

- Harald

Kazu Yamamoto | 2 Jul 2008 05:01
Picon
Gravatar

[mew-int 2534] Re: How to reset the pop password

Hello,

> >    I have changed my pop password of my mail-box
> > but MEW use the old password to fetch mails, So it always complain
> > "the mail-box is locked"
> 
> I presume you are using a master password? Otherwise, just quitting
> and restarting emacs should have cleared all passwords. (I suspect
> even just quitting and restarting mew will do it ... you quite mew
> with key "Q" (note uppercase)). If you are using the master password
> feature, removing .mew-passwd.gpg while mew is down should do the
> trick.
> 
> If you are not above a little elisp hackery and don't want the
> sledgehammer approach, you can examine and modify the variable
> mew-passwd-alist.

Even if a user is using the master password, what the user should do
is NOTHING.

After changing password, type "s" results in authentication failure.
At this time, the old password is cleared. Typing "s" again asks the
user to input new password. The new password will be saved with the
master password again. (I have tested this and Mew worked as I
designed.)

The original message says "the mail-box is locked". So, I suspect that
another mailreader is running and it locks the mailbox...

--Kazu
(Continue reading)

1g163_wxj | 2 Jul 2008 10:51

[mew-int 2535] Mew info is old?

I have moved to Mew 6.1, but I found that some shortcuts changed like 'del' and '<' in Summary mode.
'C-h c' shows that they are 'delelete-char' and 'mew-summary-scroll-right', respectively.
The info still keeps the old meanings in Reading Basis section, although it says 'This manual documents Mew version 6.1'.

Is there an updated one?

Regards!




网易首款免费3D网游“天下2”,6月6日激情公测
Kazu Yamamoto | 2 Jul 2008 11:37
Picon
Gravatar

[mew-int 2536] Re: Non-interactive attachment description

Hello,

> I want to write some elisp code.  The real problem is to provide a way
> for bazaar http://bazaar-vcs.org/ to use Mew to send bundles: "bzr
> send" creates a new message (with compose-mail) and then attach the
> patch file to it (with the above 2 functions). 

Would you show me how to use compose-mail?
I need to the entire code to understand this topic.

--Kazu


Gmane