multiple "From:"

2001-12-19 Thread Benjamin Michotte

hello,

I have to use different From address, [EMAIL PROTECTED] for all of my
mail and [EMAIL PROTECTED] to send mail to [EMAIL PROTECTED]

I tried a send-hook but... it doesn't work, where could I look in the
manual ?

thanks,
binny

-- 

 y'a un fichier de 61 mo dans /proc c'est normal ?
 ah non pas du tout
 efface

°v°  Benjamin Michotte<[EMAIL PROTECTED]>
_o_  web  : http://www.baby-linux.net



msg21738/pgp0.pgp
Description: PGP signature


Multiple From: addresses

1999-05-18 Thread sverrehu

I have several mail accounts, and now I would like mutt to
use the correct address when I reply to mails. I want to tell
mutt to "reply using this From: header if the mail was sent
to this address of mine, and use that From: header if the mail
was sent to that address of mine."

AFAIK, there is no reply-hook, which seems to be what I need.
I started using (or rather; testing) mutt yesterday, so I may
of course be missing something.


Thanks in advance for any help!


Sverre.



Re: multiple "From:"

2001-12-19 Thread Artem Okounev

Hello Benjamin,

Wednesday, December 19, 2001, 10:12:49 AM, you wrote:

> I have to use different From address, [EMAIL PROTECTED] for all of my
> mail and [EMAIL PROTECTED] to send mail to [EMAIL PROTECTED]

> I tried a send-hook but... it doesn't work, where could I look in the
> manual ?

IMHO  the  "right  way" to rewrite from: headers is to tune
your  MTA,  not  MUA. If you use Sendmail, try the following
instructions:

http://www.sendmail.org/~ca/email/lfaq.html#CHGADDR


-- 
Best regards,
 Artemmailto:[EMAIL PROTECTED]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: multiple "From:"

2001-12-19 Thread Im Eunjea

* Benjamin Michotte <[EMAIL PROTECTED]> [2001-12-19 09:12]:
> hello,
> 
> I have to use different From address, [EMAIL PROTECTED] for all of my
> mail and [EMAIL PROTECTED] to send mail to [EMAIL PROTECTED]
> 
> I tried a send-hook but... it doesn't work, where could I look in the
> manual ?
> 
> thanks,
> binny
> 

send-hook . 'my_hdr From: [EMAIL PROTECTED]'
send-hook '~t ml@manex\.be' 'my_hdr From: [EMAIL PROTECTED]'

-- 
Eunjea <[EMAIL PROTECTED]>

GnuPG fingerprint: 08C9 2D3F 91B2 D395 2EFF  4C33 544C 321C E194 91CF



Re: multiple "From:"

2001-12-19 Thread Benjamin Michotte

On Wed, Dec 19, 2001 at 11:50:14AM, Im Eunjea wrote:
> 
> send-hook . 'my_hdr From: [EMAIL PROTECTED]'
> send-hook '~t ml@manex\.be' 'my_hdr From: [EMAIL PROTECTED]'
great, thanks... i'd forget the ~t :|
> 
> -- 
> Eunjea 
---end quoted text---

binny

-- 

 y'a un fichier de 61 mo dans /proc c'est normal ?
 ah non pas du tout
 efface

°v°  Benjamin Michotte<[EMAIL PROTECTED]>
_o_  web  : http://www.baby-linux.net



msg21741/pgp0.pgp
Description: PGP signature


Re: Multiple From: addresses

1999-05-18 Thread Renaud Colinet

le 17 May, [EMAIL PROTECTED] a écrit :
> I have several mail accounts, and now I would like mutt to
> use the correct address when I reply to mails. I want to tell
> mutt to "reply using this From: header if the mail was sent
> to this address of mine, and use that From: header if the mail
> was sent to that address of mine."
> 
Well I suspect that all you want is the From: header to be set to the address
the mail was sent to you. This can be achieved by setting the reverse_name
variable in your muttrc:
set reverse_name

If you want something more custom, I can't answer

HTH
-- 
  ___
{~._.~}Renaud COLINET   |
 ( Y ) [EMAIL PROTECTED] |
()~*~()01 48 42 22 80 (dom) |
(_)-(_)01 41 75 31 37 (bur) |



Re: Multiple From: addresses

1999-05-18 Thread Jeremy Blosser

Warning
Could not process message with given Content-Type: 
multipart/signed; boundary=xXmbgvnjoT4axfJE; micalg=pgp-md5;protocol="application/pgp-signature"




Re: Multiple From: addresses

1999-05-19 Thread Or Sagi

Hi,

maybe I'm missing somethying here (I was just trying to solve 
that problem a couple of days ago)

for example, the mail i'm replying to was sent to 'mutt-users@whatever'. 
While the email address I want to appear is [EMAIL PROTECTED] ...

The solution I'm using is two configuration files of postfix (configured to
relay and do rewriting on the envelope for my two different addresses), and 
two different mutt configurations (set sendmail).

I seperate my mail to different files using procmail, so that wasn't a 
problem for me.

any comments/ideas ?

Ors

On Tue, May 18, 1999 at 11:52:41AM -0500, Jeremy Blosser wrote:
> Renaud Colinet [[EMAIL PROTECTED]] wrote:
> > le 17 May, [EMAIL PROTECTED] a écrit :
> > > I have several mail accounts, and now I would like mutt to
> > > use the correct address when I reply to mails. I want to tell
> > > mutt to "reply using this From: header if the mail was sent
> > > to this address of mine, and use that From: header if the mail
> > > was sent to that address of mine."
> > > 
> > Well I suspect that all you want is the From: header to be set to the address
> > the mail was sent to you. This can be achieved by setting the reverse_name
> > variable in your muttrc:
> > set reverse_name
> 
> You'll also need to use 'alternates' to tell Mutt which addresses are
> actually yours.
> 
> -- 
> Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
> -+-+--
> "Would you fight to the death, for that which you love?
>In a cause surely hopeless ...for that which you love?"
>  -- D. McKiernan, _Dragondoom_




Handling multiple From addresses

2022-09-04 Thread Jan Eden via Mutt-users
Hi,

I use a couple of From addresses, and currently change the default From
address and BCC address manually, and select the matching PGP key for
signing afterwards (PGP menu → sign as → [From address] →
select key). This can probably be done much more efficiently, so my
questions are:

- Can I define multiple From addresses to select them from a list?
- Can mutt be configured to switch the default BCC address to a changed
  From address?
- If there is only a single PGP private key for each address – is it
  possible to have that key selected automatically (or with a single
  keystroke) according to the current From address?

I know I could work with different mutt profiles by starting the program
with the -F parameter, but I regularly need to switch the From/BCC/PGP
key combination while using mutt.

Thanks,
Jan


signature.asc
Description: PGP signature


Re: Handling multiple From addresses

2022-09-05 Thread Ofer Inbar
What I did for this was select a few esc-capital hotkey combos
and define macros like this in my muttrc:

macro generic \eF ":source ~/.mutt/headers.f...\r"
macro generic \eH ":source ~/.mutt/headers.h...\r"

And so on.  (I replaced the actual filenames with "...")

Each .mutt/headers... file looks somewhat like this:
--
unmy_hdr *
my_hdr X-URL: ...
my_hdr From: Ofer Inbar 
set status_format="-%r- %f: cos@somedomain ---[Msgs:%?M?%M/?%m%?n?New:%n?%?d? 
Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? 
Inc:%b?%l]---(%s%?S?/%S?)-%>-(%P)---"
set signature="..."
--

So in the index I can hit esc-F, esc-H, etc., and it loads the set of
headers I want, and also sets my status line to show me which header
set I currently have loaded.
  -- Cos


Re: Handling multiple From addresses

2022-09-06 Thread Cameron Simpson

On 06Sep2022 09:26, Jan Eden via Mutt-users  wrote:

Thank you! This is exactly what I needed. I tweaked your version a bit
to use the standard parameters for setting the required values:

set from="x...@eden.one"
set pgp_default_key = '0x20F7FHD80EC4C17294434A0220D37B3CE755FE8A'
set status_format="-%r x...@eden.one: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? 
Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? 
%l?]---(%s/%S)-%>-(%P)---"
unmy_hdr *
my_hdr Bcc: t...@eden.one


I've got a slightly tweaked $status_format which begins:

set status_format="$my_account_email .."

because I've parameterised the email address, since it gets used in a 
few places.


Cheers,
Cameron Simpson 


Re: Handling multiple From addresses

2022-09-13 Thread Robert
Hi there,

On 2022-09-04 17:17, Jan Eden via Mutt-users wrote:
> - Can I define multiple From addresses to select them from a list?
> - Can mutt be configured to switch the default BCC address to a changed
>   From address?
> - If there is only a single PGP private key for each address – is it
>   possible to have that key selected automatically (or with a single
>   keystroke) according to the current From address?

I had the exact same problems and did a bit of an over-engineering approach:
my profiles are defined in a yaml file and a python script generates the
necessary (neo)mutt rc files.

The details, as well as the python script are available here:
https://spacepanda.se/neomutt-pt7.html

Toodles,
  Robert


Re: Re: Handling multiple From addresses

2022-09-06 Thread Jan Eden via Mutt-users
On 2022-09-05 19:16, Ofer Inbar wrote:
> What I did for this was select a few esc-capital hotkey combos
> and define macros like this in my muttrc:
> 
> macro generic \eF ":source ~/.mutt/headers.f...\r"
> macro generic \eH ":source ~/.mutt/headers.h...\r"
> 
> And so on.  (I replaced the actual filenames with "...")
> 
> Each .mutt/headers... file looks somewhat like this:
> --
> unmy_hdr *
> my_hdr X-URL: ...
> my_hdr From: Ofer Inbar 
> set status_format="-%r- %f: cos@somedomain ---[Msgs:%?M?%M/?%m%?n?New:%n?%?d? 
> Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? 
> Inc:%b?%l]---(%s%?S?/%S?)-%>-(%P)---"
> set signature="..."
> --
> 
> So in the index I can hit esc-F, esc-H, etc., and it loads the set of
> headers I want, and also sets my status line to show me which header
> set I currently have loaded.

Thank you! This is exactly what I needed. I tweaked your version a bit
to use the standard parameters for setting the required values:

set from="x...@eden.one"
set pgp_default_key = '0x20F7FHD80EC4C17294434A0220D37B3CE755FE8A'
set status_format="-%r x...@eden.one: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? 
Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? 
%l?]---(%s/%S)-%>-(%P)---"
unmy_hdr *
my_hdr Bcc: t...@eden.one

Thanks again,
Jan


signature.asc
Description: PGP signature


Re: Re: Handling multiple From addresses

2022-09-06 Thread Jan Eden via Mutt-users
On 2022-09-07 08:04, Cameron Simpson wrote:
> On 06Sep2022 09:26, Jan Eden via Mutt-users  wrote:
> > Thank you! This is exactly what I needed. I tweaked your version a bit
> > to use the standard parameters for setting the required values:
> > 
> > set from="x...@eden.one"
> > set pgp_default_key = '0x20F7FHD80EC4C17294434A0220D37B3CE755FE8A'
> > set status_format="-%r x...@eden.one: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? 
> > Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? 
> > %l?]---(%s/%S)-%>-(%P)---"
> > unmy_hdr *
> > my_hdr Bcc: t...@eden.one
> 
> I've got a slightly tweaked $status_format which begins:
> 
> set status_format="$my_account_email .."
> 
> because I've parameterised the email address, since it gets used in a few
> places.

FWIW, my final setup looks like this:

# .muttrc
source ~/.mutt/default_address.cf
macro generic \e1 ":source ~/.mutt/default_address.cf\r"
macro generic \e2 ":source ~/.mutt/alternative_address1.cf\r"
macro generic \e3 ":source ~/.mutt/alternative_address2.cf\r"
macro generic \e4 ":source ~/.mutt/alternative_address3.cf\r"

# default_address.cf
set my_address = "x...@eden.one"
set my_pgp_key = '257A9B6F3DEDCA11319000877CD4656792A3A1F4'
source '~/.mutt/set_address.cf'

# set_address.cf
set from=$my_address
set pgp_default_key = $my_pgp_key
set status_format="-%r $my_address: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? 
Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? 
%l?]---(%s/%S)-%>-(%P)---"
unmy_hdr *
my_hdr Bcc: $my_address

- Jan


signature.asc
Description: PGP signature


Re: Re: Handling multiple From addresses

2022-09-13 Thread Jan Eden via Mutt-users

On 2022-09-13 20:07, Robert wrote:
> Hi there,
> 
> On 2022-09-04 17:17, Jan Eden via Mutt-users wrote:
> > - Can I define multiple From addresses to select them from a list?
> > - Can mutt be configured to switch the default BCC address to a changed
> >   From address?
> > - If there is only a single PGP private key for each address – is it
> >   possible to have that key selected automatically (or with a single
> >   keystroke) according to the current From address?
> 
> I had the exact same problems and did a bit of an over-engineering approach:
> my profiles are defined in a yaml file and a python script generates the
> necessary (neo)mutt rc files.
> 
> The details, as well as the python script are available here:
> https://spacepanda.se/neomutt-pt7.html

Nice – I have a knack for over-engineering. :)

Cos had already suggested a similar approach to your "tedious and
annoying" version  which I adapted
(http://lists.mutt.org/pipermail/mutt-users/Week-of-Mon-20220905/003863.html)
to manually select the desired identity. Using reply-hooks is a better
solution, but unfortunately, they are executed too late in the
composition workflow to change the Bcc header
(http://mutt.org/doc/manual/#compose-flow). Some of my addresses have
more than one recipient, so the correct Bcc header is crucial.

Defining a message-hook works in most cases (if I open/view a message
before replying to it), but sometimes I want to reply to a message right from 
the
index after starting mutt.

Do you have any suggestion on how to change the Bcc header
automatically?

Thanks,
Jan




signature.asc
Description: PGP signature