|
|
|
Forum
Hi!
I just discovered this extension and instantly fell in love with it! Absolutely marvelous! :-)
Just one question:
When I reply to a news article I want to insert an introduction like this:
On DATE AUTHOR wrote:
Which variable do I need to put in for the author of the originale article?
-- Wolfgang Klein |
I don't use newsgroup myself but don't [[FROM=firstname]] work? |
No, FROM does not work, in neither form.
|
Can you explain where the author is stored? Is it in a header? Do I need to find the first email in a thread and get the To-header from there? Or how should it work? |
The author is stored in the header "From:", the same that is used in an e-mail.
I think the only difference is the way Quicktext approaches its variables: Quicktext offers to use the FROM or TO as variables when writing a message. If I'm not mistaken, these variables are set from the new message's point of view: FROM is the one who writes the message (obviously me) and TO is the recipient.
But when you reply to a newsarticle, both variables are not suitable for use in an introduction line: FROM would be set to my name, because it is me that writes the reply, and TO is not set at all because the message is not addressed to a person but to a newsgroup, with the group's name stored in the header "Newsgroups:", of course.
So my guess would be that Quicktext would need to look if there is a header called "Newsgroup" and if it is set, and if so it should grep the header "From:" of the originale article, the one that is being replied to.
I don't know if this is easy to archieve, but Thunderbird does this somehow when you hit reply: it offers the name of the original author to be used in an introduction line like "On Mon, Apr 1, Fred Flintstone wrote:". The appearance of this introduction can be controlled by setting the userpref "mailnews.reply_header_type".
|
Sorry. What you want is probably [[ORGHEADER=from]] which is available in Pro version. Then you get the value of the From-field of the mail you replying to. |
Is there any chance of persuade you to make [[ORGHEADER=from]] available in the free version? Maybe with a SUPER BIG PLEASE! :-) |
Hi.
WizKid, could you please confirm that [[ORGHEADER=from]] works as Fullname for authors of newsgroups' articles?
You said: "What you want is probably [[ORGHEADER=from]]" and before I buy Pro version I want to make sure that it really does work, and not "probably" work.
Since I'm already asking questions, is there such a Variable or will there be a possibility to add a Variable like RAND(0,100) or something similar? Might be in Pro version (if [[ORGHEADER=from]] works there ;) ).
Thanks for all your work. Quicktext is really great! |
The reason I said probably is that I don't mailinglists my self and there for I haven't tested it my self.
[[ORGHEADER=from]] will return the full from-header of the mail you reply to so it will look something like "Emil Hesslow <hesslow@gmail.com>".
There are no variable that does RAND(0,100) but there is script support in the Pro version and writing a script that does that is very easy. Something like this:
var max = 100; if (this.mVariables.length > 0) max = this.mVariables[0]; return Math.floor(Math.random()*max+1);
And then you could call it by using [[SCRIPT=random]] or [[SCRIPT=random|1000]] if you want a different max-value. | 1 You need to login before posting in the forum |
|