哪些文字会触发Gmail有关忘记附件的警告?


12

我想确切地知道是什么文本导致了Gmail弹出对话框,该对话框警告您可能忘记了将文件附加到电子邮件中。

我访问了许多描述此功能的网页,但是其中大多数仅给出了一些字符串示例,并暗示了更多示例。我找到的最长列表在这里,即使该站点也没有列出完整列表。

它给:

  • “我附加了”
  • “我附上了”
  • “我包括了”
  • “我包括了”
  • “见附件”
  • “附件”

如果有人可以找到确定的清单,请张贴!

注意:如果Gmail故意对此保密(以便将来可以更轻松地对其进行更改),我打算对那些提及不在此列表中并且确实引起警告的文本​​字符串进行答复(我会先进行测试,其他任何人也应该进行测试!)。这样,我们将能够拼凑出答案。

另请注意,根据对这个问题的答案:是否可以自定义Gmail缺少附件警报器?,您也许可以更改触发警告的文字,但是我仍然想知道默认值。


4
我怀疑您是否可以找到列表。一,这可能是允许Gmail脱颖而出的商业秘密,二,他们必须维护两个列表:一个在代码中,一个在支持页面上。
ale

“请参阅附件”也适用。
Alex 2014年

您无法通过收集触发消息的文本来制定出完整的列表。要知道您有一个完整的列表,还必须有一个不会触发消息的所有文本的列表,这显然是不可能的。
Mike Scott

1
@MikeScott可能。JavaScript代码已加载到浏览器中,可以使用Chrome Dev Tools
IsmailS

Answers:


11

我正在另一个应用程序中实现类似的功能,而不是猜测自己的方式,而是继续从Gmail本身偷走了JavaScript源。截至今天,Gmail符合以下条件:

see attached
see attachment
see included
is attached
attached is
are attached
attached are
attached to this email
attached to this message
I'm attaching
I am attaching
I've attached
I have attached
I attach
I attached
find attached
find the attached
find included
find the included
attached file
see the attached
see attachments
attached files
see the attachment

4

使用Chrome Dev Tools,在检查/搜索GMAIL中所有已加载的脚本时,我发现了这段代码

if (!a && !c) {
  c = m_c(this, d, b, this.Jk);
  c = hZc(new cZc(this.rv(b)), c, b, "");
  if (Ea(c))
    c = null ;
  else {
    var e = this.Yp.zi("sx_dl"), 
    d = "see attached|see attachment|see included|is attached|attached is|are attached|attached are|attached to this email|attached to this message|I'm attaching|I am attaching|I've attached|I have attached|I attach|I attached|find attached|find the attached|find included|find the included|attached file|see the attached|see attachments|attached files|see the attachment";
    /^(zh|ja|ko)/.exec(e) ? d = "(" + d + ")" : (e = /[^!-~\s]/.exec(c) ? "(?:[\\s!-/:-@[-`{-~])" : "\\b",
    d = e + "(" + d + ")" + e);
    c = (c = (new RegExp(d,"i")).exec(c)) ? 
    c[1] : null 
  }
  if (c) {
    (d = !this.bx.dIa('It seems like you have forgotten to attach a file.\n\nYou wrote "' + (c + '" in your message, but there are no files attached. Send anyway?'))) ? this.Tq.ra(fRa, c.toLowerCase()) : this.Tq.ra(cRa, c.toLowerCase());
    c = d;
    break a
  }
}

它说,仔细观察代码,这些是GMAIL匹配的单词

see attached
see attachment
see included
is attached
attached is
are attached
attached are
attached to this email
attached to this message
I'm attaching
I am attaching
I've attached
I have attached
I attach
I attached
find attached
find the attached
find included
find the included
attached file
see the attached
see attachments
attached files
see the attachment

和警报 It seems like you have forgotten to attach a file. You wrote <matched words> in your message, but there are no files attached. Send anyway?


1

没有这样的清单。

但是您可以将反馈发送给Google,在使用gmail时单击齿轮,然后单击发送反馈-请注意,并非所有帐户都具有该选项,如果没有,请单击齿轮,单击帮助,然后单击发送反馈。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.