首页 \ 问答 \ 如何获取使用传输发送的电子邮件的message_id?(How to get message_id of emails sent using transmission?)

如何获取使用传输发送的电子邮件的message_id?(How to get message_id of emails sent using transmission?)

我们正在从Mandrill转向SparkPost。 我们认为SparkPost的传输与Mandrill的发送模板消息调用最接近。

Mandrill使用每封电子邮件的ID状态 es列表回复了这些电话。 另一方面,SparkPost返回单个ID和摘要统计信息(已发送的电子邮件数和失败的电子邮件数)。 有没有办法让这些身份状态脱离传输响应或根本没有?


We're moving from Mandrill to SparkPost. We figured that SparkPost's transmission is the closest thing to Mandrill's send-template message call.

Mandrill responded to those calls with a list of ids and statuses for each email. On the other hand SparkPost returns a single id and summary statistics (number of emails that were sent and number of emails that failed). Is there some way to get those ids and statuses out of the transmission response or at all?


原文:
更新时间:2022-03-19 14:03

最满意答案

-gravity救援,检查文件的例子

更新 :好的我误解了这个任务。

但恕我直言,你仍然可以首先创建你的数字作为图像(当然你可以自定义字体等),并修剪它:

/usr/bin/convert -fill black -size 40x40 label:$NUMBERS -transparent white -trim  numbers.gif

现在检查新图像的大小

/usr/bin/identify trimmed.gif

然后计算将它放置在图像上的位置。 我留给你;-)

现在,您只需将数字合并到图像中即可完美定位(替换+ X + Y)。

/usr/bin/composite -geometry +X+Y trimmed.gif original_image.jpg original_with_numbers.jpg

HTH


-gravity to the rescue, check the documentation with examples.

Update: OK I misunderstood the task.

But IMHO you can still create your numbers as an image first (of course you can customize the font, etc) and trim it:

/usr/bin/convert -fill black -size 40x40 label:$NUMBERS -transparent white -trim  numbers.gif

Now check the new image's size

/usr/bin/identify trimmed.gif

Then calculate where to position it on your image. I leave it to you ;-)

Now you only need to merge the numbers to your image to the perfect position (replace +X+Y).

/usr/bin/composite -geometry +X+Y trimmed.gif original_image.jpg original_with_numbers.jpg

HTH

相关问答

更多
  • 更新的答案 由于我们遇到了一些问题并且您无法分享您的图片,让我们自己制作一些: convert -size 600x200 xc:none -fill red -draw "circle 100,100 100,200" -bordercolor black -border 1 1.png convert -size 600x200 xc:none -fill lime -draw "circle 300,100 400,100" -bordercolor black -border 1 2.png c ...
  • 我找到了这个问题的答案。 我将接收到的数据类型更改为BYTE,并在我的C#中发送了字节本身。 我把BYTE转换成了const void *,所有的东西都解决了。 然后,因为我正在测试PDF文件,所以我使用了“readImages”方法,现在它完美地工作了。 编辑:也愚蠢的我,为了得到blob的长度,它应该是“blob.length()”,而不是sizeof。 感谢@emcconville指出。 I found the answer to this problem. I changed the receive ...
  • 看看你的“-font DRAGM.ttf”。 尝试设置OR“/full/path/to/font.ttf”,或者只是字体名称。 可用的字体名称列表:来自控制台的“convert -list font”。 Look at your "-font DRAGM.ttf". Try to set OR "/full/path/to/font.ttf", OR just font name. Available list of font names: "convert -list font" from console ...
  • 你的^意思是“续行” - 这不是批文件的工作方式。 你需要延迟扩展 : Setlocal enabledelayedexpansion FOR /L %%x IN (0,1,99) DO ( SET PADDED=00%%x SET PADDED=!PADDED:~-3! magick composite -dissolve %%x -gravity Center "frl1/frame! PADDED!.png" "frl2/frame!PADDED!.png" -alpha SET "o ...
  • 如果没有为makefile定义卸载,则可能需要手动卸载过程。 这个问题已在'make install'的相反问题中讨论过,即。 你如何在Linux中卸载库? 。 I ditched the idea of using Ghostscript as an Image Magick Delegate, not only because the installation process was not working out for but, but also due to the fact that my re ...
  • 在Fedora,CentOS,Ubuntu和更多的应用程序中,通过cpan程序安装Image :: Magick需要安装这种类型的挑战,并且对于Image :: Magick安装脚本已经有几年的敏感性了,它似乎(如果一个人搜索)。 这对于桌面Linux来说都是如此,更是如此,通过Apache cpanel。 有收件人,但至少在Ubuntu,他们没有解决所有问题。 有时候,为了做到这一点,必须首先使用ImageMagick删除相关的库来重置链接。 所有建议的解决方案都围绕在使用'cpan'之前安装其他东西。 ...
  • 我不确定我完全理解你在寻找什么,但我认为获得字体指标可能会有所帮助。 试试这个并在开始“Metrics:”的行中查找所需的所有数字: convert -debug annotate -size 720x480 -background red xc:black -fill white -stroke white -font Arial -pointsize 18 -draw "text 82,370 'Nav P1'" a.png 产量 2016-06-03T09:50:12+01:00 0:00.010 ...
  • 在这里阅读原始文档带来的解决方案: image_scale(shoe,"382x509!") # format width height colorspace filesize #1 JPEG 382 509 sRGB 0 Reading the original documentation here brings the solution: image_scale(shoe,"382x509!") # format width height colorspac ...
  • 这是一个小型SSCCE ,演示了您的问题的解决方案: import javax.swing.*; import java.awt.*; import java.awt.image.*; public class Test extends JFrame{ public static void main(String [] args){ new Test(); } private Test(){ final BufferedImage img = n ...
  • -gravity救援,检查文件的例子 。 更新 :好的我误解了这个任务。 但恕我直言,你仍然可以首先创建你的数字作为图像(当然你可以自定义字体等),并修剪它: /usr/bin/convert -fill black -size 40x40 label:$NUMBERS -transparent white -trim numbers.gif 现在检查新图像的大小 /usr/bin/identify trimmed.gif 然后计算将它放置在图像上的位置。 我留给你;-) 现在,您只需将数字合并到图像 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。