all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Send mails to group of email addresses in bbdb, When C-x m (compose-mail)
@ 2010-08-15 14:28 filebat
  2010-08-15 14:34 ` Richard Riley
  2010-08-15 14:44 ` Charles Philip Chan
  0 siblings, 2 replies; 10+ messages in thread
From: filebat @ 2010-08-15 14:28 UTC (permalink / raw
  To: help-gnu-emacs


Hi all

I'd like for send mails to couple of recipients in bbdb.

I try to achieve this, by the following workaround.
- Create an user defined field of "Group" in bbdb.
- Each record will be tagged to several groups manually.
- Whenever I want to send mails to certain group, I will search bbdb records which has the value of this group.
- In *bbdb* buffer, press "* m". And I got the To field with a list of email address.

Is there any built-in utility, which helps to better support this feature.

Thanks,
Denny



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

* Re: Send mails to group of email addresses in bbdb, When C-x m (compose-mail)
  2010-08-15 14:28 Send mails to group of email addresses in bbdb, When C-x m (compose-mail) filebat
@ 2010-08-15 14:34 ` Richard Riley
  2010-08-15 14:44 ` Charles Philip Chan
  1 sibling, 0 replies; 10+ messages in thread
From: Richard Riley @ 2010-08-15 14:34 UTC (permalink / raw
  To: help-gnu-emacs; +Cc: info-gnus-english


filebat <filebat.mark@gmail.com> writes:

> Hi all
>
> I'd like for send mails to couple of recipients in bbdb.
>
> I try to achieve this, by the following workaround.
> - Create an user defined field of "Group" in bbdb.
> - Each record will be tagged to several groups manually.
> - Whenever I want to send mails to certain group, I will search bbdb records which has the value of this group.
> - In *bbdb* buffer, press "* m". And I got the To field with a list of email address.
>
> Is there any built-in utility, which helps to better support this feature.
>
> Thanks,
> Denny
>

http://www.emacswiki.org/emacs/BbdbMailingLists

Use "a" on the bbdb record to add a mail-alias

Crosspost & Followup-To: gmane.emacs.gnus.user




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

* Re: Send mails to group of email addresses in bbdb, When C-x m (compose-mail)
  2010-08-15 14:28 Send mails to group of email addresses in bbdb, When C-x m (compose-mail) filebat
  2010-08-15 14:34 ` Richard Riley
@ 2010-08-15 14:44 ` Charles Philip Chan
  2010-08-15 15:24   ` filebat Mark
  1 sibling, 1 reply; 10+ messages in thread
From: Charles Philip Chan @ 2010-08-15 14:44 UTC (permalink / raw
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]

filebat <filebat.mark@gmail.com> writes:

> Is there any built-in utility, which helps to better support this feature.

Yes, by using the mail-alias field:

http://www.emacswiki.org/emacs/BbdbMailingLists

Charles

-- 
I've run DOOM more in the last few days than I have the last few
months.  I just love debugging ;-)
(Linus Torvalds)

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

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

* Re: Send mails to group of email addresses in bbdb, When C-x m (compose-mail)
  2010-08-15 14:44 ` Charles Philip Chan
@ 2010-08-15 15:24   ` filebat Mark
  2010-08-15 16:31     ` Richard Riley
  2010-08-15 16:48     ` Charles Philip Chan
  0 siblings, 2 replies; 10+ messages in thread
From: filebat Mark @ 2010-08-15 15:24 UTC (permalink / raw
  To: Charles Philip Chan; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 791 bytes --]

I see, mail-alias quite fit the requirement.

Since we may have several groups, it would be better if we can choose from
alias list when sending email.
abbreviations

I am not sure I shall set mail-user-agent variable to what value.
I usually stay in the *Message* mode, when sending emails.

Regards,
Denny

On Sun, Aug 15, 2010 at 10:44 PM, Charles Philip Chan
<cpchan@sympatico.ca>wrote:

> filebat <filebat.mark@gmail.com> writes:
>
> > Is there any built-in utility, which helps to better support this
> feature.
>
> Yes, by using the mail-alias field:
>
> http://www.emacswiki.org/emacs/BbdbMailingLists
>
> Charles
>
> --
> I've run DOOM more in the last few days than I have the last few
> months.  I just love debugging ;-)
> (Linus Torvalds)
>



-- 
Thanks & Regards

Denny Zhang

[-- Attachment #2: Type: text/html, Size: 1393 bytes --]

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

* Re: Send mails to group of email addresses in bbdb, When C-x m (compose-mail)
  2010-08-15 15:24   ` filebat Mark
@ 2010-08-15 16:31     ` Richard Riley
  2010-08-15 16:41       ` filebat Mark
  2010-08-15 16:48     ` Charles Philip Chan
  1 sibling, 1 reply; 10+ messages in thread
From: Richard Riley @ 2010-08-15 16:31 UTC (permalink / raw
  To: help-gnu-emacs

filebat Mark <filebat.mark@gmail.com> writes:

> I see, mail-alias quite fit the requirement.
>
> Since we may have several groups, it would be better if we can choose from alias list when sending email.
> abbreviations
>
> I am not sure I shall set mail-user-agent variable to what value.
> I usually stay in the *Message* mode, when sending emails.
>
> Regards,
> Denny

You simply type in the alias you are interested in into the "to" field
and then tab expand it.

When adding a mail-alias to a bbdb record you can auto expand to
existing aliases.





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

* Re: Send mails to group of email addresses in bbdb, When C-x m (compose-mail)
  2010-08-15 16:31     ` Richard Riley
@ 2010-08-15 16:41       ` filebat Mark
  2010-08-15 16:47         ` Richard Riley
  0 siblings, 1 reply; 10+ messages in thread
From: filebat Mark @ 2010-08-15 16:41 UTC (permalink / raw
  To: Richard Riley; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

What function is binded in your *Message* mode, Richard?

Mine is yas/expand, which seems don't know the alias list.

Regards,
Denny

On Mon, Aug 16, 2010 at 12:31 AM, Richard Riley <rileyrg@gmail.com> wrote:

> filebat Mark <filebat.mark@gmail.com> writes:
>
> > I see, mail-alias quite fit the requirement.
> >
> > Since we may have several groups, it would be better if we can choose
> from alias list when sending email.
> > abbreviations
> >
> > I am not sure I shall set mail-user-agent variable to what value.
> > I usually stay in the *Message* mode, when sending emails.
> >
> > Regards,
> > Denny
>
> You simply type in the alias you are interested in into the "to" field
> and then tab expand it.
>
> When adding a mail-alias to a bbdb record you can auto expand to
> existing aliases.
>
>
>
>


-- 
Thanks & Regards

Denny Zhang

[-- Attachment #2: Type: text/html, Size: 1334 bytes --]

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

* Re: Send mails to group of email addresses in bbdb, When C-x m (compose-mail)
  2010-08-15 16:41       ` filebat Mark
@ 2010-08-15 16:47         ` Richard Riley
  2010-08-15 16:54           ` filebat Mark
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Riley @ 2010-08-15 16:47 UTC (permalink / raw
  To: help-gnu-emacs

filebat Mark <filebat.mark@gmail.com> writes:


> What function is binded in your *Message* mode, Richard?
>
> Mine is yas/expand, which seems don't know the alias list.

Actually this was a surprise for me :- yasnippets tentacles seem to be
everywhere ...


,----
| TAB runs the command yas/expand, which is an alias for
| `yas/expand-from-trigger-key' in `yasnippet.el'.
| 
| It is bound to TAB, <menu-bar> <YASnippet> <Expand trigger>.
| 
| (yas/expand &optional FIELD)
| 
| Expand a snippet before point. If no snippet
| expansion is possible, call command `message-tab'.
| 
| Optional argument FIELD is for non-interactive use and is an
| object satisfying `yas/field-p' to restrict the expansion to.
`----

Anyway it defaults back to message-tab which does the job.




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

* Re: Send mails to group of email addresses in bbdb, When C-x m (compose-mail)
  2010-08-15 15:24   ` filebat Mark
  2010-08-15 16:31     ` Richard Riley
@ 2010-08-15 16:48     ` Charles Philip Chan
  1 sibling, 0 replies; 10+ messages in thread
From: Charles Philip Chan @ 2010-08-15 16:48 UTC (permalink / raw
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 914 bytes --]

filebat Mark <filebat.mark@gmail.com> writes:

> I see, mail-alias quite fit the requirement.
>
> Since we may have several groups, it would be better if we can choose
> from alias list when sending email.  abbreviations

Use the function:

,----
| mail-abbrev-insert-alias
`----

> I am not sure I shall set mail-user-agent variable to what value.  I
> usually stay in the *Message* mode, when sending emails.

Since you use message mode you have 2 choices:

,----
| `message-user-agent'  -- use the Message package.
|                          See Info node `(message)'
| `gnus-user-agent'     -- like `message-user-agent', but with Gnus
|                          paraphernalia, particularly the Gcc: header
|                          for archiving.
`----

Charles

-- 
There are no threads in a.b.p.erotica,  so there's no  gain in using a
threaded news reader.
(Unknown source)

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

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

* Re: Send mails to group of email addresses in bbdb, When C-x m (compose-mail)
  2010-08-15 16:47         ` Richard Riley
@ 2010-08-15 16:54           ` filebat Mark
  0 siblings, 0 replies; 10+ messages in thread
From: filebat Mark @ 2010-08-15 16:54 UTC (permalink / raw
  To: Richard Riley; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]

Well, there must be something error in other point.
I also tried message-tab, and it give no hint for the alias.

I will debug message-tab function to see which variable is incorrect.

Thanks for your help, Richard. Any suggestion is welcome.

Regards,
Denny

On Mon, Aug 16, 2010 at 12:47 AM, Richard Riley <rileyrg@gmail.com> wrote:

> filebat Mark <filebat.mark@gmail.com> writes:
>
>
> > What function is binded in your *Message* mode, Richard?
> >
> > Mine is yas/expand, which seems don't know the alias list.
>
> Actually this was a surprise for me :- yasnippets tentacles seem to be
> everywhere ...
>
>
> ,----
> | TAB runs the command yas/expand, which is an alias for
> | `yas/expand-from-trigger-key' in `yasnippet.el'.
> |
> | It is bound to TAB, <menu-bar> <YASnippet> <Expand trigger>.
> |
> | (yas/expand &optional FIELD)
> |
> | Expand a snippet before point. If no snippet
> | expansion is possible, call command `message-tab'.
> |
> | Optional argument FIELD is for non-interactive use and is an
> | object satisfying `yas/field-p' to restrict the expansion to.
> `----
>
> Anyway it defaults back to message-tab which does the job.
>
>
>


-- 
Thanks & Regards

Denny Zhang

[-- Attachment #2: Type: text/html, Size: 1753 bytes --]

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

* Re: Send mails to group of email addresses in bbdb, When C-x m (compose-mail)
       [not found] <mailman.1.1281882556.16475.help-gnu-emacs@gnu.org>
@ 2010-08-17 11:55 ` Cecil Westerhof
  0 siblings, 0 replies; 10+ messages in thread
From: Cecil Westerhof @ 2010-08-17 11:55 UTC (permalink / raw
  To: help-gnu-emacs

Op zondag 15 aug 2010 16:28 CEST schreef filebat:


> I'd like for send mails to couple of recipients in bbdb.
>
> I try to achieve this, by the following workaround.
> - Create an user defined field of "Group" in bbdb.
> - Each record will be tagged to several groups manually.
> - Whenever I want to send mails to certain group, I will search bbdb records
> 	which has the value of this group.
> - In *bbdb* buffer, press "* m". And I got the To field with a list of email address.
>
> Is there any built-in utility, which helps to better support this feature.

You should use mail-alias for this. When you use a comma delimited
list in mail-alias, then the record is a member of every maillist with
this name. When putting in the complete name (tab expansion does not
work) and given tab, the name of the alias is expanded to every
(first) e-mail address of the records having this alias in mail-alias.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


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

end of thread, other threads:[~2010-08-17 11:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-15 14:28 Send mails to group of email addresses in bbdb, When C-x m (compose-mail) filebat
2010-08-15 14:34 ` Richard Riley
2010-08-15 14:44 ` Charles Philip Chan
2010-08-15 15:24   ` filebat Mark
2010-08-15 16:31     ` Richard Riley
2010-08-15 16:41       ` filebat Mark
2010-08-15 16:47         ` Richard Riley
2010-08-15 16:54           ` filebat Mark
2010-08-15 16:48     ` Charles Philip Chan
     [not found] <mailman.1.1281882556.16475.help-gnu-emacs@gnu.org>
2010-08-17 11:55 ` Cecil Westerhof

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.