Best wau to rewrite subject line based on FROM address...

Has anyone had experience with re-writing the subject line of a message based on the FROM address? I am trying to accomplish the following:
1) if the FROM address of a message is "[email protected]" and SUBJECT of message is "some special subject" then:
2) rewrite from address to be "[email protected]" and rewrite subject to be "A new subject here".
I've done alot of reading in the docs and on the forums and have come to the following conclusions:
1) I can use sieve filters to filter on the above criteria, but the best i can for processing would be to forward them to some special mailbox, where I would need a program that would actualy read them and perform the mangling, and then resend them to the original recipient
2)Maybe use a conversion channel, passign in the subject via environment variables. I would need to write a shell script that would copy the message, mangle it, and then pass it back to the MTA for delivery?
3) maybe install spam assasin - it seems like it adds extensions to the seive filters that allow mangling of the subject line, but the examples I have seen seem limited to adding a special "tag" to the subject, not replacing it in its entirety.
Can anyone advise me of the right approach to follow? Or let me know that I am smoking crack and there is some other better way to accomplish what I want? For example, is it possible to use procmail to do this?
thanks in advance!
-mike cirioli

Has anyone had experience with re-writing the subject
line of a message based on the FROM address? I am
trying to accomplish the following:
1) if the FROM address of a message is
"[email protected]" and SUBJECT of message is
"some special subject" then:
2) rewrite from address to be "[email protected]" and
rewrite subject to be "A new subject here".
I've done alot of reading in the docs and on the
forums and have come to the following conclusions:
1) I can use sieve filters to filter on the above
criteria, but the best i can for processing would be
to forward them to some special mailbox, where I
would need a program that would actualy read them and
perform the mangling, and then resend them to the
original recipientUntrue. Sieve can replace a header line, if you want.
>
2)Maybe use a conversion channel, passign in the
subject via environment variables. I would need to
write a shell script that would copy the message,
mangle it, and then pass it back to the MTA for
delivery?Sounds like a much harder way to go. Also more costly in terms of performance.
>
3) maybe install spam assasin - it seems like it adds
extensions to the seive filters that allow mangling
of the subject line, but the examples I have seen
seem limited to adding a special "tag" to the
subject, not replacing it in its entirety.While I personally use SpamAssassin, it adds no sieve functions at all. It just gives a "spam score" back to the MTA. Header rewriting is handled by Sieve.
>
Can anyone advise me of the right approach to follow?
Or let me know that I am smoking crack and there is
some other better way to accomplish what I want? For
example, is it possible to use procmail to do this?I've never touched procmail. I suspect sieve is the way to go.
jay
>
thanks in advance!
-mike cirioli

Similar Messages

  • How do I change the default email-subject line when emailing from Acrobat 8...

    Hi,
    After creating a document in acrobat and clicking the email icon on the tool bar, Acrobat automatically opens and attaches the document to a new email message in Outlook. It also adds the file name as the subject, then appends "- Adobe Acrobat Professional". How do I remove and/or customize the default subject line appended by Acrobat Pro 8.12?
    Thanks!

    Hi, I have the same problem as Alan L. Whenever I have a file open in Acrobat 9 Pro Extended and click File-> Attach to Email it creates a new Outlook message and attaches the file but does not populate the subject line with the file name. The subject line is blank. I tried to email the same PDF file from Foxit Reader and it correctly populated the subject field with the file name.
    If anyone can help me I would really appreciate it.
    Thanks,
    Michael

  • Subject Line & Sender's Email Address Not Printing

    When using ePrint to print my emails, the sender's email address and the subject line do not print.  How can I get them to print?
    This question was solved.
    View Solution.

    Hi eldi,
    Thank you for the update.  
    If I knew how design engineers thought then I probably would have become one.
    You should be able to see who sent the email to the printer by logging into your HP ePrintCenter account or your HP Connected account (HP Connected has only been rolled out to the USA, the UK, France, and Germany).   Each account has a job/print history available.  If you are unsure who sent the job to the printer, you can always log into your account and check the email address the print job was sent from.   I’ve included a screen shot from each account and I've highlighted where you would find the email address that sent the print job.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Change the message subject line at runtime based on system id in RSWUWFML2

    I need to display different subject line based in the system id. I am using 'FM for Preparatory Phase' where in, am changing the message number based on system id.  But it doesn't works, and the msgno remains the same...
    Can anybody suggest how to acheive this???

    I can also use different messages in different systems but I just wanted to know if there is something we can do with this user exit option present in the selection screen of RSWUWFML2 or not ?

  • Email form created in Acrobat 9, custom subject line and content

    I'm revisiting a form I created about a year back, and I can't remember how I got a javascript to work.
    What I want is for the user to click on an "Email" button, which will open their email program and create a new message, with the subject line filled out from one of the form fields, and then will have specified text in the body, as well as attaching the document and sending it to multiple email addresses.
    I have a javascript that I thought worked, but I keep getting error messages on it when I try to test it out.
    The script I'm currently trying to make work is:
    // This is the form return e-mail. Its hardcoded
    // so that the form is always returned to the same address
    // Change address on your form
    var cToAddr = "[email protected]; [email protected]";
    // First, get the client CC e-mail address
    var cCCAddr = this.getField("Teacheremail").value;
    // Set the subject and body text for the e-mail message
    var cSubLine = this.getField("CourseNumber").value + " corrections form submitted by "
    + this.getField("TeacherName").value;
    var cBody = "\nThank you for submitting your form.\n" +
                   "Save the mail attachment for your own records.\n" +
                   "Do NOT worry if the form appears blank in your email message.";
    // Send the form data as an PDF attachment on an e-mail
    this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr,
      cSubject: cSubLine, cMsg: cBody});
    What am I doing wrong?

    forgot to add
    This is the error message, but there is a correct email listed in the Teacheremail field, so I don't know why it says it's "null."
    this.getField("Teacheremail") is null
    7:AcroForm:Email:Annot1:MouseUp:Action1
    TypeError: this.getField("Teacheremail") is null
    7:AcroForm:Email:Annot1:MouseUp:Action1

  • Gmail Script Help :: Unique Subject Line & Carbon Copying Recipients

    Hi All,
    I am using a script in google apps to send emails using spreadsheet data. I have copied and pasted a script from google developers, but I need help customizing it.
    I need to have the subject line pull data from a cell within the spreadsheet (subject line will vary), but don't know how to add it into the script. I also need help adding email addresses to carbon copy on the email!
    Here is the script I am using ::
    function sendEmails() {
      var sheet = SpreadsheetApp.getActiveSheet();
      var startRow = 2;  // First row of data to process
      var numRows = 2;   // Number of rows to process
      // Fetch the range of cells A2:B3
      var dataRange = sheet.getRange(startRow, 1, numRows, 2)
      // Fetch values for each row in the Range.
      var data = dataRange.getValues();
      for (i in data) {
        var row = data[i];
        var emailAddress = row[0];  // First column
        var message = row[1];       // Second column
        var subject = "Sending emails from a Spreadsheet";
        MailApp.sendEmail(emailAddress, subject, message);
    Cells A1 & B1 are titled "Recipients" & "Email Body" respectively (These cells are inactive and are just Headers)
    Cell A2 contains the email address of the recipient.
    Cell B2 contains the message that will be sent.
    In Cell C2 I would like to add the subject line.
    In Cell D2 I would like to add recipients that will be carbon copied.
    Your help is greatly appreciated :-)

    For Google related scripts you should post in the Google developers forum on Google. 
    This forum is for Windows administrative scripting with Microsoft products.
    ¯\_(ツ)_/¯

  • SMTP Subscription Subject Line Formatting Issue

    We are trying to use SMTP to send messages to a Unix box. The subject
    > line always comes out looking like     Subject:
    > =?utf-8?B?QWxlcnQ6IFdlYiBBcHBsaWNhdGlvbiAtIERlbHV4ZSBUZXN0IFdlYnNpdGUg
    > V2ViIFdhdGNoZXIgUHJpb3JpdHk6IDEgU2V2ZXJpdHk6IDIgUmVzb2x1dGlvbiBzdGF0ZT
    > ogTmV3?=
    >
    > This is how it looks coming out of SCOM so I assume most email
    > recipients
    > can translate accordingly as we have no problem with messages to
    > Outlook
    > clients, for example. However this is problematic for the Unix box and
    > we are
    > trying to adjust how these alerts are sent, at least for this
    > particular
    > subscription. I have adjusted the subscription properties by checking
    > the box
    > which says "generate subject line with no encoding....." and even
    > changed
    > encoding to ASCII with no change. I also tried similarly adjusting the
    > global
    > SMTP notifications with no change. I know this is how its coming out
    > of SCOM
    > because the subject line above is from a TCP/IP capture at the RMS
    > server.
    > Has anybody dealt with this and found a solution?
    > Thanks!

    What does the configuration of the notification look like? (check under Administration/Settings/General/Notification)
    Ours looks like this and behaves OK:
    Alert: $Data/Context/DataItem/AlertName$ Priority: $Data/Context/DataItem/Priority$ Severity: $Data/Context/DataItem/Severity$ Resolution state: $Data/Context/DataItem/ResolutionStateName$
    There's also a checkbox underneath that labeled "Generate subject line with no encoding..." - is that checked?"Fear disturbs your concentration"

  • Message contents unrelated to subject line and sender

    I have been seeing Mail messages that do not relate to the sender or subject line but the sender and subject line are always from messages I have received before. It seems to be a bug where the new mail coming in is picking up on a sender and subject I have received before. This is happening mre and more frequently. Does anyone else have the same problem or a solution?
    Thanks in advance.

    Ditto here, I recently got a new system with Leopard, and it never did this in Tiger Mail.app.
    As you said, the From and Subject are missing in the list, but in the message they are intact, some kind of display issue. Only the rebuild seems to fix so far..

  • Utility to control subject line

    I'd like to have a utility that prompts me to start filling the subject line with words from a drop down menu. I can control what subject line words go to which people I'm writing to.
    Intent is to help focus email threads with selected correspondents with eye catching (IMPORTANT) subject lines. Threads will therefore standout more easily in a folder with hundreds of long running conversations.
    Anything like this exist?

    Great news, thanks!
    maybe the developer will expand his product... I'll see.
    That's what I was thinking too!
    How do you find stuff like that?
    Google of course, the trick is to find the right words to use, (iirc it was osx mail autofill subject line), then looking for more key words in the results, to either narrow that search or do a new modified search, then of course Google keeps track of your previous searches & sort of learns what you're looking for after a few million searches, as well as kind of getting a feeling as to which search results might be good leads... which takes either lots of experience or Psychic abilities!

  • Mail deletes / removes drafts when I try to save multiple messages with same subject line.

    Hi,
    Running 10.7.5, Mail version 5.3, I find that I cannot save multiple messages with the same subject line when I want to store them for sending to different people later. It automatically deletes the older message and only saves the new one.
    Any idea/help? Can't find it online or using Macs's Help program. They are NOT being stored on my mail server, just checked.
    Thanks!

    I am experiencing exactly the same problem. Mail will not keep multiple email drafts with the same subject line, although they are addressed to different people. At one point, I had drafted and saved a dozen or so such messages intending to send them later only to discover that Mail had deleted all of them but one. Have you received any help or guidance on this? I'm baffled. This did not happen with previous Mail versions.

  • Edge Transport Attachment stripping based upon an emails Subject line.

    I am running Exchange 2010 on-prem with a 2013 Hybrid (including a 2013 Edge Transport server for message handling between on-prem and the o365 tenant) connecting to an o365 tenant. I use EMC's SourceOne for archiving running on-prem. The o365
    tenant points to a mailbox on my on-prem Journaling server.
    What I am seeing is that when o365 forwards emails as attachments from the cloud back to the on-prem Journaling server it is examining the subject line of the message and making a decision to strip the attachment based upon the very end of the subject line.
    Example: A simple text message with a subject line of: "Check out the new web site at www.xyz.com"
    The Edge transport server is seeing this as being a ".com" attachment and stripping it off before it gets to the Journaling server. So it does not appear to be looking inside the message to see what it actually is and figure out that it is not
    a ".com" file but a simple text message.
    I have seen this with other file extension types as well. Such as ".exe" . It is also stripping off ".zip" attachments as well, but I understand that and not sure how to deal with it.
    Has anyone else experienced this and how have you dealt with it? Microsoft wants me to take the Edge out of play and go directly to from the cloud to an on-prem Exchange server. But that is not an option as the on-prem servers are not exposed to the internet.
    Thanks, Bob
     

    Hi BobSwe,
    Thank you for your response.
    If you have resolved this question, please mark useful replies as answer.
    Thanks,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Allen Wang
    TechNet Community Support

  • How to get Mail 8.1 to forward an email based on Subject line?

    I am using Mail 8.1 under MacOSX 10.10 (Yosemite).
    I would like to create a rule that takes all mail received into a specific Mailbox and send or forward it to an email address which forms the Subject line of that email, changing the Subject line of the outgoing email to "Response Received".
    What is the easiest way to do this?

    You first need to setup iCloud and then setup an iCloud email account. Either that or you can set up an IMAP email account with your email provider. Your current email is probably a POP3 account, it may be able to convert it to IMAP but you would need to check with your email provider first.

  • Is anyone finding out a good best practice on size and wording of subject lines?

    we test a lot and what works this time seems to be changing rapidly...just wondering what everyone else is seeing out there when it comes to uniqe, eye catching subject lines

    I read a great article on some tests that that Hubspot did called: Set Expectations with Email Subject Lines [Data]
    What they found was that subject lines affect both open AND clickthrough rates. The point of the article is that the subject line must not just be used as a gimmick to get the email open but must set the right expectations as to what will be found in the email.
    Here are the results:
    54 New Data Slides for Your Marketing Decks -  13.7% (OR) - 26.0% (CTR)
    65 New Marketing Charts for Your Presentations - 13.7%(OR) - 24.3%(CTR)
    65 New Charts for Your Presentations - 14.3%(OR) - 22.8%(CTR)
    Marketing Slide Show In-a-Box [Ready to use/share] - 14.1%(OR) - 14.8%(CTR)
    Get Key Marketing Trends from the Marketing Data Box - 12.7%(OR) - 10.4%(CTR)
    Read more:
    http://blog.hubspot.com/blog/tabid/6307/bid/13893/Set-Expectations-with-Email-Subject-Lines-Data.aspx#ixzz1Ns2UV25L
    PS - Whichtestwon is a great source and backs up the Hubspot case study above

  • SAP Version to be added in the subject line while posting a question.

    Hi,
    We all have been posting and answering thousands of questions on the SDN. Many times I have seen moderators asking the person who posted a question to use a correct and informative subject line.
    With respect to that, I would like to suggest the moderators to add a rule in the rules of engagement asking the users to provide the SAP Version in the subject line while posting questions.
    This way the person answering the question can appropriately provide information based on that version only and would save the time and effort of everyone.
    Example subject line can be :
    ECC 6.0 Function module xyz is not returning correct results.
    I would like to know the opinion of other users too on what they think about this suggestion.
    Best regards,
    Advait

    In theory - a very good idea.
    In practice - hard to enforce.
    On second thoght, it could be a required parameter. It might have the added benefit of dissuading questions from people who can't figure out which version they have
    Rob
    Edited by: Rob Burbank on Jan 16, 2009 3:56 PM

  • I am unable to email an image from camera roll. the image gets "stuck". cannot input email address or subject line. am unable to cancel and go back to camera roll

    i am unable to email images from my camera roll. the image gets "stuck". cannot insert email address or subject line. cannot cancel... return to camera roll.
    what to do. i tries taking new picture and sending it in an email... same thing... gets "stuck "
    Waht to do ?

    Hello lohmann8,
    Thank you for providing so much detail about the issue you are experiencing with emailing photos from the Camera Roll.
    The first thing I recommend is quitting and relaunching the applications on your iPhone:
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    You can find the full article here:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    If you are still seeing the same issue after quitting and relaunching the Photos and Camera app, I recommend restarting your phone and then resetting if it's still not working:
    Restarting your device
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    Press and hold the Sleep/Wake button until the Apple logo appears.
    Note: Reset your device only if you are unable to restart it.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    You can find the full article here:
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, the last thing I recommend is backing up and restoring your iPhone:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    iTunes: Restoring iOS software
    http://support.apple.com/kb/HT1414
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for