Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Remove "Modified by..." in subject?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remove "Modified by..." in subject?
Authored by: gwaldon on Apr 28, '04 01:17:33AM

Thanks for the script! I had been trying to write one of my own, but got stuck on a snag that you seem to have here also: the message subjects are appended with "Modified by [my name]". This doesn't happen when you simply redirect each message manually. Does anyone know a way around it? I've experimented with it a lot and I really can't tell where it's coming from, though it seems to happen in the step of adding the new recipient. (That is, if I have applescript just create the message, but I fill in the gmail address myself, then the subject doesn't get changed. However, if applescript both creates and addresses the message, and then I click send, the subject is modified, even though I can't see that in the window.)



[ Reply to This | # ]
Try formail(1) [was: Remove "Modified by..." in subject?]
Authored by: SlewSys on Apr 28, '04 06:04:39PM

The only command sufficiently powerful for redirecting mail that I am aware of is formail(1), which is part of the procmail(1) package. I believe it is native to OS X 10.3, at least.

Here is a sample command-line that I use for resending delivered mail.
Please read the manual carefully and proceed with caution, since the command must be executed as the super user (i.e., root).

# formail -s formail -k -X Subject: -R From: Reply-To: -X Reply-To: -s sendmail target-user@target.domain <mailbox

(all on one line) The second formail(1) command (i.e., formail -k ...) rewrites the `From:' header to `Reply-To:'. This way, if target-user wants to reply to a message, the reply will go to the original sender and not back to me. The first formail(1) command (i.e., formail -s ...) simply splits the mailbox up into individual messages.

Not exactly the answer you were looking for, but hopefully someone will find this useful...



[ Reply to This | # ]
Pleae help - getting the current subject etc in an open message
Authored by: peterpayne on Jan 14, '07 12:48:27AM

I've got an odd request. I need to be able to get the To:, Subject: and so on in the current open message, i.e. not a message that's been sent yet. I am having the devil's own time trying to figure out how I might do it, can anyone help? What I essentially need to do is make a duplicate of the current open message to the same recipient, but CC'ed to a separate address (a site where the user can read our mails if the spam filters eat the first message). If anyone can help me figure out how to get the current to, subject, content etc of the foremost open message window, I'd be forever in your debt.



[ Reply to This | # ]