Community Discussions and Support
multiple identities

Very interesting Thomas. Are such "replacement placeholder" options documented anywhere?

 

They were documented in the file UDG.txt a long time ago.  This was the guide that was used with PMail that allowed you to create the special User Defined Gateways.  I've attached the zip file.  Here's a snippet from the file.

 Command substitution
--------------------

Most of the entries in this screen which accept strings allow
you to use special command substitution characters in the strings:
these are like "escape sequences" which will cause PMail to perform
some substitution at run-time. Command substitutions always begin
with a tilde (~) character, and are always two characters long.
The following command substitutions are recognised:

   This sequence...   Is replaced with this value

   ~c       The full path to the file containing the message
   ~t       The address to which to send this message
            (note: this is not necessarily the To: field)
   ~s       The message's subject field
   ~f       The full form of the message's "from" field
   ~n       The sender's user name in its simplest form
   ~b       The sender's bindery id, as a long hex integer  [Netware only]
   ~8       The first 8 chars in the sender's username
   ~y       The time and date in RFC-822 format
   ~d       A random integer, expressed as 4 hex digits
   ~q       Y if this message is a BCC, N otherwise
   ~%name%  The value of the environment variable %name%.
   ~p       The user's personal name preference   [the ~o should now be used when the name may contain high-bit characters]
   ~x       The name.ext ONLY of the container file (no path)
   ~a       The directory from which PMail was run (or base directory)
   ~h       The current user's home mailbox location
   ~w       The current user's new mail location
   ~~       A single tilde character.

<blockquote><p>Very interesting Thomas. Are such "replacement placeholder" options documented anywhere? </p></blockquote><p> </p><p>They were documented in the file UDG.txt a long time ago.  This was the guide that was used with PMail that allowed you to create the special User Defined Gateways.  I've attached the zip file.  Here's a snippet from the file. </p><p> Command substitution -------------------- Most of the entries in this screen which accept strings allow you to use special command substitution characters in the strings: these are like "escape sequences" which will cause PMail to perform some substitution at run-time. Command substitutions always begin with a tilde (~) character, and are always two characters long. The following command substitutions are recognised:    This sequence...   Is replaced with this value    ~c       The full path to the file containing the message    ~t       The address to which to send this message             (note: this is not necessarily the To: field)    ~s       The message's subject field    ~f       The full form of the message's "from" field    ~n       The sender's user name in its simplest form    ~b       The sender's bindery id, as a long hex integer  [<span style="font-weight: bold;">Netware only</span>]    ~8       The first 8 chars in the sender's username    ~y       The time and date in RFC-822 format    ~d       A random integer, expressed as 4 hex digits    ~q       Y if this message is a BCC, N otherwise    ~%name%  The value of the environment variable %name%.    ~p       The user's personal name preference   [<b>the ~o should now be used when the name may contain high-bit characters</b>]    ~x       The name.ext ONLY of the container file (no path)    ~a       The directory from which PMail was run (or base directory)    ~h       The current user's home mailbox location    ~w       The current user's new mail location    ~~       A single tilde character. </p>

Hello I'm using pegasus and Mercury.

I have multiple domains.

With multiple identities  i tried to setup accounts for each of these domains, but when i send mail pegasus always use de default domain.

example:

the domains aaa.com and bbb.com

mercury accepts mail for both domains and delivers the mail for jan@aaa.com and bbb.com in 1 mailbox. aaa.com is de default domain

When sending mail the receiving party gets the mail from jan@aaa.com

Now I make an  extra identitie and in tools-internet options i use de email address jan@bbb.com

now when I send mail with this account the from is jan@aaa.com 

 

how can i use different domains hen sending mail in Pegasus

 

Jan 

 

<p>Hello I'm using pegasus and Mercury.</p><p>I have multiple domains.</p><p>With multiple identities  i tried to setup accounts for each of these domains, but when i send mail pegasus always use de default domain.</p><p>example:</p><p>the domains aaa.com and bbb.com</p><p>mercury accepts mail for both domains and delivers the mail for jan@aaa.com and bbb.com in 1 mailbox. aaa.com is de default domain</p><p>When sending mail the receiving party gets the mail from jan@aaa.com</p><p>Now I make an  extra identitie and in tools-internet options i use de email address jan@bbb.com</p><p>now when I send mail with this account the from is jan@aaa.com </p><p> </p><p>how can i use different domains hen sending mail in Pegasus</p><p> </p><p>Jan </p><p> </p>

> Hello I'm using pegasus and Mercury.
> I have multiple domains.
>
> With multiple identities  i tried to setup accounts for each of these domains, but when i send mail pegasus always use de default domain.
>
> example:
> the domains aaa.com and bbb.com
>
> mercury accepts mail for both domains and delivers the mail for jan@aaa.com and bbb.com in 1 mailbox. aaa.com is de default domain
>
> When sending mail the receiving party gets the mail from jan@aaa.com
>
> Now I make an  extra identitie and in tools-internet options i use de email address jan@bbb.com
>
> now when I send mail with this account the from is jan@aaa.com
>  
> how can i use different domains hen sending mail in Pegasus

I assume that you are using Pegasus Mail integrated with Mercury/32 and sending through the Mercury User Defined Gateway.  By default this gateway looks like

             Gateway name :  MERCURY
           *New mail path :
   Is ? a program to run? :  N
    *New mail search mask :
      *Outgoing mail path :  \\thomas\maxtor\MERCURY\QUEUE
   *Run for outgoing mail :
         *Filename format :  ~d~d.101
  Run to validate address :
    *Reply address format : ["~o" <~L~L~8@tstephenson.com>                   ]
  Accepts SMTP addresses? :  Y
  Simple message headers? :  'Glue' headers
    UUEncode attachments? :  Y
          Burst messages? :  N    Gateway processes BCC? : N
      Strip gateway name? :  Y
  Force all mail through? :  Y

 The Reply address format says to Pegasus Mail to either use a synonym (~L~L) or replace the ~8 with the username  to compose the 'From' field for the message. ~8 or ~n indicate where the name should be placed.

If you replace this with "~o" <~r> then the users "Reply To:" field entry will be used for the e-mail address.  This means that every user (and identity) must have their e-mail address entered into this filed to create a valid message but it does allow you to send using pretty much any e-mail address or domain you want to use.

BTW, I do not know if the UDG uses the ~o by default, it might use ~p, but the ~o allows the use of high-bit characters in the personal name.

 

&lt;p&gt;&amp;gt; Hello I&#039;m using pegasus and Mercury. &amp;gt; I have multiple domains. &amp;gt; &amp;gt; With multiple identities&amp;nbsp; i tried to setup accounts for each of these domains, but when i send mail pegasus always use de default domain. &amp;gt; &amp;gt; example: &amp;gt; the domains aaa.com and bbb.com &amp;gt; &amp;gt; mercury accepts mail for both domains and delivers the mail for jan@aaa.com and bbb.com in 1 mailbox. aaa.com is de default domain &amp;gt; &amp;gt; When sending mail the receiving party gets the mail from jan@aaa.com &amp;gt; &amp;gt; Now I make an&amp;nbsp; extra identitie and in tools-internet options i use de email address jan@bbb.com &amp;gt; &amp;gt; now when I send mail with this account the from is jan@aaa.com &amp;gt; &amp;nbsp; &amp;gt; how can i use different domains hen sending mail in Pegasus I assume that you are using Pegasus Mail integrated with Mercury/32 and sending through the Mercury User Defined Gateway.&amp;nbsp; By default this gateway looks like &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gateway name :&amp;nbsp; MERCURY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *New mail path : &amp;nbsp;&amp;nbsp; Is ? a program to run? :&amp;nbsp; N &amp;nbsp;&amp;nbsp;&amp;nbsp; *New mail search mask : &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Outgoing mail path :&amp;nbsp; \\thomas\maxtor\MERCURY\QUEUE &amp;nbsp;&amp;nbsp; *Run for outgoing mail : &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Filename format :&amp;nbsp; ~d~d.101 &amp;nbsp; Run to validate address : &amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;nbsp; *Reply address format : [&quot;~o&quot; &amp;lt;~L~L~8@tstephenson.com&amp;gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] &amp;nbsp; Accepts SMTP addresses? :&amp;nbsp; Y &amp;nbsp; Simple message headers? :&amp;nbsp; &#039;Glue&#039; headers &amp;nbsp;&amp;nbsp;&amp;nbsp; UUEncode attachments? :&amp;nbsp; Y &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Burst messages? :&amp;nbsp; N&amp;nbsp;&amp;nbsp;&amp;nbsp; Gateway processes BCC? : N &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Strip gateway name? :&amp;nbsp; Y &amp;nbsp; Force all mail through? :&amp;nbsp; Y &amp;nbsp;The Reply address format says to Pegasus Mail to either use a synonym (~L~L) or replace the ~8 with the username&amp;nbsp; to compose the &#039;From&#039; field for the message. ~8 or ~n indicate where the name should be placed. If you replace this with &quot;~o&quot; &amp;lt;~r&amp;gt; then the users &quot;Reply To:&quot; field entry will be used for the e-mail address.&amp;nbsp; This means that every user (and identity) must have their e-mail address entered into this filed to create a valid message but it does allow you to send using pretty much any e-mail address or domain you want to use. BTW, I do not know if the UDG uses the ~o by default, it might use ~p, but the ~o allows the use of high-bit characters in the personal name.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

Thanks, 

Now I can use different domain names when sending mail

 

Jan 

&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now I can use different domain names when sending mail&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Jan&amp;nbsp;&lt;/p&gt;

Very interesting Thomas. Are such "replacement placeholder" options documented anywhere?

Very interesting Thomas. Are such &quot;replacement placeholder&quot; options documented anywhere?
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft