Hi
On Tuesday 30 December 2014 at 7:17:05 PM, in <mid:camxepcwtf-hcknkhbsvlouywcsgajq3awcmyxys1kaggabt...@mail.gmail.com>, Carsten Guthardt-Schulz wrote: > Hi all, > short question: is there a macro I can use, to find out > how many recipients a message I reply to has, or one > that can tell me if a specific string is part of the > message's From address? Short Answer: You can't count the BCC recipients (unless you are working with the copy of a message you sent). Other than that, you may be able to do something useful with creative use of Regular Expressions (RegExp) and the %OTOLIST and %OCCLIST macros. I would think you could produce a count of how many times the string "@" appears. And/or extract any string ending with "@mydomain.com". But I can't help because Ihave only used RegExp two or three times, only by very slightly adapting somebody else's code I found on the internet, and never in TB!. > detailed question: I use a single account with my > personal domain but many email addresses, as the domain > is configured as catchall. This means that I rarely > hand out my personal mail address > (firstn...@mydomain.com), but rather individual > addresses: At amazon, for example, I'm registered with > the email address ama...@mydomain.com, at ebay with > e...@mydomain.com, and so on. This has quite a lot of > advantages, allowing for all kinds of filtering, as > well as discovering who sold my email address to > spammers :-) That's an approach I sometimes use, although less since I discovered spamgourmet <https://www.spamgourmet.com/index.pl>. (The spam received by my domain's catchall tends to be addressed to <randomstr...@mydomain.com>. Using spamgourmet instead defeats this.) > Now when I get an email from, for example, > ama...@mydomain.com, and I reply with TheBat, I of > course want to have ama...@mydomain.com as From address > as well, not firstn...@mydomain.com (which is the > default). I have accomplished this by putting into my > Reply template this macro: %FROM="My Name <%OTOADDR>" One way is to set up an account in TB! for ama...@mydomain.com with outgoing server settings only. Filter any incoming messages for that address into a folder under that account, and let your reply template for that account take care of it. I have one or two set up like that, but it is not viable as a general solution. > whenever I > receive an email that has multiple recipients, like > emails from my sports club, the FROM address on my > reply gets set to the FIRST recipient's address in the > TO-field. Many times I did not recognize this and I > ended up sending emails looking like they came from one > of my team mates :-) The sender should not be revealing your team mates' email addresses to you. If I was receiving messages like that and the sender didn't have the courtesy to protect people's personal emails by using BCC, I would be complaining very loudly and robustly. -- Best regards MFPA mailto:2014-667rhzu3dc-lists-gro...@riseup.net Man is not a rational animal, he is a rationalising animal. Using The Bat! v4.0.38 on Windows XP 5.1 Build 2600 Service Pack 3 ________________________________________________ Current version is 6.6 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html